/* ═══════════════════════════════════════════════════════
   Escort Strasbourg — Design System
   Palette: Dark luxury + Gold accent
═══════════════════════════════════════════════════════ */

:root {
  --bg:          #09090f;
  --bg2:         #0d0d18;
  --surface:     #111120;
  --surface2:    #161628;
  --border:      #1e1e30;
  --border2:     #2a2a40;
  --fg:          #e8e4f0;
  --fg2:         #b8b4cc;
  --muted:       #7a7890;
  --gold:        #c9a84c;
  --gold-light:  #e8c76a;
  --gold-bg:     rgba(201,168,76,.08);
  --rose:        #e879a0;
  --rose-bg:     rgba(232,121,160,.07);
  --primary:     #8b5cf6;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; gap: 16px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 500;
  font-size: .9rem; cursor: pointer; transition: all .2s; border: none; white-space: nowrap;
}
.btn-gold {
  background: var(--gold); color: #0a0a0f; font-weight: 600;
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent; color: var(--fg2); border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: .88; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-danger { background: #dc2626; color: #fff; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,15,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.hdr-inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px; min-width: 0;
}
@media (max-width: 768px) {
  .hdr-inner { gap: 0; justify-content: space-between; }
  .brand-logo .logo-text { font-size: 1.05rem; }
}
.brand-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600;
  color: var(--gold);
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--gold); color: #0a0a0f;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; font-family: 'Inter', sans-serif;
}
.logo-text { color: var(--fg); }
/* ── Desktop nav ─────────────────────────────────────── */
.main-nav {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.main-nav a { color: var(--fg2); padding: 6px 12px; border-radius: 6px; font-size: .9rem; transition: color .2s; }
.main-nav a:hover { color: var(--gold); }
.nav-btn { padding: 8px 16px !important; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
/* Desktop: hide nav-btns inside main-nav (they live in hdr-actions) */
.main-nav .nav-btn { display: none; }
/* Desktop: always show hdr-actions btn */
.hdr-actions .btn { display: inline-flex; }

/* Burger: hidden on desktop */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--fg2); border-radius: 2px; }

/* Overlay: hidden by default */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 998; }
.nav-overlay.open { display: block; }

/* ── Mobile nav ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Remove stacking context & backdrop-filter so fixed nav inside header reaches root stacking context */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; z-index: auto; }

  /* Show burger, hide desktop CTA */
  .burger { display: flex; }
  .hdr-actions .btn { display: none !important; }
  .hdr-actions { gap: 0; }

  /* Mobile nav: hidden by default — JS handles open/close via inline style */
  .main-nav { display: none; }

  /* Nav links styling when menu is open (JS sets display:flex on nav) */
  #mainNav a {
    padding: 13px 16px !important;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--fg2) !important;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  #mainNav a:last-child { border-bottom: none; }
  #mainNav a:hover, #mainNav a:active { background: var(--gold-bg); color: var(--gold) !important; }

  /* CTA buttons inside mobile nav — compact, centered, correct colors */
  #mainNav .nav-btn {
    display: block !important;
    border-bottom: none !important;
    border-radius: 8px !important;
    text-align: center;
    padding: 12px 16px !important;
    margin-top: 4px;
    font-weight: 600;
  }
  #mainNav .btn-outline.nav-btn {
    color: var(--fg2) !important;
    border: 1px solid var(--border2) !important;
  }
  #mainNav .btn-gold.nav-btn {
    background: var(--gold) !important;
    color: #0a0a0f !important;
  }

  /* Auth & misc */
  .auth-page { align-items: flex-start; padding: 24px 16px 40px; }
  .auth-card { padding: 28px 20px; }
}

/* ── Flash ───────────────────────────────────────────── */
.flash { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; }
.flash-ok   { background: rgba(5,150,105,.15); color: #34d399; border: 1px solid rgba(5,150,105,.3); }
.flash-err  { background: rgba(220,38,38,.15);  color: #f87171; border: 1px solid rgba(220,38,38,.3); }
.flash-info { background: var(--gold-bg);        color: var(--gold); border: 1px solid rgba(201,168,76,.3); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,.12) 0%, transparent 65%), var(--bg);
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--fg);
  margin-bottom: 16px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .sub { color: var(--fg2); font-size: 1.1rem; max-width: 580px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 600; color: var(--gold); }
.stat-lbl { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ── Search bar ──────────────────────────────────────── */
.search-bar {
  background: var(--surface); border: 1px solid var(--border2); border-radius: 50px;
  display: flex; align-items: center; max-width: 640px; margin: 0 auto;
  padding: 6px 6px 6px 20px; gap: 8px;
}
.search-bar input {
  flex: 1; background: none; border: none; outline: none; color: var(--fg); font-size: 1rem;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar select {
  background: var(--surface2); border: 1px solid var(--border); color: var(--fg2);
  border-radius: 24px; padding: 8px 12px; font-size: .88rem; outline: none; cursor: pointer;
}

/* ── Listing grid ────────────────────────────────────── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.listing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s; display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-3px); border-color: var(--border2); }
.listing-card.featured { border-color: rgba(201,168,76,.4); }
.listing-card.platinum { border-color: rgba(167,139,250,.4); }

.card-photo {
  position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg2);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing-card:hover .card-photo img { transform: scale(1.04); }
.card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
}
.badge-gold     { background: var(--gold); color: #0a0a0f; }
.badge-platinum { background: #a78bfa; color: #fff; }
.badge-silver   { background: #374151; color: var(--fg2); }
.badge-vip      { background: #dc2626; color: #fff; }
.badge-new      { background: #059669; color: #fff; }
.card-district {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,.7); color: #fff; border-radius: 20px;
  padding: 3px 10px; font-size: .75rem; backdrop-filter: blur(4px);
}
.card-verified {
  position: absolute; top: 10px; right: 10px;
  background: rgba(5,150,105,.85); color: #fff; border-radius: 20px;
  padding: 3px 10px; font-size: .72rem; font-weight: 600; backdrop-filter: blur(4px);
  letter-spacing: .02em;
}

.card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-name { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--fg); }
.card-info { display: flex; gap: 10px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.card-info span::before { content: '• '; }
.card-info span:first-child::before { content: ''; }
.card-price { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.price-tag { font-size: 1rem; font-weight: 600; color: var(--gold); }
.btn-voir { font-size: .8rem; padding: 6px 14px; border-radius: 6px; background: var(--gold-bg); color: var(--gold); border: 1px solid rgba(201,168,76,.2); transition: .2s; }
.btn-voir:hover { background: var(--gold); color: #0a0a0f; }

/* ── Filters sidebar ─────────────────────────────────── */
.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .page-layout { grid-template-columns: 1fr; } }

.filter-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; position: sticky; top: 90px;
}
.filter-panel h3 { font-size: 1rem; margin-bottom: 16px; color: var(--fg2); font-family: 'Inter', sans-serif; font-weight: 500; }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.filter-group select,
.filter-group input[type=text] {
  width: 100%; background: var(--bg2); border: 1px solid var(--border); color: var(--fg);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: .88rem; outline: none;
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--gold); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tag {
  padding: 4px 12px; border-radius: 20px; font-size: .78rem; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--border); color: var(--fg2); transition: .15s;
}
.filter-tag:hover, .filter-tag.active { background: var(--gold-bg); border-color: var(--gold); color: var(--gold); }

/* ── Single listing ──────────────────────────────────── */
.listing-detail { max-width: 960px; margin: 40px auto; }

/* ── Gallery ───────────────────────────────────────────── */
.gallery-wrap { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; user-select: none; }

/* Slider track */
.gal-slider { position: relative; overflow: hidden; background: #000; border-radius: var(--radius) var(--radius) 0 0; touch-action: pan-y; cursor: grab; }
.gal-slider:active { cursor: grabbing; }
.gal-track { display: flex; transition: transform .3s cubic-bezier(.25,.46,.45,.94); will-change: transform; }
.gal-track.no-transition { transition: none; }
.gal-track img { flex-shrink: 0; width: 100%; max-height: 580px; object-fit: contain; display: block; pointer-events: none; }

/* Counter */
.gal-counter { position: absolute; bottom: 12px; right: 14px; background: rgba(0,0,0,.65); color: #fff; font-size: .78rem; padding: 3px 11px; border-radius: 20px; pointer-events: none; }

/* Dot indicators */
.gal-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.gal-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .15s; }
.gal-dot.active { background: #fff; }

/* Thumbnail strip */
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: thin; background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; transition: border-color .12s, opacity .12s; opacity: .55; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--gold); opacity: 1; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.96); z-index: 9999; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox.open { display: flex; }
.lb-slider { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: grab; }
.lb-slider:active { cursor: grabbing; }
.lb-track { display: flex; transition: transform .3s cubic-bezier(.25,.46,.45,.94); will-change: transform; }
.lb-track.no-transition { transition: none; }
.lb-track img { flex-shrink: 0; width: 100vw; max-height: 100vh; object-fit: contain; display: block; pointer-events: none; padding: 0 48px; box-sizing: border-box; }
.lb-close { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 1.8rem; cursor: pointer; background: rgba(0,0,0,.5); border: none; width: 40px; height: 40px; border-radius: 50%; line-height: 40px; text-align: center; padding: 0; z-index: 10; }
.lb-counter-top { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .88rem; background: rgba(0,0,0,.5); padding: 3px 14px; border-radius: 20px; pointer-events: none; }

/* Old grid hidden */
.listing-gallery { display: none; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.meta-chip {
  padding: 6px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; font-size: .82rem; color: var(--fg2);
}
.meta-chip strong { color: var(--fg); }
.contact-box {
  background: var(--gold-bg); border: 1px solid rgba(201,168,76,.2); border-radius: var(--radius);
  padding: 24px; margin-top: 24px; text-align: center;
}
.contact-phone { font-size: 1.8rem; font-family: 'Cormorant Garamond', serif; color: var(--gold); letter-spacing: .05em; margin: 10px 0; }

/* ── Tarifs page ─────────────────────────────────────── */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 700px) { .packages-grid { grid-template-columns: 1fr; } }
.package-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px 24px; text-align: center;
  display: flex; flex-direction: column; gap: 16px; transition: .2s;
}
.package-card.popular { border-color: var(--gold); position: relative; }
.package-card.popular::before {
  content: 'Le plus populaire'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #0a0a0f; padding: 4px 16px; border-radius: 20px; font-size: .78rem; font-weight: 700;
}
.pkg-name { font-size: 1.3rem; font-weight: 600; }
.pkg-price { font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: var(--gold); }
.pkg-price sup { font-size: 1.5rem; }
.pkg-price span { font-size: .9rem; color: var(--muted); }
.pkg-features { text-align: left; }
.pkg-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--fg2); display: flex; gap: 8px; align-items: center; }
.pkg-features li:last-child { border-bottom: none; }
.pkg-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── Dashboard ───────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: calc(100vh - 65px); }
@media (max-width: 768px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 28px 0; }
.dash-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: var(--fg2); font-size: .92rem; transition: .15s; }
.dash-sidebar nav a:hover, .dash-sidebar nav a.active { background: var(--gold-bg); color: var(--gold); border-left: 2px solid var(--gold); }
.dash-main { padding: 32px; }
@media (max-width: 768px) { .dash-main { padding: 20px 16px; } .dash-sidebar { display: none; } }

/* ── Forms ───────────────────────────────────────────── */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 540px; }
.fg { margin-bottom: 18px; }
.fg label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .05em; }
.fg input, .fg select, .fg textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--border2); color: var(--fg);
  border-radius: var(--radius-sm); padding: 11px 14px; font-size: .95rem; outline: none; transition: border-color .2s;
  font-family: inherit;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--gold); }
.fg textarea { resize: vertical; min-height: 120px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .fg-row { grid-template-columns: 1fr; } }

/* ── Section styles ──────────────────────────────────── */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 10px; }
.section-head .sub { color: var(--fg2); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.label-tag {
  display: inline-block; background: var(--gold-bg); color: var(--gold); border: 1px solid rgba(201,168,76,.2);
  padding: 4px 14px; border-radius: 20px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── District pills ──────────────────────────────────── */
.district-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.district-pill {
  padding: 10px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  color: var(--fg2); font-size: .88rem; transition: .2s;
}
.district-pill:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }
.district-pill span { font-size: .75rem; color: var(--muted); margin-left: 6px; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--fg);
  padding: 18px 0; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; font-family: inherit;
}
.faq-q .arrow { font-size: .8rem; color: var(--gold); transition: transform .2s; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--fg2); font-size: .93rem; line-height: 1.7; }
.faq-a p { padding-bottom: 16px; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-item.open .arrow { transform: rotate(180deg); }

/* ── Trust bar ───────────────────────────────────────── */
.trust-bar {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-items { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--fg2); font-size: .88rem; }
.trust-item .icon { color: var(--gold); font-size: 1.1rem; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-logo { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.site-footer h4 { color: var(--fg2); font-family: 'Inter', sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; color: var(--muted); font-size: .78rem; line-height: 1.6; }

/* ── Pagination ──────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: .88rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--fg2);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: #0a0a0f; border-color: var(--gold); font-weight: 600; }

/* ── Breadcrumb ──────────────────────────────────────── */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: .82rem; padding: 16px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .4; }

/* ── Auth pages ──────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 65px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,.08) 0%, transparent 60%); }
.auth-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 20px; padding: 40px; width: 100%; max-width: 440px; }
.auth-card h2 { font-size: 2rem; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.auth-link { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.auth-link a { color: var(--gold); }

/* ── Misc ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .75rem; }
.tag-active   { background: rgba(5,150,105,.15); color: #34d399; }
.tag-pending  { background: rgba(201,168,76,.1);  color: var(--gold); }
.tag-rejected { background: rgba(220,38,38,.1);   color: #f87171; }
.tag-expired  { background: var(--surface2);       color: var(--muted); }

@media (max-width: 700px) {
  /* Packages grid: 1 column on mobile */
  .packages-grid { grid-template-columns: 1fr; }
  /* Dashboard paiement pack grid */
  .pack-grid-3 { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .listing-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  section { padding: 48px 0; }
  .hero { padding: 50px 0 40px; }
  .hero-stats { gap: 24px; }
  .listing-gallery { grid-template-columns: 1fr; }
  .listing-gallery img:first-child { grid-row: span 1; }
  /* Container gutter on mobile */
  .container { padding: 0 16px; }
  /* Dash main padding */
  .dash-main { padding: 16px 14px; }
  /* District pills smaller */
  .district-pill { padding: 8px 14px; font-size: .82rem; }
  /* Single listing detail */
  .listing-detail { margin: 20px auto; }
}

@media (max-width: 380px) {
  .listing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}

/* ── Responsive fixes (overflow / kayma) ──────────────── */
/* Prevent horizontal scroll on all devices */
html, body { overflow-x: hidden; max-width: 100%; }

/* Listing detail: 2-col → 1-col on tablet */
.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.listing-detail-grid > div { min-width: 0; }
@media (max-width: 860px) {
  .listing-detail-grid {
    grid-template-columns: 1fr;
  }
  .listing-detail-grid .contact-sidebar {
    position: static !important;
  }
}

/* Gallery: 2-col → 1-col on mobile */
@media (max-width: 600px) {
  .listing-gallery {
    grid-template-columns: 1fr;
  }
  .listing-gallery img:first-child {
    grid-row: auto;
  }
}

/* Search bar: stack on small screens */
@media (max-width: 540px) {
  .search-bar {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 12px 16px;
    align-items: stretch;
  }
  .search-bar input { min-width: 0; width: 100%; }
  .search-bar select { width: 100%; border-radius: var(--radius-sm); }
  .search-bar .btn { width: 100%; }
}

/* Footer grid: prevent text overflow */
.site-footer ul a { word-break: break-word; }
