/*!
 * Homesway theme
 * Mobile-first, framework-free. Brand colours come from theme options (--c-brand / --c-accent set inline
 * in the <head>); every tint and shade is derived from them with color-mix().
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
    --c-brand: #1d5f6f;
    --c-brand-hover: #134a57;
    --c-accent: #2f9e44;

    --c-brand-50: color-mix(in srgb, var(--c-brand) 6%, #fff);
    --c-brand-100: color-mix(in srgb, var(--c-brand) 12%, #fff);
    --c-brand-200: color-mix(in srgb, var(--c-brand) 24%, #fff);
    --c-brand-700: color-mix(in srgb, var(--c-brand) 80%, #000);
    --c-brand-900: color-mix(in srgb, var(--c-brand) 55%, #04141a);
    --c-accent-100: color-mix(in srgb, var(--c-accent) 14%, #fff);
    --c-accent-700: color-mix(in srgb, var(--c-accent) 82%, #000);

    --c-ink: #0f172a;
    --c-ink-2: #334155;
    --c-muted: #64748b;
    --c-line: #e2e8f0;
    --c-line-2: #eef2f5;
    --c-bg: #ffffff;
    --c-bg-soft: #f5f8f9;
    --c-info: #2563eb;
    --c-info-100: #e0ebff;
    --c-danger: #dc2626;
    --c-danger-100: #fde8e8;
    --c-success: #15803d;
    --c-success-100: #dcfce7;
    --c-whatsapp: #25d366;

    --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .28);
    --ring: 0 0 0 4px color-mix(in srgb, var(--c-brand) 22%, transparent);

    --container: 1240px;
    --gutter: 16px;
    --header-h: 68px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) {
    :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
    :root { --header-h: 76px; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-ink-2);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    color: var(--c-ink);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
}

p { margin: 0 0 1em; }

a {
    color: var(--c-brand);
    text-decoration: none;
    transition: color .15s var(--ease);
}

a:hover { color: var(--c-brand-hover); }

img, svg, video, iframe { max-width: 100%; }

img { height: auto; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--c-brand) 55%, transparent);
    outline-offset: 2px;
    border-radius: 6px;
}

ul, ol { padding: 0; margin: 0; }

address { font-style: normal; }

[hidden] { display: none !important; }

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    background: var(--c-ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-xs);
    font-weight: 600;
}

.skip-link:focus { top: 12px; color: #fff; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 16px; height: 16px; }

.muted { color: var(--c-muted); }

.lead { font-size: 1.075rem; color: var(--c-ink-2); }

.stack { display: grid; gap: 16px; }

.stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--c-muted);
    font-size: .8125rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-line);
}

/* ==========================================================================
   3. Buttons, badges, chips
   ========================================================================== */
.btn {
    --btn-bg: var(--c-bg);
    --btn-fg: var(--c-ink);
    --btn-bd: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1.5px solid var(--btn-bd);
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }

.btn--primary { --btn-bg: var(--c-brand); --btn-fg: #fff; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--c-brand) 80%, transparent); }
.btn--primary:hover { --btn-bg: var(--c-brand-hover); }
.btn--accent { --btn-bg: var(--c-accent); --btn-fg: #fff; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--c-accent) 80%, transparent); }
.btn--accent:hover { --btn-bg: var(--c-accent-700); }
.btn--outline { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-bd: var(--c-line); }
.btn--outline:hover { --btn-bd: var(--c-brand); --btn-fg: var(--c-brand); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink-2); }
.btn--ghost:hover { --btn-bg: var(--c-brand-50); --btn-fg: var(--c-brand); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-brand-700); }
.btn--light:hover { --btn-bg: var(--c-brand-50); --btn-fg: var(--c-brand-700); }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, .12); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .2); }
.btn--whatsapp { --btn-bg: var(--c-whatsapp); --btn-fg: #fff; }
.btn--whatsapp:hover { --btn-bg: #1ebe5a; }

.btn--sm { min-height: 38px; padding: 7px 14px; font-size: .875rem; border-radius: 10px; }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1rem; }
.btn--block { width: 100%; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .01em;
    background: var(--c-line-2);
    color: var(--c-ink-2);
    white-space: nowrap;
}

.badge--brand { background: var(--c-brand); color: #fff; }
.badge--accent { background: var(--c-accent); color: #fff; }
.badge--info { background: var(--c-info); color: #fff; }
.badge--success { background: var(--c-success-100); color: var(--c-success); }
.badge--muted { background: var(--c-line-2); color: var(--c-muted); }
.badge--light { background: rgba(255, 255, 255, .92); color: var(--c-ink); backdrop-filter: blur(6px); }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--c-brand-50);
    color: var(--c-brand-700);
    font-size: .8125rem;
    font-weight: 600;
    border: 1px solid var(--c-brand-100);
}

.chip:hover { background: var(--c-brand-100); color: var(--c-brand-700); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 12px 6px 10px;
    border-radius: var(--radius-pill);
    background: var(--c-brand-50);
    color: var(--c-brand);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.eyebrow .icon { width: 16px; height: 16px; color: var(--c-accent); }
.eyebrow--light { background: rgba(255, 255, 255, .12); color: #fff; }
.eyebrow--light .icon { color: #9be7ad; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .9375rem;
    color: var(--c-brand);
    white-space: nowrap;
}

.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--c-ink);
    transition: background-color .15s var(--ease), color .15s var(--ease);
}

.icon-btn:hover { background: var(--c-brand-50); color: var(--c-brand); }
.icon-btn--soft { background: var(--c-bg-soft); border-color: var(--c-line-2); }

.icon-btn__count {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--c-accent);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

/* ==========================================================================
   4. Forms
   ========================================================================== */
.field { position: relative; display: grid; gap: 6px; margin: 0; min-width: 0; border: 0; padding: 0; }

.label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--c-ink);
    padding: 0;
}

.label span[aria-hidden] { color: var(--c-danger); }

.input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--c-ink);
    font-size: .9375rem;
    line-height: 1.4;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
    appearance: none;
}

.input::placeholder { color: #94a3b8; }
.input:hover { border-color: #cbd5e1; }
.input:focus { outline: none; border-color: var(--c-brand); box-shadow: var(--ring); }
.input.is-invalid { border-color: var(--c-danger); }
.input--sm { min-height: 38px; padding: 7px 12px; font-size: .875rem; border-radius: 10px; }

.select {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    cursor: pointer;
}

.textarea { min-height: 110px; resize: vertical; }

.field--icon > .icon {
    position: absolute;
    left: 14px;
    bottom: 13px;
    width: 20px;
    height: 20px;
    color: var(--c-muted);
    pointer-events: none;
    z-index: 1;
}

.field--icon .input { padding-left: 44px; }
.input--sm + .icon, .field--icon .input--sm { padding-left: 38px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.field__error { margin: 0; color: var(--c-danger); font-size: .8125rem; }

.field__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

.small-link { font-size: .8125rem; font-weight: 600; }

.form-grid { display: grid; gap: 14px; }

@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .field--full { grid-column: 1 / -1; }
}

.checkbox { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--c-brand); }

.segmented {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-sm);
    background: var(--c-bg-soft);
    border: 1px solid var(--c-line-2);
}

.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }

.segmented span {
    display: block;
    padding: 8px 6px;
    border-radius: 9px;
    text-align: center;
    font-size: .875rem;
    font-weight: 600;
    color: var(--c-muted);
    transition: background-color .15s, color .15s, box-shadow .15s;
}

.segmented input:checked + span { background: #fff; color: var(--c-brand); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { box-shadow: var(--ring); }

.form-status {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
}

.form-status.is-success { background: var(--c-success-100); color: var(--c-success); }
.form-status.is-error { background: var(--c-danger-100); color: var(--c-danger); }

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 0;
    font-size: .75rem;
    color: var(--c-muted);
}

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 16px; }
.alert--success { background: var(--c-success-100); color: var(--c-success); }
.alert--error { background: var(--c-danger-100); color: var(--c-danger); }

/* Autocomplete dropdowns */
.autocomplete__list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 320px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px;
}

.suggest { list-style: none; }

.suggest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    text-align: left;
    color: var(--c-ink);
    font-size: .9rem;
}

.suggest__item:hover,
.suggest__item.is-active { background: var(--c-brand-50); color: var(--c-brand-700); }
.suggest__item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.suggest__item strong { display: block; font-weight: 600; line-height: 1.3; }
.suggest__item small { color: var(--c-muted); }
.suggest__item .icon { color: var(--c-muted); }
.suggest__empty { padding: 10px; color: var(--c-muted); font-size: .875rem; }

/* ==========================================================================
   5. Header, navigation, drawer
   ========================================================================== */
.topbar {
    display: none;
    background: var(--c-brand-900);
    color: rgba(255, 255, 255, .85);
    font-size: .8125rem;
}

@media (min-width: 900px) {
    .topbar { display: block; }
}

.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__contact { display: flex; gap: 22px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; opacity: .8; }
.topbar__right { display: flex; align-items: center; gap: 16px; }

.socials { display: flex; gap: 8px; list-style: none; }

.socials a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background-color .15s, transform .15s;
}

.socials a:hover { background: var(--c-accent); color: #fff; transform: translateY(-2px); }
.socials .icon { width: 18px; height: 18px; }
.socials--sm { gap: 2px; }
.socials--sm a { width: 28px; height: 28px; background: transparent; }
.socials--sm .icon { width: 15px; height: 15px; }

.lang-switcher { position: relative; }

.lang-switcher summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    cursor: pointer;
    font-weight: 600;
}

.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher .icon { width: 15px; height: 15px; }

.lang-switcher ul {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 150px;
    padding: 6px;
    list-style: none;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 60;
}

.lang-switcher ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--c-ink); }
.lang-switcher ul a:hover { background: var(--c-brand-50); color: var(--c-brand); }

.site-header {
    position: relative;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--c-line-2);
    transition: box-shadow .2s var(--ease);
}

.site-header[data-sticky="true"] { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .18); }
.show-admin-bar .site-header[data-sticky="true"] { top: 40px; }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand__text { font-size: 1.25rem; font-weight: 800; color: var(--c-brand); letter-spacing: -.02em; }

@media (min-width: 1024px) {
    .brand img { height: 50px; }
}

.main-nav { display: none; margin-left: auto; }

@media (min-width: 1024px) {
    .main-nav { display: block; }
}

.menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.menu__item { position: relative; }

.menu__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--c-ink-2);
    font-weight: 600;
    font-size: .9375rem;
}

.menu__link:hover { color: var(--c-brand); background: var(--c-brand-50); }
.menu__link.is-active { color: var(--c-brand); }

.main-nav .menu__link.is-active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-accent);
}

.menu__sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 8px;
    list-style: none;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}

.menu__item:hover > .menu__sub,
.menu__item:focus-within > .menu__sub { opacity: 1; visibility: visible; transform: none; }
.menu__sub .menu__link { display: flex; width: 100%; }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

@media (min-width: 1024px) {
    .header-actions { margin-left: 8px; gap: 8px; }
}

.header-link {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--c-ink-2);
    font-weight: 600;
    font-size: .9375rem;
}

.header-link:hover { background: var(--c-brand-50); }
.header-cta { display: none; }

@media (min-width: 640px) {
    .header-cta { display: inline-flex; }
}

@media (min-width: 1024px) {
    .header-link { display: inline-flex; }
    .burger { display: none; }
}

.drawer { position: fixed; inset: 0; z-index: 200; }

.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
    animation: fade-in .2s var(--ease);
}

.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px 20px 28px;
    overflow-y: auto;
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: slide-in .25s var(--ease);
}

.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head .brand img { height: 40px; }
.menu--stacked { flex-direction: column; align-items: stretch; gap: 2px; }
.menu--stacked .menu__link { display: flex; padding: 12px 14px; font-size: 1rem; }
.menu--stacked .menu__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 12px; }
.drawer__actions { display: grid; gap: 10px; }
.drawer__actions form { margin: 0; }

.drawer__contact {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--c-line-2);
    font-size: .9rem;
}

.drawer__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink-2); }
.drawer__contact .lang-switcher ul { left: 0; right: auto; bottom: calc(100% + 8px); top: auto; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ==========================================================================
   6. Sections
   ========================================================================== */
.site-main { display: block; }

.section { padding-block: 56px; }
.section--tight { padding-block: 32px; }
.section--soft { background: var(--c-bg-soft); }

@media (min-width: 900px) {
    .section { padding-block: 88px; }
    .section--tight { padding-block: 48px; }
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 32px;
}

.section-head > div { max-width: 640px; }

.section-title {
    font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0 0 8px;
}

.section-title--sm { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin-bottom: 24px; }
.section-desc { margin: 0; color: var(--c-muted); font-size: 1.0625rem; }

.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid--listing { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.card {
    background: #fff;
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 32px 0 56px;
    background:
        radial-gradient(1200px 500px at 110% -10%, var(--c-brand-100), transparent 60%),
        radial-gradient(800px 400px at -10% 110%, var(--c-accent-100), transparent 60%),
        linear-gradient(180deg, var(--c-brand-50), #fff 80%);
}

.hero__inner { display: grid; gap: 40px; align-items: center; }

@media (min-width: 1024px) {
    .hero { padding: 56px 0 88px; }
    .hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; }
}

.hero__content { animation: rise .6s var(--ease) both; }

.hero__title {
    font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.06;
    margin: 0 0 16px;
}

.hero__lead { max-width: 560px; font-size: clamp(1rem, .95rem + .3vw, 1.175rem); color: var(--c-ink-2); margin-bottom: 28px; }

.search-card {
    position: relative;
    z-index: 5;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--c-line-2);
    box-shadow: var(--shadow-lg);
}

.search-card__tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 4px 10px; border-radius: var(--radius-sm); background: var(--c-bg-soft); }

.search-card__tabs button {
    min-width: 76px;
    padding: 8px 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--c-muted);
    font-weight: 700;
    font-size: .9rem;
    transition: background-color .15s, color .15s, box-shadow .15s;
}

.search-card__tabs button.is-active { background: #fff; color: var(--c-brand); box-shadow: var(--shadow-sm); }

.search-card__fields { display: grid; gap: 8px; }
.search-card__fields .input { border-color: var(--c-line-2); background: var(--c-bg-soft); }
.search-card__fields .input:focus { background: #fff; }
.search-card__submit span { display: inline; }

@media (min-width: 640px) {
    .search-card__fields { grid-template-columns: 1fr 1fr; }
}

.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 28px 0 0; }
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-size: .8125rem; color: var(--c-muted); font-weight: 600; }
.hero__stats dd { margin: 0; font-size: 1.75rem; font-weight: 800; color: var(--c-ink); letter-spacing: -.02em; line-height: 1.1; }

.hero__media { position: relative; animation: rise .7s .1s var(--ease) both; }

.hero__image {
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--c-brand-100);
}

@media (min-width: 1024px) {
    .hero__image { aspect-ratio: 5 / 6; border-radius: 32px 32px 32px 120px; }
}

.hero__image img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    color: var(--c-ink);
    font-size: .8125rem;
    max-width: 260px;
}

.float-card strong { display: block; font-size: .9rem; color: var(--c-ink); }
.float-card span { color: var(--c-muted); }
.float-card--top { top: 20px; left: 12px; }
.float-card--bottom { bottom: 20px; right: 12px; }
a.float-card:hover { color: var(--c-ink); transform: translateY(-2px); }

@media (min-width: 1024px) {
    .float-card--top { top: 44px; left: -36px; }
    .float-card--bottom { bottom: 44px; right: -20px; }
}

.float-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--c-brand-50);
    color: var(--c-brand);
}

.float-card__icon--accent { background: var(--c-accent-100); color: var(--c-accent-700); }

/* ==========================================================================
   8. Cards
   ========================================================================== */
.p-card,
.proj-card,
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}

.p-card:hover,
.proj-card:hover,
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.p-card__media,
.proj-card__media,
.post-card__media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--c-bg-soft);
}

.p-card__media img,
.proj-card__media img,
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }

.p-card:hover .p-card__media img,
.proj-card:hover .proj-card__media img,
.post-card:hover .post-card__media img { transform: scale(1.05); }

.p-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

.p-card__count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, .6);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.p-card__fav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--c-ink-2);
    box-shadow: var(--shadow-sm);
    transition: transform .15s var(--ease), color .15s;
}

.p-card__fav:hover { transform: scale(1.08); color: #e11d48; }
.p-card__fav .icon { width: 19px; height: 19px; }

.js-wishlist-toggle[aria-pressed="true"] { color: #e11d48; }
.js-wishlist-toggle[aria-pressed="true"] .icon { fill: currentColor; }
.js-wishlist-toggle.is-pop .icon { animation: pop .35s var(--ease); }

@keyframes pop { 50% { transform: scale(1.3); } }

.p-card__body,
.proj-card__body,
.post-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }

.p-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.p-card__price { flex-shrink: 0; white-space: nowrap; font-size: 1.25rem; font-weight: 800; color: var(--c-brand); letter-spacing: -.02em; }

.p-card__type,
.proj-card__type {
    font-size: .75rem;
    font-weight: 700;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.p-card__title,
.proj-card__title,
.post-card__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-card__title a,
.proj-card__title a,
.post-card__title a { color: var(--c-ink); }

.p-card__title a:hover,
.proj-card__title a:hover,
.post-card__title a:hover { color: var(--c-brand); }

.p-card__loc {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: .875rem;
    color: var(--c-muted);
}

.p-card__loc .icon { margin-top: 3px; color: var(--c-accent); }
.p-card__loc span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.p-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--c-line);
    list-style: none;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--c-ink-2);
}

.p-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.p-card__meta .icon { color: var(--c-muted); }

.proj-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--c-line);
}

.proj-card__price { font-weight: 800; color: var(--c-brand); }
.proj-card__cta { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 700; color: var(--c-ink-2); }
.proj-card:hover .proj-card__cta { color: var(--c-brand); }

.post-card__cat { position: absolute; left: 12px; bottom: 12px; }
.post-card__meta { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .8125rem; color: var(--c-muted); }
.post-card__excerpt { margin: 0; color: var(--c-muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link-arrow { margin-top: auto; padding-top: 8px; font-size: .875rem; }

/* Property types strip */
.cat-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; list-style: none; }

@media (max-width: 480px) {
    .cat-card { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius);
    background: #fff;
    color: var(--c-ink);
    box-shadow: var(--shadow-xs);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.cat-card:hover { border-color: var(--c-brand-200); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--c-ink); }

.cat-card__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--c-brand-50);
    color: var(--c-brand);
    transition: background-color .2s, color .2s;
}

.cat-card:hover .cat-card__icon { background: var(--c-brand); color: #fff; }
.cat-card__body strong { display: block; font-size: .95rem; line-height: 1.3; }
.cat-card__body span { font-size: .8125rem; color: var(--c-muted); }

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; list-style: none; }

.loc-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-height: 84px;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--c-line-2);
    background: linear-gradient(135deg, #fff, var(--c-brand-50));
    color: var(--c-ink);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.loc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c-brand-200); color: var(--c-ink); }

.loc-card__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--c-accent);
    box-shadow: var(--shadow-sm);
}

.loc-card__body { flex: 1; min-width: 0; }
.loc-card__body strong { display: block; font-size: 1rem; line-height: 1.3; }
.loc-card__body span { font-size: .8125rem; color: var(--c-muted); }
.loc-card__arrow { color: var(--c-muted); transition: transform .2s, color .2s; }
.loc-card:hover .loc-card__arrow { transform: translateX(3px); color: var(--c-brand); }

.loc-card--image { min-height: 160px; align-items: flex-end; color: #fff; border: 0; }
.loc-card--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loc-card--image::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, rgba(4, 20, 26, .75)); }
.loc-card--image > :not(img) { position: relative; z-index: 2; }
.loc-card--image .loc-card__body span,
.loc-card--image .loc-card__arrow,
.loc-card--image:hover { color: #fff; }

/* Why choose us */
.section--brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-brand-900), var(--c-brand-700));
    color: rgba(255, 255, 255, .82);
}

.section--brand::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--c-accent) 45%, transparent), transparent 70%);
    opacity: .5;
    pointer-events: none;
}

.section--brand .section-title { color: #fff; }
.section--brand .section-desc { color: rgba(255, 255, 255, .78); margin-bottom: 24px; }

.why { position: relative; z-index: 1; display: grid; gap: 40px; }

@media (min-width: 1024px) {
    .why { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 64px; }
}

.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; list-style: none; }

.why-card {
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: background-color .2s, transform .2s;
}

.why-card:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.why-card h3 { color: #fff; font-size: 1.0625rem; margin: 16px 0 6px; }
.why-card p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .72); }

.why-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--c-accent);
    color: #fff;
}

/* CTA band */
.cta-band {
    position: relative;
    display: grid;
    gap: 24px;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(600px 240px at 100% 0%, color-mix(in srgb, var(--c-accent) 55%, transparent), transparent 70%),
        linear-gradient(120deg, var(--c-brand), var(--c-brand-900));
    color: rgba(255, 255, 255, .85);
    box-shadow: var(--shadow-lg);
}

.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); font-weight: 800; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
    .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 48px 56px; }
}

/* ==========================================================================
   9. Inner page header, breadcrumbs
   ========================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 32px;
    background:
        radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--c-accent) 30%, transparent), transparent 70%),
        linear-gradient(135deg, var(--c-brand-900), var(--c-brand-700));
    color: rgba(255, 255, 255, .82);
}

@media (min-width: 900px) {
    .page-hero { padding: 40px 0 48px; }
}

.page-hero__title { color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem); font-weight: 800; letter-spacing: -.03em; margin: 8px 0; }
.page-hero__subtitle { max-width: 720px; margin: 0; font-size: 1.0625rem; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: .9375rem; }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; font-size: .8125rem; font-weight: 500; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb a { color: inherit; opacity: .8; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb [aria-current] span { opacity: .65; display: inline-block; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.page-hero .breadcrumb { color: rgba(255, 255, 255, .9); }
.detail-top .breadcrumb,
.article__header .breadcrumb { color: var(--c-muted); margin-bottom: 12px; }
.detail-top .breadcrumb a:hover,
.article__header .breadcrumb a:hover { color: var(--c-brand); }

.agent-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.agent-hero__avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, .25); }
.agent-hero__contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ==========================================================================
   10. Listings
   ========================================================================== */
.listing-layout { display: grid; gap: 28px; align-items: start; }

@media (min-width: 1024px) {
    .listing-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; }
    .listing-layout__aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

.filters { display: grid; gap: 16px; padding: 20px; }
.filters__head { display: flex; align-items: center; gap: 12px; }
.filters__title { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 1.0625rem; }
.filters__title .icon { color: var(--c-brand); }
.filters__reset { margin-left: auto; font-size: .8125rem; font-weight: 700; }
.filters__close { display: none; }

@media (max-width: 1023px) {
    .listing-layout__aside { display: contents; }

    .filters {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 210;
        width: min(380px, 92vw);
        overflow-y: auto;
        border-radius: 0;
        transform: translateX(105%);
        transition: transform .28s var(--ease);
        align-content: start;
    }

    .filters.is-open { transform: none; box-shadow: var(--shadow-lg); }
    .filters__close { display: inline-grid; }
    .filters__reset { margin-left: auto; }

    .filters-backdrop { position: fixed; inset: 0; z-index: 205; background: rgba(15, 23, 42, .45); animation: fade-in .2s; }
}

@media (min-width: 1024px) {
    .filters-toggle { display: none; }
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.toolbar__count { margin: 0; color: var(--c-muted); font-size: .9375rem; }
.toolbar__count strong { color: var(--c-ink); }
.toolbar__controls { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar__select .input { width: auto; min-width: 150px; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination__pages { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }

.pagination__btn,
.pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-line);
    background: #fff;
    color: var(--c-ink-2);
    font-weight: 600;
    font-size: .9rem;
}

.pagination__btn:hover,
.pagination__page:hover { border-color: var(--c-brand); color: var(--c-brand); }
.pagination__page.is-current { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.pagination__btn.is-disabled { opacity: .45; }
.pagination__dots { display: inline-grid; place-items: center; min-width: 30px; height: 42px; color: var(--c-muted); }

@media (max-width: 560px) {
    .pagination__label { display: none; }
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 56px 24px;
    border: 1.5px dashed var(--c-line);
    border-radius: var(--radius);
    text-align: center;
    background: var(--c-bg-soft);
}

.empty-state h2 { font-size: 1.25rem; margin: 8px 0 0; }
.empty-state p { margin: 0 0 12px; color: var(--c-muted); max-width: 440px; }

.empty-state__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    color: var(--c-brand);
    box-shadow: var(--shadow-sm);
}

.empty-state__icon .icon { width: 28px; height: 28px; }

/* ==========================================================================
   11. Property & project detail
   ========================================================================== */
.detail-top { padding-top: 20px; }

.detail-head {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 900px) {
    .detail-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
}

.detail-head__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail-head__title { font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.detail-head__loc { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--c-muted); }
.detail-head__loc .icon { color: var(--c-accent); margin-top: 3px; }
.detail-head__side { display: grid; gap: 10px; }

@media (min-width: 900px) {
    .detail-head__side { justify-items: end; text-align: right; }
}

.detail-head__price { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 800; color: var(--c-brand); letter-spacing: -.02em; line-height: 1.1; }
.detail-head__actions { display: flex; gap: 8px; }

.gallery {
    display: grid;
    gap: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: clamp(260px, 52vw, 540px);
}

.gallery__item {
    position: relative;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--c-bg-soft);
    cursor: zoom-in;
    min-height: 0;
}

.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gallery__item:hover img { transform: scale(1.03); filter: brightness(.94); }

.gallery__more {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .95);
    color: var(--c-ink);
    font-weight: 700;
    font-size: .8125rem;
    box-shadow: var(--shadow);
}

.gallery--empty img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767px) {
    .gallery { grid-template-columns: 1fr; grid-auto-rows: 100%; }
    .gallery__item:not(:first-child) { display: none; }
    .gallery__item:first-child .gallery__more,
    .gallery__item:first-child::after { display: inline-flex; }
}

@media (min-width: 768px) {
    .gallery--2 { grid-template-columns: 2fr 1fr; }
    .gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
    .gallery--3 .gallery__item:first-child { grid-row: span 2; }
    .gallery--4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
    .gallery--4 .gallery__item:first-child { grid-row: span 2; }
    .gallery--4 .gallery__item:last-child { grid-column: span 2; }
    .gallery--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
    .gallery--5 .gallery__item:first-child { grid-row: span 2; }
}

.detail-layout { display: grid; gap: 32px; padding-block: 32px 56px; align-items: start; }

@media (min-width: 1024px) {
    .detail-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-block: 40px 88px; }
    .detail-aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

.detail-main { min-width: 0; }
.detail-aside { display: grid; gap: 16px; }

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 12px;
    list-style: none;
    margin-bottom: 28px;
}

.fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--c-bg-soft);
    border: 1px solid var(--c-line-2);
}

.fact__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    color: var(--c-brand);
    box-shadow: var(--shadow-xs);
}

.fact__body { display: grid; min-width: 0; }
.fact__label { font-size: .75rem; color: var(--c-muted); font-weight: 600; }
.fact__value { color: var(--c-ink); font-size: .95rem; line-height: 1.3; overflow-wrap: break-word; }

.detail-tabs {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    display: flex;
    gap: 4px;
    margin: 0 calc(var(--gutter) * -1) 8px;
    padding: 8px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-line-2);
}

.detail-tabs::-webkit-scrollbar { display: none; }
.show-admin-bar .detail-tabs { top: calc(var(--header-h) + 40px); }

@media (min-width: 1024px) {
    .detail-tabs { margin-inline: 0; padding-inline: 0; }
}

.detail-tabs a {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 9px;
    color: var(--c-muted);
    font-weight: 600;
    font-size: .9rem;
}

.detail-tabs a:hover,
.detail-tabs a.is-active { background: var(--c-brand-50); color: var(--c-brand); }

.detail-section { padding: 28px 0; border-bottom: 1px solid var(--c-line-2); }
.detail-section:last-of-type { border-bottom: 0; }
.detail-section__title { font-size: 1.375rem; font-weight: 800; margin-bottom: 16px; }

.spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    margin: 20px 0 0;
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius);
    overflow: hidden;
}

.spec-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-line-2);
    margin-bottom: -1px;
}

.spec-list > div:nth-child(odd) { background: var(--c-bg-soft); }
.spec-list dt { color: var(--c-muted); font-size: .875rem; }
.spec-list dd { margin: 0; color: var(--c-ink); font-weight: 600; font-size: .9rem; text-align: right; }

@media (min-width: 640px) {
    .spec-list > div { border-right: 1px solid var(--c-line-2); }
}

.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; list-style: none; }

.amenities li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-line-2);
    font-weight: 500;
    color: var(--c-ink);
}

.amenities .icon { color: #fff; background: var(--c-accent); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }

.nearby { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; list-style: none; }

.nearby li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--c-bg-soft);
}

.nearby span { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink); }
.nearby .icon { color: var(--c-accent); }
.nearby strong { color: var(--c-brand); font-size: .875rem; }

.tabs__list { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: var(--radius-sm); background: var(--c-bg-soft); }

.tabs__list button {
    padding: 8px 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--c-muted);
    font-weight: 700;
    font-size: .9rem;
}

.tabs__list button[aria-selected="true"] { background: #fff; color: var(--c-brand); box-shadow: var(--shadow-sm); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }

.plan-grid__item {
    position: relative;
    padding: 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    cursor: zoom-in;
}

.plan-grid__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }

.plan-grid__zoom {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-brand);
    color: #fff;
}

.project-inline {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius);
    color: var(--c-ink-2);
    transition: box-shadow .2s, border-color .2s;
}

.project-inline:hover { box-shadow: var(--shadow); border-color: transparent; color: var(--c-ink-2); }
.project-inline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.project-inline strong { display: block; color: var(--c-ink); font-size: 1.0625rem; margin-bottom: 4px; }
.project-inline p { margin: 0 0 6px; font-size: .875rem; color: var(--c-muted); }

@media (min-width: 640px) {
    .project-inline { grid-template-columns: 180px 1fr; }
}

.map-embed,
.video-embed {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    margin-top: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .2)),
        repeating-linear-gradient(45deg, var(--c-brand-50) 0 14px, #fff 14px 28px);
    border: 1px solid var(--c-line-2);
}

.map-embed iframe,
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; }
.share__label { font-weight: 700; color: var(--c-ink); margin-right: 4px; }
.share .icon-btn { width: 40px; height: 40px; border-radius: 50%; }
.share .icon { width: 18px; height: 18px; }

.enquiry-card { padding: 22px; box-shadow: var(--shadow); }
.enquiry-card__price { margin: 0; font-size: 1.75rem; font-weight: 800; color: var(--c-brand); letter-spacing: -.02em; line-height: 1.15; }
.enquiry-card__sub { margin: 2px 0 0; color: var(--c-muted); font-size: .875rem; }
.enquiry-card__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.enquiry-form { display: grid; gap: 12px; }
.enquiry-form .textarea { min-height: 84px; }

.agent-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.agent-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.agent-card strong { display: block; color: var(--c-ink); }
.agent-card__role { display: block; font-size: .75rem; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.agent-card .link-arrow { font-size: .8125rem; }

.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-line);
    box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .2);
}

.mobile-cta__price { flex: 1; min-width: 0; font-weight: 800; color: var(--c-brand); font-size: 1.0625rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 1024px) {
    .mobile-cta { display: none; }
}

@media (max-width: 1023px) {
    body:has(.mobile-cta) { padding-bottom: 72px; }
    body:has(.mobile-cta) .fab { bottom: 88px; }
}

/* Lightbox */
.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(4, 12, 16, .94);
    color: #fff;
}

.lightbox::backdrop { background: rgba(4, 12, 16, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in .2s; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.lightbox__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__counter { color: rgba(255, 255, 255, .7); font-size: .875rem; font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 12px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 8px; user-select: none; }

.lightbox .icon-btn { color: #fff; background: rgba(255, 255, 255, .1); border-radius: 50%; width: 46px; height: 46px; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.lightbox__prev,
.lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__thumbs { display: flex; gap: 6px; justify-content: center; padding: 12px; overflow-x: auto; }
.lightbox__thumbs button { flex-shrink: 0; width: 60px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; opacity: .55; }
.lightbox__thumbs button.is-active { border-color: #fff; opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   12. Articles, prose, widgets
   ========================================================================== */
.article__header { padding: 28px 0 24px; background: linear-gradient(180deg, var(--c-brand-50), #fff); }
.article__title { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 12px; }
.article__lead { font-size: 1.125rem; color: var(--c-ink-2); }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; color: var(--c-muted); font-size: .875rem; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.article-layout { display: grid; gap: 40px; padding-block: 40px 64px; align-items: start; }

@media (min-width: 1024px) {
    .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
    .article__aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

.article__aside { display: grid; gap: 20px; }

.prose { color: var(--c-ink-2); font-size: 1.0625rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose h4, .prose h5, .prose h6 { font-size: 1.0625rem; margin: 1.4em 0 .5em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose figure { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--c-accent); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-brand-200); }
.prose a:hover { text-decoration-color: currentColor; }
.prose img { border-radius: var(--radius); margin: 1.5em auto; height: auto !important; }
.prose blockquote { padding: 16px 20px; border-left: 4px solid var(--c-accent); background: var(--c-bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--c-ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; }
.prose th { background: var(--c-bg-soft); color: var(--c-ink); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose--page { max-width: 860px; }
.prose-wrap { padding-block: 32px; }

.js-read-more.is-collapsed { max-height: 360px; overflow: hidden; position: relative; }
.js-read-more.is-collapsed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #fff); }
.read-more-btn { margin-top: 12px; }

.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; color: var(--c-muted); }

.widget { padding: 20px; }
.widget__title { font-size: 1.0625rem; margin-bottom: 12px; }
.widget-links { list-style: none; }
.widget-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-line-2); color: var(--c-ink-2); font-weight: 500; }
.widget-links li:last-child a { border-bottom: 0; }
.widget-links a:hover { color: var(--c-brand); }
.widget-posts { list-style: none; display: grid; gap: 14px; }
.widget-posts a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; color: var(--c-ink); }
.widget-posts img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.widget-posts strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; line-height: 1.35; font-weight: 600; }
.widget-posts a:hover strong { color: var(--c-brand); }
.widget-posts time { font-size: .75rem; color: var(--c-muted); }

/* ==========================================================================
   13. Careers, contact, auth, error
   ========================================================================== */
.job-list { display: grid; gap: 12px; list-style: none; }

.job-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 20px 22px;
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.job-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.job-card__title { font-size: 1.125rem; margin: 0 0 6px; }
.job-card__title a { color: var(--c-ink); }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .875rem; color: var(--c-muted); }
.job-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-card__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-brand); }

.apply-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 24px; background: var(--c-brand-50); border-color: var(--c-brand-100); }
.apply-card h2 { font-size: 1.25rem; margin: 0 0 4px; }
.apply-card p { margin: 0; }

.contact-block { display: grid; gap: 40px; align-items: start; }

@media (min-width: 1024px) {
    .contact-block { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
}

.contact-block h2 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 800; letter-spacing: -.025em; }
.contact-list { display: grid; gap: 12px; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list .icon { margin-top: 2px; }
.contact-list--cards { margin-top: 24px; }

.contact-list--cards li {
    padding: 16px;
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius);
    background: #fff;
}

.contact-list--cards .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--c-brand-50); color: var(--c-brand); margin: 0; }
.contact-list--cards span { display: block; font-size: .75rem; color: var(--c-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.contact-list--cards a,
.contact-list--cards address { color: var(--c-ink); font-weight: 600; }

.form-card { padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; }

@media (min-width: 640px) {
    .form-card { padding: 32px; }
}

.form-card__title { font-size: 1.25rem; margin: 0; }

.auth { display: grid; min-height: calc(100vh - var(--header-h)); }

@media (min-width: 1024px) {
    .auth { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

.auth--single { grid-template-columns: 1fr; min-height: auto; }

.auth__panel {
    display: none;
    padding: 64px 56px;
    background:
        radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--c-accent) 45%, transparent), transparent 70%),
        linear-gradient(145deg, var(--c-brand-900), var(--c-brand-700));
    color: rgba(255, 255, 255, .82);
    align-content: center;
}

@media (min-width: 1024px) {
    .auth__panel { display: grid; }
}

.auth__panel h2 { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.025em; max-width: 440px; }
.auth__perks { display: grid; gap: 12px; margin-top: 16px; list-style: none; }
.auth__perks li { display: flex; align-items: center; gap: 10px; }
.auth__perks .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--c-accent); color: #fff; }
.auth__main { display: grid; place-items: center; padding: 40px var(--gutter); background: var(--c-bg-soft); }
.auth__card { width: 100%; max-width: 460px; padding: 28px 24px; box-shadow: var(--shadow); }

@media (min-width: 640px) {
    .auth__card { padding: 40px; }
}

.auth__card .empty-state__icon { margin-bottom: 12px; }
.auth__title { font-size: 1.625rem; font-weight: 800; margin: 0 0 6px; }
.auth__subtitle { margin: 0 0 20px; }
.auth__switch { margin: 4px 0 0; text-align: center; font-size: .9rem; color: var(--c-muted); }
.auth__switch a { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.auth__social:empty { display: none; }

.error-page { padding: 72px 0 96px; text-align: center; background: linear-gradient(180deg, var(--c-brand-50), #fff); }

.error-page__code {
    margin: 0;
    font-size: clamp(5rem, 3rem + 10vw, 9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-page__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 800; margin: 12px 0 8px; }
.error-page__text { color: var(--c-muted); max-width: 520px; margin: 0 auto 28px; }
.error-page__search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 20px; }
.error-page__search .field { flex: 1; }
.error-page__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ==========================================================================
   14. Footer, floating buttons, toasts
   ========================================================================== */
.site-footer { background: var(--c-brand-900); color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 40px; padding-block: 56px 40px; }

@media (min-width: 900px) {
    .site-footer__grid { grid-template-columns: 1.2fr 2fr 1.1fr; gap: 48px; padding-block: 72px 48px; }
}

.brand--footer img { height: 48px; }
.brand--footer .brand__text { color: #fff; }
.site-footer__about { margin: 16px 0 20px; max-width: 360px; line-height: 1.7; }
.site-footer__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.footer-title { color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col li a { display: inline-block; transition: color .15s, transform .15s; }
.footer-col li a:hover { transform: translateX(3px); }
.footer-col li a i { display: none; }
.site-footer__contact .contact-list { margin-bottom: 20px; }
.site-footer__contact .icon { color: var(--c-accent); width: 18px; height: 18px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 20px;
    font-size: .8125rem;
}

.site-footer__bottom p { margin: 0; }
.site-footer .lang-switcher ul { bottom: calc(100% + 8px); top: auto; }

.fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: transform .2s var(--ease), opacity .2s;
}

.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab .icon { width: 28px; height: 28px; }
.fab--whatsapp { background: var(--c-whatsapp); color: #fff; }
.fab--whatsapp:hover { color: #fff; }
.fab--top { right: 84px; width: 46px; height: 46px; bottom: 23px; background: #fff; color: var(--c-ink); }
.fab--top .icon { width: 20px; height: 20px; }

.toast-region { position: fixed; left: 50%; bottom: 24px; z-index: 300; display: grid; gap: 8px; transform: translateX(-50%); width: min(420px, calc(100vw - 32px)); pointer-events: none; }

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--c-ink);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: rise .25s var(--ease);
}

.toast .icon { width: 18px; height: 18px; color: #86efac; }
.toast--error .icon { color: #fca5a5; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }

/* Third-party widgets that inject their own markup */
.site-footer .footer-menu,
.footer-col > ul { list-style: none; display: grid; gap: 10px; }

@media print {
    .topbar, .site-header, .site-footer, .fab, .mobile-cta, .detail-aside, .detail-tabs, .share { display: none !important; }
}

/* ==========================================================================
   15. Header v2 — brand masthead + mega navigation (MagicBricks-style)
   ========================================================================== */
:root { --masthead-h: 60px; --nav-h: 0px; --header-h: calc(var(--masthead-h) + var(--nav-h)); }

@media (min-width: 1024px) {
    :root { --masthead-h: 64px; --nav-h: 52px; }
}

.site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--c-line);
}

.masthead {
    background: linear-gradient(90deg, var(--c-brand-900), var(--c-brand) 70%, var(--c-brand-700));
    color: #fff;
}

.masthead__inner { display: flex; align-items: center; gap: 12px; min-height: var(--masthead-h); }

@media (min-width: 1024px) {
    .masthead__inner { gap: 20px; }
    .masthead .burger { display: none; }
}

/* The site logo is dark-on-light; render it as a clean white mark on the brand bar and footer. */
.brand--on-dark img,
.brand--footer img { height: 34px; width: auto; filter: brightness(0) invert(1); }

@media (min-width: 1024px) {
    .brand--on-dark img { height: 38px; }
}

.icon-btn--on-dark { color: #fff; }
.icon-btn--on-dark:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.masthead .icon-btn__count { box-shadow: 0 0 0 2px var(--c-brand); }

.masthead__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

@media (min-width: 1024px) {
    .masthead__actions { gap: 12px; }
}

.masthead__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    list-style: none;
}

.masthead__link::-webkit-details-marker { display: none; }
.masthead__link:hover { background: rgba(255, 255, 255, .14); }

@media (max-width: 767px) {
    .account-menu { display: none; }
}

.socials--header { display: none; gap: 4px; }
.socials--header a { width: 32px; height: 32px; background: rgba(255, 255, 255, .12); }
.socials--header .icon { width: 16px; height: 16px; }
.socials--header a:hover { background: #fff; color: var(--c-brand); }

@media (min-width: 1180px) {
    .socials--header { display: flex; padding-right: 10px; margin-right: 2px; border-right: 1px solid rgba(255, 255, 255, .2); }
}

.post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 16px;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--c-brand-700);
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}

.post-btn:hover { color: var(--c-brand-700); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); }

.post-btn__badge {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: #ffd54a;
    color: #5b4300;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.post-btn--block { justify-content: center; padding: 12px 16px; background: var(--c-brand); color: #fff; }
.post-btn--block:hover { color: #fff; }

.post-btn__short { display: none; }

@media (max-width: 479px) {
    .masthead .post-btn__label { display: none; }
    .masthead .post-btn__short { display: inline; }
    .masthead .post-btn { padding: 6px 6px 6px 12px; gap: 6px; }
}

/* Generic <details> dropdown */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }

.dropdown__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 120;
    min-width: 240px;
    padding: 8px;
    background: #fff;
    color: var(--c-ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--c-line-2);
    animation: rise .18s var(--ease);
}

.dropdown__menu--right { left: auto; right: 0; }

.dropdown__menu > a,
.dropdown__menu form button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--c-ink-2);
    font-weight: 500;
    font-size: .9375rem;
    text-align: left;
}

.dropdown__menu > a:hover,
.dropdown__menu form button:hover { background: var(--c-brand-50); color: var(--c-brand); }
.dropdown__menu form { margin: 0; }
.dropdown__title { margin: 4px 12px 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.dropdown__cta { padding: 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--c-line-2); text-align: center; }
.dropdown__cta p { margin: 8px 0 0; font-size: .8125rem; color: var(--c-muted); }
.dropdown__cta .btn { color: #fff; }

.dropdown__menu > .dropdown__footer {
    justify-content: center;
    margin-top: 4px;
    border-top: 1px solid var(--c-line-2);
    border-radius: 0 0 10px 10px;
    font-weight: 700;
    color: var(--c-brand);
}

.loc-picker { display: none; }

@media (min-width: 640px) {
    .loc-picker { display: block; }
}

.loc-picker__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.loc-picker__btn:hover { background: rgba(255, 255, 255, .2); }
.loc-picker__menu { min-width: 280px; }
.loc-picker__menu ul { list-style: none; max-height: 340px; overflow-y: auto; }

.loc-picker__menu li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--c-ink-2);
    font-size: .9375rem;
}

.loc-picker__menu li a:hover,
.loc-picker__menu li a[aria-current] { background: var(--c-brand-50); color: var(--c-brand); }
.loc-picker__menu small { color: var(--c-muted); font-weight: 600; }

/* Row 2 — mega navigation */
.mega-nav { display: none; background: #fff; }

@media (min-width: 1024px) {
    .mega-nav { display: block; }
}

.mega-nav .container { position: relative; }
.mega { display: flex; align-items: stretch; gap: 4px; list-style: none; height: var(--nav-h); }
.mega__item { display: flex; }

.mega__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    border: 0;
    background: none;
    color: var(--c-ink);
    font-weight: 600;
    font-size: .975rem;
}

.mega__trigger::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--c-brand);
    transform: scaleX(0);
    transition: transform .2s var(--ease);
}

.mega__chev { transition: transform .2s var(--ease); color: var(--c-muted); }

.mega__item:hover .mega__trigger,
.mega__item.is-open .mega__trigger { color: var(--c-brand); }

.mega__item:hover .mega__trigger::after,
.mega__item.is-open .mega__trigger::after { transform: scaleX(1); }

.mega__item:hover .mega__chev,
.mega__item.is-open .mega__chev { transform: rotate(180deg); color: var(--c-brand); }

.mega__badge {
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: #ffd54a;
    color: #5b4300;
    font-size: .625rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.mega__panel {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    z-index: 110;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid var(--c-line-2);
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}

.mega__panel:not(:has(.mega__promo)) { grid-template-columns: 1fr; }

@media (hover: hover) {
    .mega__item:hover .mega__panel { opacity: 1; visibility: visible; transform: none; transition-delay: .08s; }
}

.mega__item.is-open .mega__panel,
.mega__item:focus-within .mega__panel { opacity: 1; visibility: visible; transform: none; }

.mega-nav.is-suppressed .mega__panel { opacity: 0 !important; visibility: hidden !important; }

.mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px 24px; align-content: start; }

.mega__title {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-line-2);
    color: var(--c-ink);
    font-size: .9375rem;
    font-weight: 700;
}

.mega__col ul { list-style: none; display: grid; gap: 2px; }

.mega__col a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--c-ink-2);
    font-size: .9rem;
    line-height: 1.35;
    transition: color .15s, transform .15s;
}

.mega__col a:hover { color: var(--c-brand); transform: translateX(3px); }
.mega__col .icon { color: var(--c-muted); }

.mega__tag {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: var(--c-accent-100);
    color: var(--c-accent-700);
    font-size: .6875rem;
    font-weight: 700;
}

.mega__promo {
    align-self: start;
    min-height: 260px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--c-accent) 60%, transparent), transparent 70%),
        linear-gradient(150deg, var(--c-brand), var(--c-brand-900));
    color: rgba(255, 255, 255, .85);
    font-size: .875rem;
}

.mega__promo:hover { color: rgba(255, 255, 255, .95); }
.mega__promo strong { color: #fff; font-size: 1.125rem; line-height: 1.3; }
.mega__promo-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .15); color: #fff; }
.mega__promo-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; color: #fff; font-weight: 700; }
.mega__promo-cta .icon { transition: transform .2s var(--ease); }
.mega__promo:hover .mega__promo-cta .icon { transform: translateX(3px); }

/* Drawer accordions */
.drawer__nav { display: grid; gap: 0; }
.acc { border-bottom: 1px solid var(--c-line-2); }

.acc > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 4px;
    list-style: none;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--c-ink);
    cursor: pointer;
}

.acc > summary::-webkit-details-marker { display: none; }
.acc__chev { margin-left: auto; color: var(--c-muted); transition: transform .2s; }
.acc[open] .acc__chev { transform: rotate(180deg); color: var(--c-brand); }
.acc__body { padding: 0 4px 14px; }
.acc__title { margin: 10px 0 4px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.acc__body ul { list-style: none; display: grid; }
.acc__body a { display: block; padding: 7px 0; color: var(--c-ink-2); font-size: .9375rem; }
.acc__body a:hover { color: var(--c-brand); }
.socials--drawer a { background: var(--c-brand-50); color: var(--c-brand); }
.socials--drawer a:hover { background: var(--c-brand); color: #fff; }

/* ==========================================================================
   16. Homepage spacing + property-type panel
   ========================================================================== */
.hero { padding-bottom: 72px; }

@media (min-width: 1024px) {
    .hero { padding: 48px 0 104px; }
    .section { padding-block: 72px; }
}

.cat-section { position: relative; z-index: 3; margin-top: -48px; }

.cat-panel {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--c-line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cat-panel__title { margin: 0 0 14px; font-size: 1rem; font-weight: 700; color: var(--c-ink); }

.cat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
}

@media (min-width: 640px) {
    .cat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .cat-panel { padding: 24px 28px; }
    .cat-strip { grid-template-columns: repeat(var(--cat-count, 6), minmax(0, 1fr)); gap: 12px; }
}

.cat-card {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 16px 10px 14px;
    background: var(--c-bg-soft);
    text-align: center;
    box-shadow: none;
}

.cat-card:hover { background: #fff; transform: translateY(-3px); }
.cat-card__icon { width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-xs); }
.cat-card__name { font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.cat-card__count { font-size: .8125rem; color: var(--c-muted); }

.cat-section + .section { padding-top: 56px; }

@media (min-width: 1024px) {
    .cat-section + .section { padding-top: 72px; }
}

/* ==========================================================================
   17. Property overview (grouped specification cards)
   ========================================================================== */
.specs { display: grid; gap: 16px; margin-top: 8px; }

.specs__group {
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.specs__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 18px;
    background: var(--c-bg-soft);
    border-bottom: 1px solid var(--c-line);
    color: var(--c-ink);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.specs__title .icon { color: var(--c-brand); }

/* Each cell draws its own right/bottom hairline; the grid overshoots by 1px so the group's overflow:hidden
   clips the outer lines. Unfilled cells in the last row stay white. */
.specs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    margin: 0 -1px -1px 0;
}

.spec {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 18px;
    background: #fff;
    box-shadow: inset -1px -1px 0 var(--c-line-2);
}

.spec__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--c-brand-50);
    color: var(--c-brand);
}

.spec dt {
    margin: 0 0 2px;
    color: var(--c-muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.spec dd {
    margin: 0;
    color: var(--c-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.specs__address {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    padding: 14px 18px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
}

.specs__address > div { flex: 1; min-width: 200px; }
.specs__address-label { display: block; color: var(--c-muted); font-size: .75rem; font-weight: 600; }
.specs__address address { color: var(--c-ink); font-weight: 600; line-height: 1.45; }

/* Admin toolbar (40px, shown to logged-in admins) pushes the sticky header down: offset sticky elements too. */
@media (min-width: 1024px) {
    .show-admin-bar .detail-aside,
    .show-admin-bar .listing-layout__aside,
    .show-admin-bar .article__aside { top: calc(var(--header-h) + 60px); }
}

.show-admin-bar .detail-tabs { top: calc(var(--header-h) + 40px); }
.show-admin-bar { scroll-padding-top: calc(var(--header-h) + 56px); }
