/* Fonts: IBM Plex Sans Hebrew for headings, Heebo for body text */
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url(/lib/heebo/heebo-hebrew-400-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url(/lib/heebo/heebo-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url(/lib/heebo/heebo-hebrew-500-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url(/lib/heebo/heebo-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap; src: url(/lib/heebo/heebo-hebrew-700-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap; src: url(/lib/heebo/heebo-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }

@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 500; font-display: swap; src: url(/lib/plex/ibm-plex-sans-hebrew-hebrew-500-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 500; font-display: swap; src: url(/lib/plex/ibm-plex-sans-hebrew-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 600; font-display: swap; src: url(/lib/plex/ibm-plex-sans-hebrew-hebrew-600-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 600; font-display: swap; src: url(/lib/plex/ibm-plex-sans-hebrew-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 700; font-display: swap; src: url(/lib/plex/ibm-plex-sans-hebrew-hebrew-700-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 700; font-display: swap; src: url(/lib/plex/ibm-plex-sans-hebrew-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --plaster: #FAFAF7;
  --white: #FFFFFF;
  --ink: #18202C;
  --ink-2: #4A5565;
  --muted: #5F6977;   /* 4.5:1 or more on white, the page background and the light tints (WCAG AA) */
  --line: #DCE0E6;
  --sea: #23449B;
  --sea-dark: #1A3478;
  --sea-tint: #E8EDF8;
  --bougain: #B8326A;
  --bougain-tint: #FBEAF1;
  --olive: #5F7550;
  --olive-tint: #EDF2E8;
  --danger: #B3261E;

  --display: "IBM Plex Sans Hebrew", "Heebo", system-ui, sans-serif;
  --body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;   /* large surfaces only (map, hero search) */
  --wrap: 1240px;
}

* { box-sizing: border-box; }
/* The hidden attribute always wins (otherwise .btn's display:inline-flex shows hidden buttons) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--plaster); }
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h3 { font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-first { color: var(--sea); }
.footer-brand { font: 700 1.25rem var(--display); color: var(--ink); }
.footer-slogan { font: 600 1rem var(--display); color: var(--ink); margin: 6px 0 4px; }
.hero-sub { color: var(--ink-2); font-size: 1.08rem; margin: -4px 0 16px; }
@media (max-width: 640px) { .hero-sub { display: none; } }   /* phones: the search box comes first */
.join-slogan { font: 600 1rem var(--display); color: var(--sea); margin: 0 0 10px; }
.fx-slogan { font: 600 1.1rem var(--display); color: var(--fx-gold); margin: -6px 0 14px; }
.app-slogan { font: 600 1rem var(--display); color: var(--sea); margin: 0 0 4px; }
.menu { display: flex; align-items: center; gap: 24px; flex: 1; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { color: var(--ink-2); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--sea-tint); color: var(--sea-dark); text-decoration: none; }
.user-nav { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; padding: 6px; color: var(--ink); cursor: pointer; }
@media (max-width: 1020px) {
  .nav-toggle { display: block; margin-inline-start: auto; }
  .menu { display: none; }
  .site-header.open .menu { display: flex; flex-direction: column; align-items: stretch; gap: 12px; position: absolute; top: 64px; inset-inline: 0;
    background: var(--white); padding: 12px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(24,32,44,.08); max-height: calc(100vh - 64px); overflow-y: auto; }
  .site-header.open .main-nav { flex-direction: column; }
  .site-header.open .user-nav { flex-direction: column; align-items: stretch; }
  .site-header.open .user-nav .btn, .site-header.open .user-nav form .btn { width: 100%; }
}

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 500 1rem var(--body); padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-dark); }
.btn-accent { background: var(--bougain); color: #fff; }
.btn-accent:hover { background: #9C2858; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { padding: 6px 12px; font-size: .9rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: #EBC6C3; }
label { display: block; font-weight: 500; margin-bottom: 4px; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-tint); }
textarea { min-height: 140px; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--sea); }
.field { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field-validation-error, .validation-summary-errors { color: var(--danger); font-size: .9rem; }
.validation-summary-errors ul { margin: 0; padding-inline-start: 18px; }
.notice { padding: 12px 16px; border-radius: var(--r-sm); background: var(--sea-tint); color: var(--sea-dark); margin-bottom: 16px; }
.notice.ok { background: var(--olive-tint); color: #3D5131; }
.notice.warn { background: var(--bougain-tint); color: #7D1E46; }

/* Search hero (home) */
.search-hero { padding-block: 44px 26px; }   /* top and bottom only: the side margins come from .wrap */
.search-hero h1 { max-width: 16ch; margin-bottom: 18px; }
.ask { display: flex; gap: 0; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 6px; max-width: 860px; }
.ask input { min-width: 0; flex: 1; border: 0; font-size: 1.15rem; padding: 12px 16px; background: transparent; }
.ask input:focus { box-shadow: none; }
.ask .btn { border-radius: calc(var(--r-lg) - 8px); padding: 12px 24px; font-size: 1.05rem; }
.ask-examples { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); }
.ask-examples button { background: none; border: 1px dashed var(--line); border-radius: 999px; padding: 3px 12px; font: inherit; color: var(--ink-2); cursor: pointer; }
@media (max-width: 520px) { .ask .btn { padding: 10px 16px; } .ask input { font-size: 1rem; padding: 10px; } }
.ask-examples button:hover { border-color: var(--sea); color: var(--sea); }
.interpretation { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--sea-tint); color: var(--sea-dark); font-size: .9rem; font-weight: 500; }
.chip.magenta { background: var(--bougain-tint); color: #7D1E46; }
.chip.olive { background: var(--olive-tint); color: #3D5131; }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.filters .f { min-width: 120px; flex: 1 1 120px; }
.filters .f label { font-size: .8rem; color: var(--muted); font-weight: 500; }
.filters .f select, .filters .f input { padding: 8px 10px; }
.filters .f-checks { display: flex; gap: 14px; flex-wrap: wrap; flex: 2 1 260px; padding-bottom: 8px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--white); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { margin: 0; padding: 8px 16px; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.segmented input:checked + label { background: var(--ink); color: #fff; }
.segmented input:focus-visible + label { outline: 3px solid var(--sea); outline-offset: -3px; }

/* Split: list + map */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.split .map-col { position: sticky; top: 80px; }
#map { height: calc(100vh - 110px); min-height: 420px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--sea-tint); }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.results-head h2 { font-size: 1.25rem; margin: 0; }
.view-toggle { display: none; }
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split .map-col { position: static; order: -1; }
  #map { height: 52vh; }
  .split.list-only .map-col { display: none; }
  .view-toggle { display: inline-flex; }
}

/* Price-tag markers */
.price-pin { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 8px; font: 700 12px var(--body); white-space: nowrap; box-shadow: 0 1px 2px rgba(24,32,44,.25); transform: translate(-50%, -100%); display: inline-block; }
.price-pin.rent { border-color: var(--olive); color: #3D5131; }
.price-pin.active, .price-pin:hover { background: var(--ink); color: #fff; z-index: 1000; }
.leaflet-div-icon.pin-wrap { background: none; border: 0; }
.marker-cluster-custom { background: var(--sea); color: #fff; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 13px var(--body); box-shadow: 0 1px 4px rgba(24,32,44,.3); }
.leaflet-container { font-family: var(--body); }
.leaflet-popup-content { margin: 10px 12px; direction: rtl; }

/* Property cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.card:hover { text-decoration: none; border-color: var(--ink-2); }
.card.hl { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea); }
.card .ph { aspect-ratio: 4 / 3; background: var(--sea-tint); position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph .tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 4px; background: var(--white); color: var(--ink); }
.tag.featured { background: var(--bougain); color: #fff; }
.tag.openhouse { background: var(--white); color: var(--bougain); }
.tag.rent { background: var(--olive); color: #fff; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .price { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.card .price small { font-family: var(--body); font-size: .8rem; color: var(--muted); }
.card .facts { display: flex; gap: 12px; color: var(--ink-2); font-size: .92rem; }
.card .facts span + span { border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.card .addr { color: var(--muted); font-size: .9rem; }
.card .by { margin-top: auto; padding-top: 8px; font-size: .84rem; color: var(--muted); }
.inline-banner { grid-column: 1 / -1; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; padding: 7px 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.pager span.cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--white); }

/* Details page */
.crumbs { font-size: .9rem; color: var(--muted); margin: 18px 0 10px; }
/* Property gallery: native swipe (scroll-snap) on touch, arrows / thumbnails / keyboard on desktop */
.gallery { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--sea-tint); }
.gallery-track { display: flex; height: min(56vw, 520px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { box-shadow: inset 0 0 0 3px var(--sea); }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.gallery-nav, .gallery-full { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 10px rgba(24,32,44,.18); cursor: pointer; }
.gallery-nav { top: 50%; width: 44px; height: 44px; transform: translateY(-50%); }
.gallery-nav.prev { inset-inline-start: 14px; }
.gallery-nav.next { inset-inline-end: 14px; }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }
.gallery-full { top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; }
.gallery-count { position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(24,32,44,.72); color: #fff; font-size: .85rem; direction: ltr; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 92px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--sea-tint); opacity: .65; cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--sea); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery.is-full { position: fixed; inset: 0; z-index: 1000; border-radius: 0; background: #0d1117; }
.gallery.is-full .gallery-track { height: 100vh; height: 100dvh; }
.gallery.is-full .gallery-slide { cursor: default; }
.gallery.is-full .gallery-slide img { object-fit: contain; }
body.gallery-open { overflow: hidden; }
@media (hover: none) { .gallery-nav { display: none; } .gallery.is-full .gallery-nav { display: grid; } }
.listing-video { display: block; width: 100%; max-height: 520px; background: #000; border-radius: var(--r-md); }
@media (max-width: 720px) { .gallery-track { height: auto; aspect-ratio: 4 / 3; } .gallery-thumbs button { flex-basis: 64px; height: 46px; } }
.details { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; margin: 28px 0 60px; }
@media (max-width: 980px) { .details { grid-template-columns: 1fr; } }
.headline-price { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; margin: 6px 0 12px; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); margin: 18px 0 26px; }
.keyfacts div { padding: 14px 16px; }
.keyfacts div + div { border-inline-start: 1px solid var(--line); }
.keyfacts b { display: block; font-size: 1.3rem; font-family: var(--display); font-weight: 700; }
.keyfacts span { color: var(--muted); font-size: .85rem; }
@media (max-width: 560px) { .keyfacts { grid-template-columns: 1fr 1fr; } .keyfacts div:nth-child(3) { border-inline-start: 0; } .keyfacts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 18px; padding: 0; list-style: none; margin: 0 0 26px; }
.features li { display: flex; gap: 8px; align-items: center; }
.features li.no { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.features li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); flex: none; }
.features li.no::before { background: var(--line); }
.desc { white-space: pre-line; }
.ai-note { font-size: .82rem; color: var(--muted); }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-bottom: 18px; }
.side-box h3 { margin-bottom: 12px; }
.advertiser { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.advertiser img { width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.event-box { border-inline-start: 4px solid var(--bougain); background: var(--bougain-tint); padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 18px; }
.mini-map { height: 260px; border-radius: var(--r-md); border: 1px solid var(--line); }

/* Rating */
.score { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--display); font-weight: 700; }
.score b { font-size: 1.6rem; font-weight: 700; color: var(--sea-dark); }
.score span { color: var(--muted); font-family: var(--body); font-size: .85rem; }
.score-bar { display: flex; gap: 3px; margin-top: 4px; }
.score-bar i { width: 14px; height: 6px; border-radius: 2px; background: var(--line); }
.score-bar i.on { background: var(--sea); }
.verified { color: var(--olive); font-weight: 700; font-size: .85rem; }

/* Business profile */
.pro-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 34px 0 26px; }
.pro-hero .wrap { display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: center; }
.pro-hero .logo { width: 112px; height: 112px; border-radius: 24px; border: 1px solid var(--line); object-fit: cover; background: var(--sea-tint); }
.pro-hero .actions { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .pro-hero .wrap { grid-template-columns: 76px 1fr; } .pro-hero .logo { width: 76px; height: 76px; border-radius: 16px; } .pro-hero .actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }
.pro-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding: 30px 0 60px; }
@media (max-width: 980px) { .pro-body { grid-template-columns: 1fr; } }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review .top { display: flex; justify-content: space-between; gap: 10px; }
.review .reply { margin-top: 8px; padding: 8px 12px; background: var(--plaster); border-inline-start: 3px solid var(--sea); font-size: .92rem; }
.rating-input { display: flex; gap: 4px; flex-wrap: wrap; direction: ltr; justify-content: flex-end; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0; cursor: pointer; background: var(--white); }
.rating-input input:checked + label { background: var(--sea); color: #fff; border-color: var(--sea); }
.rating-input input:focus-visible + label { outline: 3px solid var(--sea); outline-offset: 1px; }
.pro-list { display: grid; gap: 12px; }
.pro-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; color: inherit; }
.pro-row:hover { text-decoration: none; border-color: var(--ink-2); }
.pro-row img { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a:hover { text-decoration: none; border-color: var(--ink-2); }

/* Landing (join) */
.join-hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.join-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.join-hero .lead { font-size: 1.2rem; color: var(--ink-2); }
@media (max-width: 900px) { .join-hero { grid-template-columns: 1fr; padding-top: 36px; } }
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.compare th, .compare td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.compare th { background: var(--plaster); font-weight: 700; }
.compare td.yes { color: var(--olive); font-weight: 700; }
.compare td.no { color: var(--muted); }
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; padding-top: 16px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--sea); display: block; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.section { padding: 48px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.usp h3 { margin-bottom: 6px; }
@media (max-width: 760px) { .usp { grid-template-columns: 1fr; } }
.signup-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 26px; }

/* Dashboard / admin */
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; padding: 26px 0 60px; }
.dash nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; align-self: start; }
.dash nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); }
.dash nav a.on, .dash nav a:hover { background: var(--sea-tint); color: var(--sea-dark); text-decoration: none; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .dash nav { flex-direction: row; flex-wrap: wrap; position: static; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-bottom: 22px; }
.panel h2 { font-size: 1.3rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); margin-bottom: 22px; }
.stats div { padding: 16px 18px; }
.stats div + div { border-inline-start: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.8rem; }
.stats span { color: var(--muted); font-size: .88rem; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
table.grid { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.grid th, table.grid td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
table.grid th { color: var(--muted); font-weight: 500; font-size: .85rem; }
.table-scroll { overflow-x: auto; }
.status { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--plaster); border: 1px solid var(--line); }
.status.Active, .status.Published, .status.Verified, .status.Sent { background: var(--olive-tint); color: #3D5131; border-color: transparent; }
.status.Pending, .status.PendingPayment, .status.Reported, .status.Draft { background: var(--bougain-tint); color: #7D1E46; border-color: transparent; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; cursor: pointer; transition: background .15s; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; top: 3px; inset-inline-start: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--sea); }
.switch input:checked + span::after { transform: translateX(-20px); }
[dir=ltr] .switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }

/* Auth */
.auth { max-width: 460px; margin: 48px auto 80px; }
.auth .panel { padding: 28px; }
.type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.type-picker input { position: absolute; opacity: 0; }
.type-picker label { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; margin: 0; font-weight: 500; background: var(--white); }
.type-picker input:checked + label { border-color: var(--sea); background: var(--sea-tint); color: var(--sea-dark); box-shadow: inset 0 0 0 1px var(--sea); }
.type-picker input:focus-visible + label { outline: 3px solid var(--sea); }

/* Banner */
.ad { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--white); }
.ad::after { content: "מודעה"; position: absolute; top: 6px; inset-inline-end: 8px; font-size: .7rem; background: rgba(255,255,255,.85); padding: 1px 6px; border-radius: 3px; color: var(--muted); }

/* Import steps */
.import-steps { list-style: none; counter-reset: st; display: flex; gap: 8px; padding: 0; margin: 18px 0; flex-wrap: wrap; }
.import-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.import-steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: var(--ink-2); font-size: .85rem; font-weight: 700; }
.import-steps li.on { border-color: var(--sea); color: var(--sea-dark); }
.import-steps li.on::before { background: var(--sea); color: #fff; }
.import-steps li.done { color: var(--olive); }
.import-steps li.done::before { content: "✓"; background: var(--olive); color: #fff; }

/* Advertiser slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.slot { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.slot h3 { margin: 0; }
.slot p { margin: 0; color: var(--ink-2); }
.slot-price { font-family: var(--display); font-weight: 700; font-size: 1.6rem; margin-top: auto; padding-top: 8px; }
.slot-price span { font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--muted); }
.ad-cta { display: block; text-align: end; font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* Join channels */
.join-channels { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.join-channels h3 { margin-bottom: 4px; }
.jc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.jc { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); border-inline-start: 4px solid var(--sea); background: var(--white); }
.jc:hover { text-decoration: none; border-color: var(--ink-2); }
.jc.telegram { border-inline-start-color: #2A9FD8; }
.jc.whatsapp { border-inline-start-color: #2BAA5E; }
.jc.facebook { border-inline-start-color: #3D5A98; }
.jc-kind { font-size: .78rem; font-weight: 700; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--white); padding: 36px 0 26px; margin-top: 40px; font-size: .92rem; color: var(--ink-2); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.site-footer h4 { margin: 0 0 8px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* Account dropdown */
.account { position: relative; }
.account summary { list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 210px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; box-shadow: 0 10px 24px rgba(24,32,44,.12); display: flex; flex-direction: column; z-index: 1100; }
.account-menu a, .account-menu button { display: block; text-align: start; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; width: 100%; }
.account-menu a:hover, .account-menu button:hover { background: var(--sea-tint); text-decoration: none; }
@media (max-width: 1020px) { .account-menu { position: static; box-shadow: none; border: 0; padding: 4px 0 0; } .account[open] summary { width: 100%; } }

/* Mobile safety nets */
@media (max-width: 760px) {
  .banner-row { grid-template-columns: 1fr !important; }
  table.grid, table.compare { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  table.grid td.small, table.grid td .small { white-space: normal; min-width: 160px; }
  .panel { padding: 16px; }
  .wrap { padding-inline: 14px; }
  h1 { word-break: break-word; }
  .dash > div { min-width: 0; }
  .results-head { flex-wrap: wrap; }
  .toggle-row { flex-wrap: wrap; }
  .toggle-row input[type=text] { max-width: 100% !important; }
  .side-box { padding: 16px; }
}
input, select, textarea { max-width: 100%; }

/* Admin mailing editor */
.mail-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

/* Footer: popular searches (internal links to landing pages) */
.popular-searches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.popular-searches h4 { margin: 0 0 8px; font-size: .9rem; }
.popular-searches ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .86rem; }

/* SEO landing pages */
.landing-about { margin: 16px 0 0; }
.landing-intro { max-width: 860px; color: var(--ink-2); line-height: 1.7; margin: 0; }
.landing-more { background: none; border: 0; padding: 0; color: var(--sea-dark); font: inherit; font-weight: 700; cursor: pointer; }
.landing-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.landing-facts li { display: grid; gap: 1px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; font-size: .85rem; color: var(--ink-2); }
.landing-facts strong { font-size: 1.05rem; color: var(--ink); }
.landing-facts .lf-rooms { font-weight: 700; color: var(--ink); }
.landing-facts .lf-basis { font-size: .78rem; color: var(--muted); }
@media (max-width: 640px) {
  .landing-about { margin-top: 12px; }
  .landing-intro:not(.open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .landing-intro { font-size: .92rem; line-height: 1.6; }
  .landing-facts { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .landing-facts::-webkit-scrollbar { display: none; }
  .landing-facts li { flex: 0 0 auto; scroll-snap-align: start; padding: 6px 10px; }
  .landing-facts strong { font-size: .95rem; }
}
.related-searches { margin: 34px 0 10px; }
.related-searches h2 { font-size: 1.25rem; margin-bottom: 10px; }
.related-searches ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.related-searches a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .9rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--muted); }
.notice.closed { background: var(--bougain-tint); border-color: transparent; }

/* Private / broker / developer */
.tag.adv-private { background: var(--sea); color: #fff; }
.tag.adv-broker { background: var(--white); color: var(--ink-2); border: 1px solid var(--line); }
.tag.adv-developer { background: var(--white); color: var(--olive); border: 1px solid var(--line); }
.muted .tag, .also-by .tag, td .tag { font-size: .72rem; padding: 1px 7px; vertical-align: middle; }
.card .by .more-adv { color: var(--sea); font-weight: 500; }

/* Listing lifecycle and reports */
.owner-actions .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-actions .actions form { margin: 0; }
.owner-actions summary, .report-box summary { cursor: pointer; color: var(--ink-2); }
.also-by ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.report-box form { display: inline-block; margin: 10px 6px 0 0; }
.dup-warning ul { margin: 6px 0 12px; padding-inline-start: 18px; }
.dup-warning li { margin-bottom: 6px; }
.status.Withdrawn, .status.Expired, .status.Closed { background: var(--plaster); color: var(--ink-2); }
tbody.dup-group { border-top: 3px solid var(--line); }

/* Admin viewing the site as a user */
.impersonation-bar { background: var(--bougain); color: #fff; font-size: .92rem; position: relative; z-index: 1001; }
.impersonation-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 8px; }
.impersonation-bar form { margin: 0; }
.impersonation-bar .btn { background: #fff; color: var(--ink); border: 0; }

/* Price history */
.price-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.trend { font-weight: 600; font-size: .92rem; }
.trend.down, .price-history .down { color: var(--olive); }
.trend.up, .price-history .up { color: var(--bougain); }
.tag.price-drop { background: var(--olive); color: #fff; }
.price-history { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--white); }
.ph-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.ph-summary span { display: block; font-size: .82rem; color: var(--muted); }
.ph-summary b { font-size: 1.05rem; }
.ph-chart { width: 100%; height: 80px; margin: 14px 0 6px; color: var(--sea); }
.ph-list { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92rem; }
.ph-list th, .ph-list td { text-align: start; padding: 6px 8px; border-top: 1px solid var(--line); }
.ph-list th { color: var(--muted); font-weight: 500; }

/* Compare: toggle on cards, bottom bar, compare page */
.card-wrap { position: relative; display: flex; }
.card-wrap > .card { flex: 1; }
.compare-toggle.on-card { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink); font-size: 1rem; cursor: pointer; line-height: 1; }
.compare-toggle.on-card:hover { border-color: var(--ink-2); }
.compare-toggle.on-card.on { background: var(--sea); color: #fff; border-color: var(--sea); }
.compare-toggle.on:not(.on-card) { border-color: var(--sea); color: var(--sea); }
.compare-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 900; background: var(--ink); color: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
.compare-bar .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
.compare-bar .cb-text { font-weight: 600; }
.compare-bar .cb-note { color: #FFD9E6; font-size: .9rem; flex: 1; }
.compare-bar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.compare-bar .cb-go.disabled { opacity: .55; }
.compare-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 20px; }
.hl-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: var(--sea-tint); }
.hl-card span { display: block; font-size: .82rem; color: var(--ink-2); }
.compare-scroll { overflow-x: auto; }
.compare-table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: .94rem; }
.compare-table th, .compare-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; min-width: 170px; }
.compare-table .rowhead { position: sticky; inset-inline-start: 0; background: var(--white); z-index: 1; min-width: 130px; color: var(--ink-2); font-weight: 500; }
.compare-table thead th { vertical-align: bottom; }
.compare-table .ct-head { display: flex; flex-direction: column; gap: 6px; position: relative; }
.compare-table .ct-head img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm, 6px); }
.compare-table .ct-num { position: absolute; top: 6px; inset-inline-start: 6px; background: var(--ink); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-weight: 700; }
.compare-table .ct-title { font-weight: 600; color: var(--ink); }
.compare-table .ct-group th { background: var(--plaster); font-weight: 700; position: static; }
.compare-table td.best { background: #EAF4E4; font-weight: 700; }
.compare-table td.no { color: var(--muted); }
.compare-table .hint { cursor: help; color: var(--muted); }
.compare-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sea); color: #fff; font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
body:has(.compare-bar:not([hidden])) footer { padding-bottom: 70px; }

/* Alerts page */
.alert-prefs { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.alert-prefs legend { width: 100%; margin-bottom: 4px; }
.alert-item .alert-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.alert-settings { margin-top: 10px; }
.alert-settings summary { cursor: pointer; color: var(--ink-2); }
.alert-prefs-form { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 10px; }
.saved-list { display: grid; gap: 10px; }
.saved-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; }
.saved-item img { width: 110px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); display: block; }
.saved-item.off { opacity: .7; }
.fav-toggle.on { color: var(--bougain); border-color: var(--bougain); }

/* Brokerage office: team, listings filter, leads */
.office-filter { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 16px 0 0; }
.office-filter select { width: auto; min-width: 180px; }
.team-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.team-actions form { margin: 0; }
.team-actions details summary { list-style: none; }
.team-actions .remove-form { display: grid; gap: 6px; margin-top: 8px; min-width: 220px; }
/* Leads list */
.leads-grid tr.lead-new td { font-weight: 700; }
.leads-grid tr.lead-overdue td { background: var(--bougain-tint); }
.leads-grid .lead-msg { max-width: 280px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 400; }
.leads-grid .chip { font-size: .78rem; padding: 2px 9px; }
.tabs a .badge-count { margin-inline-start: 6px; }
.lead-due { font-size: .85rem; color: var(--ink-2); margin-top: 3px; }
.lead-due.overdue { color: #7D1E46; font-weight: 700; }

/* Lead page */
.lead-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.lead-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-message { margin: 0 0 20px; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--sea); border-radius: var(--r-sm); white-space: pre-wrap; }
.lead-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .lead-cols { grid-template-columns: 1fr; } }
.lead-status-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lead-box { display: grid; gap: 7px; align-content: start; }
.lead-status-forms .lead-box { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; }
.lead-box input[type=text], .lead-box textarea, .lead-box select, .lead-box input[type=date], .lead-box input[type=time], .lead-box input[type=datetime-local] { padding: 7px 9px; font-size: .92rem; width: 100%; }
.lead-box label.small { display: grid; gap: 3px; }
.lead-box label.small:has(input[type=checkbox]) { display: flex; gap: 6px; align-items: center; }
.lead-inline { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.lead-inline > * { flex: 1 1 auto; }
.lead-inline > .btn { flex: 0 0 auto; }
.lead-visit { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-inline-start: 4px solid var(--olive); border-radius: var(--r-sm); margin-bottom: 10px; }
.lead-visit-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.lead-visit-actions summary { list-style: none; cursor: pointer; }
.lead-visit-actions summary::-webkit-details-marker { display: none; }
.lead-new-visit { margin-top: 12px; }
.lead-new-visit > summary { cursor: pointer; margin-bottom: 10px; }
.lead-past { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.lead-cands { display: grid; gap: 10px; }
.lead-cand { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.lead-cand.on { border-color: var(--bougain); background: #FFF9FB; }
.lead-cand img, .lead-cand-noimg { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--sea-tint); }
.lead-cand-body { display: grid; gap: 2px; min-width: 0; }
.lead-cand-actions { display: grid; gap: 6px; justify-items: end; }
.lead-reasons { color: #3D5131; }
@media (max-width: 560px) { .lead-cand { grid-template-columns: 72px 1fr; } .lead-cand img, .lead-cand-noimg { width: 72px; height: 56px; } .lead-cand-actions { grid-column: 1 / -1; display: flex; justify-content: flex-start; } }
.lead-timeline { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.lead-timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: .92rem; }
.lead-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--sea-tint); display: grid; place-items: center; font-size: .8rem; }
.lead-timeline li.k1 .lead-ico { background: var(--bougain-tint); }
.lead-timeline li.k2 .lead-ico, .lead-timeline li.k3 .lead-ico { background: var(--olive-tint); }
.change-history summary { cursor: pointer; color: var(--ink-2); }
.office-quota summary { cursor: pointer; color: var(--sea); }
.office-quota form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.office-quota input[type=number] { width: 90px; padding: 4px 6px; }

/* Service requests */
.badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 6px; border-radius: 10px; background: var(--bougain); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; }
.ticket-list { display: grid; gap: 8px; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; color: inherit; }
.ticket-row:hover { text-decoration: none; border-color: var(--ink-2); }
.ticket-row.unread, tr.unread td { background: var(--sea-tint); }
.ticket-meta { display: flex; align-items: center; gap: 8px; }
.tag.ticket-new { background: var(--bougain); color: #fff; margin-inline-start: 6px; }
.status.ticket-Open { background: var(--sea-tint); color: var(--sea-dark); }
.status.ticket-InProgress { background: #FFF4D6; color: #7A5B00; }
.status.ticket-WaitingForCustomer { background: var(--bougain-tint); color: var(--bougain); }
.status.ticket-Closed { background: var(--plaster); color: var(--muted); }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 10px 0 16px; }
.thread { display: grid; gap: 12px; margin-bottom: 18px; }
.msg { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: var(--white); }
.msg.from-support { background: var(--sea-tint); border-color: #C9D4EE; }
.msg.internal { background: #FFF8E6; border-style: dashed; }
.msg-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.msg-body { white-space: pre-wrap; }
.reply-options { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 10px 0; }
.reply-options select { width: auto; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .support-layout { grid-template-columns: 1fr; } }
.side-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.side-form select { width: auto; flex: 1; }
.support-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.support-filter input[type=search] { flex: 1; min-width: 200px; }
.support-filter select { width: auto; }
.prio-High, .prio-Urgent { color: var(--bougain); font-weight: 700; }
.plain-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }

/* Promoted strip above the results, and the publish / bump line on cards */
.featured-strip { border: 1px solid var(--bougain-tint); background: #FFF9FB; border-radius: var(--r-md); padding: 12px; margin-bottom: 18px; }
.featured-strip-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.featured-strip-head strong { color: #7D1E46; }
.card .when { font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
.card .when .bumped { color: var(--sea-dark); }

/* Listing plans and self-serve promotion */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-current-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.plan-name { font-size: 1.25rem; font-weight: 700; }
.plan-price { font-size: 1.5rem; font-weight: 700; color: var(--sea-dark); }
.plan-price small { font-size: .85rem; font-weight: 400; color: var(--ink-2); }
.plan-bar { height: 10px; background: var(--sea-tint); border-radius: 5px; overflow: hidden; margin-top: 6px; }
.plan-bar i { display: block; height: 100%; background: var(--sea); }
.plan-bar i.near { background: #C9A227; }
.plan-bar i.full { background: var(--bougain); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 12px; }
.plan-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 16px; display: grid; gap: 6px; align-content: start; }
.plan-card.on { border: 2px solid var(--sea); }
.plan-tag { position: absolute; top: -11px; inset-inline-start: 14px; background: var(--sea); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan-tag.gift { background: var(--olive); }
.plan-choose { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.plan-choose select { width: auto; padding: 6px 8px; }
.promo-listing { display: flex; gap: 14px; align-items: center; }
.promo-listing img { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; }
.promo-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.promo-option { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 16px; display: grid; gap: 6px; }
.promo-option.best { border: 2px solid var(--olive); }
.plan-edit.off { opacity: .7; }
.plan-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.plan-edit-grid label, .plan-edit > label { display: grid; gap: 3px; }

/* ============ Founders landing (/founders) ============ */
.fx { --fx-navy: #11244F; --fx-navy-2: #183168; --fx-gold: #E8B04B; background: var(--plaster); }
.fx .wrap { max-width: 1160px; }
.fx-ico { flex: none; }
.fx-h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .35em; }
.fx-sub { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 1.6em; }
.fx-sub.light, .fx-eyebrow.light { color: #C9D4EE; }
.fx-section { padding: 84px 0; }
.fx-alt { background: var(--white); border-block: 1px solid var(--line); }
.fx-narrow { max-width: 820px; }
.fx-fine { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.fx-eyebrow { display: inline-block; font: 600 .85rem var(--display); letter-spacing: .02em; color: var(--fx-gold); margin-bottom: 14px; }

.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1.05rem var(--display); padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, background .15s ease; }
.fx-btn:hover { transform: translateY(-1px); }
.fx-btn-main { background: var(--bougain); color: #fff; }
.fx-btn-main:hover { background: #9C2858; }
.fx-btn-line { border-color: rgba(255,255,255,.45); color: #fff; }
.fx-btn-line:hover { border-color: #fff; }
.fx-btn-line.dark { border-color: var(--line); color: var(--ink); }
.fx-full { width: 100%; }

/* hero */
.fx-hero { position: relative; overflow: hidden; color: #fff; background: var(--fx-navy); padding: 72px 0 88px; }
.fx-hero::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(600px 380px at 85% 10%, rgba(184,50,106,.38), transparent 70%),
    radial-gradient(520px 420px at 5% 95%, rgba(35,68,155,.7), transparent 70%); pointer-events: none; }
.fx-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.fx-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.08; margin-bottom: .4em; }
.fx-hero h1 span { display: block; color: #C9D4EE; font-weight: 600; font-size: .62em; margin-top: .35em; line-height: 1.25; }
.fx-lead { font-size: 1.2rem; color: #DCE3F4; max-width: 56ch; }
.fx-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.fx-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #DCE3F4; }
.fx-ticks li { display: flex; align-items: center; gap: 8px; }
.fx-ticks .fx-ico { color: var(--fx-gold); }

.fx-seats { background: var(--white); color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 30px 60px -20px rgba(5,14,40,.55); }
.fx-seats-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.fx-seats-title { font: 700 1.15rem var(--display); }
.fx-seats-free { background: var(--olive-tint); color: #3D5131; border-radius: 12px; padding: 6px 12px; text-align: center; line-height: 1; }
.fx-seats-free b { font: 700 1.6rem var(--display); display: block; }
.fx-seats-free small { font-size: .75rem; }
.fx-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-bottom: 16px; }
.fx-dots span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #C3CBDA; background: var(--white); }
.fx-dots span.taken { border: 0; background: var(--sea); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.fx-seats-line { font: 700 1.15rem var(--display); color: var(--sea-dark); }
.fx-seats-line.hot { color: var(--bougain); }
.fx-seats-x2 { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; background: var(--bougain-tint); color: #7D1E46; border-radius: 10px; font-size: .92rem; }
.fx-seats-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* founders perks */
.fx-band { padding: 64px 0; background: linear-gradient(180deg, var(--sea-tint), var(--plaster)); }
.fx-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.fx-perk { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.fx-perk-ico, .fx-feature-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sea-tint); color: var(--sea); margin-bottom: 14px; }
.fx-perk:nth-child(2) .fx-perk-ico { background: var(--bougain-tint); color: var(--bougain); }
.fx-perk:nth-child(3) .fx-perk-ico { background: var(--olive-tint); color: var(--olive); }
.fx-perk p, .fx-feature p { color: var(--ink-2); margin: 0; }

/* features */
.fx-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.fx-feature { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: border-color .15s ease, transform .15s ease; }
.fx-feature:hover { border-color: #B9C5E2; transform: translateY(-2px); }
.fx-feature h3 { font-size: 1.12rem; margin-bottom: .35em; }

.fx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.fx-flow { list-style: none; counter-reset: fx; padding: 0; margin: 0; display: grid; gap: 14px; }
.fx-flow li { counter-increment: fx; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; background: var(--plaster); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fx-flow li::before { content: counter(fx); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--sea); color: #fff; display: grid; place-items: center; font: 700 1.1rem var(--display); }
.fx-flow b { font-family: var(--display); }
.fx-flow span { color: var(--ink-2); }
.fx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fx-list li { display: flex; gap: 10px; align-items: flex-start; }
.fx-list .fx-ico { color: var(--olive); margin-top: 3px; }

.fx-report { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 20px 40px -24px rgba(17,36,79,.35); }
.fx-report-head { display: flex; justify-content: space-between; align-items: baseline; font: 700 1.05rem var(--display); margin-bottom: 14px; }
.fx-report-head small { font: 400 .78rem var(--body); color: var(--muted); }
.fx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fx-kpis div { background: var(--sea-tint); border-radius: 12px; padding: 12px 8px; text-align: center; }
.fx-kpis b { display: block; font: 700 1.35rem var(--display); color: var(--sea-dark); }
.fx-kpis span { font-size: .78rem; color: var(--ink-2); }
.fx-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 18px; }
.fx-bars i { flex: 1; background: linear-gradient(180deg, var(--sea), #5577C8); border-radius: 6px 6px 0 0; }

.fx-dark { background: var(--fx-navy-2); color: #fff; }
.fx-glove { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fx-glove li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px 16px; }
.fx-glove .fx-ico { color: var(--fx-gold); }

/* plans */
.fx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: stretch; }
.fx-plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.fx-plan.pop { border: 2px solid var(--sea); box-shadow: 0 24px 48px -28px rgba(35,68,155,.55); }
.fx-plan-tag { position: absolute; top: -13px; inset-inline-start: 18px; background: var(--sea); color: #fff; font: 600 .78rem var(--display); padding: 4px 12px; border-radius: 999px; }
.fx-plan-name { font: 700 1.2rem var(--display); }
.fx-plan-price { font: 700 2.1rem var(--display); color: var(--sea-dark); }
.fx-plan-price small { font: 400 .9rem var(--body); color: var(--muted); }
.fx-plan-cap { font-weight: 500; }
.fx-plan-gift { display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; background: var(--olive-tint); color: #3D5131; font-weight: 600; font-size: .9rem; padding: 4px 10px; border-radius: 999px; }
.fx-plan-note { font-size: .78rem; color: var(--muted); }
.fx-plan ul { list-style: none; padding: 12px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }

/* transparency */
.fx-growth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; }
.fx-now, .fx-goal { background: var(--plaster); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.fx-goal { background: var(--fx-navy); color: #fff; border: 0; }
.fx-goal .fx-fine { color: #AFC0E6; }
.fx-goal .fx-list .fx-ico { color: var(--fx-gold); }
.fx-now-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fx-now-grid b { display: block; font: 700 1.6rem var(--display); color: var(--sea-dark); }
.fx-now-grid span { font-size: .82rem; color: var(--ink-2); }
.fx-goal-num { font: 700 clamp(2.4rem, 5vw, 3.4rem) var(--display); color: var(--fx-gold); line-height: 1; }
.fx-goal-cap { color: #DCE3F4; margin: 6px 0 16px; }
.fx-disclaimer { margin-top: 20px; display: grid; gap: 4px; background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--olive); border-radius: 0; padding: 16px 18px; color: var(--ink-2); }
.fx-disclaimer strong { color: var(--ink); }

.fx-faq { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.fx-faq summary { cursor: pointer; font: 600 1.05rem var(--display); padding: 14px 0; list-style: none; }
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after { content: "+"; float: left; color: var(--sea); font-size: 1.3rem; line-height: 1; }
.fx-faq[open] summary::after { content: "−"; }
.fx-faq p { color: var(--ink-2); margin: 0 0 14px; }

/* join */
.fx-join { background: linear-gradient(160deg, var(--fx-navy) 0%, var(--fx-navy-2) 60%, #2A2F6E 100%); color: #fff; }
.fx-join .fx-sub { color: #DCE3F4; }
.fx-join .fx-list .fx-ico { color: var(--fx-gold); }
.fx-join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.fx-form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 28px; display: grid; gap: 12px; box-shadow: 0 30px 60px -20px rgba(5,14,40,.55); }
.fx-form form { display: grid; gap: 12px; }
.fx-form label { display: grid; gap: 4px; font-weight: 500; font-size: .92rem; }
.fx-form input:not([type=checkbox]) { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; }
.fx-form input:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px var(--sea-tint); }
.fx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fx-check { display: flex !important; grid-template-columns: none; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.fx-check input { margin-top: 4px; width: 18px; height: 18px; }
.fx-form .field-validation-error, .fx-errors { color: var(--danger); font-size: .85rem; font-weight: 400; }
.fx-errors ul { margin: 0; padding-inline-start: 18px; }

.fx-terms { padding: 56px 0 96px; }
.fx-terms h2 { font-size: 1.3rem; }
.fx-terms ol { color: var(--ink-2); font-size: .92rem; display: grid; gap: 6px; padding-inline-start: 20px; }

.fx-sticky { display: none; }
@media (max-width: 900px) {
  .fx-hero-grid, .fx-split, .fx-join-grid, .fx-growth { grid-template-columns: 1fr; gap: 28px; }
  .fx-section { padding: 60px 0; }
  .fx-kpis { grid-template-columns: repeat(2, 1fr); }
  .fx-sticky { position: sticky; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(17,36,79,.12); font: 600 .92rem var(--display); color: var(--bougain); }
  .fx-sticky .fx-btn { padding: 10px 18px; font-size: .95rem; }
}
@media (max-width: 560px) {
  .fx-row, .fx-now-grid { grid-template-columns: 1fr; }
  .fx-hero { padding: 48px 0 64px; }
}

/* Founders member page */
.fd-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.fd-badge { width: 76px; height: 76px; border-radius: 50%; background: var(--sea); color: #fff; display: grid; place-items: center; align-content: center; line-height: 1; flex: none; }
.fd-badge small { font-size: .7rem; opacity: .85; }
.fd-badge b { font: 700 1.9rem var(--display); }
.fd-steps { padding-inline-start: 20px; color: var(--ink-2); display: grid; gap: 4px; }
.fd-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-links a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }

/* Terms and privacy */
.legal { max-width: 860px; padding: 30px 20px 70px; line-height: 1.75; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; scroll-margin-top: 80px; }
.legal section { scroll-margin-top: 80px; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; margin: 18px 0; }
.legal-toc ol { columns: 2; column-gap: 28px; margin: 0; padding-inline-start: 20px; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-table td, .legal-table th { vertical-align: top; font-size: .92rem; }
.footer-legal a { color: inherit; }

/* My listings: small photo per row (loaded for the current page only) */
.mine-thumb { width: 72px; padding-inline-end: 0; }
.mine-thumb img, .mine-noimg { display: block; width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--sea-tint); }

/* Searcher -> publisher upgrade */
.upgrade-options { border: 0; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.upgrade-card { position: relative; display: grid; gap: 6px; align-content: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; cursor: pointer; }
.upgrade-card:has(input:checked) { border: 2px solid var(--sea); }
.upgrade-card input { position: absolute; top: 12px; inset-inline-end: 12px; }
.upgrade-icon { font-size: 1.6rem; }
.upgrade-business { margin-bottom: 14px; }

/* Share bar on listing and business pages */
.share-bar { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.share-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; font: inherit; font-size: .85rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; text-decoration: none; }
.share-btn:hover { border-color: var(--sea); color: var(--sea-dark); }
.share-done { color: #3D5131; font-weight: 700; }

/* Phones: less space above the search box, examples in one swipeable row */
@media (max-width: 640px) {
  .search-hero { padding-block: 16px 14px; }
  .search-hero h1 { max-width: none; font-size: 1.45rem; line-height: 1.25; margin-bottom: 10px; }
  .search-hero .crumbs { margin: 4px 0 6px; font-size: .8rem; }
  .ask-examples { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; white-space: nowrap; }
  .ask-examples::-webkit-scrollbar { display: none; }
  .ask-examples button { flex: 0 0 auto; }
}

/* Share row on the business page: its own full-width row under the header (not inside the logo column) */
.pro-hero .share-bar { grid-column: 1 / -1; margin: 4px 0 0; }
.share-btn img { display: block; width: 20px; height: 20px; }

/* Accessibility: "skip to main content" appears on first Tab; visible focus on the search box */
.skip-link { position: absolute; top: -100px; inset-inline-start: 12px; z-index: 1000; background: var(--sea); color: #fff; padding: 12px 16px; display: inline-flex; align-items: center; border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0; }
main:focus { outline: none; }
.ask:focus-within { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-tint); }
.landing-facts:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }

/* ============ Phones: touch targets, notch / home-bar safe areas, no sideways scrolling ============ */
/* Minimum touch target: 48px (Android) and 44pt on iPhone (Safari only understands -webkit-touch-callout) */
:root { --tap: 48px; }
@supports (-webkit-touch-callout: none) { :root { --tap: 44px; } }

/* viewport-fit=cover: the page reaches the rounded corners, the notch and the home bar; keep content clear of them */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); overflow-wrap: break-word; }
.site-header, .site-footer, .impersonation-bar {
  margin-left: calc(-1 * env(safe-area-inset-left)); margin-right: calc(-1 * env(safe-area-inset-right));
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.site-header { padding-top: env(safe-area-inset-top); }
.site-footer { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.compare-bar .wrap { padding-bottom: calc(10px + env(safe-area-inset-bottom)); padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
@media (max-width: 900px) { .fx-sticky { padding-bottom: calc(10px + env(safe-area-inset-bottom)); } }
.gallery.is-full .gallery-full { top: calc(12px + env(safe-area-inset-top)); }
.gallery.is-full .gallery-count { bottom: calc(12px + env(safe-area-inset-bottom)); }
.gallery.is-full .gallery-nav.prev { inset-inline-start: calc(14px + env(safe-area-inset-right)); }
.gallery.is-full .gallery-nav.next { inset-inline-end: calc(14px + env(safe-area-inset-left)); }
@supports (height: 100dvh) {
  @media (max-width: 1020px) { .site-header.open .menu { max-height: calc(100dvh - 64px - env(safe-area-inset-top)); } }
}
video, iframe, embed { max-width: 100%; }

/* Swipeable rows on phones: pull them to the screen edge by exactly the page padding (14px under 760px) */
@media (max-width: 640px) {
  .landing-facts, .ask-examples { margin-inline: -14px; padding-inline: 14px; }
}
@media (max-width: 460px) {
  .saved-item { grid-template-columns: 80px minmax(0, 1fr); }
  .saved-item img { width: 80px; }
  .saved-item form { grid-column: 1 / -1; }
  .pro-row { grid-template-columns: 52px minmax(0, 1fr); }
  .pro-row > :last-child:not(:nth-child(2)) { grid-column: 1 / -1; }
  .pro-row img { width: 52px; height: 52px; }
}

/* Touch screens: every button, link-button, menu item and form control at least --tap high (and wide where it is an icon) */
@media (pointer: coarse) {
  .btn, .btn-sm, .fx-btn, .share-btn, .gallery-nav, .gallery-full, .compare-toggle, .nav-toggle,
  .rating-input label, .type-picker label, .segmented label, .check, .ib-close, .landing-more,
  .ask-examples button, .account-menu a, .account-menu button, .leaflet-bar a, .brand, .skip-link { min-height: var(--tap); }
  .gallery-nav, .gallery-full, .compare-toggle.on-card, .nav-toggle, .rating-input label, .ib-close, .leaflet-bar a { min-width: var(--tap); }
  .compare-toggle.on-card { height: var(--tap); }
  .gallery-full, .gallery-nav { width: var(--tap); height: var(--tap); }
  .leaflet-touch .leaflet-bar a { width: var(--tap); height: var(--tap); line-height: var(--tap); }
  .account-menu a, .account-menu button, .type-picker label, .segmented label { display: flex; align-items: center; }
  .switch { min-height: var(--tap); display: flex; align-items: center; }
  .switch span { inset: auto 0; height: 26px; top: 50%; transform: translateY(-50%); }
  /* Links that act as buttons or menu entries (inline links inside sentences are fine as they are) */
  .main-nav a, .dash nav a, .tabs a, .pager a, .pager span, .related-searches a, .fd-links a, .crumbs a,
  .site-footer ul a, .popular-searches a, .footer-legal a, .office-quota summary, table.grid td > a:only-child {
    display: inline-flex; align-items: center; min-height: var(--tap); }
  .pager a, .pager span { justify-content: center; min-width: var(--tap); }
  .site-footer ul, .popular-searches ul { gap: 0; }
  summary:not(.btn) { min-height: var(--tap); padding-block: 12px; }
  .lead-visit-actions summary, .team-actions details summary { padding-block: 0; }
  :where(label):has(> input[type=checkbox], > input[type=radio]):not(.upgrade-card):not(.switch) { min-height: var(--tap); display: flex; align-items: center; gap: 8px; }
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search],
  input[type=date], input[type=time], input[type=datetime-local], select { min-height: var(--tap); }
  /* 16px or more: otherwise the iPhone zooms in when a field is tapped */
  input, select, textarea { font-size: max(16px, 1em); }
  .gallery-thumbs button { height: var(--tap); flex-basis: 66px; }
  /* Map price tags are small; a wider invisible hit area around each one */
  .price-pin { position: relative; }
  .price-pin::after { content: ""; position: absolute; inset: -12px -6px; }
  .ask .btn { min-height: var(--tap); }
}
@media (pointer: coarse) and (max-width: 1020px) { .nav-toggle { display: inline-flex; align-items: center; justify-content: center; } }

/* ============ Installable app ============ */
/* "Add to home screen" banner (phones) */
.install-banner { position: fixed; z-index: 950; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(24,32,44,.12);
  padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.install-banner img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.install-banner .ib-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.install-banner .ib-text span { font-size: .85rem; color: var(--ink-2); }
.install-banner .ib-text strong, .install-banner .ib-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); font-size: 1.1rem; cursor: pointer; border-radius: 50%; }
.ib-close:hover { background: var(--plaster); }
body.has-install-banner .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
body.has-install-banner .compare-bar { bottom: var(--ib-h, 74px); }
/* The accessibility plugin's button (bottom corner, topmost layer) moves up above the banner instead of covering it */
body.has-install-banner #NagishLiTrigger { bottom: calc(var(--ib-h, 74px) + 10px) !important; transition: bottom .2s ease; }
.is-standalone .install-banner { display: none; }

/* Notifications on this device */
.push-head { display: flex; gap: 12px; align-items: flex-start; }
.push-ico { flex: none; color: var(--sea); margin-top: 2px; }
.push-head h2 { margin-bottom: 4px; }
.push-head p { margin: 0; }
.push-status { font-weight: 500; margin: 12px 0 10px; }
.push-panel[data-state="on"] .push-status { color: #3D5131; }
.push-panel[data-state="denied"] .push-status, .push-panel[data-state="ios"] .push-status { color: #7D1E46; }
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.push-msg { margin: 10px 0 0; min-height: 1.2em; }
.push-msg:empty { display: none; }
.push-panel.compact[data-state="on"] .push-actions, .push-panel.compact[data-state="on"] .push-head p,
.push-panel.compact[data-state="none"] { display: none; }

/* /app: install guides */
.app-page { max-width: 920px; padding-top: 28px; padding-bottom: 60px; }
.app-hero { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 26px; }
.app-hero-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 20px rgba(26,52,120,.25); }
.app-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.app-hero .lead { color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 560px) { .app-hero { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; } .app-hero-icon { width: 64px; height: 64px; border-radius: 15px; } }
.app-section-title { margin: 34px 0 12px; font-size: 1.35rem; }
.guides { display: grid; gap: 12px; }
.guide { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.guide > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 14px 18px; min-height: var(--tap); list-style: none; }
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary::after { content: "+"; margin-inline-start: auto; font-size: 1.4rem; color: var(--sea); line-height: 1; }
.guide[open] > summary::after { content: "−"; }
.guide-title { font: 600 1.15rem var(--display); }
.tag.guide-mine { background: var(--olive-tint); color: #3D5131; }
.guide-body { padding: 0 18px 18px; }
.guide-text-steps { padding-inline-start: 20px; display: grid; gap: 8px; margin: 0 0 14px; }
.ios-tabs [role=tablist] { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; margin: 4px 0 16px; background: var(--plaster); flex-wrap: wrap; }
.ios-tabs [role=tab] { font: 500 .95rem var(--body); border: 0; background: none; color: var(--ink-2); border-radius: 999px; padding: 8px 16px; min-height: var(--tap); cursor: pointer; }
.ios-tabs [role=tab][aria-selected="true"] { background: var(--ink); color: #fff; }
.guide-steps { list-style: none; counter-reset: gs; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.guide-steps li { counter-increment: gs; display: grid; gap: 10px; align-content: start; }
.guide-steps li > div::before { content: counter(gs); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sea); color: #fff; font-weight: 700; font-size: .85rem; margin-inline-end: 8px; vertical-align: 1px; }
.guide-art { width: 100%; max-width: 180px; height: auto; margin: 0 auto; display: block; font-family: var(--body); filter: drop-shadow(0 6px 14px rgba(24,32,44,.12)); }
.guide-art .tap { transform-box: fill-box; transform-origin: center; animation: tap-pulse 1.6s ease-in-out infinite; }
@keyframes tap-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.08); } }
@media (max-width: 460px) { .guide-steps { grid-template-columns: 1fr; } .guide-steps li { grid-template-columns: 120px minmax(0, 1fr); align-items: center; } .guide-art { max-width: 120px; } }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 16px; margin-bottom: 8px; }
.faq > summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq p { color: var(--ink-2); margin: 0 0 14px; }
