/* ==========================================================================
   HOLA24 public site
   Layout: docs/design/homepage-desktop.png + homepage-mobile.png
   Brand: Ocean Blue #0057B8 · Sky Blue #4FC3F7 · Sun Yellow #FFC300 · Sand White #F6F7F9
   Fonts are self-hosted (no Google CDN → no visitor IPs sent to Google, GDPR).
   ========================================================================== */

@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 1000;
    src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 1000;
    src: url("../fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "DM Serif Display";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ocean: #0057B8;
    --ocean-dark: #00469A;
    --ocean-deep: #06346F;
    --navy: #0B2A5B;          /* section headings */
    --sky: #4FC3F7;
    --sun: #FFC300;
    --sun-dark: #F0B400;
    --sand: #F6F7F9;
    --ink: #0B1F3A;
    --muted: #5B6B82;
    --line: #E3E7EE;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 6px 20px rgba(11, 31, 58, .07);
    --shadow-lg: 0 16px 48px rgba(11, 31, 58, .18);
    --font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
    --header-h: 80px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--font-serif); font-weight: 400; }
.rule { display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--sun); }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border: 0; border-radius: var(--radius-sm);
    font-weight: 800; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, box-shadow .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--yellow { background: var(--sun); color: var(--ink); }
.btn--yellow:hover { background: var(--sun-dark); }
.btn--blue { background: var(--ocean); color: #fff; }
.btn--blue:hover { background: var(--ocean-dark); }

/* ---------------------------------------------------------------- header */
.maintenance-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--sun); color: var(--ink); text-align: center; font-weight: 700; padding: 8px 16px; font-size: 14px; }
.maintenance-bar a { color: var(--ink); text-decoration: underline; }

/* Fixed (not sticky) so shrinking on scroll does not shift the page; body reserves the full height */
body { padding-top: var(--header-h); }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { --header-h: var(--header-h-scrolled, 60px); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(11, 31, 58, .08); }
/* Curved white "tab" under the logo that flows into the hero (as in the mockup) */
.site-header::before, .site-header::after {
    content: ""; position: absolute; top: 100%; height: var(--tab-h, 22px);
    pointer-events: none; transition: opacity .2s;
}
.site-header::before { /* straight part from the left edge to past the logo */
    left: 0; width: var(--tab-w); background: #fff;
}
.site-header::after { /* soft S-curve back up to the header line */
    left: var(--tab-w); width: var(--curve-w, 110px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 22' preserveAspectRatio='none'%3E%3Cpath d='M0 0H110C70 0 55 22 0 22Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
.site-header.is-scrolled::before, .site-header.is-scrolled::after { opacity: 0; }
:root { --tab-h: 28px; --tab-w: calc(max(0px, (100vw - 1200px) / 2) + 24px + 245px); --curve-w: 130px; }
.site-header__inner { display: flex; align-items: center; gap: 48px; height: var(--header-h); transition: height .2s; }
.site-header__logo { flex-shrink: 0; align-self: flex-start; margin-top: var(--logo-top, 10px); position: relative; z-index: 1; }
.logo { display: block; width: auto; height: 52px; }
.site-header .logo { height: var(--logo-h, 88px); transition: height .2s; } /* larger than the header: reaches down into the curved tab */
.site-header__logo { transition: margin-top .2s; }
.site-header.is-scrolled .site-header__logo { margin-top: 8px; }
.site-header.is-scrolled .logo { height: calc(var(--header-h) - 16px); } /* fits inside the thin header once the tab is hidden */
.site-header.is-scrolled .header-login { height: 40px; }
.site-footer__logo .logo { height: 72px; }

.main-nav { display: flex; align-items: center; gap: 34px; margin: 0 auto; }
.main-nav > a { color: var(--ink); font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav > a:hover { color: var(--ocean); border-bottom-color: var(--sun); }
.main-nav__mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-login { height: 44px; padding: 0 22px; }
.header-login .icon { width: 19px; height: 19px; }

/* language menu */
.flag { width: 21px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(11, 31, 58, .12); flex-shrink: 0; }
.lang-menu { position: relative; }
.lang-menu__button {
    display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: var(--radius-sm);
    list-style: none; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink); user-select: none;
}
.lang-menu__button::-webkit-details-marker { display: none; }
.lang-menu__button:hover, .lang-menu[open] .lang-menu__button { background: var(--sand); }
.lang-menu__chevron { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.lang-menu[open] .lang-menu__chevron { transform: rotate(180deg); }
.lang-menu__list {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px;
    margin: 0; padding: 6px; list-style: none; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lang-menu__list a, .lang-list a {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
    color: var(--ink); font-weight: 700; font-size: 15px;
}
.lang-menu__list a:hover { background: var(--sand); }
.lang-menu__list a[aria-current] { color: var(--ocean); background: #EEF5FC; }
.lang-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lang-list--footer a { color: rgba(255, 255, 255, .75); font-size: 14px; padding: 6px 10px; }
.lang-list--footer a:hover { color: #fff; }
.lang-list--footer a[aria-current] { color: #fff; background: rgba(255, 255, 255, .1); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; color: var(--ink); }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle__close { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; color: #fff; background: var(--ocean-deep); } /* no overflow:hidden: the area dropdown may extend below */
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { /* darken left for the text */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(6, 30, 66, .5) 0%, rgba(6, 30, 66, .18) 50%, rgba(6, 30, 66, 0) 75%);
}
/* Wavy light edge the value strip sits on (two layers for depth) */
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; width: 100%; height: var(--wave-h, 96px); display: block; pointer-events: none; }
.hero__wave-back { fill: rgba(255, 255, 255, .45); }
.hero__wave-front { fill: #fff; }
.hero--placeholder { background: linear-gradient(180deg, #9BDCF9 0%, #4FC3F7 25%, #2B8FDB 50%, #0057B8 68%, #06346F 100%); }
.hero--placeholder::before { /* mountains until the real photo is uploaded */
    content: ""; position: absolute; left: 0; right: 0; bottom: 40%; height: 44%;
    background: #1D4E86; opacity: .8;
    clip-path: polygon(0 100%, 0 62%, 12% 40%, 22% 52%, 38% 12%, 50% 30%, 60% 22%, 72% 48%, 84% 36%, 100% 58%, 100% 100%);
}
.hero__inner { position: relative; z-index: 3; padding-top: 72px; padding-bottom: 120px; }
.hero__title { font-size: clamp(34px, 4.8vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, .18); }
.hero__lead { margin: 12px 0 18px; font-size: clamp(18px, 2vw, 25px); font-weight: 500; text-shadow: 0 1px 12px rgba(0, 0, 0, .2); }
.hero .rule { margin-bottom: 34px; }

/* ---------------------------------------------------------------- search */
.search { max-width: 1120px; }
.search__tabs { display: flex; }
.search__tab {
    border: 0; cursor: pointer; padding: 13px 26px; border-radius: 10px 10px 0 0;
    font-weight: 600; font-size: 15px; color: #fff;
    background: rgba(11, 31, 58, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background-color .15s;
}
.search__tab:first-child { border-top-left-radius: 10px; }
.search__tab:hover { background: rgba(11, 31, 58, .65); }
.search__tab[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 800; }
.search__box {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto; gap: 10px;
    padding: 12px; background: #fff; border-radius: 0 var(--radius) var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
}
.field {
    position: relative; display: flex; align-items: center; height: 50px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.field:hover { border-color: #C9D2DE; }
.field:focus-within { border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(0, 87, 184, .15); }
.field__icon { position: absolute; left: 14px; color: var(--ink); pointer-events: none; }
.field__chevron { position: absolute; right: 12px; color: var(--ink); width: 18px; height: 18px; pointer-events: none; }
.field select {
    appearance: none; -webkit-appearance: none; border: 0; background: transparent; outline: none;
    width: 100%; height: 100%; padding: 0 38px 0 44px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.btn--search { height: 50px; padding: 0 24px; font-size: 16px; }
.btn--search .icon { width: 20px; height: 20px; }

/* area multi-select */
.field--multi { cursor: default; }
.field__button {
    width: 100%; height: 100%; padding: 0 38px 0 44px; border: 0; background: none; cursor: pointer;
    text-align: left; font-size: 15px; font-weight: 600; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none;
}
.field__button:disabled { cursor: not-allowed; color: var(--muted); }
.field--multi.is-disabled { background: var(--sand); }
.area-panel {
    position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: max(100%, 320px);
    display: flex; flex-direction: column; background: #fff; color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.area-panel__search { position: relative; padding: 10px; border-bottom: 1px solid var(--line); }
.area-panel__search .icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.area-panel__search input {
    width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 14.5px; outline: none;
}
.area-panel__search input:focus { border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(0, 87, 184, .12); }
.area-panel__list { max-height: 300px; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.area-option { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 14.5px; }
.area-option:hover { background: var(--sand); }
.area-option input { width: 17px; height: 17px; margin: 0; accent-color: var(--ocean); cursor: pointer; flex-shrink: 0; }
.area-option input:disabled { cursor: default; }
.area-option--parent { font-weight: 700; }
.area-option--child { padding-left: 36px; color: var(--muted); }
.area-option--child:has(input:checked) { color: var(--ink); }
.area-panel__empty { padding: 14px 10px; color: var(--muted); font-size: 14px; }
.area-panel__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.area-panel__actions .btn { padding: 9px 18px; font-size: 14px; }
.link-button { border: 0; background: none; padding: 6px 4px; cursor: pointer; color: var(--ocean-dark); font-weight: 700; font-size: 14px; }
.link-button:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- values */
.values { position: relative; z-index: 2; background: #fff; padding-top: 6px; }
.values__list { list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 8px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.values__item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--ink); padding: 0 8px; }
.values__item .icon { width: 34px; height: 34px; color: var(--ocean); stroke-width: 1.4; }
.values__item span { max-width: 11em; }

/* ---------------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section--tight { padding: 44px 0 16px; }
.section__head { display: flex; align-items: center; gap: 16px 32px; margin-bottom: 20px; }
.section__title { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--navy); margin-right: auto; }
.section__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; white-space: nowrap; color: var(--ocean-dark); }
.section__link .icon { width: 18px; height: 18px; transition: transform .15s; }
.section__link:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------- popular areas */
.area-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.area-card {
    position: relative; display: block; aspect-ratio: 1.3; border-radius: 10px; overflow: hidden;
    color: #fff; background: linear-gradient(160deg, #4FC3F7, #0057B8);
}
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.area-card:hover img { transform: scale(1.05); }
.area-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 30, 66, .72) 0%, rgba(6, 30, 66, 0) 58%); }
.area-card__text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; line-height: 1.2; }
.area-card__text strong { font-size: 19px; font-weight: 800; }
.area-card__text span { font-size: 13px; font-weight: 600; opacity: .92; margin-top: 3px; }
/* placeholder colours until photos are uploaded */
.area-card--tenerife { background: linear-gradient(160deg, #4FA3F0, #0B3D91); }
.area-card--gran-canaria { background: linear-gradient(160deg, #F4A261, #B35400); }
.area-card--lanzarote { background: linear-gradient(160deg, #A0694A, #3E2418); }
.area-card--fuerteventura { background: linear-gradient(160deg, #6FD3F7, #1B7EB8); }
.area-card--la-palma { background: linear-gradient(160deg, #4DB67A, #1B5E3A); }
.area-card--la-gomera { background: linear-gradient(160deg, #36B3A2, #155E57); }
.area-card--el-hierro { background: linear-gradient(160deg, #5E86BF, #1F3A60); }
.area-card--la-graciosa { background: linear-gradient(160deg, #E9C27B, #A0692C); }

/* ---------------------------------------------------------------- featured */
.featured-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.featured-tabs__tab {
    border: 0; background: none; cursor: pointer; padding: 8px 16px 10px; margin-bottom: -1px;
    font-size: 14.5px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent;
}
.featured-tabs__tab:hover { color: var(--ink); }
.featured-tabs__tab[aria-selected="true"] { color: var(--ink); font-weight: 800; border-bottom-color: var(--sun); }

.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-row > :nth-child(n+7) { display: none; } /* desktop shows 6 (two rows of 3); mobile carousel shows all */
.carousel__controls { display: none; }

.property-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.property-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.property-card__media { position: relative; aspect-ratio: 1.85; background: var(--sand); overflow: hidden; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.property-card:hover .property-card__media img { transform: scale(1.04); }
.placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.placeholder--property { background: linear-gradient(160deg, #8FD7F8 0%, #4FC3F7 35%, #0057B8 100%); color: rgba(255, 255, 255, .7); }
.placeholder--property .icon { width: 52px; height: 52px; stroke-width: 1.2; }

.chip { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 6px; background: var(--ocean); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.2; }

.fav-button {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: none; color: #fff; cursor: pointer;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); transition: transform .15s, color .15s;
}
.fav-button .icon { width: 26px; height: 26px; stroke-width: 2; }
.fav-button:hover { transform: scale(1.1); }
.fav-button[aria-pressed="true"] { color: #FF4D4D; }
.fav-button[aria-pressed="true"] .icon { fill: currentColor; }

.property-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 16px; }
.property-card__title { font-size: 16.5px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.property-card__title a { color: var(--ink); }
.property-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.property-card__location { margin-top: 3px; color: var(--muted); font-size: 14px; }

.specs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.specs li { display: inline-flex; align-items: center; gap: 7px; }
.specs .icon { width: 18px; height: 18px; color: var(--muted); }

.property-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.property-card__price { font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.property-card__arrow { width: 22px; height: 22px; color: var(--ocean-dark); stroke-width: 2.2; transition: transform .15s; }
.property-card:hover .property-card__arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- editorial */
.editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.editorial__photo { position: relative; min-height: 400px; border-radius: var(--radius); overflow: hidden; }
.editorial__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial__photo--placeholder { background: linear-gradient(185deg, #F6B26B 0%, #E07A5F 30%, #7B4B94 62%, #1B2A4A 100%); }
.editorial__photo--placeholder::before {
    content: ""; position: absolute; left: 10%; right: 5%; bottom: 0; height: 62%; background: #2A2340; opacity: .85;
    clip-path: polygon(0 100%, 0 80%, 25% 62%, 45% 22%, 52% 8%, 60% 22%, 78% 58%, 100% 72%, 100% 100%);
}
.editorial__content { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px 0; }
.editorial__title { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--navy); }
.editorial__content p { color: var(--ink); font-size: 15.5px; max-width: 46ch; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 24px; background: var(--ocean-deep); color: rgba(255, 255, 255, .78); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; padding-top: 64px; padding-bottom: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 18px; }
.site-footer__brand p { max-width: 32ch; }
.site-footer__slogan { color: #fff; font-weight: 700; }
.site-footer__slogan strong { color: var(--sun); }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer h2 { font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.site-footer nav a { color: rgba(255, 255, 255, .78); }
.site-footer nav a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }

/* ---------------------------------------------------------------- misc pages */
.error-page { text-align: center; padding: 96px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.error-page h1 { font-size: 36px; font-weight: 800; }
.error-page p { color: var(--muted); }

.maintenance-page { min-height: 100vh; display: flex; align-items: center; text-align: center; background: var(--sand); }
.maintenance-page main { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.maintenance-page .logo { height: auto; width: min(420px, 80vw); }
.maintenance-page h1 { margin-top: 24px; font-size: 32px; font-weight: 800; }
.maintenance-page p { color: var(--muted); font-size: 18px; }

/* ================================================================ responsive */
@media (max-width: 1180px) {
    .site-header__inner { gap: 28px; }
    .main-nav { gap: 22px; }
    .values__item { font-size: 13.5px; }
    .site-footer__grid { grid-template-columns: repeat(4, 1fr); }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
    :root { --header-h: 68px; --header-h-scrolled: 56px; --logo-h: 70px; --logo-top: 8px; --tab-w: 220px; --tab-h: 22px; --curve-w: 100px; }
    .menu-toggle { display: grid; place-items: center; }
    .header-actions { gap: 4px; margin-left: auto; }
    .lang-menu__button span { display: none; }
    .header-login { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
    .header-login span { display: none; }
    .header-login .icon { width: 21px; height: 21px; }

    .main-nav {
        position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49;
        flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 12px 24px 32px;
        background: #fff; overflow-y: auto;
        transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
    }
    .nav-open .main-nav { transform: none; visibility: visible; }
    .nav-open { overflow: hidden; }
    .nav-open .menu-toggle__open { display: none; }
    .nav-open .menu-toggle__close { display: block; }
    .main-nav > a { font-size: 19px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .main-nav > a:hover { border-bottom-color: var(--line); }
    .main-nav__mobile-extra { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }
    .main-nav__mobile-extra > a:not(.btn) { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); }
    .main-nav__mobile-extra .btn { padding: 14px; font-size: 16px; }

    .search__box { grid-template-columns: 1fr 1fr; }
    .btn--search { width: 100%; }

    /* horizontally scrollable rows */
    .values__list, .area-row, .card-row {
        display: grid; grid-template-columns: none; grid-auto-flow: column;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        overscroll-behavior-x: contain;
    }
    .values__list::-webkit-scrollbar, .area-row::-webkit-scrollbar, .card-row::-webkit-scrollbar { display: none; }
    .values__list > *, .area-row > *, .card-row > * { scroll-snap-align: start; }
    .values__list { grid-auto-columns: 20%; }
    .area-row { grid-auto-columns: 30%; }
    .card-row { grid-auto-columns: calc(50% - 11px); padding: 4px 2px 12px; margin: -4px -2px 0; }
    .card-row > :nth-child(n+7) { display: flex; }

    .carousel__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
    .carousel__arrow {
        display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
        border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow);
    }
    .carousel__arrow:disabled { opacity: .4; cursor: default; }
    .carousel__dots { display: flex; gap: 8px; }
    .carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: #D5DBE4; transition: background-color .2s; }
    .carousel__dot.is-active { background: var(--sun); }

    .editorial { grid-template-columns: 1fr; gap: 8px; }
    .editorial__photo { min-height: 300px; }
}

@media (max-width: 720px) {
    :root { --header-h: 64px; --header-h-scrolled: 54px; --logo-h: 62px; --logo-top: 8px; --tab-w: 190px; --tab-h: 18px; --curve-w: 80px; }
    .container { padding: 0 16px; }

    .hero__inner { padding-top: 40px; padding-bottom: 72px; }
    .hero__bg { object-position: 32% center; }
    .hero .rule { margin-bottom: 26px; }
    .search__tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
    .search__tab { padding: 11px 4px; font-size: 13.5px; }
    .search__tab:first-child { border-top-left-radius: 10px; }
    .search__box { grid-template-columns: 1fr; gap: 8px; padding: 10px; border-radius: 0 0 var(--radius) var(--radius); }
    .field { height: 46px; }
    .area-panel { width: 100%; }
    .area-panel__list { max-height: 260px; }
    .btn--search { height: 48px; }

    .hero { --wave-h: 52px; }
    .values__list { grid-auto-columns: 25%; gap: 0; }
    .values__item { font-size: 12px; gap: 7px; padding: 0 4px; }
    .values__item .icon { width: 28px; height: 28px; }

    .section--tight { padding: 32px 0 8px; }
    .section__head { flex-wrap: wrap; gap: 12px 16px; margin-bottom: 14px; }
    .section__title { font-size: 22px; }
    .section__link { font-size: 13.5px; }
    .section__head--tabs .featured-tabs { order: 3; width: 100%; }
    .featured-tabs__tab { padding: 8px 10px 9px; font-size: 13.5px; }
    .area-row { grid-auto-columns: 38%; gap: 10px; }
    .area-card { aspect-ratio: 1.15; }
    .area-card__text strong { font-size: 15px; }
    .area-card__text span { font-size: 12px; }
    .card-row { grid-auto-columns: 100%; gap: 14px; }

    .editorial__photo { min-height: 240px; }
    .site-footer { margin-top: 48px; }
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding-top: 48px; }
    .site-footer__bottom { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ================================================================ search results */
.btn--outline { background: #fff; color: var(--ocean-dark); box-shadow: inset 0 0 0 1.5px var(--ocean); }
.btn--outline:hover { background: #EEF5FC; }
.btn--map { padding: 0 22px; }

.search-top { background: var(--sand); padding: 44px 0 18px; border-bottom: 1px solid var(--line); }
.listing-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.listing-tabs__tab { padding: 8px 16px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 14.5px; }
.listing-tabs__tab:hover { background: #fff; }
.listing-tabs__tab[aria-current] { background: var(--ocean); color: #fff; }

.filters__toggle, .filters__panel-head, .filters__submit-mobile { display: none; }
.filters__panel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .field { flex: 1 1 170px; height: 46px; background: #fff; }
.filters .field--compact { flex: 0 1 150px; }
.filters .field--compact select { padding-left: 14px; }
.filters .field--compact .field__icon ~ select { padding-left: 42px; }
.filters .field--multi { flex: 1.3 1 200px; }
.filters__submit { height: 46px; padding: 0 22px; }

.more-filters { position: relative; }
.more-filters__button {
    display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; list-style: none; cursor: pointer;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; font-size: 14.5px; white-space: nowrap;
}
.more-filters__button::-webkit-details-marker { display: none; }
.more-filters__button:hover, .more-filters[open] .more-filters__button { border-color: var(--ocean); }
.more-filters__button .icon { width: 18px; height: 18px; }
.badge-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ocean); color: #fff; font-size: 12px; }
.more-filters__panel {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 460px; padding: 18px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.more-filters__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.more-filters__select { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.more-filters__select select { height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; color: var(--ink); background: #fff; }
.more-filters__features { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.more-filters__features legend { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 9px; padding: 6px 4px; font-size: 14.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--ocean); flex-shrink: 0; }
.more-filters__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.more-filters__actions .btn { padding: 10px 22px; }

.results { padding: 28px 0 56px; }
.results__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.results__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.2; }
.results__count { color: var(--muted); font-size: 15px; margin-top: 4px; }
.results__tools { display: flex; align-items: center; gap: 12px; }
.sort { position: relative; display: flex; align-items: center; }
.sort select { appearance: none; -webkit-appearance: none; height: 42px; padding: 0 38px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.sort__chevron { position: absolute; right: 12px; width: 18px; height: 18px; pointer-events: none; }
.view-switch { display: flex; padding: 3px; background: var(--sand); border-radius: 10px; }
.view-switch__btn { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 14.5px; }
.view-switch__btn .icon { width: 18px; height: 18px; }
.view-switch__btn[aria-current] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 10px; color: var(--ink); font-weight: 700; border: 1px solid var(--line); background: #fff; }
.pagination a:hover { border-color: var(--ocean); }
.pagination a[aria-current] { background: var(--ocean); border-color: var(--ocean); color: #fff; }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 64px 16px; }
.empty-state > .icon { width: 48px; height: 48px; color: var(--sky); }
.empty-state h2 { font-size: 22px; font-weight: 800; color: var(--navy); }
.empty-state p { color: var(--muted); }

.floating-switch { display: none; }

/* map view */
.results--map { padding-bottom: 0; }
.map-layout { display: grid; grid-template-columns: minmax(340px, 38%) 1fr; height: calc(100vh - var(--header-h) - 20px); min-height: 520px; border-top: 1px solid var(--line); }
.map-list { overflow-y: auto; padding: 14px; background: var(--sand); display: flex; flex-direction: column; gap: 10px; }
.map-list__note { color: var(--muted); font-size: 14px; padding: 4px 4px 2px; }
.map-canvas { position: relative; z-index: 1; background: #DDEBF4; }
.map-item { display: flex; gap: 12px; padding: 10px; background: #fff; border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow); transition: box-shadow .15s; }
.map-item:hover { box-shadow: 0 0 0 2px var(--ocean), var(--shadow); }
.map-item__img { width: 120px; height: 90px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--sand); }
.map-item__img--placeholder, .map-popup-card__img--placeholder { background: linear-gradient(160deg, #8FD7F8, #0057B8); }
.map-item__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.map-item__price { font-weight: 900; font-size: 17px; }
.map-item__title { font-weight: 700; font-size: 14.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-item__meta { color: var(--muted); font-size: 13px; margin-top: 2px; }

.price-marker { background: none; border: 0; }
.price-marker span {
    position: absolute; left: 0; top: 0; transform: translate(-50%, -100%);
    padding: 4px 9px; border-radius: 999px; background: #fff; color: var(--ink);
    font: 800 13px/1.2 var(--font-sans); white-space: nowrap; box-shadow: 0 2px 8px rgba(11, 31, 58, .25);
    border: 2px solid var(--ocean); transition: background-color .15s, color .15s, transform .15s;
}
.price-marker:hover span, .price-marker.is-active span { background: var(--ocean); color: #fff; transform: translate(-50%, -100%) scale(1.08); }
.cluster-marker { background: none; }
.cluster-marker span {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--ocean); color: #fff; font: 800 14px var(--font-sans);
    box-shadow: 0 0 0 5px rgba(0, 87, 184, .25), 0 2px 8px rgba(11, 31, 58, .3);
}
.map-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--radius); overflow: hidden; }
.map-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.map-popup-card { display: block; color: var(--ink); font-family: var(--font-sans); }
.map-popup-card__img { display: block; width: 100%; height: 140px; object-fit: cover; }
.map-popup-card__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; line-height: 1.3; }
.map-popup-card__body strong { font-size: 17px; font-weight: 900; }
.map-popup-card__title { font-weight: 700; font-size: 14px; }
.map-popup-card__meta { color: var(--muted); font-size: 13px; }
.leaflet-container { font-family: var(--font-sans); }

@media (max-width: 1100px) {
    .result-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
    .search-top { padding: 36px 0 12px; }
    .listing-tabs { overflow-x: auto; margin-bottom: 10px; }
    .listing-tabs__tab { white-space: nowrap; }
    .filters__toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); color: var(--ink); height: 44px; }
    .filters__panel {
        display: none; position: fixed; inset: 0; z-index: 70; flex-direction: column; flex-wrap: nowrap; align-items: stretch;
        gap: 10px; padding: 16px; background: #fff; overflow-y: auto;
    }
    .filters-open { overflow: hidden; }
    .filters-open .filters__panel { display: flex; }
    .filters__panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; margin-bottom: 4px; }
    .filters__close { display: grid; place-items: center; }
    .filters .field, .filters .field--compact, .filters .field--multi { flex: 0 0 auto; }
    .more-filters__button { justify-content: center; }
    .more-filters__panel { position: static; width: auto; margin-top: 8px; box-shadow: none; }
    .filters__submit { position: sticky; bottom: 0; flex: 0 0 auto; margin-top: auto; height: 50px; }
    .filters__submit-desktop { display: none; }
    .filters__submit-mobile { display: inline; }
    .filters .area-panel { position: static; width: 100%; margin-top: 6px; box-shadow: none; }
    .filters .field--multi { height: auto; min-height: 46px; flex-wrap: wrap; }
    .filters .field--multi .field__button { height: 46px; }

    .results__tools .view-switch { display: none; }
    .floating-switch {
        display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; bottom: 20px; z-index: 40;
        transform: translateX(-50%); padding: 12px 22px; border-radius: 999px;
        background: var(--ink); color: #fff; font-weight: 800; box-shadow: var(--shadow-lg);
    }
    .floating-switch .icon { width: 18px; height: 18px; }
    .map-layout { grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - 160px); min-height: 420px; }
    .map-list { display: none; }
}

@media (max-width: 720px) {
    .result-grid { grid-template-columns: 1fr; gap: 16px; }
    .results { padding-top: 20px; }
    .results__head { margin-bottom: 16px; }
    .more-filters__features { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- recently added */
.section--latest { padding: 56px 0; margin-top: 40px; }
.section__heading { margin-right: auto; }
.section__subtitle { color: var(--muted); font-size: 15px; margin-top: 4px; }
.card-tags { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
.card-tags .chip { position: static; }
.chip--new { background: #1F9D55; }

@media (max-width: 720px) {
    .section--latest { padding: 40px 0; margin-top: 24px; }
    .section__subtitle { display: none; }
}

/* ================================================================ accounts */
.btn--block { width: 100%; height: 50px; font-size: 16px; }

/* flash messages (toast under the header) */
.flash-wrap { position: fixed; top: calc(var(--header-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: 560px; pointer-events: none; }
.flash {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 15px; pointer-events: auto;
    border-left: 4px solid var(--success); animation: flash-in .25s ease-out;
}
.flash--error { border-left-color: #D93025; }
.flash > .icon { color: #137333; margin-top: 1px; }
.flash--error > .icon { color: #D93025; }
.flash span { flex: 1; }
.flash__close { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); }
.flash__close .icon { width: 18px; height: 18px; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* auth pages */
.auth-page { background: linear-gradient(180deg, var(--sand) 0%, #fff 100%); padding: 64px 0 80px; }
.auth-page__inner { max-width: 520px; }
.auth-page__inner--wide { max-width: 1020px; text-align: center; }
.auth-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 36px 36px 28px; }
.auth-kicker { font-size: 13.5px; font-weight: 700; color: var(--ocean-dark); margin-bottom: 8px; }
.auth-title { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.15; }
.auth-lead { color: var(--muted); margin: 8px 0 24px; }
.auth-switch { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }
.auth-switch a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.auth-switch .icon { width: 16px; height: 16px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.form-field small { font-weight: 500; color: var(--muted); }
.form-field__label-row { display: flex; justify-content: space-between; gap: 8px; }
.form-field__label-row a { font-weight: 600; }
.form-field input:not([type="checkbox"]):not([type="radio"]) {
    height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 500; background: #fff; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.form-field input:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(0, 87, 184, .15); }
.form-field input[aria-invalid="true"] { border-color: #D93025; }
.form-error { color: #C5221F; font-size: 13.5px; font-weight: 600; }
.form-hint { color: var(--muted); font-size: 13px; font-weight: 500; }
.form-alert { padding: 12px 14px; margin-bottom: 16px; border-radius: var(--radius-sm); background: #FDECEA; color: #A50E0E; font-weight: 600; font-size: 14.5px; }
.password-input { position: relative; display: block; }
.password-input input { padding-right: 48px; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.password-toggle[aria-pressed="true"] { color: var(--ocean); }
.form .check { align-items: flex-start; font-weight: 500; font-size: 14.5px; padding: 0; }
.form .check input { margin-top: 2px; }
.form .check a { font-weight: 700; }

.join-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; text-align: left; }
.join-choice {
    display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: #fff; border-radius: 16px;
    color: var(--ink); box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.join-choice:hover { border-color: var(--ocean); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.join-choice__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #EEF5FC; color: var(--ocean); }
.join-choice__icon .icon { width: 26px; height: 26px; }
.join-choice strong { font-size: 18px; color: var(--navy); }
.join-choice > span:not([class]) { color: var(--muted); font-size: 15px; }
.join-choice__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--ocean-dark); font-weight: 800; }
.join-choice__cta .icon { width: 18px; height: 18px; }

/* my account */
.account { padding: 48px 0 72px; background: var(--sand); }
.account__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.account__title { font-size: clamp(26px, 3vw, 32px); font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.account__email { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: #EEF1F5; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.pill .icon { width: 15px; height: 15px; }
.pill--ok { background: #E6F4EA; color: #137333; }
.notice { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.notice--warn { border-left: 4px solid var(--sun); }
.notice > .icon { width: 28px; height: 28px; color: var(--sun-dark); flex-shrink: 0; }
.notice > div { flex: 1; }
.notice p { color: var(--muted); font-size: 14.5px; }
.account-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.account-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow); }
a.account-tile:hover { box-shadow: 0 0 0 2px var(--ocean), var(--shadow); }
.account-tile--soon { opacity: .75; }
.account-tile__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #EEF5FC; color: var(--ocean); margin-bottom: 4px; }
.account-tile strong { font-size: 16.5px; }
.account-tile > span:not([class]) { color: var(--muted); font-size: 14px; }
.account-tile .pill { position: absolute; top: 16px; right: 16px; }
.account-pro { margin-top: 24px; padding: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.account-pro h2 { font-size: 18px; font-weight: 800; color: var(--navy); }
.account-pro p { color: var(--muted); }
.account-agencies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.account-agencies li { display: flex; align-items: center; gap: 8px; }

/* header user menu */
.user-menu { position: relative; }
.user-menu__button { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; list-style: none; cursor: pointer; font-weight: 700; font-size: 15px; }
.user-menu__button::-webkit-details-marker { display: none; }
.user-menu__button:hover, .user-menu[open] .user-menu__button { background: var(--sand); }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 900; font-size: 14px; }
.user-menu__chevron { width: 16px; height: 16px; color: var(--muted); }
.user-menu__list {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.user-menu__who { display: flex; flex-direction: column; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 14px; }
.user-menu__who span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.user-menu__list a, .user-menu__list button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px;
    background: none; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; text-align: left;
}
.user-menu__list a:hover, .user-menu__list button:hover { background: var(--sand); }
.user-menu__list .icon { width: 18px; height: 18px; color: var(--muted); }

@media (max-width: 1000px) {
    .user-menu__name, .user-menu__chevron { display: none; }
    .user-menu__button { padding: 2px; }
    .account-tiles { grid-template-columns: repeat(2, 1fr); }
    .join-choices { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .auth-page { padding: 32px 0 48px; }
    .auth-card { padding: 26px 20px 22px; border-radius: 14px; }
    .form-row { grid-template-columns: 1fr; }
    .account { padding-top: 32px; }
    .account__head { flex-direction: column; }
    .account-tiles { grid-template-columns: 1fr; }
    .notice { flex-direction: column; align-items: flex-start; }
    .flash-wrap { left: 12px; right: 12px; transform: none; }
}

/* ---------------------------------------------------------------- account pages */
.account-tiles { grid-template-columns: repeat(3, 1fr); }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; font-weight: 700; font-size: 14.5px; }
.back-link .icon { width: 17px; height: 17px; }
.account-narrow { max-width: 760px; }
.account__lead { color: var(--muted); margin: 6px 0 24px; max-width: 62ch; }
.panel-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-top: 20px; }
.panel-card h2 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.panel-card.form h2:not(:first-of-type) { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-select, .form-field textarea {
    width: 100%; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 500; background: #fff; color: var(--ink);
}
.form-select { height: 48px; }
.form-field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 120px; }
.form-select:focus, .form-field textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(0, 87, 184, .15); }
.form-field input:disabled { background: var(--sand); color: var(--muted); }
.choice-group { border: 0; margin: 0; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
.choice-group legend { width: 100%; margin-bottom: 6px; padding: 0; }
.choice-group .check { font-weight: 600; }
.form-actions { display: flex; gap: 12px; margin-top: 6px; }
.link-button--danger { color: #C5221F; }

.tenant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.tenant-layout > .panel-card { margin-top: 0; }
.tenant-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.tenant-aside .panel-card { margin-top: 0; }
.tenant-preview__label { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.tenant-preview__who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tenant-preview__who strong { display: block; font-size: 17px; margin-bottom: 3px; }
.avatar--lg { width: 52px; height: 52px; font-size: 18px; }
.tenant-preview__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.tenant-preview__list li { display: flex; gap: 10px; align-items: flex-start; }
.tenant-preview__list .icon { width: 18px; height: 18px; color: var(--ocean); margin-top: 2px; }
.tenant-preview__about { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-style: italic; color: var(--ink); font-size: 14.5px; white-space: pre-line; }
.notice--info { border-left: 4px solid var(--ocean); margin-bottom: 0; align-items: flex-start; }
.notice--info > .icon { color: var(--ocean); }

.empty-state--card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-state .btn .icon { width: 18px; height: 18px; color: inherit; }

.property-card--inactive .property-card__media img { filter: grayscale(.8); opacity: .7; }
.property-card__unavailable {
    position: absolute; left: 14px; right: 60px; top: 50px; z-index: 1; width: max-content; max-width: calc(100% - 28px);
    padding: 5px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700;
}

@media (max-width: 1000px) {
    .account-tiles { grid-template-columns: repeat(2, 1fr); }
    .tenant-layout { grid-template-columns: 1fr; }
    .tenant-aside { position: static; order: -1; }
}
@media (max-width: 720px) {
    .account-tiles { grid-template-columns: 1fr; }
    .panel-card { padding: 20px 16px; }
}

/* ---------------------------------------------------------------- avatar */
.avatar--photo { object-fit: cover; padding: 0; background: var(--sand); }
.avatar--xl { width: 88px; height: 88px; font-size: 28px; flex-shrink: 0; }
.avatar-upload { display: flex; align-items: center; gap: 18px; }
.avatar-upload__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.avatar-upload__body strong { font-size: 16px; color: var(--navy); }
.avatar-upload__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.avatar-upload.is-busy { opacity: .6; pointer-events: none; }
.btn--small { padding: 8px 14px; font-size: 14px; cursor: pointer; }
.btn--small .icon { width: 16px; height: 16px; }
.btn--outline:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.account__head { align-items: center; }
.account__avatar { flex-shrink: 0; border-radius: 50%; }
.account__head-text { margin-right: auto; }
.tenant-aside .avatar-upload { flex-direction: column; align-items: flex-start; }
@media (max-width: 720px) {
    .avatar-upload { align-items: flex-start; }
    .account__head { flex-direction: row; flex-wrap: wrap; }
}

/* ================================================================ property page */
.property-page { padding: 28px 0 64px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ocean); }
.breadcrumb .icon { width: 14px; height: 14px; color: var(--muted); }
.property-page__unavailable { margin-bottom: 16px; }

.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 8px; border-radius: 16px; overflow: hidden; }
.gallery__item { position: relative; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item--0 { grid-row: 1 / 3; }
.gallery--single { grid-template-columns: 1fr; grid-template-rows: 460px; }
.gallery--single .gallery__item:not(.gallery__item--0) { display: none; }
.gallery__all {
    position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 800; font-size: 14px;
    cursor: pointer; box-shadow: var(--shadow);
}
.gallery__all .icon { width: 17px; height: 17px; }
.gallery__count { display: none; }

.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; margin-top: 28px; align-items: start; }
.card-tags--static { position: static; margin-bottom: 12px; }
.chip--featured { background: var(--sun); color: var(--ink); }
.property-head__title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.15; }
.property-head__location { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.property-head__location .icon { width: 18px; height: 18px; }
.property-head__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.property-head__price { font-size: clamp(26px, 3vw, 32px); font-weight: 900; letter-spacing: -.01em; }
.property-head__actions { display: flex; gap: 8px; }
.icon-button {
    display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--ink); font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.icon-button:hover { border-color: var(--ocean); }
.icon-button .icon { width: 19px; height: 19px; }
.icon-button.is-done { border-color: #137333; color: var(--success); }
.fav-button--inline[aria-pressed="true"] { color: #E53935; border-color: #F5C2C0; }
.fav-button--inline[aria-pressed="true"] .icon { fill: currentColor; }
.key-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 20px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 700; }
.key-facts li { display: inline-flex; align-items: center; gap: 8px; }
.key-facts .icon { width: 22px; height: 22px; color: var(--ocean); }

.property-section { padding: 28px 0 4px; }
.property-section h2 { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.property-section__lead { color: var(--muted); margin: -6px 0 14px; }
.property-description { line-height: 1.7; font-size: 16px; max-width: 70ch; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.feature-list .icon { width: 20px; height: 20px; color: #137333; }
.detail-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.detail-table > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-table dt { color: var(--muted); }
.detail-table dd { margin: 0; font-weight: 700; text-align: right; }
.property-section .form-hint { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.property-section .form-hint .icon { width: 17px; height: 17px; color: #137333; }
.property-map { height: 340px; border-radius: var(--radius); overflow: hidden; z-index: 1; }
.distance-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 20px; }
.distance-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }

.property-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.contact-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px; }
.lister-box { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lister-box__label { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lister-box strong { font-size: 17px; }
.lister-box__company { color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.verified-label { display: inline-flex; align-items: center; gap: 4px; color: var(--ocean-dark); font-weight: 700; font-size: 13px; }
.contact-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 6px; }
.contact-buttons .btn { padding: 11px 10px; font-size: 14.5px; }
.contact-buttons .btn:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1EBE5B; }
.btn--whatsapp .icon { width: 19px; height: 19px; }
.contact-buttons .btn--whatsapp { grid-column: 1 / -1; }

.enquiry { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.enquiry__title { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.form--compact { gap: 12px; }
.form--compact .form-field input:not([type="checkbox"]):not([type="radio"]) { height: 44px; font-size: 15px; }
.form--compact textarea { min-height: 110px; font-size: 15px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry__as { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.enquiry__as strong { color: var(--ink); }
.check--card { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sand); }
.check--card small { color: var(--muted); font-weight: 500; }
.enquiry__login { text-align: center; }
.enquiry__sent { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 10px 0; }
.enquiry__sent > .icon { width: 44px; height: 44px; color: #137333; }
.enquiry__sent strong { font-size: 18px; }
.enquiry__sent p { color: var(--muted); font-size: 14.5px; }

.result-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sticky-contact { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(6, 16, 34, .94); }
.lightbox[hidden] { display: none; }
.lightbox-open { overflow: hidden; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox__close, .lightbox__nav {
    position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; }

/* ---------------------------------------------------------------- messages */
.account-narrow--wide { max-width: 900px; }
.inbox { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inbox__item { display: flex; align-items: center; gap: 14px; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.inbox__item:hover { box-shadow: 0 0 0 2px var(--ocean), var(--shadow); }
.inbox__item.is-unread { border-left: 4px solid var(--sun); }
.inbox__item.is-unread .inbox__top strong, .inbox__item.is-unread .inbox__snippet { font-weight: 800; color: var(--ink); }
.inbox__img { width: 76px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.inbox__img--placeholder { display: grid; place-items: center; background: var(--sand); color: var(--muted); }
.inbox__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.inbox__top { display: flex; justify-content: space-between; gap: 10px; }
.inbox__top time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.inbox__title { font-size: 14px; color: var(--ocean-dark); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__snippet { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pill--new { background: var(--sun); color: var(--ink); }

.thread-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.thread { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.thread__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.thread__head h1 { font-size: 22px; font-weight: 800; color: var(--navy); }
.thread__messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 80%; align-self: flex-start; }
.bubble--mine { align-self: flex-end; }
.bubble__meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.bubble--mine .bubble__meta { justify-content: flex-end; }
.bubble__body { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--sand); line-height: 1.55; overflow-wrap: anywhere; }
.bubble--mine .bubble__body { background: #E8F0FE; border-radius: 14px 14px 4px 14px; }
.thread .form-hint { display: flex; gap: 6px; align-items: center; margin-top: 14px; }
.thread__reply { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.thread__reply textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; resize: vertical; min-height: 90px; }
.thread__reply textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(0, 87, 184, .15); }
.thread__reply .btn { align-self: flex-end; }
.thread-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.thread-aside .panel-card { margin-top: 0; }
.thread-aside .panel-card h2 { font-size: 16px; }
.thread-property { display: flex; gap: 12px; align-items: center; padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.thread-property img { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; }
.thread-property > span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.thread-property > span > span { color: var(--muted); }

/* header unread */
.user-menu__avatar { position: relative; display: inline-flex; }
.dot-badge { position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-radius: 50%; background: #E53935; box-shadow: 0 0 0 2px #fff; }
.user-menu__list a .badge-count { margin-left: auto; }

@media (max-width: 1100px) {
    .property-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
    .feature-list, .distance-list { grid-template-columns: repeat(2, 1fr); }
    .result-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
    .property-layout, .thread-layout { grid-template-columns: 1fr; }
    .property-aside, .thread-aside { position: static; }
    .detail-table { grid-template-columns: 1fr; }
    .sticky-contact {
        display: flex; justify-content: space-between; align-items: center; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff; box-shadow: 0 -4px 20px rgba(11, 31, 58, .12);
    }
    .sticky-contact__price { font-weight: 900; font-size: 18px; }
    .sticky-contact .btn { padding: 12px 28px; }
    .property-page { padding-bottom: 90px; }
}
@media (max-width: 720px) {
    .property-page { padding-top: 16px; }
    /* gallery becomes a swipeable strip */
    .gallery, .gallery--single {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; border-radius: 0;
        margin: 0 -16px; height: auto; scrollbar-width: none;
    }
    .gallery::-webkit-scrollbar { display: none; }
    .gallery__item, .gallery--single .gallery__item:not(.gallery__item--0) { display: block; flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
    .gallery__all { display: none; }
    .gallery__count { display: block; position: sticky; left: calc(100% - 70px); align-self: flex-end; margin: 0 0 10px -70px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 31, 58, .7); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
    .property-head__actions .icon-button span { display: none; }
    .feature-list, .distance-list, .result-grid--4 { grid-template-columns: 1fr; }
    .contact-card { padding: 18px 16px; }
    .bubble { max-width: 92%; }
    .inbox__meta { display: none; }
}
/* gallery with 3 or 4 photos: fill the grid without empty cells */
.gallery--n3 .gallery__item--1, .gallery--n3 .gallery__item--2 { grid-column: 2 / 4; }
.gallery--n4 .gallery__item--3 { grid-column: 2 / 4; }
@media (max-width: 720px) { .gallery--n3 .gallery__item, .gallery--n4 .gallery__item { grid-column: auto; } }

/* ================================================================ listing editor */
.launch-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 20px; border-radius: var(--radius); background: linear-gradient(100deg, #FFF6D6 0%, #FFFBEA 100%); border: 1px solid #FFE08A; }
.launch-banner__icon { font-size: 26px; line-height: 1; }
.launch-banner strong { color: var(--navy); font-size: 16px; }
.launch-banner p { color: var(--ink); font-size: 14.5px; margin-top: 2px; }

.listing-steps { display: flex; flex-direction: column; gap: 20px; }
.listing-steps > .panel-card { margin-top: 0; }
.listing-form h2, .listing-steps .panel-card > h2 { display: flex; align-items: center; gap: 10px; }
.step-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ocean); color: #fff; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 0; margin: 0; padding: 0; }
.type-card { cursor: pointer; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card > span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border: 2px solid var(--line); border-radius: var(--radius); text-align: center; transition: border-color .15s, background-color .15s; }
.type-card .icon { width: 28px; height: 28px; color: var(--ocean); }
.type-card input:checked + span { border-color: var(--ocean); background: #EEF5FC; }
.type-card input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.input-affix { display: flex; align-items: stretch; }
.input-affix > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--sand); font-weight: 700; color: var(--muted); }
.input-affix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }
.check--inline { align-self: end; padding-bottom: 12px; }
.picker-map { height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); z-index: 1; cursor: crosshair; }
.picker-pin { background: none; border: 0; filter: drop-shadow(0 2px 3px rgba(11, 31, 58, .35)); }
.feature-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 16px; }
.lang-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.lang-tabs__tab { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; font-weight: 700; color: var(--muted); }
.lang-tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sun); }
.lang-panel { display: flex; flex-direction: column; gap: 14px; }
.form-actions--sticky { position: sticky; bottom: 0; z-index: 5; margin: 8px -26px -26px; padding: 14px 26px; background: rgba(255, 255, 255, .95); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.photo-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sand); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile__cover { position: absolute; left: 8px; top: 8px; background: var(--sun); color: var(--ink); }
.photo-tile__actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 4px; padding: 6px; background: linear-gradient(0deg, rgba(6, 20, 45, .65), rgba(6, 20, 45, 0)); }
.photo-tile__actions button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; }
.photo-tile__actions button:hover { background: #fff; }
.photo-tile__actions button.is-danger { color: #C5221F; }
.photo-tile__actions .icon { width: 17px; height: 17px; }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; border: 2px dashed #C9D2DE; border-radius: 10px; cursor: pointer; color: var(--ocean-dark); text-align: center; padding: 10px; }
.photo-add:hover { border-color: var(--ocean); background: #F5F9FE; }
.photo-add .icon { width: 30px; height: 30px; }
.photo-add.is-busy { opacity: .6; pointer-events: none; }
.checklist { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checklist li { display: flex; gap: 8px; align-items: center; color: #A50E0E; font-weight: 600; }
.checklist .icon { width: 18px; height: 18px; }
.checklist-ok { display: flex; gap: 8px; align-items: center; color: #137333; font-weight: 700; margin-bottom: 14px; }
.checklist-ok .icon { width: 20px; height: 20px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* status pills */
.pill--status-active { background: #E6F4EA; color: #137333; }
.pill--status-pending_review { background: #FFF6D6; color: #7A5A00; }
.pill--status-rejected { background: #FDECEA; color: #A50E0E; }
.pill--status-draft, .pill--status-paused, .pill--status-expired, .pill--status-inactive { background: #EEF1F5; color: var(--muted); }
.pill--status-sold, .pill--status-rented { background: #E8F0FE; color: var(--ocean-dark); }

/* my listings */
.my-listings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.my-listing { display: flex; gap: 16px; align-items: center; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.my-listing__img { width: 150px; height: 110px; border-radius: 10px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; }
.my-listing__body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.my-listing__top { display: flex; align-items: center; gap: 10px; }
.my-listing__top small { color: var(--muted); }
.my-listing__title { font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-listing__price { font-weight: 800; }
.my-listing__stats { display: flex; gap: 16px; list-style: none; margin: 4px 0 0; padding: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.my-listing__stats li { display: inline-flex; align-items: center; gap: 5px; }
.my-listing__stats .icon { width: 16px; height: 16px; }
.my-listing__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.my-listing__actions .link-button { padding: 3px 0; font-size: 13.5px; }

@media (max-width: 1000px) {
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-picker { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .type-cards { grid-template-columns: 1fr; }
    .type-card > span { flex-direction: row; justify-content: flex-start; padding: 14px; }
    .form-grid-3 { grid-template-columns: 1fr 1fr; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-picker { grid-template-columns: 1fr; }
    .form-actions--sticky { margin: 8px -16px -20px; padding: 12px 16px; }
    .my-listing { flex-wrap: wrap; }
    .my-listing__img { width: 100%; height: 170px; }
    .my-listing__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; width: 100%; }
}

/* ================================================================ agencies */
.avatar--md { width: 44px; height: 44px; font-size: 15px; flex-shrink: 0; }
.result-grid--3 { grid-template-columns: repeat(3, 1fr); }
.btn--danger { background: #C5221F; color: #fff; }
.btn--danger:hover { background: #A50E0E; }
.muted-text { color: var(--muted); }
.section-subtitle { font-size: 18px; font-weight: 800; color: var(--navy); margin: 28px 0 12px; }
.pill--founding { background: #FFF6D6; color: #7A5A00; }
.pill .icon { width: 14px; height: 14px; }

.agency-logo { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ocean); font-weight: 900; font-size: 18px; overflow: hidden; }
.agency-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.agency-logo--lg { width: 72px; height: 72px; font-size: 22px; }
.agency-logo--xl { width: 120px; height: 120px; font-size: 34px; border-radius: 18px; box-shadow: var(--shadow); }
.agency-head { align-items: center; }
.agency-head .account__head-text { flex: 1; }
.agency-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card__label { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.stat-card__value { font-size: 30px; font-weight: 900; color: var(--navy); line-height: 1.1; }
.stat-card__note { color: var(--muted); font-size: 13px; }

.logo-upload { display: flex; align-items: center; gap: 20px; }
.logo-upload__preview { display: grid; place-items: center; width: 120px; height: 120px; flex-shrink: 0; border: 1px dashed #C9D2DE; border-radius: 14px; background: var(--sand); overflow: hidden; font-size: 30px; font-weight: 900; color: var(--ocean); }
.logo-upload__preview img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.logo-upload__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }

.team-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team-member { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.team-member--pending { background: #FBFCFE; box-shadow: inset 0 0 0 1px var(--line); }
.team-member--pending .avatar { background: #E8F0FE; color: var(--ocean); }
.team-member--pending .avatar .icon { width: 20px; height: 20px; }
.team-member__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.team-member__body small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.team-member__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.team-member__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.team-member__actions .link-button { font-size: 13.5px; padding: 3px 0; }
.team-remove summary { list-style: none; cursor: pointer; }
.team-remove summary::-webkit-details-marker { display: none; }
.team-remove[open] { padding: 12px; margin-top: 4px; border-radius: var(--radius-sm); background: var(--sand); max-width: 260px; }
.team-remove form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.role-help { margin: 0 0 16px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.role-help li + li { margin-top: 4px; }
.panel-card h2 .icon { width: 22px; height: 22px; color: var(--ocean); vertical-align: -4px; }

.verify-state { display: flex; gap: 14px; align-items: flex-start; }
.verify-state > .icon { width: 32px; height: 32px; color: var(--ocean); flex-shrink: 0; }
.verify-state--ok > .icon { color: #137333; }
.plain-checks { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plain-checks li { display: flex; gap: 8px; align-items: flex-start; }
.plain-checks .icon { width: 18px; height: 18px; color: #137333; flex-shrink: 0; margin-top: 2px; }
.notice > .btn { flex-shrink: 0; align-self: center; }
.invite-agency { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 8px; text-align: center; }
.invite-agency ~ .auth-title, .invite-agency ~ .auth-lead { text-align: center; }

/* public directory */
.page-hero { background: linear-gradient(180deg, #EAF4FD 0%, var(--sand) 100%); padding: 40px 0 28px; }
.page-hero__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; color: var(--navy); letter-spacing: -.02em; }
.page-hero__lead { color: var(--muted); font-size: 17px; margin-top: 6px; max-width: 640px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.filter-chip { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 700; font-size: 14px; }
.filter-chip:hover { box-shadow: inset 0 0 0 1.5px var(--ocean); }
.filter-chip.is-active { background: var(--ocean); color: #fff; box-shadow: none; }
.agency-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.agency-card { display: flex; gap: 16px; height: 100%; padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); transition: box-shadow .15s, transform .15s; }
.agency-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.agency-card__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; align-items: flex-start; }
.agency-card__name { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; color: var(--navy); }
.agency-card__name .icon { width: 18px; height: 18px; color: var(--ocean); }
.agency-card__place, .agency-card__meta span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; }
.agency-card__place .icon, .agency-card__meta .icon { width: 15px; height: 15px; }
.agency-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.agency-card__text { color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.agency-join { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding: 26px 28px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.agency-join h2 { font-size: 22px; font-weight: 800; }
.agency-join p { color: #C9D6EA; margin-top: 4px; }

.profile-hero { background: linear-gradient(180deg, #EAF4FD 0%, var(--sand) 100%); padding: 44px 0 32px; }
.profile-hero__inner { display: flex; align-items: center; gap: 24px; }
.profile-hero__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.profile-hero__place { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; }
.profile-hero__place .icon { width: 16px; height: 16px; }
.profile-hero__agency { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.profile-hero__agency img { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; background: #fff; }
.profile-hero .back-link { margin-bottom: 6px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-top: 32px; padding-bottom: 56px; }
.profile-section + .profile-section { margin-top: 36px; }
.profile-section h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.profile-description { line-height: 1.7; max-width: 720px; }
.profile-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.contact-card__title { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.profile-aside .contact-buttons { display: flex; flex-direction: column; gap: 10px; }
.profile-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 18px 0 10px; font-size: 14.5px; }
.profile-facts dt { color: var(--muted); font-weight: 700; }
.profile-facts dd { margin: 0; overflow-wrap: anywhere; }
.team-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.team-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.team-card:hover { box-shadow: var(--shadow-lg); }
.team-card .avatar { margin-bottom: 6px; }
.team-card small { color: var(--muted); }

@media (max-width: 1000px) {
    .result-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-aside { position: static; }
}
@media (max-width: 720px) {
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .stat-cards .stat-card:last-child { grid-column: span 2; }
    .agency-grid { grid-template-columns: 1fr; }
    .agency-join { flex-direction: column; align-items: flex-start; }
    .result-grid--3 { grid-template-columns: 1fr; }
    .profile-hero__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .agency-logo--xl { width: 88px; height: 88px; }
    .profile-layout { padding-top: 24px; padding-bottom: 40px; }
    .logo-upload { flex-direction: column; align-items: flex-start; }
    .team-member { flex-wrap: wrap; }
    .team-member__actions { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; width: 100%; padding-left: 58px; }
}

/* ================================================================ statistics */
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stats-kicker { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ocean); margin-bottom: 2px; }
.stats-head { align-items: flex-end; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex-shrink: 0; }
.segmented a { padding: 8px 16px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
.segmented a[aria-current] { background: var(--ocean); color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi__label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.kpi__label .icon { width: 16px; height: 16px; color: var(--ocean); }
.kpi__value { font-size: 32px; font-weight: 900; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.kpi__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 22px; color: var(--muted); font-size: 13px; }
.kpi__delta { padding: 2px 7px; border-radius: 999px; font-weight: 800; font-size: 12.5px; }
.kpi__delta--up { background: #E6F4EA; color: #137333; }
.kpi__delta--down { background: #FDECEA; color: #A50E0E; }
.kpi__delta--flat { background: #EEF1F5; color: var(--muted); }

.stats-card h2 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.stats-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; }
.chart-legend { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.chart-legend li { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend__bar { width: 12px; height: 12px; border-radius: 3px; background: var(--sky); }
.chart-legend__line { width: 18px; height: 3px; border-radius: 2px; background: var(--ocean); }
.stats-chart-wrap { overflow-x: auto; }
.stats-chart { display: block; width: 100%; min-width: 560px; height: auto; }
.stats-chart__grid { stroke: var(--line); stroke-width: 1; }
.stats-chart__axis { fill: var(--muted); font-size: 11.5px; font-family: var(--font-sans); }
.stats-chart__axis--contacts { fill: var(--ocean); }
.stats-chart__hover { fill: transparent; }
.stats-chart__slot:hover .stats-chart__hover { fill: rgba(79, 195, 247, .12); }
.stats-chart__bar { fill: var(--sky); }
.stats-chart__slot:hover .stats-chart__bar { fill: #29A9E8; }
.stats-chart__line { fill: none; stroke: var(--ocean); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.stats-chart__dot { fill: #fff; stroke: var(--ocean); stroke-width: 2; pointer-events: none; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stats-grid > .panel-card { margin-top: 20px; }
.hbars { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 170px 1fr 52px; align-items: center; gap: 12px; }
.hbars__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.hbars__label .icon { width: 17px; height: 17px; color: var(--ocean); }
.hbars__track { height: 10px; border-radius: 5px; background: #EEF1F5; overflow: hidden; }
.hbars__fill { display: block; height: 100%; border-radius: 5px; background: var(--ocean); min-width: 2px; }
.hbars strong { text-align: right; }
.device-split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.device-split__part--mobile, .device-legend__dot--mobile { background: var(--ocean); }
.device-split__part--desktop, .device-legend__dot--desktop { background: var(--sky); }
.device-split__part--tablet, .device-legend__dot--tablet { background: var(--sun); }
.device-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.device-legend li { display: inline-flex; align-items: center; gap: 6px; }
.device-legend strong { color: var(--ink); }
.device-legend__dot { width: 10px; height: 10px; border-radius: 50%; }
.stats-subtitle { font-size: 14px; font-weight: 800; color: var(--navy); margin: 20px 0 8px; }
.source-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.source-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.source-list li:last-child { border-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 0 -4px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.stats-table th { text-align: right; padding: 8px 10px; color: var(--muted); font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stats-table td { text-align: right; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; white-space: normal; }
.stats-table tbody tr:hover { background: #F8FAFD; }
.stats-table__listing { font-weight: 700; display: block; }
.stats-table td small { color: var(--muted); }
.stats-table__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.stats-table__name .avatar { width: 32px; height: 32px; font-size: 12px; }
.stats-footnote { margin-top: 18px; }

@media (max-width: 1000px) {
    .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .stats-head { align-items: flex-start; }
    .stats-grid { grid-template-columns: 1fr; gap: 0; }
    .kpi__value { font-size: 26px; }
    .hbars li { grid-template-columns: 130px 1fr 40px; }
    .segmented a { padding: 7px 12px; }
}
.stats-chart__bar.is-partial { fill: #A9DEF9; }
.stats-chart__line.is-partial { stroke-dasharray: 5 5; }

/* ================================================================ ad slots (own advertising) */
/* Property page: the contact card stays sticky, the ad sits below it at the end of the column */
.property-aside { position: static; align-self: stretch; display: flex; flex-direction: column; gap: 20px; }
.property-aside__sticky { flex: 1; }
.property-aside__sticky > .contact-card { position: sticky; top: calc(var(--header-h) + 16px); }

.ad { color: var(--ink); }
.ad__art { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--ocean) 0%, #2E8FDB 60%, var(--sky) 100%); }
.ad__art img { width: 46%; max-width: 220px; height: auto; object-fit: contain; opacity: .95; }
.ad__label { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ad__headline { display: block; font-weight: 800; color: var(--navy); line-height: 1.25; }
.ad__text { display: block; color: var(--muted); line-height: 1.5; }
.ad__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ocean-dark); }
.ad__cta .icon { width: 16px; height: 16px; transition: transform .15s; }
a.ad:hover .ad__cta .icon, .ad--card:hover .ad__cta .icon { transform: translateX(3px); }

/* search_card: same frame as a property card */
.chip--sponsored { background: rgba(255, 255, 255, .92); color: var(--muted); font-size: 11.5px; letter-spacing: .02em; }
.ad--card .property-card__body { display: flex; flex-direction: column; gap: 8px; }
.ad--card .ad__text { font-size: 14.5px; }
.ad--card .ad__cta { margin-top: auto; }
.ad--card .property-card__title a::after { content: ""; position: absolute; inset: 0; }
.ad--card { position: relative; }
.ad--house.ad--card { background: #FBFDFF; box-shadow: var(--shadow), inset 0 0 0 1px #DCEBFA; }

/* home_strip: wide card between homepage sections */
.ad-section { padding-top: 48px; padding-bottom: 8px; }
.ad--strip { display: grid; grid-template-columns: 360px 1fr; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: var(--shadow); transition: box-shadow .15s; }
.ad--strip:hover { box-shadow: var(--shadow-lg); }
.ad--strip .ad__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.ad--strip .ad__media > img { width: 100%; height: 100%; object-fit: cover; }
.ad--strip .ad__content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 28px 36px; }
.ad--strip .ad__headline { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.01em; }
.ad--strip .ad__text { font-size: 16px; max-width: 560px; }
.ad--strip .ad__button { margin-top: 6px; }
.ad--house.ad--strip { background: linear-gradient(100deg, #fff 55%, #EAF4FD 100%); }

/* property_sidebar: small card below the contact card */
.ad--side { display: block; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: var(--shadow); transition: box-shadow .15s; }
.ad--side:hover { box-shadow: var(--shadow-lg); }
.ad--side .ad__media { display: block; aspect-ratio: 19 / 10; overflow: hidden; }
.ad--side .ad__media > img { width: 100%; height: 100%; object-fit: cover; }
.ad--side .ad__content { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.ad--side .ad__headline { font-size: 16.5px; }
.ad--side .ad__text { font-size: 14px; }
.ad--side .ad__cta { margin-top: 4px; font-size: 14.5px; }
.ad--house.ad--side .ad__media { aspect-ratio: 19 / 7; }

@media (max-width: 1000px) {
    .property-aside__sticky > .contact-card { position: static; }
}
@media (max-width: 720px) {
    .ad-section { padding-top: 28px; }
    .ad--strip { grid-template-columns: 1fr; }
    .ad--strip .ad__content { padding: 20px; }
    .ad--house.ad--strip .ad__media { aspect-ratio: 3 / 1; }
}
.ad-section + .section--latest { margin-top: 0; }

/* ================================================================ leads */
.segmented--tabs { flex-wrap: wrap; margin-bottom: 14px; }
.segmented__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: #EEF1F5; color: var(--muted); font-size: 12px; }
.segmented a[aria-current] .segmented__count { background: rgba(255, 255, 255, .25); color: #fff; }
.leads-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.leads-filters input[type="search"] { flex: 1; min-width: 220px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.leads-filters .form-select { width: auto; min-width: 180px; height: 42px; }
.leads-card { padding: 8px 12px; margin-top: 0; }
.leads-table td { vertical-align: top; }
.leads-table td small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; white-space: normal; }
.leads-table td:nth-child(2) { white-space: normal; text-align: left; min-width: 180px; }
.leads-table th:nth-child(2) { text-align: left; }
.leads-table__name { font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.leads-table__snippet { max-width: 360px; }
.leads-table__note { color: #7A5A00 !important; }
.leads-table__note .icon { width: 13px; height: 13px; vertical-align: -2px; }
.leads-table tr.is-unread td { background: #FFFBEA; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex-shrink: 0; }
.lead-status { width: auto; min-width: 150px; height: 36px; padding: 0 10px; font-size: 14px; font-weight: 700; border-radius: 999px; }
.lead-status--new { background-color: #FFF6D6; border-color: #FFE08A; color: #7A5A00; }
.lead-status--replied { background-color: #E6F4EA; border-color: #BFE3C9; color: #137333; }
.lead-status--viewing { background-color: #E8F0FE; border-color: #C3D7F7; color: var(--ocean-dark); }
.lead-status--closed { background-color: #EEF1F5; color: var(--muted); }
.lead-status--spam { background-color: #FDECEA; border-color: #F5C2C0; color: #A50E0E; }
.lead-panel { display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
.lead-panel .lead-status { width: 100%; border-radius: var(--radius-sm); }
.lead-panel .btn { align-self: flex-start; }
.lead-panel .link-button { font-size: 14px; }
.leads-card + .form-hint { margin-top: 12px; }
