/* ============================================================
   Nidora · theme v1
   Warm coral / blush system, Manrope display, Inter UI.
   Loaded after app.css to retune every surface.
   ============================================================ */

:root {
  --header-h: 72px;
  --coral: #f2644c;
  --coral-deep: #d94b36;
  --pink: #ff5d8f;
  --peach: #ffb59e;
  --blush: #ffd9ce;
  --cream: #fff7f2;
  --cocoa: #2a1714;
  --radius-card: 24px;
}

html { scroll-padding-top: calc(var(--header-h) + 66px); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-ui);
  font-size: 15px;
  line-height: 1.55;
}
::selection { background: var(--coral); color: #fff; }
h1, h2, h3, h4, .brand-word, .price-big, .hero h1, .agency h1, .agency h2, .foot-cta h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -.045em;
}
h1, h2, .hero h1 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Announcement ---------- */
.announce {
  position: relative;
  z-index: 61;
  background: var(--cocoa);
  color: #fff7f2;
  font-size: 12px;
  letter-spacing: .01em;
}
.announce-in {
  max-width: 1520px; margin: 0 auto;
  min-height: 38px; padding: 7px 18px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  flex-wrap: wrap;
}
.announce b { font-weight: 700; color: #fff; }
.announce-text { color: rgba(255, 247, 242, .74); }
.announce a {
  display: inline-flex; align-items: center; gap: 4px;
  color: #ffb59e; font-weight: 600; margin-left: 2px;
}
.announce a:hover { color: #fff; }
.announce a .ic { width: 14px; height: 14px; }
.announce-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 93, 143, .18);
}
.announce-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; color: rgba(255, 247, 242, .55);
}
.announce-x:hover { background: rgba(255,255,255,.1); color: #fff; }
.announce-x .ic { width: 14px; height: 14px; }

/* ---------- Top bar ---------- */
.topbar {
  height: var(--header-h);
  gap: 16px;
  padding: 0 clamp(14px, 2.4vw, 32px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { gap: 10px; align-items: center; }
.brand-mark { width: 32px; height: 32px; color: var(--coral); }
.brand-mark svg { border-radius: 10px; box-shadow: 0 6px 16px -8px rgba(242, 100, 76, .7); }
.brand-word { font-size: 25px; font-weight: 800; letter-spacing: -.055em; }
.brand-word .dot { color: var(--pink); }
.brand-city {
  font-size: 9.5px; letter-spacing: .18em; color: var(--muted);
  border-left: 1px solid var(--line-strong); padding-left: 9px;
}
.search-shell {
  max-width: 470px; height: 42px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--line);
  box-shadow: none;
}
.search-shell:focus-within {
  border-color: color-mix(in srgb, var(--coral) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 12%, transparent);
}
.search-shell input { font-size: 13px; }
.search-go {
  background: var(--cocoa); color: #fff7f2; font-weight: 600;
  height: 32px; padding: 0 15px;
}
.search-go:hover { background: var(--coral); }
.mainnav { gap: 1px; }
.mainnav a { font-size: 13px; padding: 8px 10px; color: var(--ink-soft); }
.mainnav a.active { background: var(--green-soft); color: var(--coral-deep); }
.navcount { background: var(--coral); }
.agency-cta {
  height: 38px; padding: 0 16px; margin-right: 4px;
  border: 0; color: #fff; font-weight: 600; font-size: 12.5px;
  background: var(--grad);
  box-shadow: 0 10px 22px -12px rgba(242, 100, 76, .8);
}
.agency-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(242, 100, 76, .9); }
.iconbtn:hover { background: var(--surface); border-color: var(--line); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-color: var(--line); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.primary:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 14.5px; }
.btn.light { background: #fff7f2; color: var(--cocoa); border-color: transparent; }
.btn.light:hover { background: #fff; }
.btn.ghost { background: transparent; }
.chip.on { background: var(--coral); border-color: var(--coral); }
.chip { font-size: 12px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: clamp(34px, 5vw, 78px);
  max-width: 1520px;
  margin: 0 auto;
  padding: clamp(26px, 3.8vw, 48px) clamp(18px, 3vw, 36px) clamp(18px, 3vw, 30px);
}
.hero-copy { min-width: 0; }
.hero .eyebrow, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral-deep); font-weight: 700; margin-bottom: 16px;
}
.eyebrow::before { display: none; }
.eyebrow.light { color: rgba(255, 247, 242, .78); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 4px rgba(242, 100, 76, .14);
  animation: live 2.4s infinite;
}
@keyframes live { 0%,100% { box-shadow: 0 0 0 4px rgba(242,100,76,.14); } 50% { box-shadow: 0 0 0 7px rgba(242,100,76,.06); } }
.hero h1 {
  font-size: clamp(40px, 5vw, 70px);
  line-height: .96;
  letter-spacing: -.055em;
  max-width: 12.5ch;
  font-weight: 800;
}
.hero h1 .grad, .agency h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  max-width: 48ch; margin-top: 20px; color: var(--muted);
  font-size: clamp(14px, 1.15vw, 16px); line-height: 1.6;
}

.hero-search {
  margin-top: 28px;
  display: flex; align-items: stretch; gap: 0;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px;
  box-shadow: 0 22px 48px -30px rgba(74, 30, 22, .38);
}
.hs-field {
  display: flex; align-items: center; gap: 9px;
  min-width: 0; flex: 1; padding: 0 14px;
}
.hs-field .ic { width: 18px; height: 18px; color: var(--muted); }
.hs-field input, .hs-field select {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 13.5px; padding: 12px 0;
}
.hs-field select { cursor: pointer; color: var(--ink-soft); }
.hs-select { flex: 0 0 148px; border-left: 1px solid var(--line); }
.hero-go {
  flex: none; width: 146px; height: 52px;
  background: var(--grad); border: 0; color: #fff;
  box-shadow: 0 12px 24px -12px rgba(242, 100, 76, .85);
}
.hero-go:hover { background: var(--grad); filter: brightness(1.04); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hchip {
  height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: 12px; color: var(--ink-soft); transition: all .18s;
}
.hchip:hover { border-color: var(--coral); color: var(--coral-deep); background: var(--green-soft); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px;
  color: var(--muted); font-size: 11.5px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 5px; }
.hero-trust .ic { width: 14px; height: 14px; color: var(--coral); stroke-width: 2.2; }

.hero-visual { position: relative; min-width: 0; }
.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: clamp(330px, 30vw, 440px);
  border-radius: 34px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 36px 80px -46px rgba(74, 30, 22, .55);
}
.collage figure { margin: 0; overflow: hidden; border-radius: 24px; background: var(--blush); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.collage:hover img { transform: scale(1.035); }
.collage-main { grid-row: 1 / span 2; }
.collage-a { grid-column: 2; grid-row: 1; }
.collage-b { grid-column: 2; grid-row: 2; }
.collage-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--peach), var(--blush));
  color: #fff;
}
.collage-pill {
  position: absolute; left: 24px; top: 24px;
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 600; color: var(--cocoa);
  box-shadow: var(--shadow-sm);
}
.collage-pill .ic { width: 13px; height: 13px; color: var(--coral); }

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 50px -28px rgba(74, 30, 22, .5);
  padding: 13px 16px;
}
.float-card b { display: block; font-family: var(--ff-display); font-weight: 800; letter-spacing: -.04em; }
.float-card span { display: block; font-size: 10.5px; color: var(--muted); }
.fc-count { left: -18px; bottom: 58px; min-width: 128px; }
.fc-count b { font-size: 27px; line-height: 1; }
.fc-median { right: -14px; top: 42px; min-width: 128px; }
.fc-median b { font-size: 20px; margin-top: 2px; }
.fc-agency {
  right: -8px; bottom: -20px; width: 236px;
  background: var(--cocoa); color: #fff7f2; border-color: transparent;
  transition: transform .2s var(--ease);
}
.fc-agency:hover { transform: translateY(-3px); }
.fc-agency .fc-kicker { color: var(--peach); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.fc-agency b { font-size: 17px; margin: 3px 0 7px; }
.fc-agency .fc-link { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 11px; font-weight: 600; }
.fc-agency .fc-link .ic { width: 13px; height: 13px; }
.fc-agency .ic { color: var(--peach); }

/* ---------- Category strip ---------- */
.cat-strip {
  position: sticky; top: var(--header-h);
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cat-strip-in {
  max-width: 1520px; margin: 0 auto;
  padding: 11px clamp(16px, 3vw, 36px);
  display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none;
}
.cat-strip-in::-webkit-scrollbar { display: none; }
.cat {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
  transition: all .18s;
}
.cat:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
.cat.on { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.cat .ic { width: 14px; height: 14px; }

/* ---------- Explorer ---------- */
.explorer { padding: 22px clamp(16px, 3vw, 36px) 70px; }
.explorer.with-map { grid-template-columns: 264px minmax(0, 1fr) minmax(340px, 33%); gap: 0 8px; }
.filters-col { padding-right: 20px; }
.results-col { padding: 0 18px; }
.results-head { margin-bottom: 14px; }
.results-title { display: flex; align-items: baseline; gap: 9px; }
.results-head h2 { font-size: 21px; letter-spacing: -.035em; }
.results-head .count { font-size: 12px; color: var(--muted); }
.select {
  height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); padding: 0 13px; font-size: 12px;
}
.seg { background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { width: 30px; height: 30px; border-radius: 50%; }
.seg button.on { background: var(--surface); box-shadow: var(--shadow-sm); }
.map-toggle { border-color: var(--line); background: var(--surface); }
.active-chips { gap: 6px; margin-bottom: 12px; }
.active-chips .chip { height: 28px; font-size: 11px; }

/* ---------- Filters ---------- */
.filter-block { border-top: 1px solid var(--line); padding: 16px 0; }
.filter-head h4 { font-size: 10px; letter-spacing: .13em; color: var(--muted); }
.filter-head .reset { color: var(--coral-deep); font-size: 11px; }
.price-reads { display: flex; gap: 8px; }
.price-reads input, .filter-block input[type="number"], .filter-block input[type="date"], .filter-block select {
  height: 38px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); padding: 0 11px; font-size: 12.5px;
}
input[type="range"] { accent-color: var(--coral); }
.checkrow { border-radius: 10px; padding: 7px 6px; }
.checkrow:hover { background: var(--surface-2); }
.checkrow input { accent-color: var(--coral); }
.chip-row { gap: 6px; }
.chip-row .chip { height: 30px; font-size: 11.5px; padding: 0 11px; }

/* ---------- Cards ---------- */
.cards.grid { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px; }
.card {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(74,30,22,.03);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(74,30,22,.42); }
.card .media { height: 208px; }
.card .body { padding: 15px 16px 14px; }
.card h3 { font-size: 16px; font-weight: 700; letter-spacing: -.03em; margin: 5px 0 4px; }
.card .kicker { font-size: 10px; letter-spacing: .1em; color: var(--coral-deep); font-weight: 700; }
.card .addr { font-size: 11.5px; color: var(--muted); }
.card .facts { font-size: 11px; color: var(--ink-soft); }
.card .foot { font-size: 10.5px; border-top-color: var(--line); }
.card .src { color: var(--muted); letter-spacing: .06em; }
.price-float {
  left: 12px; bottom: 12px;
  background: rgba(255,255,255,.93); color: var(--cocoa);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 22px -12px rgba(42,23,20,.45);
  font-family: var(--ff-display); font-weight: 800; font-size: 15px;
  letter-spacing: -.03em; padding: 7px 11px; border-radius: 12px;
}
.price-float small { font-family: var(--ff-ui); font-weight: 500; font-size: 9.5px; color: var(--muted); letter-spacing: 0; }
.badge { border-radius: 999px; font-size: 9.5px; height: 22px; padding: 0 8px; }
.badge.new { background: var(--coral); }
.badge.balcony { background: #fff; color: var(--coral-deep); }
.badge.pricevar { background: var(--blush); color: var(--coral-deep); }
.badge.verify { background: #f1e7e2; color: #7c6258; }
.heart { background: rgba(255,255,255,.9); }
.heart.on { color: var(--pink); }
.compare-check { border-radius: 999px; background: rgba(255,255,255,.9); }
.compare-check.on { background: var(--coral); color: #fff; }
.skeleton { border-radius: var(--radius-card); background: linear-gradient(100deg, var(--surface-2), var(--surface), var(--surface-2)); }

/* ---------- Map ---------- */
.map-col {
  top: calc(var(--header-h) + 14px);
  height: calc(100vh - var(--header-h) - 28px);
  min-height: 420px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #f8e9e1;
  box-shadow: 0 24px 60px -40px rgba(74,30,22,.4);
}
.map-col #map { width: 100%; height: 100%; border-radius: inherit; }
.leaflet-container { background: #f8e9e1; font-family: var(--ff-ui); }
.leaflet-control-zoom a {
  width: 32px; height: 32px; line-height: 30px; border-radius: 10px !important;
  color: var(--ink); background: rgba(255,255,255,.94); border: 1px solid var(--line);
}
.leaflet-control-attribution { background: rgba(255,255,255,.7) !important; font-size: 9px; }
.map-toolbar { top: 12px; left: 12px; right: 12px; gap: 6px; }
.map-toolbar .btn { background: rgba(255,255,255,.94); border-color: var(--line); box-shadow: var(--shadow-sm); }
.map-badge { background: var(--cocoa); color: #fff7f2; border-radius: 999px; font-size: 10px; padding: 5px 9px; }
.map-fallback {
  position: absolute; left: 12px; right: 12px; bottom: 26px; z-index: 500;
  background: rgba(42,23,20,.88); color: #fff7f2; font-size: 10.5px;
  padding: 8px 12px; border-radius: 10px; text-align: center;
}
.pin {
  display: inline-flex; align-items: center; justify-content: center;
  height: 27px; padding: 0 9px; border-radius: 999px;
  background: #fff; color: var(--cocoa);
  border: 1px solid rgba(42,23,20,.12);
  box-shadow: 0 6px 16px -8px rgba(42,23,20,.5);
  font-family: var(--ff-display); font-weight: 800; font-size: 11.5px;
  letter-spacing: -.02em; white-space: nowrap; cursor: pointer;
  transition: transform .15s, background .15s;
}
.pin.low { background: var(--coral); color: #fff; border-color: var(--coral); }
.pin.mid { background: var(--blush); color: var(--coral-deep); border-color: var(--blush); }
.pin.high { background: var(--cocoa); color: #fff; border-color: var(--cocoa); }
.pin.verify { background: #f5ece7; color: #8b6f66; border-style: dashed; }
.pin.active, .pin:hover { transform: scale(1.08); z-index: 999; }
.pin-wrap { background: none; border: none; }

/* ---------- Detail ---------- */
.detail { max-width: 1280px; padding: 20px 26px 80px; }
.gallery { height: clamp(340px, 42vw, 490px); gap: 8px; border-radius: 28px; overflow: hidden; }
.gallery .shot { border-radius: 20px; }
.gallery .shot:first-child { border-radius: 28px 20px 20px 28px; }
.detail-head { margin-top: 26px; }
.detail-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.detail-head .addr { color: var(--muted); font-size: 12.5px; }
.detail-actions .btn { height: 40px; font-size: 12.5px; }
.factgrid { gap: 8px; }
.fact { background: var(--surface-2); border: 1px solid transparent; border-radius: 14px; padding: 13px 14px; }
.fact span { font-size: 9.5px; letter-spacing: .1em; }
.fact b { font-family: var(--ff-display); font-weight: 700; }
.section-title h2 { font-size: 20px; font-weight: 800; }
.section-title span { font-size: 10.5px; color: var(--muted); }
.desc { font-size: 14px; line-height: 1.7; }
.amenities { gap: 7px; }
.amenity { background: var(--surface); border-color: var(--line); border-radius: 999px; font-size: 11.5px; }
.amenity.off { opacity: .4; }
.mini-map { height: 280px; border-radius: 20px; border: 1px solid var(--line); }
.side-card { border-radius: 24px; padding: 21px; border-color: var(--line); box-shadow: 0 18px 40px -32px rgba(74,30,22,.35); }
.price-big { font-size: 38px; font-weight: 800; letter-spacing: -.05em; }
.price-big small { font-family: var(--ff-ui); font-weight: 500; font-size: 11px; color: var(--muted); }
.price-note { font-size: 10.5px; }
.cost-table { border-top-color: var(--line); }
.cost-row { font-size: 12px; }
.cost-row.total { border-top-color: var(--line-strong); font-weight: 700; }
.agent { border-top-color: var(--line); }
.agent .avatar { background: var(--green-soft); color: var(--coral-deep); border-radius: 12px; }
.calc-card { background: var(--surface-2); }
.similar { border-top-color: var(--line); }
.history .bar i { background: var(--coral); }
.flags .flag { background: var(--surface-2); border-radius: 12px; }
.backlink { color: var(--muted); }

/* Agency inline card on detail */
.detail-agency {
  margin-top: 14px;
  background: var(--cocoa); color: #fff7f2;
  border-radius: 22px; padding: 20px;
  position: relative; overflow: hidden;
}
.detail-agency::after {
  content: ""; position: absolute; right: -50px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,93,143,.45), transparent 70%);
}
.detail-agency .kicker { color: var(--peach); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.detail-agency h3 { font-size: 20px; margin: 6px 0 6px; color: #fff; }
.detail-agency p { font-size: 11.5px; color: rgba(255,247,242,.72); line-height: 1.6; }
.detail-agency .btn { margin-top: 12px; background: var(--grad); border: 0; color: #fff; }
.detail-agency .btn:hover { filter: brightness(1.05); }

/* ---------- Pages, favorites, compare, insights ---------- */
.page { max-width: 1180px; padding: 40px 24px 80px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); }
.page-head p { color: var(--muted); }
.panel { border-radius: 24px; border-color: var(--line); box-shadow: 0 1px 2px rgba(74,30,22,.03); }
.panel h2 { font-size: 19px; font-weight: 800; }
.statcard { background: var(--surface); border-radius: 20px; border-color: var(--line); padding: 20px; }
.statcard b { font-family: var(--ff-display); font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.statcard span { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.barchart .track i { background: var(--grad); border-radius: 999px; }
.hist .hcol i { background: var(--grad); border-radius: 8px 8px 3px 3px; }
.fav-item { border-radius: 18px; border-color: var(--line); }
.fav-status { border-radius: 999px; }
.pipeline-bar { background: var(--surface-2); }
.compare-head { border-radius: 20px; }
.compare-table { border-radius: 20px; }

/* ---------- Agency page ---------- */
.agency { max-width: 1280px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 30px) 80px; }
.agency-hero {
  display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; padding: clamp(26px, 4vw, 54px) 0 clamp(36px, 5vw, 64px);
}
.agency h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: .95; letter-spacing: -.055em; }
.agency-lead { max-width: 46ch; margin-top: 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.agency-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.agency-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; font-size: 11px; color: var(--muted); }
.agency-proof span { display: inline-flex; align-items: center; gap: 5px; }
.agency-proof .ic { width: 14px; height: 14px; color: var(--coral); }
.agency-hero-visual { position: relative; }
.agency-hero-visual > img { width: 100%; height: clamp(380px, 38vw, 520px); object-fit: cover; border-radius: 34px; box-shadow: 0 36px 80px -48px rgba(74,30,22,.5); }
.agency-hero-visual > .collage-fallback { height: 480px; border-radius: 34px; }
.agency-float {
  position: absolute; left: -18px; bottom: 26px; width: 260px;
  background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(10px);
  color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px; padding: 16px;
  box-shadow: 0 22px 50px -28px rgba(74,30,22,.4);
}
.agency-float b { display: block; font-family: var(--ff-display); font-size: 17px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.agency-float ul { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 5px; }
.agency-float li { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); }
.agency-float li .ic { width: 12px; height: 12px; color: var(--coral); }
.agency-float.small { left: auto; right: -12px; bottom: -16px; width: auto; min-width: 150px; padding: 12px 15px; }
.agency-float.small b { font-size: 24px; }
.agency-float.small span { font-size: 9.5px; color: var(--muted); }
.agency-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.agency-strip div { text-align: center; border-left: 1px solid var(--line); }
.agency-strip div:first-child { border-left: 0; }
.agency-strip b { display: block; font-family: var(--ff-display); font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.agency-strip span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.agency-section-head { max-width: 620px; margin-bottom: 30px; }
.agency-section-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; }
.agency-section-head p { color: var(--muted); margin-top: 10px; }
.agency-values, .agency-process, .agency-faq { padding: clamp(50px, 7vw, 86px) 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value-grid article {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.value-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-ic {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--coral-deep); margin-bottom: 16px;
}
.value-ic .ic { width: 20px; height: 20px; }
.value-grid h3 { font-size: 17px; margin-bottom: 7px; }
.value-grid p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.step span {
  position: absolute; top: -1px; left: 0; transform: translateY(-50%);
  background: var(--paper); padding-right: 10px;
  font-family: var(--ff-display); font-size: 12px; font-weight: 800; color: var(--coral);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.agency-offer {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: clamp(30px, 5vw, 70px); align-items: start;
  padding: clamp(44px, 6vw, 72px); border-radius: 34px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.offer-copy h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.02; }
.offer-copy > p { color: var(--muted); margin-top: 14px; max-width: 44ch; }
.offer-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.offer-list li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.offer-list .ic { width: 17px; height: 17px; color: var(--coral); background: #fff; border-radius: 50%; padding: 3px; }
.offer-note { margin-top: 22px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.agency-form-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: 26px; box-shadow: 0 30px 70px -45px rgba(74,30,22,.5);
}
.form-head h3 { font-size: 24px; margin: 4px 0 5px; }
.form-head p { font-size: 11.5px; color: var(--muted); }
.agency-form { margin-top: 18px; display: grid; gap: 11px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agency-form label { display: grid; gap: 5px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.agency-form input, .agency-form select, .agency-form textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper);
  border-radius: 11px; padding: 10px 11px; font-size: 12.5px; outline: 0;
  text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink);
}
.agency-form input:focus, .agency-form select:focus, .agency-form textarea:focus {
  border-color: var(--coral); box-shadow: 0 0 0 3px rgba(242,100,76,.12); background: #fff;
}
.agency-form textarea { resize: vertical; min-height: 74px; }
.agency-form .consent { display: flex; align-items: flex-start; gap: 8px; font-size: 10.5px; line-height: 1.5; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.agency-form .consent input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--coral); }
.form-note { font-size: 9.5px; color: var(--muted); text-align: center; }
.form-status { font-size: 11px; text-align: center; }
.form-status.error { color: var(--clay); }
.form-success { text-align: center; padding: 26px 10px; }
.form-success .ic { width: 42px; height: 42px; color: var(--coral); margin: 0 auto 10px; background: var(--green-soft); border-radius: 50%; padding: 10px; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--muted); font-size: 12.5px; margin: 6px 0 16px; }
.agency-faq { max-width: 900px; }
.agency-faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.agency-faq summary { cursor: pointer; font-family: var(--ff-display); font-size: 16px; font-weight: 700; letter-spacing: -.02em; list-style: none; display: flex; justify-content: space-between; }
.agency-faq summary::after { content: "+"; color: var(--coral); font-weight: 500; }
.agency-faq details[open] summary::after { content: "−"; }
.agency-faq details p { color: var(--muted); font-size: 12.5px; line-height: 1.65; margin-top: 8px; max-width: 70ch; }
.agency-final {
  margin-top: 20px; border-radius: 34px; padding: clamp(40px, 6vw, 76px);
  background: var(--cocoa); color: #fff7f2; text-align: center;
  background-image: radial-gradient(circle at 15% 20%, rgba(255,93,143,.28), transparent 45%), radial-gradient(circle at 85% 80%, rgba(255,181,158,.18), transparent 40%);
}
.agency-final h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.03; margin: 6px 0 12px; color: #fff; }
.agency-final p { color: rgba(255,247,242,.7); max-width: 52ch; margin: 0 auto 22px; font-size: 13.5px; }

/* ---------- Footer ---------- */
.sitefoot {
  margin-top: 40px;
  background: var(--cocoa); color: #fff7f2;
  padding: clamp(40px, 6vw, 74px) clamp(18px, 3vw, 36px) 26px;
}
.foot-cta {
  max-width: 1280px; margin: 0 auto 46px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-bottom: 38px; border-bottom: 1px solid rgba(255,247,242,.14);
}
.foot-cta h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: .98; color: #fff; }
.foot-cta h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-cta p { color: rgba(255,247,242,.62); font-size: 13px; margin-top: 10px; max-width: 46ch; }
.foot-cta-actions { display: grid; justify-items: end; gap: 8px; flex: none; }
.foot-cta-actions span { font-size: 10px; color: rgba(255,247,242,.55); }
.foot-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 34px;
  padding-bottom: 34px;
}
.foot-brand .brand-word { color: #fff7f2; font-size: 24px; }
.foot-brand p { color: rgba(255,247,242,.55); font-size: 12px; line-height: 1.65; margin-top: 12px; max-width: 34ch; }
.foot-grid h4 { font-family: var(--ff-ui); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,247,242,.45); margin-bottom: 12px; }
.foot-grid a, .foot-grid span { display: block; color: rgba(255,247,242,.75); font-size: 12px; padding: 4px 0; }
.foot-grid a:hover { color: #fff; }
.foot-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 18px;
  border-top: 1px solid rgba(255,247,242,.14);
  display: flex; justify-content: space-between; gap: 20px;
  color: rgba(255,247,242,.4); font-size: 10px;
}
.sitefoot .eyebrow { color: var(--peach); }

/* ---------- Promos ---------- */
.promo-backdrop {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(42, 23, 20, .55);
  backdrop-filter: blur(9px);
  display: grid; place-items: center; padding: 20px;
}
.promo-modal {
  position: relative; width: min(880px, 96vw);
  display: grid; grid-template-columns: .92fr 1.08fr;
  background: var(--surface); border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.6);
}
.promo-visual {
  background: var(--cocoa); color: #fff7f2; padding: 40px 32px;
  background-image: radial-gradient(circle at 20% 15%, rgba(255,93,143,.45), transparent 45%), radial-gradient(circle at 80% 90%, rgba(255,138,107,.3), transparent 45%);
  display: flex; flex-direction: column; justify-content: center;
}
.promo-visual h3 { font-size: 34px; line-height: 1; color: #fff; margin: 4px 0 10px; }
.promo-visual p { color: rgba(255,247,242,.72); font-size: 12.5px; line-height: 1.6; }
.promo-checks { display: grid; gap: 8px; margin-top: 22px; }
.promo-checks span { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(255,247,242,.85); }
.promo-checks .ic { width: 15px; height: 15px; color: var(--peach); }
.promo-body { padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; }
.promo-kicker { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep); font-weight: 700; }
.promo-body h3 { font-size: 27px; margin: 5px 0 8px; }
.promo-body p { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-bottom: 18px; }
.promo-skip { margin-top: 9px; font-size: 10.5px; color: var(--muted); text-decoration: underline; align-self: center; }
.promo-skip:hover { color: var(--ink); }
.promo-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(42,23,20,.08); color: var(--ink); }
.promo-x:hover { background: rgba(42,23,20,.15); }

.lead-pop {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: min(350px, calc(100vw - 28px));
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 16px;
  box-shadow: 0 30px 70px -35px rgba(74,30,22,.55);
  animation: popIn .35s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lead-pop-ic { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--coral-deep); }
.lead-pop b { font-family: var(--ff-display); font-size: 14px; display: block; margin-bottom: 3px; }
.lead-pop p { font-size: 11px; color: var(--muted); line-height: 1.55; }
.lead-pop a { display: inline-flex; align-items: center; gap: 4px; color: var(--coral-deep); font-size: 11px; font-weight: 600; margin-top: 7px; }
.lead-pop a .ic { width: 13px; height: 13px; }
.lead-pop-x { position: absolute; right: 7px; top: 7px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.lead-pop-x .ic { width: 13px; height: 13px; }

.mobile-agency {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 120;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 10px 12px; box-shadow: 0 18px 44px -22px rgba(74,30,22,.55);
}
.mobile-agency b { display: block; font-size: 12px; }
.mobile-agency small { font-size: 10px; color: var(--muted); }
.mobile-agency .btn { height: 36px; font-size: 11px; }

/* ---------- Misc ---------- */
.toast { background: var(--cocoa); color: #fff7f2; border-radius: 999px; }
.sheet-backdrop { background: rgba(42,23,20,.4); }
.lightbox { background: rgba(27,17,16,.95); }
.empty { color: var(--muted); }
.empty h3 { color: var(--ink); }
.loadmore .btn { border-color: var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .explorer.with-map { grid-template-columns: 248px minmax(0, 1fr) minmax(320px, 31%); }
  .explorer.with-map .map-col { display: block; }
  .hero { gap: 42px; }
  .fc-count { left: -8px; }
  .fc-median { right: -6px; }
  .fc-agency { right: -4px; }
}
@media (max-width: 1180px) {
  /* Keep the map alive instead of hiding it */
  .explorer.with-map { grid-template-columns: 236px minmax(0, 1fr); }
  .explorer.with-map .map-col {
    display: block;
    grid-column: 2; grid-row: 1;
    position: relative; top: auto;
    height: 360px; min-height: 0;
    margin-bottom: 20px;
  }
  .explorer.with-map .results-col { grid-column: 2; grid-row: 2; }
  .explorer.with-map .filters-col { grid-column: 1; grid-row: 1 / span 2; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 30px; }
  .hero h1 { font-size: clamp(40px, 5vw, 60px); }
  .hero-visual .fc-count, .hero-visual .fc-median { display: none; }
  .fc-agency { width: 210px; right: 0; }
  .agency-hero { grid-template-columns: 1fr 1fr; gap: 30px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-grid > div:last-child { display: none; }
}
@media (max-width: 980px) {
  .mainnav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero h1 { max-width: 14ch; }
  .hero-visual { max-width: 640px; width: 100%; }
  .collage { height: 380px; }
  .agency-hero { grid-template-columns: 1fr; }
  .agency-hero-visual { max-width: 680px; }
  .agency-offer { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .detail { padding: 16px 16px 70px; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .foot-cta { flex-direction: column; align-items: flex-start; }
  .foot-cta-actions { justify-items: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mobile-agency:not([hidden]) { display: flex; }
  body { padding-bottom: 66px; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .announce-in { justify-content: flex-start; padding-right: 38px; font-size: 10.5px; }
  .announce-text { display: none; }
  .announce-x { right: 6px; }
  .brand-city { display: none; }
  .brand-word { font-size: 22px; }
  .agency-cta { display: none; }
  .search-shell { height: 40px; }
  .search-go { display: none; }
  .topbar { gap: 8px; padding: 0 12px; }
  .hero { padding: 24px 14px 20px; gap: 24px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); max-width: 100%; }
  .hero p.sub { font-size: 13.5px; margin-top: 14px; }
  .hero-search { flex-direction: column; gap: 0; border-radius: 18px; padding: 6px; margin-top: 20px; }
  .hs-field { padding: 0 10px; }
  .hs-field input, .hs-field select { padding: 10px 0; font-size: 13px; }
  .hs-select { flex: none; border-left: 0; border-top: 1px solid var(--line); }
  .hero-go { width: 100%; margin-top: 4px; height: 46px; }
  .hero-trust { gap: 10px; margin-top: 18px; font-size: 10px; }
  .collage { height: 300px; border-radius: 26px; }
  .collage-b { display: none; }
  .collage-main { grid-row: 1 / span 2; }
  .collage-a { grid-column: 2; grid-row: 1 / span 2; }
  .collage-pill { left: 18px; top: 18px; }
  .fc-agency { display: none; }
  .cat-strip-in { padding: 9px 14px; }
  .explorer, .explorer.with-map { grid-template-columns: 1fr; padding: 16px 14px 60px; }
  .explorer.with-map .map-col, .explorer.with-map .results-col, .explorer.with-map .filters-col {
    grid-column: 1; grid-row: auto;
  }
  .explorer.with-map .map-col { height: 290px; margin-bottom: 14px; }
  .filters-col {
    position: fixed; z-index: 100; top: 0; left: 0; bottom: 0; width: min(88vw, 360px);
    background: var(--paper); padding: 18px 18px 90px; max-height: none;
    transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); overflow: auto;
  }
  .filters-col.open { transform: none; }
  .filters-col .filter-close { display: grid; }
  .filter-mobile-head { display: flex; }
  .mobile-apply { display: inline-flex; }
  .results-col { padding: 0; }
  .mobile-filter { display: grid; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cards.list .card { grid-template-columns: 1fr; }
  .cards.list .card .media { height: 200px; }
  .hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
  .gallery { height: 300px; grid-template-columns: 1fr; }
  .gallery .shot:not(:first-child) { display: none; }
  .gallery .shot:first-child { border-radius: 24px; }
  .detail { padding: 12px 14px 60px; }
  .detail-head { flex-direction: column; }
  .factgrid { grid-template-columns: 1fr 1fr; }
  .page { padding: 24px 14px 60px; }
  .sitefoot { padding: 36px 16px 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; }
  .promo-modal { grid-template-columns: 1fr; max-height: 88vh; overflow: auto; }
  .promo-visual { padding: 28px 24px; }
  .promo-visual h3 { font-size: 28px; }
  .promo-checks { display: none; }
  .promo-body { padding: 26px 24px 30px; }
  .agency { padding: 16px 14px 60px; }
  .agency h1 { font-size: clamp(38px, 11vw, 54px); }
  .agency-lead { font-size: 14px; }
  .agency-hero-visual > img { height: 340px; border-radius: 26px; }
  .agency-float { left: 8px; bottom: 12px; width: 210px; padding: 13px; }
  .agency-float.small { display: none; }
  .agency-strip { grid-template-columns: 1fr 1fr; gap: 1px 0; }
  .agency-strip div:nth-child(3) { border-left: 0; }
  .agency-strip div { padding: 8px 0; }
  .agency-strip b { font-size: 24px; }
  .value-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .agency-offer { padding: 24px 16px; border-radius: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .agency-form-wrap { padding: 20px 16px; }
  .foot-cta h2 { font-size: 36px; }
  .foot-cta-actions { width: 100%; }
  .foot-cta-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid > div:nth-child(2), .foot-grid > div:nth-child(3) { display: none; }
}
@media (max-width: 520px) {
  .brand-word { display: none; }
  .collage { height: 240px; padding: 7px; gap: 7px; border-radius: 22px; }
  .collage figure { border-radius: 18px; }
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero .eyebrow { font-size: 9px; }
  .cat { height: 31px; font-size: 11.5px; padding: 0 12px; }
  .agency h1 { font-size: 38px; }
  .agency-strip b { font-size: 21px; }
  .agency-strip span { font-size: 8px; }
  .agency-ctas .btn { width: 100%; }
  .promo-body h3 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .announce, .topbar, .sitefoot, .cat-strip, .promo-backdrop, .lead-pop, .mobile-agency, .detail-actions, .similar, .side-card.calc-card, .filters-col, .toast, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .detail { max-width: none; padding: 0; }
}

/* Inline agency link in the price panel */
.agent-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 4px; padding: 10px 12px; border-radius: 12px;
  background: var(--green-soft); color: var(--coral-deep);
  font-size: 10.5px; font-weight: 600; line-height: 1.4;
}
.agent-cta:hover { background: var(--blush); }
.agent-cta .ic { width: 14px; height: 14px; flex: none; }
