:root {
  --brand: #e31e24;
  --brand-dark: #c4181e;
  --brand-soft: #fff1f1;
  --ink: #1a1d21;
  --muted: #6b7280;
  --line: #e8eaed;
  --paper: #ffffff;
  --bg: #f7f8fa;
  --footer: #1b1f24;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-hover: 0 14px 34px rgba(17, 24, 39, 0.12);
  --font: "Manrope", system-ui, sans-serif;
  --container: min(1200px, calc(100% - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: var(--container); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 999px; padding: .72rem 1.2rem;
  font-weight: 700; cursor: pointer;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: .95rem 0 .7rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
}
.brand-badge {
  width: 34px; height: 34px; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: .95rem; font-weight: 900;
}
.header-search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: .35rem .4rem .35rem 1rem;
}
.header-search input {
  flex: 1; border: 0; outline: 0; background: transparent; min-width: 0;
}
.header-search button {
  border: 0; background: var(--brand); color: #fff;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-weight: 800;
}
.header-actions {
  display: flex; align-items: center; gap: .55rem;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; color: var(--muted); position: relative;
}
.icon-btn .dot {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: .65rem; font-weight: 800; display: grid; place-items: center;
}
.category-nav {
  display: flex; gap: .35rem; overflow-x: auto;
  padding: 0 0 .85rem; scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  white-space: nowrap; padding: .45rem .85rem; border-radius: 999px;
  color: var(--muted); font-weight: 650; font-size: .92rem;
}
.category-nav a:hover,
.category-nav a.is-active {
  background: var(--brand-soft); color: var(--brand);
}

/* Home layout */
.home-wrap { padding: 1.25rem 0 2.5rem; }
.home-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.25rem;
  align-items: start;
}

/* Hero */
.hero-banner {
  position: relative; overflow: hidden;
  border-radius: 20px; min-height: 320px;
  background:
    linear-gradient(105deg, rgba(20,20,20,.72) 0%, rgba(20,20,20,.25) 55%, rgba(20,20,20,.1) 100%),
    url('https://images.unsplash.com/photo-1616594039964-ae9021a400a0?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff; box-shadow: var(--shadow);
}
.hero-banner.has-ad { background: #111; }
.hero-banner .carousel-track { min-height: 320px; display: grid; }
.hero-banner .carousel-slide {
  grid-area: 1 / 1; opacity: 0; transition: opacity .5s ease;
  position: relative; min-height: 320px;
}
.hero-banner .carousel-slide.is-active { opacity: 1; }
.hero-banner .carousel-slide img {
  width: 100%; height: 320px; object-fit: cover;
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 2.2rem; pointer-events: none;
}
.hero-copy { max-width: 28rem; pointer-events: auto; }
.hero-copy h1 {
  margin: 0 0 .6rem; font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15; letter-spacing: -.03em; font-weight: 800;
}
.hero-copy p { margin: 0 0 1.1rem; color: rgba(255,255,255,.88); }
.hero-badge {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-content: center; text-align: center;
  font-weight: 900; box-shadow: 0 12px 30px rgba(227,30,36,.35);
  flex-shrink: 0;
}
.hero-badge strong { font-size: 1.6rem; line-height: 1; }
.hero-badge span { font-size: .75rem; letter-spacing: .04em; }
.carousel-dots {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: flex; gap: .4rem; z-index: 3;
}
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.45); cursor: pointer;
}
.carousel-dots button.is-active { background: #fff; width: 22px; border-radius: 999px; }

/* Stories */
.section { margin-top: 1.6rem; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin-bottom: .9rem;
}
.section-head h2 {
  margin: 0; font-size: 1.35rem; letter-spacing: -.02em; font-weight: 800;
}
.section-head p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }

.story-rail {
  display: flex; gap: 1rem; overflow-x: auto; padding: .25rem .1rem 1rem;
  scrollbar-width: none;
}
.story-rail::-webkit-scrollbar { display: none; }
.story-item {
  flex: 0 0 auto; width: 92px; text-align: center;
  transition: transform .2s ease;
}
.story-item:hover { transform: translateY(-3px); }
.story-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand), var(--shadow);
  overflow: hidden; position: relative; margin: 0 auto .45rem;
  background: #eee;
}
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--brand); color: #fff;
  font-size: .62rem; font-weight: 800;
  padding: .18rem .35rem; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(227,30,36,.35);
}
.story-item small {
  display: block; font-size: .72rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Shortcuts */
.shortcut-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem;
}
.shortcut {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem .8rem; text-align: center; box-shadow: var(--shadow);
  transition: .2s ease;
}
.shortcut:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #f3c6c7; }
.shortcut-ico {
  width: 42px; height: 42px; margin: 0 auto .55rem; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 900;
}
.shortcut strong { display: block; font-size: .88rem; line-height: 1.25; }

/* Listing cards */
.listing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem;
}
.listing-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow); position: relative;
  transition: .2s ease;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.listing-card.highlight { border-color: #f5b5b7; background: linear-gradient(180deg, #fff8f8, #fff); }
.listing-media {
  aspect-ratio: 4/3; background: #edf0f3; position: relative; overflow: hidden;
}
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--brand); color: #fff;
  font-size: .75rem; font-weight: 800;
  padding: .28rem .55rem; border-radius: 999px;
}
.fav-btn {
  position: absolute; top: .7rem; right: .7rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 0;
  display: grid; place-items: center; color: var(--muted); cursor: pointer;
}
.listing-body { padding: .85rem .9rem 1rem; }
.card-company {
  color: var(--muted); font-size: .78rem; font-weight: 600; margin-bottom: .25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.listing-body h3 {
  margin: 0 0 .35rem; font-size: .92rem; line-height: 1.3; font-weight: 800;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-prices {
  display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-bottom: .45rem;
}
.price-new { font-weight: 800; font-size: 1.02rem; color: var(--brand); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .78rem; font-weight: 600; }
.card-meta {
  display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap;
  color: var(--muted); font-size: .75rem;
}
.meta { color: var(--muted); font-size: .82rem; }

/* Categories explore */
.cat-explore {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem;
}
.cat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.1rem .8rem; text-align: center; transition: .2s ease;
}
.cat-tile:hover { border-color: #f3c6c7; box-shadow: var(--shadow); }
.cat-tile span {
  width: 44px; height: 44px; margin: 0 auto .55rem; border-radius: 12px;
  background: var(--bg); display: grid; place-items: center; font-weight: 800; color: var(--brand);
}
.cat-tile strong { font-size: .9rem; }

/* Sidebar */
.sidebar { display: grid; gap: 1rem; }
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1rem; box-shadow: var(--shadow);
}
.ad-block {
  border-radius: 18px; min-height: 180px; overflow: hidden;
  background: linear-gradient(145deg, #e31e24, #a31418);
  color: #fff; display: grid; place-items: center; font-weight: 800;
  box-shadow: var(--shadow);
}
.ad-block img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.ad-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.4rem;
}
.ad-row .ad-block { min-height: 90px; font-size: .92rem; }

.newsletter input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem .85rem; margin: .7rem 0;
}
.social-row { display: flex; gap: .5rem; margin-top: .7rem; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--muted);
}

/* Trust */
.trust-bar {
  margin-top: 1.6rem; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 1.1rem; display: grid;
  grid-template-columns: repeat(5, 1fr); gap: .8rem; box-shadow: var(--shadow);
}
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: .9rem; }
.trust-item span { color: var(--muted); font-size: .78rem; }

/* Footer */
.site-footer {
  margin-top: 2.5rem; background: var(--footer); color: rgba(255,255,255,.82);
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.footer-grid h4 { color: #fff; margin: 0 0 .8rem; font-size: .95rem; }
.footer-grid a { display: block; color: rgba(255,255,255,.7); margin-bottom: .4rem; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255,255,255,.55);
}

.whatsapp-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  font-weight: 800; box-shadow: 0 12px 28px rgba(37,211,102,.4);
}

/* Alerts / forms shared */
.alert { padding: .85rem 1rem; border-radius: 14px; margin: 1rem 0; font-weight: 600; }
.alert-success { background: #e8f8ef; color: #0f6a3c; }
.alert-error { background: #ffe8ea; color: #9f1239; }
.alert-info { background: var(--brand-soft); color: #9f1239; }
.page-wrap { padding: 1.5rem 0 3rem; }
.auth-wrap { width: min(520px, calc(100% - 2rem)); margin: 2rem auto; }
.form-card, .content-card, .panel-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: .9rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
[data-location-group] { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr 1fr; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem .9rem; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.hint { font-weight: 500; color: var(--muted); font-size: .82rem; }
.checkbox { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; }
.ad-slot {
  margin: 1rem 0; border-radius: var(--radius); overflow: hidden;
  background: #edf0f3; min-height: 90px;
}
.ad-slot.large { min-height: 180px; }
.ad-slot img { width: 100%; height: 100%; object-fit: cover; }
.ad-placeholder { display: grid; place-items: center; min-height: inherit; color: var(--muted); }

/* Category page */
.category-page { padding: .75rem 0 1.25rem; }
.category-page .section { margin-top: .85rem; }
.breadcrumb {
  display: flex; align-items: center; gap: .45rem;
  font-size: .85rem; color: var(--muted); margin: 0 0 .65rem;
}
.breadcrumb a:hover { color: var(--brand); }

.category-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem;
  align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: .9rem 1.15rem; box-shadow: var(--shadow);
  overflow: hidden; height: 200px; min-height: 180px; max-height: 220px;
}
.category-hero-copy h1 {
  margin: 0 0 .35rem; font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: -.03em; font-weight: 800; line-height: 1.1;
}
.category-hero-count {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 0 0 .4rem; color: var(--brand); font-weight: 800; font-size: .9rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(227,30,36,.45);
  animation: pulse-dot 1.6s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(227,30,36,.45); }
  70% { box-shadow: 0 0 0 8px rgba(227,30,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(227,30,36,0); }
}
.category-hero-desc {
  margin: 0; color: var(--muted); max-width: 28rem; font-size: .88rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.category-hero-visual {
  border-radius: 14px; overflow: hidden; height: 100%;
  min-height: 0; align-self: stretch;
  background: linear-gradient(145deg, #f3f4f6, #e8eaed);
}
.category-hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.category-hero:hover .category-hero-visual img { transform: scale(1.04); }

.category-stories { margin-top: .75rem !important; }
.category-stories .section-head { margin-bottom: .35rem; }
.category-stories .section-head h2 { font-size: 1.15rem; }
.category-stories .story-rail { padding: .15rem .1rem .55rem; }
.category-stories .story-badge {
  top: -4px; left: 50%; right: auto; transform: translateX(-50%);
}

.category-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: .75rem !important;
}
.filter-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1rem 1rem 1.1rem; box-shadow: var(--shadow);
  position: sticky; top: 5.5rem;
}
.filter-panel-head h2 {
  margin: 0 0 .85rem; font-size: 1.05rem; font-weight: 800;
}
.filter-block { margin-bottom: 1rem; }
.filter-block h3 {
  margin: 0 0 .55rem; font-size: .82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.filter-checks { display: grid; gap: .35rem; }
.filter-check {
  display: grid; grid-template-columns: auto 1fr auto; gap: .5rem;
  align-items: center; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.filter-check input { width: auto; margin: 0; accent-color: var(--brand); }
.filter-check em { color: var(--muted); font-style: normal; font-size: .78rem; font-weight: 700; }
.price-range {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .4rem; align-items: center;
}
.price-range span { color: var(--muted); text-align: center; }
.filter-submit { width: 100%; border-radius: 14px; margin-top: .25rem; }

.list-toolbar {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin-bottom: .85rem; flex-wrap: wrap;
}
.list-toolbar h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.list-toolbar p { margin: .15rem 0 0; color: var(--muted); font-size: .86rem; }
.list-toolbar-actions { display: flex; align-items: center; gap: .65rem; }
.sort-control {
  display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .86rem; color: var(--muted);
}
.sort-control select {
  width: auto; min-width: 140px; padding: .5rem .75rem; border-radius: 999px; font-weight: 700; color: var(--ink);
}
.view-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff;
}
.view-btn {
  width: 38px; height: 34px; display: grid; place-items: center;
  color: var(--muted); font-size: .95rem;
}
.view-btn.is-active { background: var(--brand-soft); color: var(--brand); }

.category-listings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  align-items: start;
}
.listing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.listing-grid-3 > .listing-card {
  height: 410px;
  display: flex;
  flex-direction: column;
}
.listing-grid-3 > .listing-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.listing-grid-3 .listing-media {
  aspect-ratio: auto;
  height: 220px;
  flex: 0 0 220px;
}
.listing-grid-3 .listing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: .9rem 1rem 1rem;
}
.listing-grid-3 .listing-body h3 {
  font-size: .98rem;
  margin: 0 0 .4rem;
}
.listing-grid-3 .card-company {
  margin-bottom: .25rem;
  font-size: .8rem;
}
.listing-grid-3 .card-prices { margin-top: auto; margin-bottom: .5rem; }
.listing-grid-3 .price-new { font-size: 1.08rem; }
.listing-grid-3.is-list {
  grid-template-columns: 1fr;
}
.listing-grid-3.is-list > .listing-card {
  height: auto;
  min-height: 160px;
}
.listing-grid-3.is-list > .listing-card > a {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: stretch;
}
.listing-grid-3.is-list .listing-media {
  height: 100%;
  min-height: 160px;
  flex: none;
}
.listing-grid-3.is-list .listing-body {
  justify-content: center;
}
.listing-grid-3 .empty-state { grid-column: 1 / -1; padding: 1rem 0; }

.ad-skyscraper {
  width: 100%; min-height: 600px; border-radius: 18px;
  background: linear-gradient(160deg, #e31e24 0%, #9f1217 100%);
  color: #fff; display: grid; place-content: center; gap: 1rem; text-align: center;
  padding: 1.5rem 1.2rem; box-shadow: var(--shadow); position: sticky; top: 5.5rem;
}
.ad-skyscraper strong {
  font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; max-width: 12rem; margin: 0 auto;
}
.ad-skyscraper .btn-ghost { background: #fff; border-color: #fff; color: var(--brand); }
.ad-skyscraper.has-image { padding: 0; display: block; overflow: hidden; }
.ad-skyscraper.has-image img { width: 100%; height: 600px; object-fit: cover; }

.pagination {
  display: flex; justify-content: center; align-items: center; gap: .4rem;
  margin: 1.15rem 0 0;
}
.page-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  color: var(--muted); background: #fff; border: 1px solid var(--line);
  transition: .2s ease;
}
.page-btn:hover { border-color: #f3c6c7; color: var(--brand); }
.page-btn.is-active {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 8px 18px rgba(227,30,36,.28);
}

.category-bottom-banner {
  margin-top: 1.15rem; border-radius: 18px; overflow: hidden;
  background: linear-gradient(100deg, #fff1f1, #f7f8fa 55%, #ffe8ea);
  border: 1px solid #f3c6c7; box-shadow: var(--shadow);
}
.category-bottom-banner img { width: 100%; max-height: 140px; object-fit: cover; }
.category-bottom-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.35rem; flex-wrap: wrap;
}
.category-bottom-inner strong { display: block; font-size: 1.05rem; font-weight: 800; }
.category-bottom-inner p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }

.filter-panel .filter-location {
  display: block;
  grid-template-columns: none;
}

.category-page + /* noop */ .site-footer,
body:has(.category-page) .site-footer {
  margin-top: 1.5rem;
}

/* Panels / admin */
.admin-shell, .panel-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side-nav { background: #14212b; color: #fff; padding: 1.25rem 1rem; }
.side-nav a {
  display: block; padding: .55rem .75rem; border-radius: 10px;
  color: rgba(255,255,255,.78); margin-bottom: .2rem; font-size: .92rem;
}
.side-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-nav .brand { font-size: 1.2rem; margin-bottom: 1.2rem; display: block; color: #fff; }
.main-pane { padding: 1.25rem; background: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.stat strong { display: block; font-size: 1.5rem; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
th, td { padding: .75rem .85rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
th { background: #f3f4f6; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

.listing-detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.4rem; }
.gallery { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-main { aspect-ratio: 4/3; background: #edf0f3; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-panel { display: grid; gap: 1rem; align-content: start; }
.discount-hero {
  display: grid; place-items: center; min-height: 110px; border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid #f5c2c4;
}
.discount-hero strong { font-size: 2.6rem; color: var(--brand); }
.code-box {
  margin-top: .5rem; padding: 1rem; border-radius: 14px; background: #14212b;
  color: #fff; text-align: center; letter-spacing: .08em; font-weight: 800;
}
.badge-discount, .badge-campaign {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.badge-discount span, .badge-campaign span {
  font-weight: 800; font-size: clamp(1.2rem, 2.5vw, 1.8rem); color: var(--brand);
  background: rgba(255,255,255,.8); padding: .35rem .7rem; border-radius: 999px;
}

@media (max-width: 1200px) {
  .listing-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .category-listings-row { grid-template-columns: 1fr; }
  .category-side-ad { display: none; }
}
@media (max-width: 1100px) {
  .home-grid, .listing-detail { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
  .shortcut-grid, .trust-bar { grid-template-columns: repeat(3, 1fr); }
  .category-layout { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .category-hero {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 1rem;
  }
  .category-hero-visual { height: 140px; }
  .listing-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .listing-grid-3 > .listing-card { height: 400px; }
}
@media (max-width: 860px) {
  .header-top { grid-template-columns: 1fr; }
  .header-actions { justify-content: flex-start; flex-wrap: wrap; }
  .listing-grid, .cat-explore, .ad-row, .footer-grid, .admin-shell, .panel-shell, .stats, .form-grid.two, [data-location-group] {
    grid-template-columns: 1fr 1fr;
  }
  .shortcut-grid, .trust-bar { grid-template-columns: 1fr 1fr; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .category-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .listing-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .listing-grid-3.is-list > .listing-card > a { grid-template-columns: 120px 1fr; }
}
@media (max-width: 560px) {
  .listing-grid, .cat-explore, .ad-row, .footer-grid, .shortcut-grid, .trust-bar, .form-grid.two, [data-location-group] {
    grid-template-columns: 1fr;
  }
  .listing-grid-3 { grid-template-columns: 1fr; }
  .listing-grid-3 > .listing-card { height: auto; min-height: 380px; }
  .hide-mobile { display: none !important; }
  .category-bottom-inner { flex-direction: column; align-items: flex-start; }
}
