/* vibe CSS - Premium Dark Monochrome UI */

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(22, 22, 22, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.22);
  --text-primary: #ffffff;
  --text-secondary: #9f9f9f;
  --text-muted: #5f5f5f;
  --accent-glow: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(16px);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', 'Inter', sans-serif;
  --safe-color: #00e676;
  --warning-color: #ffb300;
  --danger-color: #ff3d00;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #050505;
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* App Layout Wrapper */
.app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Premium Desktop Header styling */
.app-header {
  height: 64px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 1000;
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header .logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.8px;
}

.app-header .tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.app-header .desktop-clock {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
}

/* Main App Body container */
.app-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

/* Multi-View SPA Layout */
.view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  background: var(--bg-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view.active {
  display: flex;
  opacity: 1;
  animation: viewTransition 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* Typography styles */
.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 24px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.8px;
}

.tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-section {
  margin-bottom: 30px;
}

.title-serif {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.title-serif i {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.subtitle-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: 8px;
}

.setup-section {
  margin-bottom: 28px;
}

/* Cards & Glassmorphism */
.trait-card, .guard-card, .guard-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.trait-card:hover, .guard-card:hover, .guard-row:hover {
  border-color: var(--border-active);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.02);
}

.trait-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.trait-label {
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trait-label i {
  font-size: 12px;
  color: var(--text-secondary);
}

.trait-value {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--text-primary);
}

/* Premium Range Sliders */
.trait-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  outline: none;
  margin: 12px 0 6px 0;
}

.trait-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2.5px solid var(--bg-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease;
}

.trait-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-endpoints {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Guards and switches */
.guard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.guard-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 80%;
}

.guard-name {
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guard-name i {
  font-size: 12px;
  color: var(--text-secondary);
}

.guard-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
}

/* Toggle Switch Style */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  transition: .25s ease;
  border-radius: 34px;
  border: 1px solid transparent;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

input:checked + .toggle-slider {
  background-color: #ffffff;
}

input:checked + .toggle-slider:before {
  transform: translateX(16px);
  background-color: #000000;
}

/* Selector chips */
.selector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.chip.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 500;
}

.chip i {
  font-size: 10px;
}

/* Push Notification Banner */
.notification-banner {
  position: absolute;
  top: -85px;
  left: 14px;
  right: 14px;
  background: rgba(15, 15, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 2000;
  transition: top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-banner.show {
  top: 52px;
}

.notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-color);
}

.notification-icon i {
  font-size: 13px;
  color: var(--text-primary);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.notification-body {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Sticky Action Button footer */
.sticky-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 8px)) 20px;
  background: linear-gradient(to top, var(--bg-primary) 70%, transparent);
  z-index: 900;
}

.btn-primary {
  width: 100%;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 20px;
  padding: 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* VIEW 2: FEED VIEW STYLING */
.feed-header {
  height: 56px;
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  z-index: 100;
}

.btn-back, .btn-edit-profile {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.btn-back:hover, .btn-edit-profile:hover {
  background: rgba(255, 255, 255, 0.06);
}

.location-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.location-icon {
  font-size: 11px;
  color: var(--text-secondary);
}

.city-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding-right: 4px;
}

.city-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Leaflet Map Area */
.map-panel {
  height: 250px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

#map {
  width: 100%;
  height: 100%;
  background: #f4f5f7;
}

/* Light basemap filter for better visibility */
.leaflet-tile-container {
  filter: grayscale(0%) contrast(1.05) brightness(1.0);
}

/* Custom black-white map controls */
.leaflet-bar {
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: none !important;
}

.leaflet-bar a {
  background-color: rgba(10, 10, 10, 0.8) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.leaflet-bar a:hover {
  background-color: #1a1a1a !important;
}

.map-hud {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 900;
  pointer-events: none;
}

.hud-item {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hud-item i {
  font-size: 9px;
  color: var(--text-secondary);
}

/* Matches Feed Panel */
.matches-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-secondary);
}

.panel-header {
  padding: 16px 20px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-title {
  font-size: 14.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.panel-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.cards-feed {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Match Cards */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.match-card:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.card-score-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-active);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 13.5px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.match-card.top-rank .card-score-circle {
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
  background: #ffffff;
  color: #000000;
}

.card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 8px;
  color: var(--text-secondary);
}

.match-card.top-rank .rank-badge {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.card-excerpt {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: 2px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.card-open-btn {
  align-self: flex-start;
  margin-top: 10px;
  padding: 4px 8px;
  min-height: 24px;
  width: auto;
  max-width: 86px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #ffffff;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 16px rgba(255, 255, 255, 0.16);
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.25s ease, background 0.25s ease;
}

.card-open-btn:hover {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 26px rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.card-open-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.card-open-btn i {
  font-size: 10px;
}

.card-badge {
  font-size: 9.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-badge i {
  font-size: 8px;
}

/* Empty State / No matches */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  gap: 12px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 32px;
}

.empty-state p {
  font-size: 12.5px;
  line-height: 1.4;
}

/* VIEW 3: DETAIL DRAWER SLIDE UP PANEL */
.detail-drawer {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  height: 64%;
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid var(--border-color);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  z-index: 1010;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8);
}

.detail-drawer.show {
  bottom: 0;
}

.drawer-handle {
  width: 40px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin: 10px auto 0 auto;
  cursor: pointer;
  flex-shrink: 0;
}

.drawer-header {
  padding: 16px 20px 14px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.drawer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comp-badge {
  font-size: 11px;
  font-weight: 600;
  background: #ffffff;
  color: #000000;
  padding: 3px 10px;
  border-radius: 12px;
}

.spot-dist {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.spot-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.spot-location {
  font-size: 12px;
  color: var(--text-muted);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gradient-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
}

.block-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.block-title i {
  font-size: 10px;
}

.block-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Secret Spot Box and Reveal Action */
.secret-box {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px;
  min-height: 70px;
  overflow: hidden;
}

.secret-text {
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--text-primary);
}

.secret-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

.secret-blur-overlay.revealed {
  opacity: 0;
  pointer-events: none;
}

.btn-reveal {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reveal:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Dietary Tags */
.dietary-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.dietary-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

/* Safety Checklist Grid */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.safety-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cell-label {
  font-size: 9.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.cell-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Leaflet path customization */
.leaflet-interactive {
  stroke-dasharray: 6, 8;
  animation: dashRotation 30s linear infinite;
}

/* Animation keyframes */
@keyframes viewTransition {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes dashRotation {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 1000;
  }
}

/* Leaflet Custom Circle Marker styling */
.custom-user-marker {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.custom-spot-marker {
  width: 12px;
  height: 12px;
  background: #000000;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.custom-spot-marker.active-spot {
  background: #ffffff;
  border: 2.5px solid #000000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  width: 16px;
  height: 16px;
  transform: translate(-2px, -2px);
}

/* Responsive mobile and desktop layout controls */
.feed-header-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

/* Community Reviews Section (Glassmorphism + Responsive) */
.community-section {
  margin-top: 8px;
}

.community-card {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(2,6,23,0.6);
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), box-shadow 0.28s ease, border-color 0.25s ease;
}

.community-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: 0 18px 48px rgba(2,6,23,0.65);
}

.community-content {
  flex: 1;
  min-width: 0;
}

.community-title {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.community-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.community-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 12px;
}

.community-features li {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

.community-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-contribute {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.85);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(6px);
}

.btn-contribute:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(255,255,255,0.04);
}

.community-micro {
  font-size: 12px;
  color: var(--text-muted);
}

.community-illustration {
  width: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2200;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
  animation: modalFade 0.22s ease;
}

.modal-dialog {
  width: min(960px, 98%);
  max-height: 92vh;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10,10,10,0.98), rgba(8,8,8,0.98));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  overflow: hidden;
}

.modal-iframe {
  width: 100%;
  border: none;
  height: calc(100vh - 160px);
  max-height: calc(100vh - 160px);
  display: block;
}

.modal-fallback {
  padding: 18px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .community-card { flex-direction: column; gap: 10px; }
  .community-illustration { width: 100%; justify-content: flex-start; }
  .modal-dialog { width: 100%; height: 100%; border-radius: 0; max-height: 100vh; }
  .modal-iframe { height: calc(100vh - 80px); min-height: calc(100vh - 80px); }
}

/* Header review button (compact) */
.header-review-btn {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  color: #000000;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.12s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.header-review-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18), 0 0 18px rgba(255,255,255,0.06) inset;
}

@media (max-width: 480px) {
  .header-review-btn { padding: 6px; font-size: 11px; }
}

/* Attention Animations */
@keyframes pulseGlow {
  0% { box-shadow: 0 6px 18px rgba(255,255,255,0.06), 0 0 0 0 rgba(255,255,255,0.0); transform: translateY(0) scale(1); }
  50% { box-shadow: 0 14px 36px rgba(255,255,255,0.12), 0 0 32px rgba(255,255,255,0.06); transform: translateY(-2px) scale(1.02); }
  100% { box-shadow: 0 6px 18px rgba(255,255,255,0.06), 0 0 0 0 rgba(255,255,255,0.0); transform: translateY(0) scale(1); }
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.header-review-btn.attention {
  animation: pulseGlow 2.2s ease-in-out 0s 1 both;
}

.community-card.attention {
  animation: floatSlow 5.4s ease-in-out 0s 1 both;
  box-shadow: 0 22px 60px rgba(2,6,23,0.7);
  transform-origin: center;
}

/* Gentle hover emphasis for both elements */
.header-review-btn:hover, .community-card:hover { transform: translateY(-3px); }
@media (max-width: 767px) {
  .app-header {
    display: flex !important;
    height: 56px !important;
    padding: 0 16px !important;
    justify-content: space-between !important;
  }
  .app-header .tag, 
  .app-header .desktop-clock {
    display: none !important;
  }
  .app-header .logo {
    font-size: 20px !important;
  }
  .app-header .location-picker {
    padding: 4px 10px !important;
  }
  .app-header .city-select {
    font-size: 11.5px !important;
  }
  .app-body {
    height: calc(100vh - 56px) !important;
    height: calc(100dvh - 56px) !important;
  }
  .notification-banner.show {
    top: 68px !important;
  }
  .feed-header {
    margin-top: 0 !important;
  }
}

/* Premium Desktop 3-Column Dashboard Layout */
@media (min-width: 768px) {
  .app-body {
    display: grid !important;
    grid-template-columns: 360px 1fr !important;
    height: calc(100vh - 64px) !important;
    width: 100vw !important;
  }

  .view {
    position: static !important;
    display: flex !important;
    opacity: 1 !important;
    height: 100% !important;
    width: 100% !important;
    transition: none !important;
    animation: none !important;
  }

  #profileScreen {
    border-right: 1px solid var(--border-color);
  }

  #profileScreen .sticky-footer {
    display: none !important;
  }

  #feedScreen {
    display: grid !important;
    grid-template-columns: 400px 1fr !important;
    grid-template-rows: auto 1fr !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  #feedScreen .feed-header {
    grid-column: 1 / span 2 !important;
    grid-row: 1 !important;
    margin-top: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
  }

  #feedScreen .feed-header .btn-back,
  #feedScreen .feed-header .btn-edit-profile {
    display: none !important;
  }

  #feedScreen .matches-panel {
    grid-column: 1 !important;
    grid-row: 2 !important;
    height: 100% !important;
    border-right: 1px solid var(--border-color) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  #feedScreen .map-panel {
    grid-column: 2 !important;
    grid-row: 2 !important;
    height: 100% !important;
  }

  /* Right-sliding Detail Drawer */
  .detail-drawer {
    top: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    right: -420px !important;
    width: 420px !important;
    height: 100% !important;
    border-top: none !important;
    border-left: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
  }

  .detail-drawer.show {
    right: 0 !important;
    bottom: 0 !important;
  }
}

/* CARD VIBE AND BUDGET BADGES */
.card-badge.env-badge {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-primary) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.card-badge.budget-badge {
  background: rgba(76, 175, 80, 0.05) !important;
  color: #81c784 !important;
  border-color: rgba(76, 175, 80, 0.15) !important;
}

/* TIMINGS DETAILS GRID IN DRAWER */
.timings-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 4px !important;
}

.timing-cell {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.timing-label {
  font-size: 9.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.timing-value {
  font-size: 11.5px !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}

/* SAVED SPOTS SIDEBAR PANEL */
.saved-spots-section {
  border-top: 1px solid var(--border-color) !important;
  margin-top: auto !important; /* Pushes list to the bottom of sidebar */
  padding: 16px 20px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.015) 100%) !important;
}

.saved-spots-title {
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--text-muted) !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.saved-spots-title i {
  color: #f59e0b !important;
}

.saved-spots-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  max-height: 200px !important;
  overflow-y: auto !important;
}

.saved-spot-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.saved-spot-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px) !important;
}

.saved-spot-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  cursor: pointer !important;
  flex: 1 !important;
}

.saved-spot-name {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 180px !important;
}

.saved-spot-city {
  font-size: 9px !important;
  color: var(--text-muted) !important;
}

.saved-spot-actions {
  display: flex !important;
  gap: 6px !important;
}

.btn-action {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: var(--text-secondary) !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 10px !important;
  transition: all 0.2s ease !important;
}

.btn-action:hover {
  background: var(--text-primary) !important;
  color: var(--bg-primary) !important;
  border-color: var(--text-primary) !important;
}

.btn-action.btn-saved-remove:hover {
  background: var(--danger-color) !important;
  color: #ffffff !important;
  border-color: var(--danger-color) !important;
}

/* DRAWER ACTION BUTTONS */
.drawer-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 4px !important;
}

.btn-drawer-action {
  padding: 12px 16px !important;
  border-radius: 14px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-family: var(--font-sans) !important;
}

.btn-drawer-action.btn-save-spot {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-primary) !important;
}

.btn-drawer-action.btn-save-spot:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-drawer-action.btn-save-spot.saved {
  background: var(--text-primary) !important;
  color: var(--bg-primary) !important;
  border-color: var(--text-primary) !important;
}

.btn-drawer-action.btn-save-spot.saved:hover {
  background: rgba(255, 255, 255, 0.85) !important;
}

.btn-drawer-action.btn-calendar {
  background: var(--accent-gradient, linear-gradient(135deg, #a855f7 0%, #6366f1 100%)) !important;
  border: none !important;
  color: #ffffff !important;
}

.btn-drawer-action.btn-calendar:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
}
