:root{
  --bg:#F7F8FF;
  --bg2:#EEF2FF;
  --card:#FFFFFF;
  --line: rgba(15,23,42,.10);
  --line2: rgba(15,23,42,.08);
  --text:#0B1220;
  --muted: rgba(15,23,42,.70);

  --accent:#7C3AED;     /* violet */
  --accent2:#06B6D4;    /* cyan */
  --accent3:#F43F5E;    /* rose */

  --good:#16A34A;
  --warn:#F59E0B;
  --bad:#EF4444;

  --shadow: 0 18px 50px rgba(15,23,42,.12);
  --shadow2: 0 18px 60px rgba(15,23,42,.10);
  --shadow3: 0 22px 80px rgba(15,23,42,.14);

  --r: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;

  --cardGlass: rgba(255,255,255,.78);
  --cardGlass2: rgba(255,255,255,.66);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 10% 5%, rgba(124,58,237,.12), transparent 60%),
    radial-gradient(800px 520px at 92% 10%, rgba(6,182,212,.14), transparent 60%),
    radial-gradient(900px 520px at 55% 92%, rgba(244,63,94,.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap{max-width:1180px;margin:0 auto;padding:0 18px}
.muted{color:var(--muted);font-size:13px}

/* ===========================
   TOPBAR (Premium + compact)
=========================== */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.62);
  border-bottom:1px solid var(--line2);
}
.topbarRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
}
.brand{
  display:flex; gap:12px; align-items:center;
  min-width:0;
}
.logoMark{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(6,182,212,.85));
  box-shadow: 0 14px 34px rgba(15,23,42,.18);
  font-weight:900; letter-spacing:.4px;
  color:#fff;
  flex: 0 0 auto;
}
.brandText{min-width:0}
.brandTitle{
  font-weight:1000;
  font-size:16px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:56vw;
}
.brandSub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:56vw;
}

.topActions{display:flex;gap:10px;align-items:center;flex:0 0 auto}

/* Buttons in header (your .chip) */
.chip{
  border:1px solid var(--line2);
  background: rgba(255,255,255,.88);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  text-decoration:none;
  cursor:pointer;
  transition:.18s ease;
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
  font-weight:950;
}
.chip:hover{transform: translateY(-1px); background:#fff}
.chip.primary{
  border-color: rgba(124,58,237,.25);
  color:#fff;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(6,182,212,.85));
}

/* Mobile topbar: neat + no stacking mess */
@media (max-width:680px){
  .topbarRow{padding:10px 0}
  .brandTitle{max-width:72vw;font-size:15px}
  .brandSub{display:none}
}

/* ===========================
   HERO (Stronger + mobile-ready)
=========================== */
.hero{padding:14px 0 10px}

.heroCard{
  position:relative;
  border:1px solid var(--line2);
  background:
    radial-gradient(800px 260px at 10% 0%, rgba(124,58,237,.16), transparent 55%),
    radial-gradient(700px 260px at 90% 10%, rgba(6,182,212,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border-radius: calc(var(--r) + 8px);
  box-shadow: var(--shadow2);
  padding:18px;
  display:flex;
  gap:16px;
  align-items:stretch;
  justify-content:space-between;
  overflow:hidden;
}

.heroLeft{min-width:0}
.heroLeft h1{
  margin:0 0 6px;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing:-.3px;
  font-weight:1000;
}
.heroLeft p{
  margin:0;
  color:var(--muted);
  max-width:680px;
  line-height:1.45;
  font-size:14px;
  opacity:.95;
}

/* Optional: if you add CTA buttons inside hero later */
.heroCtas{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.heroCtas .chip{padding:11px 14px}

/* Stats */
.heroRight{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-content:flex-start;
}
.stat{
  min-width:150px;
  border:1px solid var(--line2);
  background: rgba(255,255,255,.88);
  border-radius: var(--r);
  padding:12px 14px;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}
.statNum{font-size:18px;font-weight:1000}
.statLabel{font-size:12px;color:var(--muted);margin-top:2px}

/* Mobile hero: stack + swipe stats (premium feel) */
@media (max-width:680px){
  .heroCard{flex-direction:column;padding:14px;gap:12px}
  .heroLeft h1{font-size:26px}
  .heroLeft p{font-size:13px}

  .heroRight{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    flex-wrap:nowrap;
    justify-content:flex-start;
    padding-bottom:2px;
  }
  .stat{min-width:132px;flex:0 0 auto;padding:11px 12px}
  .statNum{font-size:16px}
  .statLabel{font-size:11px}
}

/* ===========================
   CITY TABS (mobile scroll)
=========================== */
.cityTabs{
  display:flex; gap:8px; flex-wrap:wrap;
  margin:12px 0 6px;
}
.tab{
  border:1px solid var(--line2);
  background: rgba(255,255,255,.88);
  color:var(--text);
  border-radius:999px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:950;
  box-shadow: 0 8px 25px rgba(15,23,42,.08);
  transition:.18s ease;
  white-space:nowrap;
}
.tab:hover{transform: translateY(-1px); background:#fff}
.tab.active{
  color:#fff;
  border-color: rgba(124,58,237,.25);
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(6,182,212,.85));
}
@media (max-width:680px){
  .cityTabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:4px;
  }
  .cityTabs::-webkit-scrollbar{height:6px}
  .cityTabs::-webkit-scrollbar-thumb{border-radius:999px}
}

/* ===========================
   FILTERS
=========================== */
.filters{margin-top:12px}
.filterRow{
  display:grid;
  grid-template-columns: 1.3fr .8fr .8fr .8fr .8fr;
  gap:10px;
  padding:12px;
  border-radius: var(--r);
  border:1px solid var(--line2);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px rgba(15,23,42,.08);
}
.field label{display:block;font-size:12px;color:var(--muted);margin:0 0 6px}
.field input, .field select{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--line2);
  background: #fff;
  color:var(--text);
  outline:none;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.field input:focus, .field select:focus{
  border-color: rgba(124,58,237,.38);
  box-shadow: 0 0 0 4px rgba(124,58,237,.10), 0 12px 30px rgba(15,23,42,.10);
}

.toggleRow{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px; flex-wrap:wrap;
  margin-top:10px;
}
.toggle{
  display:flex;gap:10px;align-items:center;
  padding:10px 12px;border-radius:999px;
  border:1px solid var(--line2);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  font-weight:950;
}
.toggle input{transform: scale(1.1)}

.listHead{display:flex;align-items:center;justify-content:space-between;margin:14px 0 10px}
.legend{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

/* ===========================
   GRID + CARDS
=========================== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  padding-bottom:28px;
}

.card{
  position:relative;
  border:1px solid var(--line2);
  border-radius: calc(var(--r) + 8px);
  background: linear-gradient(180deg, var(--cardGlass), var(--cardGlass2));
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 390px;
  transition:.18s ease;
  transform: translateZ(0);
}
.card:hover{
  transform: translateY(-4px);
  border-color: rgba(124,58,237,.18);
  box-shadow: var(--shadow3);
}
.card::after{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background: radial-gradient(800px 220px at 10% 0%, rgba(255,255,255,.35), transparent 50%);
  opacity:0;
  transition:.22s ease;
}
.card:hover::after{opacity:1}

/* Media */
.cardMedia{
  position:relative;
  height:160px;
  border-bottom:1px solid var(--line2);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-image: linear-gradient(135deg, rgba(124,58,237,.90), rgba(6,182,212,.85));
}
.cardMedia[style*="background-image"]{ filter: saturate(1.06) contrast(1.02); }

.mediaOverlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.58)),
    radial-gradient(500px 220px at 22% 25%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(500px 220px at 78% 20%, rgba(6,182,212,.14), transparent 60%);
}

/* Gradient fallbacks */
.cardMedia.g0{ background-image: linear-gradient(135deg, rgba(124,58,237,.90), rgba(6,182,212,.85)); }
.cardMedia.g1{ background-image: linear-gradient(135deg, rgba(6,182,212,.88), rgba(34,197,94,.82)); }
.cardMedia.g2{ background-image: linear-gradient(135deg, rgba(244,63,94,.88), rgba(124,58,237,.82)); }
.cardMedia.g3{ background-image: linear-gradient(135deg, rgba(245,158,11,.88), rgba(244,63,94,.78)); }
.cardMedia.g4{ background-image: linear-gradient(135deg, rgba(14,165,233,.90), rgba(124,58,237,.78)); }
.cardMedia.g5{ background-image: linear-gradient(135deg, rgba(34,197,94,.88), rgba(6,182,212,.78)); }

/* Featured ribbon */
.featRibbon{
  position:absolute;
  top:12px; left:-30px;
  transform: rotate(-35deg);
  padding:8px 40px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  color:#fff;
  background: linear-gradient(135deg, rgba(244,63,94,.95), rgba(124,58,237,.85));
  border:1px solid rgba(255,255,255,.35);
  box-shadow: 0 16px 40px rgba(15,23,42,.18);
  z-index:3;
}

/* Price badge */
.priceBadge{
  position:absolute;
  bottom:12px; left:12px;
  padding:10px 12px;
  border-radius:16px;
  background: rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.50);
  box-shadow: 0 18px 45px rgba(15,23,42,.22);
  z-index:3;
  min-width: 170px;
  backdrop-filter: blur(10px);
}
.pbK{
  font-size:11px;
  font-weight:950;
  color: rgba(15,23,42,.70);
  letter-spacing:.2px;
}
.pbV{
  font-size:18px;
  font-weight:1000;
  margin-top:2px;
  color: rgba(15,23,42,.95);
  letter-spacing:.2px;
}

/* Body */
.cardBody{
  padding:12px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.title{margin:0;font-size:16px;font-weight:950;letter-spacing:.1px}
.route{color:var(--muted);font-size:13px;line-height:1.35;min-height:18px;opacity:.95}

/* Meta */
.meta2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:6px;
}
.m2{
  border:1px solid var(--line2);
  background: rgba(255,255,255,.84);
  border-radius: var(--r);
  padding:10px 12px;
}
.k{font-size:12px;color:var(--muted)}
.v{font-size:14px;font-weight:950;margin-top:2px}

/* Seat bar */
.seatBar{
  border:1px solid var(--line2);
  background: rgba(255,255,255,.84);
  border-radius: var(--r);
  padding:10px 12px;
  margin-top:2px;
}
.seatLine{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
  margin-bottom:8px;
  font-weight:950;
}
.bar{
  height:10px;
  border-radius:999px;
  background: rgba(15,23,42,.06);
  border:1px solid var(--line2);
  overflow:hidden;
}
.fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(124,58,237,.95), rgba(6,182,212,.85));
}

/* Actions */
.cardActions{
  margin-top:auto;
  display:flex;
  gap:10px;
  padding-top:2px;
}
.btn{
  flex:1;
  text-align:center;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--line2);
  background: #fff;
  color:var(--text);
  text-decoration:none;
  font-weight:950;
  transition:.18s ease;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  cursor:pointer;
}
.btn:hover{transform: translateY(-2px); box-shadow: 0 16px 40px rgba(15,23,42,.12)}
.btn.primary{
  border-color: rgba(22,163,74,.20);
  color:#fff;
  background: linear-gradient(135deg, rgba(16,185,129,.95), rgba(6,182,212,.88));
}
.btn.disabled{opacity:.45;pointer-events:none}
.btn.ghost{
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
}
.btn.ghost:hover{background: rgba(255,255,255,.78)}

/* Pills */
.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line2);
  background: rgba(255,255,255,.88);
  font-weight:950;
}
.pill.open{border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.08); color:#0b3d1e}
.pill.fast{border-color: rgba(245,158,11,.30); background: rgba(245,158,11,.12); color:#4a2a02}
.pill.sold{border-color: rgba(239,68,68,.30); background: rgba(239,68,68,.10); color:#4a0f0f}

/* Empty + footer */
.empty{
  grid-column: 1 / -1;
  border:1px dashed var(--line2);
  border-radius: var(--r);
  padding:18px;
  background: rgba(255,255,255,.78);
}
.foot{padding:18px 0 30px}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1050px){
  .grid{grid-template-columns: repeat(2, minmax(0,1fr));}
  .filterRow{grid-template-columns: 1.2fr 1fr 1fr 1fr;}
  .filterRow .field:last-child{grid-column: 1/-1;}
}
@media (max-width: 680px){
  .grid{grid-template-columns: 1fr;}
  .filterRow{grid-template-columns: 1fr 1fr;}
  .filterRow .field:nth-child(1){grid-column: 1/-1;}
  .cardMedia{height:170px;}
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce){
  *{transition:none !important; animation:none !important;}
  .card:hover, .btn:hover, .tab:hover, .chip:hover{transform:none !important;}
}

/* If you still use these classes anywhere */
.ctaShort{display:none}
@media (max-width:680px){
  .ctaFull{display:none}
  .ctaShort{display:inline}
}
/* ===========================
   Footer (Home + Landing)
=========================== */
.siteFooter{
  margin-top: 18px;
  border-top: 1px solid var(--line2);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(14px);
}

.footerGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 14px;
  padding: 18px 0;
}

.footerBrand{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  min-width: 0;
}
.footerLogo{
  width:44px;height:44px;border-radius:16px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(6,182,212,.85));
  color:#fff;
  font-weight:1000;
  box-shadow: 0 14px 34px rgba(15,23,42,.16);
  flex: 0 0 auto;
}
.footerBrandText{min-width:0}
.footerTitle{font-weight:1000;font-size:15px;line-height:1.2}
.footerTagline{font-size:12px;color:var(--muted);margin-top:2px}
.footerNote{
  margin-top:8px;
  font-size:12px;
  color: var(--muted);
  line-height:1.35;
}

.footerLinks{
  display:flex;
  flex-direction:column;
  gap: 10px;
  align-items:flex-start;
}
.fLink{
  text-decoration:none;
  font-weight:950;
  font-size:13px;
  color: var(--text);
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.80);
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  transition: .18s ease;
}
.fLink:hover{transform: translateY(-1px); background:#fff}

.footerMeta{
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.70);
  border-radius: calc(var(--r) + 6px);
  padding: 12px 14px;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.footerLine{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color: var(--muted);
  line-height:1.35;
  margin: 6px 0;
}
.dot{
  width:8px;height:8px;border-radius:999px;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(6,182,212,.85));
  flex: 0 0 auto;
}

.footerBottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--line2);
}
.footerCopy{font-size:12px;color:var(--muted);font-weight:900}
.footerMini{font-size:12px;color:var(--muted)}

@media (max-width: 900px){
  .footerGrid{grid-template-columns:1fr; }
  .footerLinks{flex-direction:row; flex-wrap:wrap}
  .footerBottom{flex-direction:column; align-items:flex-start}
}
.gCap{
  font-weight:950;
  letter-spacing:.2px;
  text-transform:none;   /* IMPORTANT: keep custom names as-is */
}
.urgency{
  position:absolute;
  top:12px;
  left:12px;
  padding:6px 10px;
  border-radius:10px;
  font-size:12px;
  font-weight:900;
  color:#fff;
  backdrop-filter:blur(4px);
}

.urgency.fast{
  background:#f59e0b;
}

.urgency.soon{
  background:#ef4444;
}

.urgency.sold{
  background:#64748b;
}
