:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --line:rgba(15,23,42,.10);
  --muted:#64748b;
  --text:#0f172a;

  --primary:#0d6efd;
  --primary2:#0b5ed7;

  --radius:16px;
  --radius2:22px;

  --shadow:0 18px 50px rgba(15,23,42,.10);
  --shadow2:0 12px 30px rgba(15,23,42,.12);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:radial-gradient(1200px 600px at 20% -10%, rgba(13,110,253,.14), transparent 60%),
             radial-gradient(900px 520px at 95% 0%, rgba(245,158,11,.10), transparent 55%),
             var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit}

.container{max-width:1200px;margin:0 auto;padding:0 16px}
.muted{color:var(--muted)}
.tiny{font-size:12px}

/* Topbar */
.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.80);
  backdrop-filter:saturate(1.2) blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{display:flex;align-items:center;gap:10px}
.logo{
  width:42px;height:42px;border-radius:16px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, rgba(13,110,253,.16), rgba(13,110,253,.06));
  border:1px solid rgba(13,110,253,.18);
  font-weight:950;
  letter-spacing:.5px;
}
.brand-title b{display:block;font-weight:950;line-height:1}
.brand-title span{display:block;color:var(--muted);font-weight:800;font-size:12px;margin-top:2px}
.top-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:900;
  font-size:14px;
  cursor:pointer;
  background:#fff;
  transition:.15s ease;
  line-height:1;
  user-select:none;
}
.btn-primary{
  background:linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff;
  box-shadow:0 10px 26px rgba(13,110,253,.22);
}
.btn-primary:hover{filter:brightness(1.03)}
.btn-ghost{
  border-color:var(--line);
  background:#fff;
}
.btn-ghost:hover{background:#f9fafb}
.btn-disabled{
  opacity:.55;
  cursor:not-allowed;
  border-color:var(--line);
}
.btn-icon{
  width:44px;height:44px;
  padding:0;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}
.btn-icon:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(15,23,42,.10)}
.btn-icon svg{
  width:20px;height:20px;
  fill:currentColor;
  opacity:.9;
}

/* Badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:900;
  font-size:12px;
  line-height:1;
}
.badge-ok{
  border-color:rgba(22,163,74,.35);
  background:rgba(22,163,74,.08);
  color:#166534;
}
.badge-gold{
  border-color:rgba(245,158,11,.35);
  background:rgba(245,158,11,.10);
  color:#92400e;
}

/* Sections */
.section{padding:28px 0}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.section-head h2{
  margin:0;
  font-size:20px;
  font-weight:950;
  letter-spacing:-.2px;
}

/* HERO */
.hero{
  padding:46px 0 18px;
  background:linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  border-bottom:1px solid rgba(229,231,235,.7);
}
.hero-wrap{max-width:900px}
.hero h1{
  margin:0 0 10px;
  font-size:34px;
  font-weight:950;
  letter-spacing:-.8px;
}
.hero .lead{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  font-weight:650;
  max-width:760px;
}
.hero-note{margin-top:12px;font-weight:850;font-size:13px}

.hero-stats{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.statbox{
  border:1px solid var(--line);
  border-radius:var(--radius2);
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(1.2) blur(8px);
  padding:12px;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
}
.stat-num{font-weight:950;font-size:22px;letter-spacing:-.3px}
.stat-label{margin-top:4px;color:var(--muted);font-weight:850;font-size:12px}
@media (max-width:360px){.hero-stats{grid-template-columns:1fr}}

/* ✅ Location chips */
.geo-chip{
  margin-left:10px;
  border:1px solid rgba(13,110,253,.22);
  background:rgba(13,110,253,.10);
  color:#0b5ed7;
  border-radius:999px;
  padding:6px 10px;
  font-weight:950;
  font-size:12px;
  cursor:pointer;
}
.geo-chip:hover{filter:brightness(1.05)}
.geo-ghost{
  background:transparent;
  color:#0f172a;
  border-color:rgba(15,23,42,.12);
}

/* Filters */
.filters-shell{
  border:1px solid var(--line);
  border-radius:var(--radius2);
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(1.2) blur(10px);
  box-shadow:0 12px 30px rgba(15,23,42,.08);
  overflow:hidden;
}
.filters-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  background:rgba(15,23,42,.02);
}
.filters-top .left b{font-weight:950;display:block;margin-bottom:2px}
.filters-top .left span{color:var(--muted);font-weight:750;font-size:12px}
.filters-toggle{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-weight:950;
  cursor:pointer;
}
.filters-toggle:hover{background:#f9fafb}
.filters-body{padding:12px}
.filters-shell.is-collapsed .filters-body{display:none}

.filters-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
@media (max-width:980px){.filters-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.filters-row{grid-template-columns:1fr}}

.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:12px;color:var(--muted);font-weight:900}
.field select,.field input{
  border:1px solid var(--line);
  border-radius:16px;
  padding:11px 12px;
  font-weight:900;
  background:#fff;
  outline:none;
}
.field select:focus,.field input:focus{
  outline:3px solid rgba(13,110,253,.14);
  outline-offset:2px;
}
.field.checkbox .checkwrap{
  display:flex;gap:10px;align-items:center;
  border:1px solid var(--line);
  border-radius:16px;
  padding:11px 12px;
  background:#fff;
}
.field.checkbox input{width:18px;height:18px}

/* Price block */
.price-block{
  grid-column:1/-1;
  border:1px solid var(--line);
  border-radius:var(--radius2);
  padding:12px;
  background:rgba(15,23,42,.02);
}
.price-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-end}
.price-head .label{font-weight:950}
.price-values{font-weight:950}

/* Option B — clean 2 sliders */
.range-wrap{
  margin-top:10px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:center;
}
@media (max-width:520px){ .range-wrap{grid-template-columns:1fr;} }
input[type="range"]{
  width:100%;
  height:6px;
  border-radius:999px;
  outline:none;
}

.price-hints{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap}
.chip{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:10px 12px;
  font-weight:950;
  cursor:pointer;
}
.chip:hover{background:#f9fafb}
.chip-ghost{background:transparent}

/* Grid */
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
@media (max-width:980px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.grid{grid-template-columns:1fr}}

/* Cards */
.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:var(--radius2);
  overflow:hidden;
  box-shadow:0 14px 38px rgba(15,23,42,.08);
  transition:.15s ease;
}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow2)}
.card-media{
  width:100%;
  height:190px;
  object-fit:cover;
  background:#eef2ff;
}
.card-body{padding:12px 12px 14px}
.card-title{
  margin:0;
  font-weight:950;
  font-size:16px;
  letter-spacing:-.2px;
  line-height:1.25;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.card-meta{
  margin-top:8px;
  color:var(--muted);
  font-weight:850;
  font-size:13px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.card-actions{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

/* Skeleton */
.skeleton-card{
  height:285px;
  border-radius:var(--radius2);
  border:1px solid var(--line);
  background:linear-gradient(90deg,#f1f5f9,#e5e7eb,#f1f5f9);
  background-size:200% 100%;
  animation:shimmer 1.2s infinite;
}
@keyframes shimmer{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}

/* Empty */
.empty{
  border:1px dashed var(--line);
  border-radius:var(--radius2);
  padding:18px;
  text-align:center;
  background:rgba(15,23,42,.02);
}
.empty-title{font-weight:950;margin-bottom:6px}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  margin-top:28px;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(1.2) blur(10px);
}
#btnTop{
  position:fixed;
  right:16px;
  bottom:16px;
  width:46px;height:46px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 16px 34px rgba(15,23,42,.16);
  cursor:pointer;
  display:none;
  font-weight:950;
}

/* ✅ Featured carousel spacing + feel premium */
#featuredGrid{
  display:flex !important;
  gap:14px;
  overflow-x:auto;
  padding-bottom:16px;
  margin-bottom:18px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scroll-padding-left:16px;
}
#featuredGrid::-webkit-scrollbar{height:8px}
#featuredGrid::-webkit-scrollbar-thumb{background:rgba(15,23,42,.18);border-radius:999px}
#featuredGrid .card{
  min-width:320px;
  flex:0 0 auto;
  scroll-snap-align:start;
}
@media (max-width:640px){
  #featuredGrid .card{min-width:86%;}
}

/* ===== FIX LOGO SIZE (FINAL) ===== */
.topbar-inner{
  min-height: 64px;
  display:flex;
  align-items:center;
}

.brand-logo{
  height: clamp(36px, 4.5vw, 52px);
  width: auto;
  max-height: 56px;
  object-fit: contain;
  border-radius: 999px;
  background: transparent;
  display: block;
}
