@import "/assets/cyber2077.css";

:root {
  --bg: #03040a;
  --accent: #1e1b4b;
  --accent-light: #2e1065;
  --purple-selected: #7c3aed;
  --purple-highlight: #a855f7;
  --blue-pin: #1e1b4b;
  --emerald: #10b981;
  --panel-bg: rgba(10, 6, 24, 0.95);
  --panel-border: rgba(124, 58, 237, 0.3);
  --text: #f8fafc;
  --text-dim: #94a3b8;

  /* JustParkIt Cyberpunk Construction Banner Colors (Dark Blue & Violet) */
  --banner-accent: rgba(30, 27, 75, 0.9);
  --banner-glow: rgba(124, 58, 237, 0.9);
  --banner-border: rgba(168, 85, 247, 0.6);
  --banner-shadow: rgba(124, 58, 237, 0.5);
}

/* Site Under Construction Banner */
.k-construction-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(90deg, var(--banner-accent) 0%, rgba(15, 12, 40, 0.95) 50%, var(--banner-accent) 100%);
  border-bottom: 1px solid var(--banner-border);
  box-shadow: 0 2px 12px var(--banner-shadow);
  color: #e9d5ff;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
  text-shadow: 0 0 8px var(--banner-glow);
}

.k-construction-banner .k-banner-svg-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.k-construction-banner .k-banner-svg-icon.spin {
  animation: bannerSpin 8s linear infinite;
}

@keyframes bannerSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--text);
}

.map-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
  min-width: 100vw;
  min-height: 100vh;
  background: #090d16;
}

/* ParkIt Circle Pin Shape with Arrow */
.custom-pin-wrapper {
  background: transparent !important;
  border: none !important;
}

.parkit-pin {
  position: relative;
  width: 50px;
  height: 60px;
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85));
  transition: filter 0.25s ease;
}

.parkit-pin-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Pin Heart Path Styling & Favorite Animation */
.pin-heart-path {
  transition: fill 0.2s ease, stroke 0.2s ease;
  pointer-events: visiblePainted;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center center;
}

.pin-heart-path.is-fav {
  fill: #ef4444;
  stroke: #ef4444;
}

/* Synchronized Favorite Pop Animations */
.summary-fav-btn.heart-pop svg,
.fav-filter-btn.heart-pop svg {
  animation: heartPopAnim 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.pin-heart-path.heart-pop-echo {
  animation: pinHeartEchoAnim 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPopAnim {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.5);
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.95));
  }
  75% {
    transform: scale(0.88);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pinHeartEchoAnim {
  0% {
    transform: translate(50px, 50px) scale(1.15);
  }
  45% {
    transform: translate(50px, 50px) scale(1.7);
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.95));
  }
  75% {
    transform: translate(50px, 50px) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.15);
  }
}

/* Hover glow on the circle pin matching the exact left/right border colors */
.parkit-pin:hover {
  filter: drop-shadow(0 0 14px var(--stroke-left, #fbbf24))
          drop-shadow(0 0 14px var(--stroke-right, #3b82f6))
          drop-shadow(0 6px 16px rgba(0, 0, 0, 0.95));
  z-index: 20;
}

.parkit-pin.unavailable {
  opacity: 0.6;
  filter: grayscale(80%) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.parkit-pin.unavailable:hover {
  opacity: 0.85;
  filter: grayscale(40%) drop-shadow(0 0 10px rgba(156, 163, 175, 0.6));
}

.parkit-pin.selected {
  filter: none;
  z-index: 25;
}

/* Global Macro Cluster Drops (Earth to Department Levels) */
.custom-cluster-wrapper {
  background: transparent !important;
  border: none !important;
}

.parkit-cluster-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.parkit-cluster-drop:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.9));
  z-index: 30;
}

.cluster-pin-svg {
  display: block;
  overflow: visible;
}

.parkit-cluster-drop.selected-cluster {
  transform: scale(1.15);
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.95)) drop-shadow(0 0 30px rgba(167, 139, 250, 0.9));
  z-index: 35;
}

.parkit-cluster-drop.selected-cluster .cluster-pin-svg {
  filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.9));
}

.spot-card-full-item {
  background: rgba(18, 11, 46, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}

.spot-card-full-item:hover {
  border-color: #a78bfa;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.35);
}

.spot-card-full-item.is-selected {
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.45);
}

.parkit-cluster-drop.empty-cluster {
  opacity: 0.7;
}

.cluster-label {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  background: rgba(13, 7, 34, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.5);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.book-action-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0px;
  margin-left: 0.3rem;
  padding: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.book-action-btn:hover {
  background: transparent;
  color: #a855f7;
  transform: scale(1.2);
}

.book-action-btn svg {
  width: 15px;
  height: 15px;
}

/* Top Right Controls */
.top-right-controls {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  pointer-events: auto;
}

/* Command Line Terminal Bar Overlay - Below construction banner */
.cli-overlay-container {
  position: absolute;
  top: 29px;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.cli-terminal-bar {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: none;
  border-bottom: 1px solid var(--panel-border);
  padding: 0.25rem 0.6rem;
  border-radius: 0px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.app-user-profile-btn {
  background: #ffffff;
  padding: 0 0.6rem;
  margin-left: -0.6rem;
  margin-top: -0.25rem;
  margin-bottom: -0.25rem;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-user-profile-btn:hover {
  background: #f1f5f9;
}

.user-avatar-icon {
  height: 18px;
  width: 18px;
  stroke: #0f172a;
}

/* Search Sentence & Modifiable Dashed Underlined Fields */
.search-sentence-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem 0.35rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.1rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

#fieldAddress {
  max-width: min(32ch, 260px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.ev-toggle-icon-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  margin: 0 0.15rem;
  flex-shrink: 0;
}

.ev-toggle-icon-btn svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.ev-toggle-icon-btn:hover {
  color: #fbbf24;
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.ev-toggle-icon-btn.is-ev {
  color: #fbbf24;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
}

.sentence-meta-summary-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0.4rem;
  flex-shrink: 0;
}

.sentence-meta-summary {
  color: #a78bfa;
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  white-space: nowrap;
}

.map-overlay-search-here-btn {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: transparent !important;
  border: none !important;
  color: #a78bfa;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  transition: color 0.15s ease, opacity 0.15s ease;
  user-select: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
  white-space: nowrap;
}

.map-overlay-search-here-btn:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.sentence-static {
  color: #ffffff;
  font-weight: 600;
}

.editable-field {
  color: #ffffff;
  font-weight: 600;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.7);
  padding: 0 0.2rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.editable-field:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.editable-field.active {
  color: #ffffff;
  border-bottom-color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
}

/* Quick Edit Zone Dropdown Popover - Clean Field Only */
.quick-edit-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 1.5rem;
  z-index: 1000;
  background: rgba(7, 14, 28, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  padding: 0.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  min-width: auto;
  width: auto;
}

.quick-edit-popover.active {
  display: block;
}

.quick-edit-popover label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.quick-edit-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
}

.quick-edit-input:focus {
  border-color: #60a5fa;
}

.quick-edit-select {
  width: auto;
  min-width: 100px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.quick-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.quick-edit-save-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.quick-edit-save-btn:hover {
  background: #1d4ed8;
}

.inline-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
  margin-left: auto;
}

.cli-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  outline: none;
  padding: 0.5rem 0;
}

.cli-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.cli-submit-btn {
  width: 36px;
  height: 36px;
  border-radius: 0px;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cli-submit-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.cli-submit-btn:hover {
  background: var(--accent-light);
}

/* AI Stream Response Box */
.cli-response-box {
  display: none;
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-left: 3px solid #60a5fa;
  padding: 0.85rem 1.1rem;
  border-radius: 0px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
}

.cli-response-box.active {
  display: block;
}

.cli-response-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-wrap;
  word-break: break-word;
}

.cli-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background-color: #60a5fa;
  margin-left: 3px;
  vertical-align: middle;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  padding: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.3rem;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease;
  opacity: 0.6;
}

.lang-btn:hover {
  opacity: 0.9;
  color: var(--text);
}

.lang-btn.active {
  background: transparent;
  color: var(--purple-selected, #7c3aed);
  border: none;
  opacity: 1;
}

/* Indicator Borders on Map Pins:
   Because .drop-pin is rotated -45deg:
   - "border-top" corresponds to top-left edge of the upright pin (Electric / Yellow)
   - "border-left" corresponds to bottom-left edge of the upright pin (Electric / Yellow)
   - "border-right" corresponds to top-right edge of the upright pin (Secured / Blue)
   - "border-bottom" corresponds to bottom-right edge of the upright pin (Secured / Blue or Red) */
.drop-pin.pin-stripe-ev {
  border-top-color: #fbbf24 !important;
  border-left-color: #fbbf24 !important;
}

.drop-pin.pin-stripe-secured {
  border-right-color: #3b82f6 !important;
  border-bottom-color: #3b82f6 !important;
}

.drop-pin.pin-stripe-restricted {
  border-right-color: #ef4444 !important;
  border-bottom-color: #ef4444 !important;
}

.drop-pin.pin-stripe-ev.pin-stripe-secured {
  border-top-color: #fbbf24 !important;
  border-left-color: #fbbf24 !important;
  border-right-color: #3b82f6 !important;
  border-bottom-color: #3b82f6 !important;
}

.drop-pin.pin-stripe-ev.pin-stripe-restricted {
  border-top-color: #fbbf24 !important;
  border-left-color: #fbbf24 !important;
  border-right-color: #ef4444 !important;
  border-bottom-color: #ef4444 !important;
}

.drop-pin.pin-stripe-both {
  border-top-color: #fbbf24 !important;
  border-left-color: #fbbf24 !important;
  border-right-color: #3b82f6 !important;
  border-bottom-color: #3b82f6 !important;
}

/* Quick Filter Bar on Third Line */
.quick-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: transparent;
  position: relative;
}

/* Quick Filter Button SVG Fills & States */
.quick-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  color: var(--text-dim);
  padding: 0.3rem 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0px;
  box-shadow: none !important;
}

.quick-filter-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-dim);
  fill: none;
  transition: stroke 0.15s ease, fill 0.15s ease, transform 0.15s ease;
}

.quick-filter-btn:hover svg {
  transform: scale(1.15);
}

/* Favorite Filter Button */
.fav-filter-btn svg {
  stroke: #ef4444;
  fill: none;
}

.fav-filter-btn.active svg {
  stroke: #ef4444;
  fill: #ef4444;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.7));
}

/* EV Filter Button */
.ev-filter-btn svg.icon-ev {
  stroke: #f59e0b;
  fill: none;
}

.ev-filter-btn.state-only svg.icon-ev {
  stroke: #f59e0b;
  fill: #f59e0b;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7));
}

.ev-filter-btn.state-exclude svg.icon-ev {
  stroke: #f59e0b;
  fill: none;
}

/* Lock/Access Filter Button */
.lock-filter-btn svg.icon-lock {
  stroke: #3b82f6;
  fill: none;
}

.lock-filter-btn.state-secured svg.icon-lock {
  stroke: #3b82f6;
  fill: #3b82f6;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.7));
}

.lock-filter-btn.state-restricted svg.icon-lock {
  stroke: #ef4444;
  fill: #ef4444;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.7));
}

.lock-filter-btn.state-exclude-secured svg.icon-lock {
  stroke: #3b82f6;
  fill: none;
}

.lock-filter-btn.state-exclude-restricted svg.icon-lock {
  stroke: #ef4444;
  fill: none;
}

/* Price Range Histogram Panel */
.price-histogram-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0.8rem;
  width: 310px;
  background: rgba(7, 14, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  padding: 0.9rem 1rem 1.1rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  z-index: 100;
  border-radius: 0px;
}

.price-histogram-panel.active {
  display: block;
}

.price-histogram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.price-range-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.price-histogram-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
}

.price-histogram-close:hover {
  color: #ffffff;
}

.price-histogram-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  width: 100%;
  padding-bottom: 2px;
}

.histogram-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px 2px 0 0;
  transition: background 0.15s ease;
}

.histogram-bar.active {
  background: rgba(255, 255, 255, 0.85);
}

.price-slider-container {
  position: relative;
  width: 100%;
  height: 24px;
  margin-top: -2px;
}

.price-slider-track {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 4px;
  background: #2563eb;
  border-radius: 2px;
}

.price-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 24px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.price-slider::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.price-slider::-moz-range-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Quick Filter Button State Styling */
.quick-filter-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-filter-btn .icon-slash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  stroke: #ffffff;
  stroke-width: 3.5;
  pointer-events: none;
}

.fav-filter-btn.active {
  color: #ef4444;
}

.fav-filter-btn.active svg {
  fill: #ef4444;
}

/* EV 3-State Filter Styling */
.ev-filter-btn.state-none {
  color: #94a3b8;
}

.ev-filter-btn.state-only {
  color: #fbbf24;
}

.ev-filter-btn.state-exclude {
  color: #fbbf24;
}

.ev-filter-btn.state-exclude .icon-slash {
  display: block;
}

/* Access 5-State Filter Styling */
.lock-filter-btn.state-none {
  color: #94a3b8; /* Grey: free / no filter */
}

.lock-filter-btn.state-secured {
  color: #3b82f6; /* Blue: secured */
}

.lock-filter-btn.state-restricted {
  color: #ef4444; /* Red: restricted */
}

.lock-filter-btn.state-exclude-secured {
  color: #3b82f6;
}

.lock-filter-btn.state-exclude-secured .icon-slash {
  display: block;
}

.lock-filter-btn.state-exclude-restricted {
  color: #ef4444;
}

.lock-filter-btn.state-exclude-restricted .icon-slash {
  display: block;
}

.card-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0.15rem 0.25rem 0.15rem 0;
}

.card-badge-icon svg {
  width: 11px;
  height: 11px;
}

.card-badge-icon.access-free svg {
  color: #94a3b8;
}

.card-badge-icon.access-secured svg {
  color: #3b82f6;
}

.card-badge-icon.access-restricted svg {
  color: #ef4444;
}

.card-badge-icon.ev-badge svg {
  color: #fbbf24;
}

/* Full Height Left Band for Selected Spot Details */
.spot-detail-card {
  position: absolute;
  top: 50px; /* Positioned clearly below the top search header bar */
  left: 0;
  bottom: 0;
  width: 220px;
  background: rgba(10, 6, 24, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: none;
  border-left: 1px solid #7c3aed;
  padding: 0 0.9rem 1rem 0.9rem;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.9);
}

.spot-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.spot-detail-close-btn {
  position: static;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  transition: color 0.15s ease;
}

.spot-detail-close-btn:hover {
  color: #ffffff;
}

/* Cluster Multi-Spot Selection List in Left Pane */
.cluster-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.cluster-list-header {
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding-bottom: 0.4rem;
}

.cluster-list-title {
  color: #a78bfa;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cluster-list-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.cluster-item-card {
  background: rgba(18, 11, 46, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.cluster-item-card:hover {
  border-color: #a78bfa;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.3);
}

.cluster-item-card.is-selected {
  border-color: #8b5cf6;
  background: rgba(30, 18, 70, 0.95);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.5);
}

.cluster-item-title {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.cluster-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #9ca3af;
}

.cluster-item-price {
  color: #a78bfa;
  font-weight: 700;
}

.cluster-item-select-btn {
  background: #7c3aed;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: center;
}

.cluster-item-select-btn:hover {
  background: #6d28d9;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

/* Single clean 1px Light Violet Stripe extending to the top of screen */
.spot-detail-card::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 1px;
  background: #7c3aed;
  z-index: 15;
  pointer-events: none;
}

/* Selected Spot Header matching accordion headers */
.spot-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.9rem;
  background: rgba(124, 58, 237, 0.15);
  margin-left: -0.9rem;
  margin-right: -0.9rem;
  width: calc(100% + 1.8rem);
  box-sizing: border-box;
  margin-bottom: 0;
}

.spot-section-header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.spot-section-summary {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.spot-detail-card.checkout-mode .spot-section-header {
  display: flex !important;
  cursor: pointer;
}

.spot-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.spot-collapsible-section {
  margin-top: 0;
  padding-top: 0;
}

.spot-card-image-wrap {
  position: relative;
  width: calc(100% + 1.8rem);
  margin-left: -0.9rem;
  margin-right: -0.9rem;
  height: 105px;
  overflow: hidden;
  border-radius: 0px;
  margin-bottom: 0.2rem;
  margin-top: 0;
}

.spot-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spot-card-type-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.spot-fav-toggle-btn {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(7, 14, 28, 0.6) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 10;
  border-radius: 4px;
}

.spot-fav-toggle-btn svg {
  width: 16px;
  height: 16px;
}

.spot-fav-toggle-btn:hover,
.spot-fav-toggle-btn.is-fav {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.6) !important;
}

.spot-fav-toggle-btn.is-fav svg {
  fill: #ef4444;
}

.spot-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.spot-card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.spot-card-rating {
  color: #fbbf24;
}

.spot-card-concierge {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
}

.spot-card-action-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
}

.spot-card-book-btn {
  background: transparent;
  color: var(--purple-selected, #7c3aed);
  border: none;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  width: auto;
  text-align: right;
}

.spot-card-book-btn:hover {
  color: #ffffff;
  background: transparent;
  border: none;
}

/* Collapsible Section for Checkout Flow */
.spot-collapsible-section,
.spot-collapsible-meta {
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.spot-detail-card.checkout-mode .spot-collapsible-section,
.spot-detail-card.checkout-mode .spot-collapsible-meta {
  display: none !important;
}

.spot-detail-card.checkout-mode .spot-card-title {
  display: block;
}

/* Checkout Flow Components (Collapsible Accordion Sections) */
.checkout-flow-container {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  margin-left: -0.9rem;
  margin-right: -0.9rem;
  width: calc(100% + 1.8rem);
}

.spot-detail-card.checkout-mode .checkout-flow-container {
  display: flex;
}

.checkout-accordion-item {
  border: none;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.2s ease;
  width: 100%;
}

.checkout-accordion-item.open {
  border: none;
  background: rgba(10, 6, 24, 0.6);
}

.checkout-accordion-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  user-select: none;
  width: 100%;
  box-sizing: border-box;
  gap: 0.2rem;
}

.checkout-accordion-item.open .checkout-accordion-header {
  background: rgba(124, 58, 237, 0.15);
  border-bottom: none;
}

.accordion-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.accordion-summary {
  width: 100%;
}

.collapsed-summary-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  max-width: 100%;
  text-align: left;
  overflow: hidden;
}

.collapsed-line-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.73rem;
  font-weight: 600;
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}

.collapsed-line-title.is-collapsed {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collapsed-line-title.is-expanded {
  white-space: normal;
  line-height: 1.35;
  margin-top: 0.15rem;
  margin-bottom: 0.2rem;
}

.collapsed-line-sub {
  color: #a78bfa;
  font-size: 0.7rem;
  font-weight: 600;
}

.checkout-accordion-body {
  display: none;
  padding: 0.6rem 0.9rem;
  flex-direction: column;
  gap: 0.6rem;
}

#accordionItem1 .checkout-accordion-body {
  padding-top: 0;
}

.checkout-accordion-item.open .checkout-accordion-body {
  display: flex;
}

.checkout-summary-box {
  background: rgba(124, 58, 237, 0.1);
  border: none;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-left: -0.9rem;
  margin-right: -0.9rem;
  width: calc(100% + 1.8rem);
  box-sizing: border-box;
  margin-top: 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
}

.summary-line.total {
  font-weight: 800;
  color: #ffffff;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 0.3rem;
  margin-top: 0.2rem;
}

.checkout-checkbox-group {
  margin-top: 0.1rem;
}

.checkout-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
}

.checkout-checkbox-label input[type="checkbox"] {
  accent-color: #7c3aed;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.invoice-address-group {
  transition: all 0.2s ease;
}

.checkout-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.checkout-form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.checkout-form-group input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
  outline: none;
  font-family: inherit;
}

.checkout-form-group input:focus {
  border-color: #7c3aed;
}

.checkout-row-expiry-cvc {
  display: flex;
  gap: 0.8rem;
  width: 100%;
}

.checkout-row-expiry-cvc .checkout-expiry-group {
  flex: 1;
}

.checkout-row-expiry-cvc .checkout-expiry-group input {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.checkout-row-expiry-cvc .checkout-cvc-group {
  flex: 1;
}

.checkout-row-expiry-cvc .checkout-cvc-group input {
  width: 100%;
  box-sizing: border-box;
}

.consent-checkbox-group {
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
}

.consent-link {
  color: #a78bfa;
  text-decoration: underline;
}

.consent-link:hover {
  color: #ffffff;
}

.mollie-payment-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.2rem;
}

.mollie-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
}

.mollie-logo-text {
  font-weight: 800;
  color: #3b82f6;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

.payment-method-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.payment-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.4rem;
  font-size: 0.7rem;
  cursor: pointer;
  color: #ffffff;
}

.payment-option input[type="radio"] {
  accent-color: #7c3aed;
  margin: 0;
  width: 13px;
  height: 13px;
  cursor: pointer;
}

.payment-option.selected {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.15);
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.checkout-btn-back {
  background: transparent;
  color: var(--text-dim);
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
}

.checkout-btn-back:hover {
  color: #ffffff;
}

.checkout-btn-next {
  background: transparent;
  color: var(--purple-selected, #7c3aed);
  border: none;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  width: auto;
  align-self: flex-end;
  text-align: right;
  box-shadow: none;
}

.checkout-btn-next:hover {
  color: #ffffff;
  background: transparent;
  border: none;
}

.checkout-success-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.8rem 0.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.success-check-svg {
  width: 28px;
  height: 28px;
  stroke: #10b981;
}

.checkout-success-box h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
}

.checkout-success-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  line-height: 1.3;
}

.contact-owner-btn {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid #7c3aed;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  margin-top: 0.3rem;
  transition: all 0.15s ease;
  width: 100%;
}

.contact-owner-btn:hover {
  background: #7c3aed;
  color: #ffffff;
}

.checkout-btn-done {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.4rem;
}

.checkout-btn-done:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Custom Rotary "Wheel of Time" Zoom Knob Control */
.leaflet-bottom.leaflet-right {
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.custom-zoom-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  gap: 0.3rem;
  user-select: none;
}

.zoom-slider-btn {
  background: transparent !important;
  color: #ffffff;
  border: none !important;
  border-radius: 0px !important;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none !important;
  transition: color 0.15s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.zoom-slider-btn:hover {
  color: #a78bfa;
  background: transparent !important;
}

.zoom-wheel-wrap {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 10px rgba(124, 58, 237, 0.4));
  transition: transform 0.1s ease;
}

.zoom-wheel-wrap:active {
  transform: scale(1.04);
}

.zoom-wheel-dial {
  width: 100%;
  height: 100%;
  transition: transform 0.1s cubic-bezier(0.2, 0, 0, 1);
  transform-origin: center center;
}

.zoom-zone-sector {
  cursor: pointer;
  transition: opacity 0.15s ease, fill 0.15s ease;
}

.zoom-zone-sector:hover {
  opacity: 0.85;
}

.zoom-center-btn {
  cursor: pointer;
  transition: opacity 0.15s ease, fill 0.15s ease;
}

.zoom-center-btn:hover {
  opacity: 0.85;
}

.zoom-wheel-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.zoom-vertical-slider::-webkit-slider-thumb:hover,
.zoom-vertical-slider::-moz-range-thumb:hover {
  background: #c4b5fd;
  transform: scale(1.15);
}

/* "Search Here" Map Click Popup Styling */
.search-here-leaflet-popup .leaflet-popup-content-wrapper {
  background: rgba(10, 6, 24, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 58, 237, 0.5) !important;
  border-radius: 6px !important;
  padding: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;
}

.search-here-leaflet-popup .leaflet-popup-content {
  margin: 0 !important;
  line-height: 1 !important;
}

.search-here-leaflet-popup .leaflet-popup-tip {
  background: rgba(10, 6, 24, 0.96) !important;
  border: 1px solid rgba(124, 58, 237, 0.5) !important;
}

.search-here-btn {
  background: #7c3aed;
  color: #ffffff;
  border: none;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.search-here-btn:hover {
  background: #6d28d9;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

.card-back {
  transform: rotateY(180deg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-brand-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 0px;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.card-title {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.card-handle {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-sticker {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-icon-svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

.search-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.inline-submit-btn {
  width: 32px;
  height: 32px;
  border-radius: 0px;
  background: var(--accent);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.inline-submit-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Spot Details View */
.spot-details-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  overflow-y: auto;
}

.spot-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.spot-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.spot-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #34d399;
}

.ai-concierge-box {
  background: rgba(17, 40, 77, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-light);
  border-radius: 0px;
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.ai-concierge-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #60a5fa;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-action-bar {
  display: flex;
  gap: 0.6rem;
}

.btn-primary {
  flex: 1;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem;
  border-radius: 0px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--panel-border);
  padding: 0.6rem 0.8rem;
  border-radius: 0px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-footer-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-footer-title span {
  color: #60a5fa;
}

.card-footer-sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Back Side Elements */
.close-btn {
  width: 28px;
  height: 28px;
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.back-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0px;
  padding: 0.55rem;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-light);
}

.form-group textarea {
  height: 55px;
  resize: none;
}

/* Overlay UI Floating Elements */
.top-header-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.top-header-overlay > * {
  pointer-events: auto;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  padding: 0.5rem 0.9rem;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  color: #fff;
}

.brand-title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Card Component Stack */
.floating-stage {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 400px;
  z-index: 10;
}

.card-flipper-container {
  perspective: 1000px;
  width: 100%;
  height: 480px;
}

.story-card-frame {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-card-frame.flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 28px;
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.card-back {
  transform: rotateY(180deg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-brand-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.card-title {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.card-handle {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.search-sticker {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.inline-submit-btn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
  transition: transform 0.2s ease;
}

.inline-submit-btn:hover {
  transform: scale(1.05);
}

/* Spot Details View */
.spot-details-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.6rem 0;
  overflow-y: auto;
}

.spot-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.spot-meta-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.spot-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: #10b981;
}

.ai-concierge-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.ai-concierge-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-action-bar {
  display: flex;
  gap: 0.6rem;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s ease;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-footer-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.card-footer-title span {
  color: var(--accent);
}

.card-footer-sub {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

/* Back side styling */
.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.back-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
}

.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.6rem;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
}

.form-group textarea {
  height: 60px;
  resize: none;
}
