
@font-face { font-family: "IRANSans"; src: url("/static/fonts/IRANSansWeb.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("/static/fonts/IRANSansWeb_Medium.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("/static/fonts/IRANSansWeb_Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --gold: #c9a24b;
  --gold-soft: #f7efd9;
  --sky: #e8f0fb;
  --navy: #14274e;
  --navy-dark: #0d1b38;
  --navy-soft: #e9edf5;
  --navy-line: #c9d2e3;
  --ink: #111111;
  --muted: #555c68;
  --line: #e3e6eb;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --card: #ffffff;
  --green: #1d7a50;
  --red: #b23b3b;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(17, 17, 17, .07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "IRANSans", Tahoma, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.85; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 1.65rem; font-weight: 900; }
h2 { font-size: 1.22rem; font-weight: 900; }
h3 { font-size: 1rem; font-weight: 600; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 760px; }

/* header */
.top { background: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 3px solid var(--navy); box-shadow: 0 2px 10px rgba(17,17,17,.05); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { display: block; font-weight: 900; font-size: 1.1rem; color: var(--navy); }
.brand small { display: block; font-size: .72rem; color: var(--muted); margin-top: -4px; }
nav.main { display: flex; gap: 4px; }
nav.main a, .menu nav a { text-decoration: none; padding: 8px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .92rem; }
nav.main a:hover, .menu nav a:hover { background: var(--navy-soft); }
nav.main a[aria-current], .menu nav a[aria-current] { background: var(--navy); color: #fff; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
@media (max-width: 820px) {
  nav.main { display: none; }
  .menu { display: block; }
  .menu[open] nav { position: absolute; inset-inline: 0; top: 71px; display: flex; flex-direction: column; background: #fff; padding: 8px 16px 16px; border-bottom: 3px solid var(--navy); box-shadow: 0 12px 24px rgba(17,17,17,.12); }
}

/* hero */
.hero { background: #fff; padding: 44px 0 32px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.stats { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.stats li { background: #fff; border: 1px solid var(--navy-line); border-radius: 12px; padding: 10px 18px; }
.stats b { display: block; font-size: 1.3rem; font-weight: 900; color: var(--navy); }
.stats span { font-size: .8rem; color: var(--muted); }

/* forms and buttons */
.search { display: grid; gap: 12px; background: #fff; color: var(--ink); padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 24px; }
.search.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.search label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
select, input, textarea { font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--navy-line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
button, .btn { font: inherit; font-weight: 600; cursor: pointer; border: 1.5px solid var(--navy); border-radius: 12px; padding: 10px 20px; background: var(--navy); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
button:hover, .btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.ghost:hover { background: var(--navy-soft); }
@media (max-width: 820px) { .search.compact { grid-template-columns: 1fr 1fr; } .search.compact button { grid-column: 1 / -1; } }

/* blocks */
.block { margin-block: 40px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.block-head a { color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-head { background: #fff; padding: 28px 0 22px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); margin-block: 16px 8px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--navy); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 460px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(17,17,17,.12); border-color: var(--navy-line); }
.card-photo { position: relative; aspect-ratio: 1 / 1; background: var(--soft); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; text-align: center;
  background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.14), transparent 45%), linear-gradient(145deg, var(--navy), var(--navy-dark)); }
.no-photo { position: relative; isolation: isolate; background: var(--navy) url("/static/house.webp") center / cover no-repeat; }
.no-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); opacity: .7; }
.no-photo small { color: #dfe5f0; }
.card-photo .no-photo img, .no-photo img { width: 96px; height: auto; object-fit: contain; }
.no-photo.big { aspect-ratio: 1 / 1; border-radius: var(--radius); color: var(--muted); text-align: center; padding: 24px; align-content: center; gap: 12px; }
.price-tag { position: absolute; bottom: 10px; right: 10px; background: var(--navy); color: #fff; font-weight: 900; padding: 4px 12px; border-radius: 10px; font-size: .92rem; }
.photo-count { position: absolute; top: 10px; left: 10px; background: rgba(13,27,56,.75); color: #fff; padding: 2px 8px; border-radius: 8px; font-size: .75rem; }
.card-body { padding: 14px 16px 12px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.loc { color: var(--muted); font-size: .85rem; margin: 0 0 8px; }
.chips { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 1px 10px; font-size: .8rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); padding-top: 8px; }

/* areas */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chips a { background: #fff; border: 1px solid var(--navy-line); padding: 7px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.area-chips a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.area-chips a:hover small { color: #dfe5f0; }
.area-chips small { color: var(--muted); font-weight: 400; margin-inline-start: 4px; }
.area-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-block: 32px; }
.area-list a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.area-list a:hover { border-color: var(--navy); }
.area-list b { font-size: 1.05rem; }
.area-list span { color: var(--navy); font-weight: 600; }
.area-list small { color: var(--muted); }

/* promos */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.promo { border-radius: var(--radius); padding: 26px; text-decoration: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.promo p { color: var(--muted); }
.promo:hover { border-color: var(--navy); }
.cta { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-inline-start: 6px solid var(--navy); }
.cta p { margin: 0; color: var(--muted); }
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .cta { flex-direction: column; align-items: flex-start; } }

/* list page */
.with-side { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; margin-block: 28px; align-items: start; }
.with-side.reverse { grid-template-columns: minmax(0, 1fr) 340px; }
.with-side aside .search { margin-top: 0; position: sticky; top: 88px; }
@media (max-width: 960px) { .with-side, .with-side.reverse { grid-template-columns: minmax(0, 1fr); } .with-side aside .search { position: static; } }
.pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pages a, .pages span { padding: 6px 14px; border-radius: 10px; background: #fff; text-decoration: none; border: 1px solid var(--navy-line); }
.pages span { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { background: var(--soft); border-radius: var(--radius); padding: 40px 24px; text-align: center; }

/* one listing */
.listing { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 24px; }
.gallery .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--soft); scrollbar-width: none; }
.gallery .slides::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.thumbs a { flex: 0 0 84px; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; }
.thumbs a:hover { border-color: var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.kicker { color: var(--navy); font-weight: 600; margin: 0; font-size: .85rem; }
.price-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 10px; }
.price-box div { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; }
.price-box small { display: block; color: #dfe5f0; font-size: .78rem; }
.price-box b { color: #fff; font-size: 1.15rem; font-weight: 900; }
.compare { border-radius: 10px; padding: 8px 12px; font-size: .9rem; font-weight: 600; margin: 0 0 12px; }
.compare.below { background: #e8f4ee; color: var(--green); }
.compare.above { background: #f9ecec; color: var(--red); }
.compare.even { background: var(--soft); color: var(--muted); }
.actions { display: grid; gap: 8px; margin-block: 12px; }
.call { display: block; text-decoration: none; font-weight: 600; color: var(--navy); margin-top: 6px; }
.specs { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.specs dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0 0 20px; }
.specs dl div { background: var(--soft); border-radius: 10px; padding: 8px 14px; }
.specs dt { color: var(--muted); font-size: .8rem; }
.specs dd { margin: 0; font-weight: 600; }
.features { columns: 2 240px; padding-inline-start: 20px; margin: 0; }
@media (max-width: 960px) { .listing { grid-template-columns: minmax(0, 1fr); } .info { position: static; } }

/* prices */
table.prices { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prices th, .prices td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.prices th { background: var(--navy); color: #fff; font-weight: 600; font-size: .88rem; }
.prices td a { font-weight: 600; text-decoration: none; color: var(--navy); }
.bar { position: relative; background: var(--soft); border-radius: 8px; overflow: hidden; }
.bar::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--navy-soft); border-inline-end: 3px solid var(--navy); }
.bar span { position: relative; padding: 2px 10px; display: block; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.worth { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 88px; border-top: 5px solid var(--navy); }
.worth form { display: grid; gap: 12px; }
.worth label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.worth-result { margin-top: 18px; background: var(--soft); border-radius: 12px; padding: 16px; display: grid; gap: 8px; }
.worth-result b { font-size: 1.3rem; font-weight: 900; color: var(--navy); }
.worth-result p { margin: 0; }
.error { color: var(--red); font-weight: 600; }
.ok { color: var(--green); font-weight: 600; }
@media (max-width: 960px) { .worth { position: static; } }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.contact-card .btn:first-of-type { margin-top: auto; }
.person-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }

/* panel */
.panel-box { max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel-form { display: grid; gap: 14px; margin-top: 12px; }
.panel-form.wide { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.panel-form small { color: var(--muted); font-weight: 400; }
.panel-form label.check { flex-direction: row; align-items: center; gap: 8px; }
.panel-form label.check input { width: auto; }
.panel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 16px; margin-bottom: 20px; }
.panel-bar a, .panel-bar .link { color: #fff; text-decoration: none; background: none; border: 0; padding: 0; font-weight: 600; }
.panel-bar a:hover, .panel-bar .link:hover { text-decoration: underline; background: none; }
.panel-bar form { margin-inline-start: auto; }
.panel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.panel-cards > * { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-decoration: none; display: grid; gap: 6px; }
.panel-cards span { color: var(--muted); font-size: .9rem; }

/* menu */
.mega { position: relative; display: flex; }
.mega > a::after { content: "▾"; margin-inline-start: 5px; font-size: .75em; }
.mega-panel { display: none; position: absolute; top: 100%; inset-inline-start: 0; z-index: 30; width: min(560px, 80vw); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: #fff; border: 1px solid var(--navy-line); border-top: 3px solid var(--gold); border-radius: 0 0 14px 14px; padding: 12px; box-shadow: 0 18px 40px rgba(13,27,56,.2); }
nav.main .mega:hover .mega-panel, nav.main .mega:focus-within .mega-panel { display: grid; }
nav.main .mega-panel a, .menu .mega-panel a { padding: 8px 10px; font-size: .9rem; }
.mega-panel small { color: var(--muted); }
.mega-all { grid-column: 1 / -1; color: var(--navy) !important; font-weight: 700; }
.menu .mega { flex-direction: column; }
.menu .mega-panel { display: grid; position: static; width: auto; box-shadow: none; border: 0; padding: 0 12px 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
nav.main a.nav-notify, .menu nav a.nav-notify { background: #c8102e; color: #fff; font-weight: 700; }
nav.main a.nav-notify:hover, .menu nav a.nav-notify:hover { background: #a90d26; color: #fff; }
@media (max-width: 1180px) { nav.main { display: none; } .menu { display: block; } .menu[open] nav { position: absolute; inset-inline: 0; top: 71px; display: flex; flex-direction: column; background: #fff; padding: 12px; box-shadow: 0 16px 30px rgba(13,27,56,.2); max-height: 80vh; overflow-y: auto; z-index: 30; } }

/* owner's tools */
.admin-search { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.admin-search input { flex: 2 1 240px; min-height: 46px; }
.admin-search select { flex: 1 1 130px; min-height: 46px; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 16px; }
.danger { display: flex; align-items: center; gap: 10px; }
.danger .check { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.danger button { background: #c8102e; border-color: #c8102e; color: #fff; }
.small-btn { padding: 4px 12px; }
.tools .lead-form { margin: 0; align-content: start; }
.tools .lead-form h2 { margin: 0; font-size: 1.05rem; }
.lead-form .check { flex-direction: row; align-items: center; gap: 8px; }
.lead-form .check input { width: auto; min-height: 0; }

/* live search */
.quick .wide { position: relative; }
.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 40; background: #fff; border: 1px solid var(--navy-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(13,27,56,.25); padding: 6px; max-height: 420px; overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 400; }
.suggest a:hover, .suggest a:focus { background: var(--sky); }
.suggest img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.suggest span { display: grid; }
.suggest b { font-size: .92rem; color: var(--navy); }
.suggest small { color: var(--muted); }

/* photo hero */
.hero-photo { position: relative; isolation: isolate; min-height: clamp(380px, 56vw, 560px); display: flex; align-items: center; color: #fff; background: linear-gradient(135deg, #14274e, #27478c); overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(13,27,56,.92) 0%, rgba(13,27,56,.68) 48%, rgba(13,27,56,.12) 100%); }
.hero-inner { padding-block: 40px 90px; }
.hero-inner h1 { color: #fff; font-size: clamp(2rem, 5.4vw, 3.6rem); font-weight: 900; line-height: 1.25; max-width: 17ch; margin: 0 0 14px; }
.hero-inner p { color: #e7ecf6; max-width: 46ch; font-size: 1.05rem; margin: 0 0 18px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; color: #e7ecf6; }
.hero-stats b { color: var(--gold); font-size: 1.3rem; font-weight: 900; }
.search-lift { position: relative; margin-top: -46px; z-index: 3; }
.search-lift .quick { margin-top: 0; border: 2px solid var(--gold); box-shadow: 0 16px 40px rgba(13,27,56,.22); }

/* coloured bands */
.band { padding-block: 44px; margin-block: 40px; }
.band .block-head { margin-bottom: 10px; }
.band-navy { background: linear-gradient(135deg, #14274e, #1f3f7c); color: #fff; }
.band-navy h2 { color: var(--gold); }
.band-navy .card { color: var(--ink); border-color: transparent; }
.band-note { color: #dfe5f0; margin: 0 0 18px; }
.band-sky { background: var(--sky); }
.band-sky h2, .block-head h2 { color: var(--navy); }
.band-navy .block-head h2 { color: var(--gold); }
.band-gold { background: var(--gold-soft); border-block: 2px solid var(--gold); }
.notify-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.notify-cta h2 { color: var(--navy); margin: 0 0 6px; }
.notify-cta p { margin: 0; max-width: 60ch; }
.notify-cta .btn { background: #c8102e; border-color: #c8102e; color: #fff; font-weight: 700; }
.notify-cta .btn:hover { background: #a90d26; border-color: #a90d26; color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.tile { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: linear-gradient(145deg, var(--navy), #2c4f97); color: #fff; text-decoration: none; display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tile:hover img { transform: scale(1.06); }
.tile span { position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(13,27,56,.92)); font-size: .82rem; }
.tile b { font-size: 1.1rem; font-weight: 900; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.range-svg { display: block; width: 100%; height: 100%; font-family: inherit; }
.range-photo { background: var(--navy); }
.card-title { font-size: 1.05rem; margin: 0 0 4px; color: var(--navy); }
.match-tag { background: var(--navy); }
.notify-page { max-width: 680px; text-align: center; padding-block: 56px; }
.notify-page .lead { margin-inline: auto; }
.notify-bell { display: block; font-size: 3rem; }
.me-toggle { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--sky); border-radius: 14px; padding: 12px 16px; margin-bottom: 22px; }
.about p { font-size: 1.08rem; }
.about .actions { margin-top: 26px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* red banner */
.sell-banner { display: block; background: #c8102e; color: #fff; text-align: center; text-decoration: none; padding: 7px 12px; font-size: .95rem; line-height: 1.5; min-height: 36px; }
.sell-banner:hover { background: #a90d26; color: #fff; }
.sell-banner b { font-weight: 900; }
.sell-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.banner-btn { flex: none; background: #fff; color: #c8102e; font-weight: 900; font-size: .85rem; padding: 3px 14px; border-radius: 999px; }
.sell-banner:hover .banner-btn { background: var(--gold-soft); }

/* quick search */
.quick { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; background: #fff; border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin-top: 20px; }
.quick input, .quick select { width: 100%; min-height: 50px; font-size: 1rem; }
.quick button { min-height: 50px; padding-inline: 26px; font-size: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr 1fr; } .quick .wide, .quick button { grid-column: 1 / -1; } }

/* showcase */
.showcase { position: relative; margin-block: 28px; }
.track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 14px calc(50% - min(19vw, 190px)); }
.track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 min(38vw, 380px); aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; scroll-snap-align: center; color: #fff; text-decoration: none; background: var(--navy); box-shadow: 0 10px 30px rgba(13,27,56,.25); transition: transform .45s ease, filter .45s ease, opacity .45s ease; }
.slide > img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { position: absolute; inset: auto 0 0; display: grid; gap: 3px; padding: 44px 16px 14px; background: linear-gradient(transparent, rgba(13,27,56,.92)); font-size: .85rem; }
.slide-text b { font-size: 1rem; }
.showcase.live .slide { transform: scale(.88); filter: blur(2px); opacity: .72; }
.showcase.live .slide.center { transform: scale(1); filter: none; opacity: 1; }
.showcase button { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #fff; color: var(--navy); border: 1px solid var(--navy-line); font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow); }
.showcase button { display: grid; place-items: center; }
.showcase .prev { right: 12px; }
.showcase .next { left: 12px; }
@media (max-width: 640px) { .slide { flex-basis: 70vw; } .track { padding-inline: 15vw; } .showcase button { display: none; } }

/* cards */
.blurb { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--muted); font-size: .85rem; margin: 0 0 10px; min-height: 2.9em; }
.hot-tag { position: absolute; top: 10px; right: 10px; background: #c8102e; color: #fff; font-weight: 700; font-size: .75rem; padding: 3px 9px; border-radius: 999px; }
.code, .unit-code b { color: var(--navy); font-weight: 700; }
.unit-code { margin: 0 0 6px; }
.visit-btn { font-size: 1.05rem; padding-block: 13px; }

/* price chart */
.trend { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.trend svg { display: block; width: 100%; height: auto; margin-top: 8px; }
.trend-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.trend-head small { display: block; color: var(--muted); }
.trend-head b { font-size: 1.25rem; color: var(--navy); }
.trend-change { font-weight: 700; }
.trend-change.up { color: var(--red); }
.trend-change.down { color: var(--green); }
.trend-line { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.trend-area { fill: var(--navy-soft); }
.trend-dot { fill: #c8102e; stroke: #fff; stroke-width: 2; }
.trend text { font-size: 12px; fill: var(--muted); font-family: inherit; }
.pulse { display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; border-radius: 50%; background: #c8102e; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.small { font-size: .8rem; }

/* listing text and forms */
.story { grid-column: 1 / -1; line-height: 2; }
.story figure { margin: 18px auto; max-width: 560px; }
.story img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.story a, .prose a { color: var(--navy); font-weight: 600; }
.visit-box { grid-column: 1 / -1; background: var(--soft); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 22px; scroll-margin-top: 90px; }
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.lead-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; min-height: 46px; font: inherit; }
.lead-form .wide, .lead-form button, .lead-form .kinds { grid-column: 1 / -1; }
.lead-form button { min-height: 50px; font-size: 1.02rem; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px 22px; border: 0; padding: 0; margin: 0; }
.kinds legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.kinds label { flex-direction: row; align-items: center; gap: 6px; }
.kinds input { width: auto; min-height: 0; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.channel-link { grid-column: 1 / -1; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.channel-link a { color: var(--navy); }
.narrow { max-width: 780px; }
.thanks { text-align: center; padding-block: 50px; }
.thanks .actions { justify-content: center; }
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.article-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.article-card h2 { font-size: 1.05rem; color: var(--navy); }
.prose { line-height: 2.1; }
.ok-tag { color: var(--green); font-size: .8rem; }
@media (max-width: 560px) { .lead-form { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .slide, .pulse { transition: none; animation: none; } }

/* footer: at the bottom of the window on short pages too */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.foot { flex-shrink: 0; }
.foot { background: var(--navy); color: #fff; margin-top: 56px; padding-top: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot h3 { color: #fff; }
.foot a { display: block; text-decoration: none; color: #dfe5f0; margin-bottom: 6px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot a.brand { display: flex; }
.foot .brand b { color: #fff; }
.foot .brand small, .foot .muted { color: #c3cbdb; }
.foot p { margin: 0 0 6px; }
.foot p a { display: inline; color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-block: 14px; font-size: .8rem; color: #c3cbdb; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
