/* CityJabber Homepage Prototype (product-style)
   - Light = clean, subtle color accents
   - Dark = Facebook-like
*/

:root{
  --bg:#f6f7f8;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;

  --brand:#2e7d32;  /* green accent in light */
  --brand2:#1f6f3a;
  --ink:#0f172a;    /* dark button */
  --ink2:#111827;

  --shadow: 0 10px 30px rgba(17,24,39,.08);
  --shadow2: 0 14px 44px rgba(17,24,39,.10);
  --radius:16px;
  --radius2:18px;
  --focus: 0 0 0 4px rgba(37,99,235,.12);
}

html[data-theme="dark"]{
  --bg:#18191a;
  --card:#242526;
  --text:#e4e6eb;
  --muted:#b0b3b8;
  --line:#3a3b3c;

  --brand:#1b74e4;     /* FB blue primary */
  --brand2:#166fe5;
  --ink:#1b74e4;
  --ink2:#166fe5;

  --shadow: 0 12px 40px rgba(0,0,0,.55);
  --shadow2: 0 18px 60px rgba(0,0,0,.65);
  --focus: 0 0 0 4px rgba(27,116,228,.22);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
html[data-theme="dark"] body{
  background: linear-gradient(180deg, #18191a, #0f1012);
}
a{color:inherit; text-decoration:none}
.wrap{max-width:1200px; margin:0 auto; padding:0 26px}
@media (max-width: 980px){ .wrap{padding:0 18px} }

/* Header */
.topbar{
  position:sticky; top:0; z-index:40;
  background: rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
}
html[data-theme="dark"] .topbar{background: rgba(36,37,38,.92)}
.topbar-inner{
  display:flex; align-items:center; gap:14px;
  padding:16px 0;
}
.brand{display:flex; align-items:center; gap:10px; min-width:220px}
.logo{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background: var(--ink);
  color:#fff; font-weight:900;
}
.brand-title{font-weight:900; line-height:1}
.brand-sub{font-size:12px; color:var(--muted); margin-top:2px}

.nav{display:flex; align-items:center; gap:10px; width:100%}
.nav .spacer{flex:1}
.hide-sm{display:inline-flex}
@media (max-width: 940px){ .hide-sm{display:none} }

/* Buttons */
.btn{
  border:1px solid var(--line);
  background: var(--card);
  color:var(--text);
  padding:10px 14px;
  border-radius: 12px;
  font-weight:800;
  font-size:14px;
  display:inline-flex; align-items:center; gap:8px;
  cursor:pointer;
}
.btn:hover{filter: brightness(0.98)}
html[data-theme="dark"] .btn:hover{filter: brightness(1.05)}
.btn.primary{
  border-color: transparent;
  background: var(--ink);
  color:#fff;
}
.btn.ghost{background: transparent}
.btn.tab{
  padding:9px 12px;
  border-radius: 10px;
  background: transparent;
}
.btn.tab:hover{background: rgba(15,23,42,.04)}
html[data-theme="dark"] .btn.tab:hover{background: rgba(255,255,255,.06)}
.btn.icon{width:40px; height:40px; padding:0; justify-content:center; border-radius:999px}
.btn.wide{padding:10px 16px}
.btn.mini{padding:8px 12px; border-radius: 12px; font-size:13px; font-weight:900}
.arrow{opacity:.9}
.chev{opacity:.8}

/* Cards */
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.block{padding:18px}
.card-h{margin-bottom:12px}
.card-title{font-size:18px; font-weight:950; letter-spacing:-.01em}
.card-sub{font-size:13px; color:var(--muted); margin-top:4px}

/* Page */
.page{padding:34px 0 70px}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:start;
}
@media (max-width: 980px){ .hero{grid-template-columns:1fr} }
.h1{font-size:56px; letter-spacing:-.03em; line-height:1.02; margin:0 0 14px}
@media (max-width: 980px){ .h1{font-size:42px} }
.lead{font-size:16px; line-height:1.6; color:var(--muted); margin:0 0 18px; max-width:620px}

.search-card{
  padding:16px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.search-row{
  display:grid;
  grid-template-columns: 1fr 240px;
  gap:12px;
}
@media (max-width: 560px){ .search-row{grid-template-columns:1fr} }
.field{
  display:flex; align-items:center; gap:10px;
  border:1px solid var(--line);
  border-radius: 12px;
  padding:10px 12px;
  background: rgba(15,23,42,.02);
}
html[data-theme="dark"] .field{background: rgba(255,255,255,.03)}
.field .icon{opacity:.7}
.input{
  width:100%;
  border:0;
  outline:none;
  background: transparent;
  color: var(--text);
  font-size:14px;
}
.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.tags{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; margin-top:10px}
.tags.tight{justify-content:flex-start}
.pill{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(15,23,42,.03);
}
html[data-theme="dark"] .pill{background: rgba(255,255,255,.06)}

.bullets{display:grid; gap:10px; margin-top:14px; max-width:520px}
.bullet{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: var(--card);
}
.bullet .muted{color:var(--muted); font-weight:700}
.b-ico{width:18px; text-align:center}

/* Trending list */
.trend-list{display:grid; gap:10px}
.trend-row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,23,42,.02);
}
html[data-theme="dark"] .trend-row{background: rgba(255,255,255,.03)}
.trend-name{font-weight:950}
.trend-cat{font-size:12px; color:var(--muted); margin-top:2px}
.trend-actions{display:flex; align-items:center; gap:10px}
.delta{
  font-size:12px; font-weight:950;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
}
.delta.up{background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.25)}
.delta.down{background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.25)}

/* Countdown */
.count-row{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px}
.count-big{font-size:14px}
.progress{
  height:10px;
  border-radius:999px;
  background: rgba(15,23,42,.06);
  border:1px solid var(--line);
  overflow:hidden;
  margin-top:12px;
}
html[data-theme="dark"] .progress{background: rgba(255,255,255,.06)}
.progress .bar{
  height:100%;
  background: linear-gradient(90deg, var(--brand2), var(--brand));
}

/* Features */
.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
  margin-top:26px;
}
@media (max-width: 980px){ .features{grid-template-columns:1fr} }
.feature{padding:18px}
.ftitle{font-weight:950; font-size:18px}
.fsub{color:var(--muted); font-weight:800; font-size:13px; margin-top:4px}
.ftext{color:var(--muted); margin:12px 0 0; line-height:1.6}

/* Two column */
.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  margin-top:18px;
}
@media (max-width: 980px){ .two{grid-template-columns:1fr} }

.city-list{display:grid; gap:10px}
.city-row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 14px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,23,42,.02);
}
html[data-theme="dark"] .city-row{background: rgba(255,255,255,.03)}
.city-name{font-weight:950}
.city-sub{font-size:12px; color:var(--muted); margin-top:2px}

/* Steps */
.steps{display:grid; gap:12px; margin-top:12px}
.step{display:flex; gap:12px; align-items:flex-start}
.num{
  width:30px; height:30px;
  border-radius:999px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  background: rgba(15,23,42,.03);
  font-weight:950;
}
html[data-theme="dark"] .num{background: rgba(255,255,255,.06)}
.s-title{font-weight:950}
.s-sub{color:var(--muted); margin-top:2px; font-size:13px; line-height:1.5}

/* Footer */
.footer{
  padding:30px 0;
  color:var(--muted);
  font-size:12px;
  border-top:1px solid var(--line);
  background: var(--card);
  margin-top:30px;
}
.footer-inner{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
