/*
 * Martiland — public design system (Resido/Houzez-derived, RTL/Persian).
 * Compiled Tailwind (self-hosted tailwind.css, built from tailwind.config.js)
 * handles most styling; this file holds what must ship as ordinary CSS: the
 * self-hosted Vazirmatn @font-face, article prose, form components, and a few
 * utilities Tailwind doesn't provide (clamps, galleries, sticky columns).
 */

/* Self-hosted Vazirmatn (variable font, weights 100-900 in one woff2). Replaces
   the former Google Fonts request so pages don't block on an external host. */
@font-face {
    font-family: 'Vazirmatn';
    src: url("../fonts/vazirmatn/Vazirmatn-var.f6d31671339d.woff2") format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html { font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif; scroll-behavior: smooth; }
body { line-height: 1.75; }
/* Tailwind's text-Nxl utilities set line-height:1 on large headings, which
   crowds multi-line Persian h1s. Force a comfortable 1.5 across every page. */
h1 { line-height: 1.5 !important; }
h2 { line-height: 2; }

/* Latin numerals read more naturally for prices, phone numbers and metrics
   even inside Persian copy. Opt in with .num-latin. */
.num-latin {
    font-feature-settings: "ss01", "ss02";
    font-variant-numeric: tabular-nums;
}

/* Hide scrollbars on horizontal strips (thumbnail rails, chip rows) without
   disabling scroll. Both names kept for backwards compatibility. */
.scroll-hide, .scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scroll-hide::-webkit-scrollbar, .scrollbar-hide::-webkit-scrollbar { display: none; }

/* Line-clamp helpers for card titles / descriptions. */
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Heading balance for cleaner Persian line breaks. */
.balance { text-wrap: balance; }

/* Card hover lift, shared by every property/blog card variant. */
.card-lift { transition: box-shadow .3s ease, transform .3s ease; }
.card-lift:hover { box-shadow: 0 20px 45px -22px rgba(13,27,62,.45); transform: translateY(-3px); }

/* Detail-page gallery: one large hero image beside a 2×2 cluster of four
   thumbnails (the Houzez layout). */
.gallery { display: grid; gap: 0.5rem; grid-template-columns: 1fr 1fr; }
.gallery__main { grid-column: 1 / -1; }
@media (min-width: 768px) {
    .gallery { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); height: 30rem; }
    .gallery__main { grid-column: 1 / 3; grid-row: 1 / 3; }
}

/* Sticky sidebar column (detail page, blog single). */
@media (min-width: 1024px) {
    .sticky-col { position: sticky; top: 6.5rem; }
}

/* Anchor offset so in-page nav jumps clear the sticky header. */
.anchor-offset { scroll-margin-top: 6rem; }

/* Native range slider, cyan-tinted (Houzez), for the mortgage widget. */
.range-slider { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px; background: #e5e7eb; outline: none; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 999px; background: #00aeff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,174,255,.5); cursor: pointer; }
.range-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 999px; background: #00aeff; border: 2px solid #fff; cursor: pointer; }

/* ── Article prose (blog / news bodies) ─────────────────────────────── */
.prose-article { line-height: 1.9; color: #32373c; }

.prose-article h2, .prose-article h3, .prose-article h4 {
    font-weight: 800; line-height: 1.5; color: #0d1b3e;
    margin-top: 1.8em; margin-bottom: 0.6em; scroll-margin-top: 6rem;
}
.prose-article h2 { font-size: 1.6rem; }
.prose-article h3 { font-size: 1.3rem; }
.prose-article h4 { font-size: 1.12rem; }
.prose-article p { margin: 1.1em 0; }

.prose-article a {
    color: #2540a2; text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: rgba(37,64,162,.35); transition: color .15s ease;
}
.prose-article a:hover { color: #1f3488; text-decoration-color: #1f3488; }
.prose-article a.intent-target { color: #1f3488; font-weight: 600; }

.prose-article ul, .prose-article ol { margin: 1.1em 0; padding-inline-start: 1.5em; }
.prose-article ul { list-style: disc; }
.prose-article ol { list-style: decimal; }
.prose-article li { margin: 0.4em 0; padding-inline-start: 0.25em; }
.prose-article ul li::marker { color: #0fca98; }
.prose-article ol li::marker { color: #2540a2; font-weight: 700; }

.prose-article strong { color: #0d1b3e; font-weight: 700; }

.prose-article blockquote {
    border-inline-start: 4px solid #0fca98;
    padding: 0.6em 1.2em; margin: 1.4em 0; border-radius: 0.5rem;
    color: #475569; background: #f6faf9;
}

.prose-article table {
    width: 100%; border-collapse: collapse; margin: 1.4em 0;
    font-size: 0.95rem; overflow: hidden; border-radius: 0.75rem;
    box-shadow: 0 0 0 1px #e5e7eb;
}
.prose-article thead { background: #152356; color: #fff; }
.prose-article th, .prose-article td { padding: 0.7rem 1rem; text-align: start; }
.prose-article tbody tr { border-top: 1px solid #eef1f6; }
.prose-article tbody tr:nth-child(even) { background: #f7f9fd; }

.prose-article pre {
    background: #081025; color: #f8fafc; padding: 1rem 1.25rem;
    border-radius: 0.75rem; overflow-x: auto; font-size: 0.9rem; margin: 1.3em 0;
}
.prose-article code { background: #eef1fb; color: #1f3488; padding: 0.1em 0.4em; border-radius: 0.3em; font-size: 0.9em; }
.prose-article pre code { background: transparent; color: inherit; padding: 0; }

.prose-article img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1.2em 0; }

/* Callout boxes for important notes (see content.md rule 8). Icon + accent by type. */
.prose-article .callout {
    position: relative;
    margin: 1.6em 0;
    padding: 1.1rem 1.35rem;
    padding-inline-start: 3.4rem;
    border-radius: 0.9rem;
    border: 1px solid #e6ebf5;
    border-inline-start: 4px solid #2540a2;
    background: #f4f7fd;
    color: #26324f;
    line-height: 1.85;
}
.prose-article .callout > :first-child { margin-top: 0; }
.prose-article .callout > :last-child { margin-bottom: 0; }
.prose-article .callout strong { color: #0d1b3e; }
.prose-article .callout::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset-inline-start: 1.15rem;
    top: 1.05rem;
    font-size: 1.05rem;
    line-height: 1;
    color: #2540a2;
}
.prose-article .callout-info { border-inline-start-color: #2540a2; background: #eef2fb; }
.prose-article .callout-info::before { content: "\f05a"; color: #2540a2; }
.prose-article .callout-warning { border-inline-start-color: #e08600; background: #fff7ec; }
.prose-article .callout-warning::before { content: "\f071"; color: #b26a00; }
.prose-article .callout-tip { border-inline-start-color: #0fca98; background: #e9faf4; }
.prose-article .callout-tip::before { content: "\f0eb"; color: #08916c; }
/* Plain .callout with no type marker falls back to the info icon. */
.prose-article .callout:not(.callout-info):not(.callout-warning):not(.callout-tip)::before { content: "\f05a"; }

/* Trust style for official Turkey government links (see content.md rule 9). */
.prose-article a.official-link {
    display: inline;
    color: #0d5c4a;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #0fca98;
    text-underline-offset: 3px;
    white-space: normal;
}
.prose-article a.official-link::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f19c";
    margin-inline-start: 0.25em;
    margin-inline-end: 0.4em;
    font-size: 0.85em;
    color: #0fca98;
}
.prose-article a.official-link:hover {
    color: #08916c;
    text-decoration-color: #08916c;
}

/* ── Form components (contact, comment, hero search) ────────────────── */
.form-select, .form-input {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    width: 100%; font-size: 0.9rem; line-height: 1.4;
    background-color: rgb(249 250 251 / 0.7);
    border: 1px solid rgb(229 231 235); border-radius: 0.75rem;
    padding: 0.75rem 1rem; color: rgb(17 24 39); cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.form-select { padding-inline-end: 2.5rem; }
.form-select:hover, .form-input:hover { border-color: rgb(209 213 219); background-color: #fff; }
.form-select:focus, .form-input:focus {
    outline: none; background-color: #fff; border-color: #2540a2;
    box-shadow: 0 0 0 4px rgb(37 64 162 / 0.15);
}
.form-select-chevron {
    pointer-events: none; position: absolute; inset-inline-end: 0.875rem;
    top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem;
    color: rgb(148 163 184); transition: color .15s ease;
}
.form-select:focus + .form-select-chevron { color: #2540a2; }

input[type="date"] { color-scheme: light; }
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer; opacity: 0.55; filter: invert(0.18);
    margin-inline-start: 0.25rem; transition: opacity .15s ease;
}
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="date"]:focus::-webkit-calendar-picker-indicator { opacity: 1; }

.form-submit {
    margin-top: 0.5rem; width: 100%; display: inline-flex;
    align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.95rem 1.25rem; border-radius: 0.75rem;
    background-color: #2540a2; color: #fff; font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 12px 24px -12px rgb(37 64 162 / 0.55);
    transition: background-color .15s ease, transform .1s ease, box-shadow .2s ease;
}
.form-submit:hover { background-color: #1f3488; box-shadow: 0 16px 30px -12px rgb(31 52 136 / 0.6); }
.form-submit:active { transform: scale(0.99); }

/* ── Custom select (msel) — modern dropdown enhancing native <select> ─── */
.msel { position: relative; display: inline-block; width: 100%; text-align: start; }
.msel__btn {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    width: 100%; font-family: inherit; font-size: 0.875rem; font-weight: 600;
    color: #32373c; background-color: #fff; border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem; padding: 0.6rem 0.9rem; cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.msel__btn:hover { border-color: #b7c4ec; }
.msel--open .msel__btn, .msel__btn:focus-visible {
    outline: none; border-color: #2540a2; box-shadow: 0 0 0 4px rgb(37 64 162 / 0.15);
}
.msel__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel__chev {
    font-size: 0.7rem; color: rgb(148 163 184); flex-shrink: 0;
    transition: transform .2s ease, color .15s ease;
}
.msel--open .msel__chev { transform: rotate(180deg); color: #2540a2; }
.msel__list {
    position: absolute; z-index: 40; inset-inline-start: 0; inset-inline-end: 0;
    top: calc(100% + 0.4rem); margin: 0; padding: 0.35rem; list-style: none;
    background-color: #fff; border: 1px solid rgb(229 231 235); border-radius: 0.85rem;
    box-shadow: 0 20px 45px -22px rgba(13,27,62,.35), 0 4px 12px -6px rgba(13,27,62,.15);
    max-height: 16rem; overflow: auto;
    opacity: 0; transform: translateY(-0.35rem) scale(0.98); transform-origin: top;
    pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.msel--open .msel__list { opacity: 1; transform: none; pointer-events: auto; }
.msel__opt {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.55rem 0.7rem; border-radius: 0.55rem; font-size: 0.875rem;
    color: rgb(75 85 99); cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}
.msel__opt:hover, .msel__opt.is-active { background-color: #eef1fb; color: #1f3488; }
.msel__opt[aria-selected="true"] { color: #2540a2; font-weight: 700; }
.msel__opt[aria-selected="true"]::after {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: 0.7rem; color: #2540a2;
}

/* ── Blog magazine index (/blog/) ───────────────────────────────────────
   The archive renders as a sectioned magazine: one section per content
   cluster, each carrying a topic-specific accent + layout. Per-section color
   comes from CSS variables (theme classes below) so a section's chrome — icon
   tile, kicker, CTA, card accents, rail, list numbers — recolors from one class
   with zero Tailwind purge risk. Dark bands share one deep, clean field; only
   the accent glow varies, so cars / neighborhoods / tech read distinct but
   modern. */
.mag-section {
    --accent: #2540a2;
    --accent-soft: #eef1fb;
    --accent-ink: #1f3488;
    position: relative;
    z-index: 0;
    padding-block: 3.75rem;
}
@media (min-width: 1024px) { .mag-section { padding-block: 5.25rem; } }
.mag-section:not(.mag-section--dark) { background: #fff; }
.mag-section--alt:not(.mag-section--dark) { background: #f5f7fc; }

.mag-section--teal    { --accent:#0fca98; --accent-soft:#e7faf3; --accent-ink:#08916c; }
.mag-section--sky     { --accent:#0ea5e9; --accent-soft:#e4f5fe; --accent-ink:#0369a1; }
.mag-section--gold    { --accent:#d99a05; --accent-soft:#fbf2da; --accent-ink:#8a5a00; }
.mag-section--amber   { --accent:#f59e0b; --accent-soft:#fef2df; --accent-ink:#b45309; }
.mag-section--primary { --accent:#2540a2; --accent-soft:#eef1fb; --accent-ink:#1f3488; }
.mag-section--indigo  { --accent:#6366f1; --accent-soft:#ecedfe; --accent-ink:#4338ca; }
.mag-section--rose    { --accent:#f43f6e; --accent-soft:#ffebf0; --accent-ink:#be123c; }
.mag-section--emerald { --accent:#10b981; --accent-soft:#e5f8f0; --accent-ink:#047857; }
.mag-section--violet  { --accent:#8b5cf6; --accent-soft:#f0e9fd; --accent-ink:#6d28d9; }

/* Deep, clean dark field: a solid near-black base + two soft accent glows +
   a masked dot grid for texture. No muddy flat navy. */
.mag-section--dark { color: #fff; background-color: #080c18; }
.mag-section--dark::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(72% 90% at 86% -18%, color-mix(in srgb, var(--accent) 46%, transparent), transparent 60%),
        radial-gradient(60% 72% at -8% 114%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 58%);
}
.mag-section--dark::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(circle at center, rgba(255,255,255,.06) 1px, transparent 1.4px);
    background-size: 26px 26px; opacity: .55;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

/* Tech fx (tech-visa bands): a violet→cyan neon field + a fine engineering grid. */
.mag-section--tech::before {
    background:
        radial-gradient(66% 84% at 85% -14%, rgba(139,92,246,.5), transparent 60%),
        radial-gradient(56% 66% at -6% 110%, rgba(34,211,238,.3), transparent 58%);
}
.mag-section--tech::after {
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 46px 46px; opacity: 1;
    -webkit-mask-image: radial-gradient(120% 120% at 82% 0%, #000, transparent 72%);
    mask-image: radial-gradient(120% 120% at 82% 0%, #000, transparent 72%);
}

/* Section header. */
.mag-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 1.5rem; }
.mag-head__main { max-width: 44rem; }
.mag-kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 800; color: var(--accent-ink); }
.mag-kicker__dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.mag-head__title { display: flex; align-items: center; gap: .85rem; margin-top: .85rem; font-size: 1.7rem; font-weight: 800; line-height: 1.35; color: #0d1b3e; }
@media (min-width: 1024px) { .mag-head__title { font-size: 2.15rem; } }
.mag-head__icon {
    flex-shrink: 0; width: 3rem; height: 3rem; border-radius: .95rem;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff;
    background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 52%, #0d1b3e));
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.mag-head__blurb { margin-top: .75rem; font-size: .98rem; line-height: 1.95; color: #5b6473; }
.mag-cta {
    display: inline-flex; align-items: center; gap: .55rem; flex-shrink: 0;
    padding: .72rem 1.25rem; border-radius: 999px; font-size: .9rem; font-weight: 800;
    color: var(--accent-ink); background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
    transition: background-color .2s ease, color .2s ease, gap .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mag-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); gap: .85rem; box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.mag-section--dark .mag-head__title, .mag-section--dark .mag-kicker { color: #fff; }
.mag-section--dark .mag-head__blurb { color: rgba(255,255,255,.68); }
.mag-section--dark .mag-cta { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.mag-section--dark .mag-cta:hover { background: var(--accent); border-color: var(--accent); }
.mag-section--tech .mag-head__icon { background: linear-gradient(140deg, #a855f7, #22d3ee); box-shadow: 0 12px 28px -10px rgba(139,92,246,.6); }
.mag-section--tech .mag-kicker__dot { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.2); }

/* Themed magazine card — one card, recolored by the section it sits in. Light
   default; glassmorphic on dark. */
.mag-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border-radius: 1.15rem; overflow: hidden; border: 1px solid #ecf0f6;
    box-shadow: 0 1px 2px rgba(13,27,62,.03), 0 18px 34px -22px rgba(13,27,62,.28);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.mag-card:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(13,27,62,.03), 0 32px 56px -26px rgba(13,27,62,.4); border-color: color-mix(in srgb, var(--accent) 45%, #ecf0f6); }
.mag-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: #f1f3f8; overflow: hidden; }
.mag-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.mag-card:hover .mag-card__media img { transform: scale(1.06); }
.mag-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--accent) 40%, #cbd2e0); font-size: 2rem; }
.mag-card__tag {
    position: absolute; inset-block-start: .8rem; inset-inline-start: .8rem;
    padding: .3rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 800;
    background: rgba(255,255,255,.95); color: var(--accent-ink); box-shadow: 0 4px 12px rgba(13,27,62,.14);
}
.mag-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.2rem 1.25rem; }
.mag-card__date { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: #9aa2b1; }
.mag-card__date i { color: var(--accent); }
.mag-card__title { margin-top: .55rem; font-size: 1.05rem; font-weight: 700; line-height: 1.7; color: #0d1b3e; transition: color .25s ease; }
.mag-card:hover .mag-card__title { color: var(--accent-ink); }
.mag-card__excerpt { margin-top: .5rem; font-size: .85rem; line-height: 1.8; color: #6b7280; }
.mag-card__more { margin-top: auto; padding-top: .95rem; display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 800; color: var(--accent-ink); }

.mag-section--dark .mag-card {
    background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.1);
    box-shadow: 0 26px 50px -30px rgba(0,0,0,.75);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mag-section--dark .mag-card:hover { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 34px 64px -28px color-mix(in srgb, var(--accent) 45%, #000); }
.mag-section--dark .mag-card__media { background: rgba(255,255,255,.04); }
.mag-section--dark .mag-card__title, .mag-section--dark .mag-card:hover .mag-card__title { color: #fff; }
.mag-section--dark .mag-card__excerpt { color: rgba(255,255,255,.6); }
.mag-section--dark .mag-card__date { color: rgba(255,255,255,.5); }
.mag-section--dark .mag-card__more { color: #fff; }
.mag-section--dark .mag-card:hover .mag-card__more { color: var(--accent); }
.mag-section--dark .mag-card__tag { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--accent) 55%, transparent); }
.mag-section--tech .mag-card:hover { border-color: rgba(34,211,238,.6); box-shadow: 0 34px 64px -28px rgba(139,92,246,.5); }
.mag-section--tech .mag-card__tag { background: linear-gradient(135deg, #a855f7, #22d3ee); }

/* Large overlay lead card (cover). */
.mag-lead { position: relative; display: block; height: 100%; min-height: 24rem; border-radius: 1.3rem; overflow: hidden; background: #0d1b3e; }
.mag-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.mag-lead:hover img { transform: scale(1.06); }
.mag-lead__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,10,22,.95) 6%, rgba(6,10,22,.5) 42%, rgba(6,10,22,.04) 74%); }
.mag-lead__body { position: absolute; inset-block-end: 0; inset-inline: 0; padding: 1.75rem; }
.mag-lead__tag { display: inline-flex; align-items: center; padding: .35rem .85rem; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #fff; background: var(--accent); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.mag-lead__title { margin-top: .9rem; font-size: 1.45rem; font-weight: 800; line-height: 1.5; color: #fff; }
@media (min-width: 1024px) { .mag-lead__title { font-size: 1.7rem; } }
.mag-lead__excerpt { margin-top: .6rem; font-size: .9rem; line-height: 1.85; color: rgba(255,255,255,.8); }
.mag-lead__meta { margin-top: .95rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.68); }
.mag-lead__meta i { color: var(--accent); }
.mag-section--tech .mag-lead__tag { background: linear-gradient(135deg, #a855f7, #22d3ee); }

/* Editorial numbered list. */
.mag-list { display: grid; gap: .3rem; }
.mag-row { position: relative; display: flex; align-items: center; gap: 1.1rem; padding: 1rem .95rem; border-radius: 1rem; transition: background-color .25s ease; }
.mag-row:hover { background: var(--accent-soft); }
.mag-section--dark .mag-row:hover { background: rgba(255,255,255,.06); }
.mag-row__num {
    flex-shrink: 0; width: 2.6rem; text-align: center; font-size: 1.7rem; font-weight: 800; line-height: 1;
    background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #0d1b3e));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; opacity: .9;
}
.mag-row__thumb { flex-shrink: 0; width: 6rem; height: 4.5rem; border-radius: .85rem; overflow: hidden; background: #eef1f6; }
.mag-row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mag-row:hover .mag-row__thumb img { transform: scale(1.07); }
.mag-row__main { min-width: 0; flex: 1; }
.mag-row__title { font-size: 1rem; font-weight: 700; line-height: 1.65; color: #0d1b3e; transition: color .25s ease; }
.mag-section--dark .mag-row__title { color: #fff; }
.mag-row:hover .mag-row__title { color: var(--accent-ink); }
.mag-section--dark .mag-row:hover .mag-row__title { color: var(--accent); }
.mag-row__meta { margin-top: .35rem; font-size: .77rem; color: #9aa2b1; }
.mag-row__arrow { flex-shrink: 0; color: var(--accent); opacity: 0; transform: translateX(.45rem); transition: opacity .22s ease, transform .22s ease; }
.mag-row:hover .mag-row__arrow { opacity: 1; transform: none; }
/* Phones: reclaim horizontal space for the row title — smaller numeral and
   thumbnail, tighter gaps, drop the hover arrow. */
@media (max-width: 639px) {
    .mag-row { gap: .75rem; padding: .8rem .45rem; }
    .mag-row__num { width: 1.5rem; font-size: 1.15rem; }
    .mag-row__thumb { width: 4.75rem; height: 3.6rem; border-radius: .6rem; }
    .mag-row__title { font-size: .95rem; }
    .mag-row__arrow { display: none; }
}

/* Rail: horizontal snap-scroll strip of fixed-width cards. */
.mag-rail { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: .5rem; }
.mag-rail > * { scroll-snap-align: start; flex: 0 0 19.5rem; max-width: 82vw; }

/* Masthead: slim editorial opener replacing the old hero band. */
.mag-masthead { background: #fff; border-bottom: 1px solid #eef1f6; }
.mag-masthead__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mag-masthead__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 800; color: #0a9c76; }
.mag-masthead__title { margin-top: .5rem; font-size: 2rem; font-weight: 900; line-height: 1.2; color: #0d1b3e; }
@media (min-width: 1024px) { .mag-masthead__title { font-size: 2.5rem; } }
.mag-masthead__tag { margin-top: .55rem; font-size: .98rem; line-height: 1.8; color: #5b6473; max-width: 34rem; }
.mag-masthead__aside { display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; }
.mag-masthead__count { font-size: .85rem; color: #6b7280; }
.mag-masthead__count b { font-size: 1.15rem; color: #0d1b3e; }
.mag-search { display: flex; width: min(22rem, 78vw); border-radius: 999px; overflow: hidden; border: 1px solid #e3e8f0; background: #f7f9fc; transition: border-color .2s ease, box-shadow .2s ease; }
.mag-search:focus-within { border-color: #0fca98; box-shadow: 0 0 0 4px rgba(15,202,152,.15); background: #fff; }
.mag-search input { flex: 1; min-width: 0; background: transparent; border: 0; padding: .7rem 1.1rem; font-size: .88rem; color: #0d1b3e; }
.mag-search input:focus { outline: none; }
.mag-search button { padding: 0 1.15rem; background: #0fca98; color: #fff; border: 0; cursor: pointer; transition: background-color .2s ease; }
.mag-search button:hover { background: #0bb488; }

.mag-topics { display: flex; flex-wrap: wrap; gap: .55rem; padding-block: .3rem; }

/* The magazine index ends on a full-bleed band, so drop the site-wide footer
   top margin (mt-20) that would otherwise show as a stray body-bg gap. Scoped to
   the magazine (masthead present) — tag/topic/author archives keep the gap. */
main:has(.mag-masthead) + footer { margin-top: 0; }
.mag-topic {
    display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
    padding: .58rem 1.05rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
    color: #3d4658; background: #f3f5fa; border: 1px solid #e7ebf2;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.mag-topic i { color: #0fca98; transition: color .18s ease; }
.mag-topic:hover { background: #0d1b3e; color: #fff; border-color: #0d1b3e; transform: translateY(-2px); }
.mag-topic:hover i { color: #0fca98; }

/* ── Header + mega-menu ───────────────────────────────────────────────
   Unified, modern navigation: soft pill triggers, borderless glass panels
   with a layered shadow, and a spring-eased fade/scale/rise on open. The
   panel starts at top:100% (no gap) so the pointer never crosses a dead
   zone; visual spacing is a padding inside the hover area. Touch/click is
   handled in JS via aria-expanded. */
:root {
    --nav-ink: #1e2536;
    --nav-primary: #2540a2;
    --nav-ease: cubic-bezier(.16, 1, .3, 1);
    --mega-hairline: rgba(17, 24, 39, .07);
}
.nav-item { position: relative; }

.nav-trigger {
    position: relative;
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem .95rem; border-radius: .7rem;
    font-weight: 700; font-size: 15px; color: var(--nav-ink);
    transition: color .18s ease, background-color .18s ease;
}
.nav-trigger:hover, .nav-item:hover .nav-trigger,
.nav-item:focus-within .nav-trigger {
    color: var(--nav-primary); background: rgba(37, 64, 162, .06);
}
.nav-trigger--active { color: var(--nav-primary); background: rgba(37, 64, 162, .09); }
.nav-trigger__caret { font-size: .65rem; opacity: .55; transition: transform .25s var(--nav-ease), opacity .18s ease; }
.nav-item:hover .nav-trigger__caret,
.nav-item:focus-within .nav-trigger__caret,
.nav-trigger[aria-expanded="true"] .nav-trigger__caret { transform: rotate(180deg); opacity: 1; }

.mega {
    position: absolute; top: 100%; inset-inline-start: 0; z-index: 60;
    padding-top: .7rem; /* hover-safe visual gap */
    opacity: 0; visibility: hidden;
    transform: translateY(10px) scale(.97); transform-origin: top center;
    transition: opacity .24s var(--nav-ease), transform .24s var(--nav-ease), visibility .24s ease;
    pointer-events: none;
}
.mega--end { inset-inline-start: auto; inset-inline-end: 0; }
.nav-item:hover > .mega,
.nav-item:focus-within > .mega,
.nav-trigger[aria-expanded="true"] + .mega {
    opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto;
}

.mega__card {
    background: rgba(255, 255, 255, .975);
    -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
    border: 1px solid var(--mega-hairline); border-radius: 1.25rem;
    box-shadow: 0 2px 6px -3px rgba(13, 27, 62, .10),
                0 18px 48px -22px rgba(13, 27, 62, .30);
    overflow: hidden;
}
.mega__col { padding: 1.4rem; }
.mega__col + .mega__col { border-inline-start: 1px solid var(--mega-hairline); }
.mega__eyebrow {
    display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
    font-size: .7rem; font-weight: 800; letter-spacing: .045em;
    color: #97a0b2; text-transform: uppercase;
}
.mega__eyebrow i { color: var(--nav-primary); font-size: .8rem; }
.mega__side-label {
    display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem;
    font-size: .68rem; font-weight: 700; color: #aab2c1;
}

/* Footer CTA — minimal light row with a sliding arrow. */
.mega__cta {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .95rem 1.4rem; border-top: 1px solid var(--mega-hairline);
    background: rgba(37, 64, 162, .035);
    font-size: .85rem; font-weight: 700; color: var(--nav-primary);
    transition: background-color .18s ease;
}
.mega__cta:hover { background: rgba(37, 64, 162, .08); }
.mega__cta-arrow { transition: transform .25s var(--nav-ease); }
.mega__cta:hover .mega__cta-arrow { transform: translateX(-5px); }

/* Neighbourhood pill link (rent/sale menus). */
.mega-place {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .55rem; border-radius: .6rem; font-size: .875rem; font-weight: 600;
    color: #4a5468; transition: background-color .15s ease, color .15s ease;
}
.mega-place__dot { width: .35rem; height: .35rem; border-radius: 999px; background: #c2cbe4; transition: background-color .18s ease, transform .18s ease; }
.mega-place:hover { background: rgba(37, 64, 162, .06); color: #1f3488; }
.mega-place:hover .mega-place__dot { background: #0fca98; transform: scale(1.7); }

/* Property-type row with leading glyph tile. */
.mega-type {
    display: flex; align-items: center; gap: .8rem;
    padding: .6rem .65rem; border-radius: .85rem;
    transition: background-color .18s ease;
}
.mega-type:hover { background: rgba(37, 64, 162, .055); }
.mega-type__ic {
    flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: .8rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: #eef1fb; color: var(--nav-primary); font-size: 1.05rem;
    transition: background-color .2s var(--nav-ease), color .2s ease, transform .2s var(--nav-ease), box-shadow .2s ease;
}
.mega-type:hover .mega-type__ic {
    background: var(--nav-primary); color: #fff; transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px rgba(37, 64, 162, .7);
}
.mega-type__label { font-weight: 700; font-size: .92rem; color: #1a2340; }
.mega-type__hint { font-size: .73rem; color: #8b93a5; }

/* Hub-article (pillar) link at the foot of a property menu column. */
.mega-guide {
    display: flex; align-items: center; gap: .5rem;
    margin-top: .7rem; padding: .65rem .7rem; border-radius: .8rem;
    font-size: .82rem; font-weight: 700; color: var(--nav-primary);
    background: rgba(37, 64, 162, .06); transition: background-color .18s ease;
}
.mega-guide:hover { background: rgba(37, 64, 162, .11); }
.mega-guide__arrow { margin-inline-start: auto; transition: transform .25s var(--nav-ease); }
.mega-guide:hover .mega-guide__arrow { transform: translateX(-4px); }

@media (prefers-reduced-motion: reduce) {
    .mega { transition: opacity .12s ease, visibility .12s ease; transform: none; }
    .nav-item:hover > .mega, .nav-item:focus-within > .mega,
    .nav-trigger[aria-expanded="true"] + .mega { transform: none; }
}

/* Mobile accordion submenu. */
.m-acc__panel { display: none; }
.m-acc[open] .m-acc__panel { display: block; }
.m-acc__caret { transition: transform .2s ease; }
.m-acc[open] .m-acc__caret { transform: rotate(180deg); }

/* Consultation hero (rent + sale list pages): brighter neon-green accent for the
   highlighted headline word and eyebrow, overriding the site accent locally. */
.consult-hero .text-accent { color: #00ff8a; }

/* The title uses Tailwind text-4xl/text-5xl, whose shorthand also sets a tight
   line-height (text-5xl → 1) that, as a responsive variant, is emitted after the
   leading-* utility and wins. Restore breathing room with a descendant selector
   (higher specificity than the single-class utility) so the two-line headline
   isn't cramped. */
.consult-hero .consult-hero__title { line-height: 1.725; }
