/* ============================================================
   BOURBON CIGARS & BLINDS — Directory Shared Styles
   Premium lifestyle design: dark, gold, tactile
   ============================================================ */
/* INTEGRATION EDIT — 2026-03-26 — Full style alignment to site design:
   Google Fonts (Inter→Montserrat, +Cormorant Garamond), gold value, backgrounds,
   border patterns (solid hex→rgba), border-radius (pills→2px, 10px→6px),
   added --bourbon and --cigar site color variables */

/* INTEGRATION EDIT — 2026-03-26 — Updated Google Fonts: replaced Inter with Montserrat,
   added Cormorant Garamond to match site's exact font stack */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Montserrat:wght@400;600&display=swap');

/* ── Custom Properties ─────────────────────────────────── */
:root {
  /* INTEGRATION EDIT — 2026-03-26 — Updated background colors to site's warm brown scale */
  --bg:           #1C1208;   /* was #0d0a08 — warmed to match site body bg */
  --bg-surface:   #1a1208;   /* was #161009 */
  --bg-card:      rgba(255,255,255,0.03);  /* was #1e1510 — matches site card pattern */
  --bg-card-hover:rgba(61,107,79,0.06);    /* was #251b12 — cigar-tinted hover */
  --bg-elevated:  #271a10;   /* was #2a1f14 */
  --bg-input:     #1a1208;   /* unchanged — already close */

  /* INTEGRATION EDIT — 2026-03-26 — Updated gold to site REFRESH value */
  --gold:         #E8C547;   /* was #c9a84c — matches site --gold after REFRESH */
  --gold-light:   #E8C547;   /* was #e8c96d */
  --gold-dim:     #8B5A1A;   /* was #8a6e32 — matches site --bourbon-dark */
  --gold-subtle:  rgba(232,197,71,0.12);   /* updated to new gold */
  --gold-glow:    rgba(232,197,71,0.25);   /* updated to new gold */

  /* INTEGRATION EDIT — 2026-03-26 — Added site brand colors missing from original */
  --bourbon:       #C8842A;   /* ADDED — site primary bourbon color */
  --bourbon-dark:  #8B5A1A;   /* ADDED — site bourbon dark */
  --cigar:         #3D6B4F;   /* ADDED — site cigar green */
  --cigar-light:   #5A9970;   /* ADDED — site cigar light */

  --text:         #F2E8D6;   /* was #f0ead8 — matches site --text (REFRESH) */
  --text-muted:   #a08860;   /* unchanged */
  --text-dim:     #6a5540;   /* unchanged */
  --text-label:   #c4ab7a;   /* unchanged */

  /* INTEGRATION EDIT — 2026-03-26 — Changed solid hex borders to rgba transparent pattern to match site */
  --border:       rgba(61,107,79,0.20);    /* was #2e2318 — now cigar-green rgba like site */
  --border-light: rgba(61,107,79,0.30);    /* was #3d3020 */
  --border-gold:  rgba(232,197,71,0.35);   /* updated to new gold */

  --strength-mild:        #5aaa5a;   /* unchanged */
  --strength-medium:      #c8a830;   /* unchanged */
  --strength-medium-full: #d4762a;   /* unchanged */
  --strength-full:        #c0392b;   /* unchanged */

  /* INTEGRATION EDIT — 2026-03-26 — Updated border-radius to match site (pills→2px, large→6px) */
  --radius:       6px;     /* unchanged — already correct */
  --radius-lg:    6px;     /* was 10px — site uses 6px max for cards */
  --radius-pill:  2px;     /* was 100px — site uses 2px for buttons/tags/chips */

  --shadow-card:  0 2px 12px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 40px rgba(61,107,79,0.15);  /* was generic dark — now cigar-tinted */
  --shadow-modal: 0 24px 80px rgba(0,0,0,0.85);

  --transition: 200ms ease;
  --transition-slow: 350ms ease;

  /* INTEGRATION EDIT — 2026-03-26 — Replaced Inter with Montserrat; added Cormorant Garamond */
  --font-serif: 'Playfair Display', Georgia, serif;        /* unchanged — correct */
  --font-sans:  'Montserrat', system-ui, sans-serif;       /* was 'Inter' — now Montserrat */
  --font-body:  'Cormorant Garamond', Georgia, serif;      /* ADDED — for paragraph/body text */

  --max-w: 1400px;
  --sidebar-w: 380px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* INTEGRATION EDIT — 2026-03-26 — Body now uses Cormorant Garamond for paragraph text, matching site */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);   /* was var(--font-sans)/Inter — now Cormorant Garamond */
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { display: block; max-width: 100%; }

button {
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  background: none;
}

input, select {
  font-family: var(--font-sans);
  font-size: 14px;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

.serif { font-family: var(--font-serif); }
.gold  { color: var(--gold); }
.muted { color: var(--text-muted); }

/* ── Site Header ────────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, rgba(13,10,8,0.98) 0%, rgba(22,16,9,0.95) 100%);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--text-muted); font-weight: 400; }

.site-nav { display: flex; gap: 0.25rem; }
.site-nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-light);
  background: var(--gold-subtle);
}

/* ── Page Hero ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #120d07 0%, #1c1208 50%, #0f0c08 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, var(--gold-glow), transparent);
  pointer-events: none;
}
.page-hero__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.page-hero h1 { color: var(--text); margin-bottom: 0.75rem; }
.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Layout ─────────────────────────────────────────────── */
.dir-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── Filter Bar ─────────────────────────────────────────── */
/* INTEGRATION EDIT — 2026-03-26 — Removed border-radius on filter-bar; site uses sharp edges */
.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 2px;    /* was var(--radius-lg) = 10px — site filter bars use sharp corners */
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  position: sticky;
  top: 64px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.filter-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-bar__row + .filter-bar__row {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.filter-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.filter-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 15px;
}
/* INTEGRATION EDIT — 2026-03-26 — Changed input and select border-radius from pill/6px to 2px */
.filter-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 2px;    /* was var(--radius-pill) = 100px — site uses 2px */
  color: var(--text);
  font-family: var(--font-body);
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.filter-search input::placeholder { color: var(--text-dim); }
.filter-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-subtle);
}

.filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 2px;    /* was var(--radius) = 6px — site uses 2px */
  color: var(--text);
  font-family: var(--font-sans);
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238B5A1A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  transition: border-color var(--transition);
  font-size: 13px;
  min-width: 130px;
}
.filter-select:focus { border-color: var(--gold); }
.filter-select option { background: var(--bg-surface); }

.filter-range-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--text-muted);
}
.filter-range-group label { white-space: nowrap; }
.filter-range {
  -webkit-appearance: none;
  appearance: none;
  width: 130px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  outline: none;
}
.filter-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--gold-subtle);
}
.filter-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.filter-range-val {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  min-width: 36px;
}

/* INTEGRATION EDIT — 2026-03-26 — Changed pill border-radius to 2px */
.btn-clear-filters {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 2px;    /* was var(--radius-pill) = 100px */
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-clear-filters:hover { border-color: var(--gold); color: var(--gold); }

/* ── Active Filter Chips ─────────────────────────────────── */
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  min-height: 0;
}
.active-chips:empty { display: none; }

/* INTEGRATION EDIT — 2026-03-26 — Changed chip border-radius from pill to 2px */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  border-radius: 2px;    /* was var(--radius-pill) = 100px */
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 4px 10px;
  cursor: default;
}
.chip__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(232,197,71,0.2);
  color: var(--gold);
  font-size: 10px;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.chip__remove:hover { background: rgba(232,197,71,0.4); }

/* ── Result Count + Sort ─────────────────────────────────── */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.results-count {
  font-size: 13px;
  color: var(--text-muted);
}
.results-count strong { color: var(--gold); }

.sort-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Cigar Cards Grid ─────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

/* INTEGRATION EDIT — 2026-03-26 — Card border-radius changed from var(--radius-lg)=6px (already 6px after variable update — good) */
.cigar-card {
  background: var(--bg-card);
  border: 1px solid rgba(61,107,79,0.20);    /* explicit cigar-green border to match site */
  border-radius: var(--radius-lg);   /* now 6px after variable update */
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.cigar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.cigar-card__header {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cigar-card__initial {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0.85;
  text-transform: uppercase;
  line-height: 1;
  z-index: 1;
  position: relative;
}
.cigar-card__strength-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.cigar-card__body { padding: 1rem 1rem 0.85rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.cigar-card__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.cigar-card__brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.cigar-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.1rem;
}

/* INTEGRATION EDIT — 2026-03-26 — Badge border-radius changed from pill (100px) to 2px to match site tag style */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;    /* was var(--radius-pill) = 100px */
  white-space: nowrap;
  border: 1px solid;
}
.badge--mild        { background: rgba(90,170,90,0.18);  color: var(--strength-mild);        border: 1px solid rgba(90,170,90,0.3);  }
.badge--medium      { background: rgba(200,168,48,0.18); color: var(--strength-medium);      border: 1px solid rgba(200,168,48,0.3); }
.badge--medium-full { background: rgba(212,118,42,0.18); color: var(--strength-medium-full); border: 1px solid rgba(212,118,42,0.3); }
.badge--full        { background: rgba(192,57,43,0.18);  color: var(--strength-full);        border: 1px solid rgba(192,57,43,0.3);  }
.badge--origin {
  background: rgba(255,255,255,0.06);
  color: var(--text-label);
  border: 1px solid var(--border-light);
  font-weight: 500;
}
.badge--size {
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.badge--atmosphere {
  background: rgba(232,197,71,0.1);
  color: var(--gold-dim);
  border: 1px solid var(--border-gold);
}

.cigar-card__price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: auto;
}
.cigar-card__price span { font-size: 0.7em; color: var(--text-muted); font-family: var(--font-sans); font-weight: 400; }

.tasting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}
.tasting-tag {
  font-size: 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
}

.cigar-card__footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* INTEGRATION EDIT — 2026-03-26 — btn-pairing radius changed from pill to 2px; font updated to Montserrat uppercase */
.btn-pairing {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--cigar-light);
  background: transparent;
  border: 1px solid var(--cigar-light);
  border-radius: 2px;    /* was var(--radius-pill) = 100px */
  padding: 7px 14px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-pairing:hover { background: var(--cigar); color: var(--text); border-color: var(--cigar); }

/* ── Modal ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* INTEGRATION EDIT — 2026-03-26 — Modal border-radius updated to 6px (var(--radius-lg) is now 6px after variable update) */
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);   /* now 6px after variable update */
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-slow);
  position: relative;
}
.modal-backdrop.active .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  z-index: 10;
}
.modal__close:hover { border-color: var(--gold-dim); color: var(--gold); }

.modal__header {
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.modal__initial {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.modal__title-block {}
.modal__brand { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.modal__name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.5rem; }
.modal__meta-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.modal__body { padding: 1.5rem 2rem; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}
.detail-item {}
.detail-item__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.detail-item__value { font-size: 14px; color: var(--text); }
.detail-item__value.price { font-family: var(--font-serif); font-size: 1.2rem; color: var(--gold-light); }

.detail-section { margin-bottom: 1.25rem; }
.detail-section__title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.detail-section__text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.similar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.similar-card:hover { border-color: var(--border-gold); }
.similar-card__brand { font-size: 10px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.similar-card__name { font-size: 13px; color: var(--text); font-family: var(--font-serif); margin: 0.2rem 0; line-height: 1.3; }
.similar-card__price { font-size: 12px; color: var(--gold-light); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}
.empty-state__icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text); }
.empty-state p { font-size: 14px; }

/* ── Loading Spinner ─────────────────────────────────────── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 14px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Lounge Map Layout ───────────────────────────────────── */
.lounge-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  height: calc(100vh - 64px);
  overflow: hidden;
  max-width: 100%;
}

.lounge-layout.list-mode {
  display: block;
  height: auto;
  overflow: visible;
}

.lounge-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100vh - 64px);
}

.lounge-sidebar__header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.lounge-sidebar__list {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem 0;
}

.lounge-sidebar__count {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem 0;
}

.map-container {
  position: relative;
  overflow: hidden;
}
#map {
  width: 100%;
  height: 100%;
  background: #0e0c0a;
}

/* ── View Toggle ─────────────────────────────────────────── */
.view-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
}
.view-toggle button {
  font-size: 12px;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.view-toggle button.active {
  background: var(--gold-subtle);
  color: var(--gold-light);
}

/* ── Lounge List Card ────────────────────────────────────── */
.lounge-list-item {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.lounge-list-item:hover,
.lounge-list-item.highlighted {
  background: var(--bg-card);
}
.lounge-list-item.active {
  background: var(--bg-elevated);
  border-left: 3px solid var(--gold);
}
.lounge-list-item__name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.lounge-list-item__city {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.lounge-list-item__amenities {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.amenity-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.45rem;
}
.amenity-icon.active { color: var(--gold); border-color: var(--border-gold); background: var(--gold-subtle); }

.lounge-distance {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  position: absolute;
  top: 0.9rem;
  right: 1.25rem;
}

/* ── Lounge Card (List View) ─────────────────────────────── */
.lounge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-card);
}
.lounge-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
}
.lounge-card__header {
  padding: 1.1rem 1.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.lounge-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.lounge-card__address { font-size: 12px; color: var(--text-muted); }
.lounge-card__body { padding: 0.75rem 1.25rem 1rem; }
.lounge-card__row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.lounge-card__links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.btn-link:hover { border-color: var(--gold-dim); color: var(--gold); }
.btn-link--primary {
  border-color: var(--border-gold);
  color: var(--gold);
  background: var(--gold-subtle);
}
.btn-link--primary:hover { background: rgba(232,197,71,0.2); }

/* ── Star Rating ─────────────────────────────────────────── */
.star-rating { color: var(--gold); font-size: 13px; letter-spacing: 0.05em; }
.star-rating .empty { color: var(--text-dim); }

/* ── Geolocation Button ──────────────────────────────────── */
.btn-near-me {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-near-me:hover { background: rgba(232,197,71,0.2); color: var(--gold-light); }
.btn-near-me.loading { opacity: 0.6; pointer-events: none; }

/* ── Lounge Detail Panel / Popup ─────────────────────────── */
.lounge-detail-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  z-index: 50;
  max-height: 55%;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
.lounge-detail-panel.visible { transform: translateY(0); }

/* ── Leaflet overrides ───────────────────────────────────── */
.leaflet-container { font-family: var(--font-sans); }
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-card) !important;
  color: var(--text) !important;
}
.leaflet-popup-tip { background: var(--bg-card) !important; }
.leaflet-popup-content { margin: 10px 14px !important; }
.leaflet-popup-content a { color: var(--gold); }

.map-popup__name { font-family: var(--font-serif); font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.map-popup__city { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.map-popup__amenities { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.map-popup__link { font-size: 12px; color: var(--gold); }

/* ── Price Range ─────────────────────────────────────────── */
.price-range { color: var(--gold); font-size: 12px; font-weight: 600; }
.price-range .dim { color: var(--text-dim); }

/* ── City Pages ──────────────────────────────────────────── */
.city-hero {
  background: linear-gradient(135deg, #0f0b07 0%, #1a1209 100%);
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.city-hero__back {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.city-hero__back:hover { color: var(--gold); }
.city-hero__blurb {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 0.75rem;
  line-height: 1.7;
}
#city-map { height: 340px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }

/* ── Utilities ───────────────────────────────────────────── */
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Filter toggle for mobile ────────────────────────────── */
.filter-toggle-btn {
  display: none;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
  text-align: left;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .lounge-layout:not(.list-mode) {
    grid-template-columns: 300px 1fr;
  }
  --sidebar-w: 300px;
}

@media (max-width: 900px) {
  .filter-bar { position: static; }

  .lounge-layout:not(.list-mode) {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 1fr;
    height: auto;
    overflow: visible;
  }
  .lounge-sidebar {
    height: auto;
    max-height: none;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .lounge-sidebar__list { max-height: 60vh; overflow-y: auto; }
  .map-container { height: 300px; }
  #map { height: 300px; }

  .filter-toggle-btn { display: flex; }
  .filter-bar__collapsible { display: none; }
  .filter-bar__collapsible.open { display: block; }

  .detail-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; align-self: flex-end; max-height: 90vh; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .filter-bar { padding: 0.75rem 1rem; }
  .filter-search { min-width: 100%; }
  .modal__header { flex-direction: column; padding: 1.5rem; }
  .modal__body { padding: 1rem 1.5rem 1.5rem; }
  .page-hero { padding: 2rem 1rem 1.75rem; }

  .lounge-detail-panel { padding: 1rem; }
}

/* ── Amenity checkbox group ──────────────────────────────── */
.amenity-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.amenity-check-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.amenity-check-label:hover { border-color: var(--gold-dim); color: var(--text); }
.amenity-check-label input { position: absolute; opacity: 0; width: 0; height: 0; }
.amenity-check-label.checked {
  border-color: var(--border-gold);
  color: var(--gold-light);
  background: var(--gold-subtle);
}

/* ── No results message ──────────────────────────────────── */
.geo-error {
  background: rgba(192,57,43,0.12);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: var(--radius);
  color: #e07070;
  font-size: 13px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
  display: none;
}
.geo-error.visible { display: block; }
