﻿:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f7faff;
    --surface-blue: #eef6ff;
    --text: #101828;
    --muted: #667085;
    --subtle: #98a2b3;
    --line: #e4eaf2;
    --line-strong: #d5deea;
    --primary: #0b7cff;
    --primary-strong: #045dc4;
    --primary-soft: #e8f2ff;
    --success: #16a34a;
    --success-soft: #e9f9ef;
    --warning: #f59e0b;
    --whatsapp: #20c766;
    --telegram: #2aabee;
    --shadow: 0 18px 55px rgba(16, 24, 40, 0.09);
    --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.07);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #f7faff 0, var(--bg) 420px);
    color: var(--text);
    font-family: Geologica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    padding-top: 82px;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.12;
    margin-bottom: 14px;
}

h2 {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 18px;
}

h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    margin-bottom: 8px;
}

.material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

.site-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(228, 234, 242, 0.92);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.05);
    display: flex;
    gap: 28px;
    justify-content: space-between;
    left: 50%;
    margin: 0;
    max-width: none;
    padding: 17px 24px;
    position: fixed;
    top: 0;
    transform: translateX(-50%);
    width: min(var(--container), calc(100vw - 32px));
    z-index: 60;
    backdrop-filter: blur(16px);
}

.logo-mark {
    /* background: #006a62 url('/ui/img/favicon.svg') center / cover no-repeat; */
}

.logo-mark .material-symbols-outlined {
    display: none;
}

.site-logo {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    min-width: 178px;
}

.logo-mark {
    align-items: center;
    /* background: linear-gradient(135deg, #0b7cff, #63b3ff); */
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    height: 25px;
    justify-content: center;
    /* width: 38px; */
}

.site-logo .logo-mark img {
    max-height: 100%;
}

.logo-mark .material-symbols-outlined {
    font-size: 27px;
    font-variation-settings: "FILL" 1;
}

.logo-copy {
    display: grid;
    line-height: 1.08;
}

.logo-copy strong {
    font-size: 18px;
    font-weight: 900;
}

.logo-copy small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.site-nav,
.site-actions,
.property-actions,
.hero-actions,
.card-actions,
.map-actions,
.auth-links {
    align-items: center;
    display: flex;
    gap: 14px;
}

.site-nav {
    flex: 1;
    justify-content: center;
}

.site-nav a {
    border-bottom: 2px solid transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 10px;
}

.site-nav a:hover,
.site-nav a.is-active {
    border-color: var(--primary);
    color: var(--primary);
}

.btn,
.icon-button,
.link-button {
    align-items: center;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.btn {
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
}

.btn:hover,
.icon-button:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(180deg, #1988ff, #0875f0);
    box-shadow: 0 12px 26px rgba(11, 124, 255, 0.24);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #0875f0, #045dc4);
}

.btn-light,
.btn-ghost {
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--text);
}

.btn-light:hover,
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn.is-active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.btn.is-active .material-symbols-outlined {
    font-variation-settings: "FILL" 1;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.icon-button {
    background: #fff;
    border-radius: 12px;
    color: var(--text);
    height: 44px;
    width: 44px;
}

.menu-button {
    display: none;
}

.page-shell {
    margin: 0 auto;
    max-width: var(--container);
    padding: 42px 24px 80px;
}

.breadcrumbs {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    gap: 10px;
    margin-bottom: 30px;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.property-head {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 24px;
}

.property-title {
    min-width: 0;
}

.detail-badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    padding: 6px 10px;
}

.status-pill .material-symbols-outlined {
    font-size: 17px;
}

.status-ok {
    background: var(--success-soft);
    color: var(--success);
}

.status-soft {
    background: var(--primary-soft);
    color: var(--primary);
}

.muted {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.property-subline,
.location-line {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.property-subline span,
.property-subline a,
.location-line {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.property-subline a {
    color: var(--primary);
    font-weight: 700;
}

.property-actions {
    flex: 0 0 auto;
}

.property-gallery {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.gallery-open {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
}

.gallery-open img {
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
    width: 100%;
}

.gallery-open:hover img {
    transform: scale(1.025);
}

.gallery-hero {
    aspect-ratio: 2.32 / 1;
    overflow: hidden;
}

.gallery-hero::after,
.gallery-more::after,
.house-photo::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 45%, rgba(0, 0, 0, 0.58) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.distance-card,
.rating-card {
    position: absolute;
    z-index: 2;
}

.distance-card {
    align-items: center;
    bottom: 24px;
    color: #fff;
    display: grid;
    gap: 2px;
    grid-template-columns: 32px auto;
    left: 24px;
}

.distance-card .material-symbols-outlined {
    font-size: 34px;
    grid-row: span 2;
}

.distance-card strong {
    font-size: 22px;
    line-height: 1;
}

.distance-card small {
    font-size: 12px;
}

.rating-card {
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: grid;
    gap: 0 10px;
    grid-template-columns: auto auto;
    padding: 16px 20px;
    right: 28px;
    top: 28px;
}

.rating-card strong {
    font-size: 34px;
    grid-row: span 2;
    line-height: 1;
}

.rating-card span {
    color: var(--warning);
    font-size: 15px;
    letter-spacing: 0;
}

.rating-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.gallery-thumbs {
    background: #fff;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, 1fr);
    padding: 8px;
}

.gallery-thumbs .gallery-open {
    aspect-ratio: 1.55 / 1;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-more span {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    inset: 0;
    position: absolute;
    z-index: 2;
    display: grid;
    place-content: center;
    text-align: center;
}

.gallery-more small {
    font-size: 13px;
    font-weight: 600;
}

.photo-caption {
    background: rgba(8, 20, 36, .72);
    border-radius: 999px;
    bottom: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    left: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    padding: 4px 8px;
    position: absolute;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 3;
}

.feature-strip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, 1fr);
    margin: -1px 0 36px;
    padding: 24px 28px;
}

.feature-strip article {
    align-items: center;
    display: grid;
    gap: 3px;
    grid-template-columns: 32px auto;
}

.feature-strip .material-symbols-outlined {
    color: var(--primary);
    font-size: 27px;
    grid-row: span 2;
}

.feature-strip strong {
    font-size: 14px;
}

.feature-strip small {
    color: var(--muted);
    font-size: 12px;
}

.property-content {
    align-items: start;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 360px;
    min-width: 0;
}

.property-main {
    display: grid;
    gap: 34px;
    min-width: 0;
}

.content-section {
    scroll-margin-top: 110px;
}

.content-section p {
    color: var(--text);
    margin-bottom: 10px;
    max-width: 720px;
}

.text-collapsed {
    max-height: 98px;
    overflow: hidden;
    position: relative;
}

.text-collapsed::after {
    background: linear-gradient(180deg, rgba(244, 247, 251, 0), var(--bg));
    bottom: 0;
    content: "";
    height: 38px;
    left: 0;
    position: absolute;
    right: 0;
}

.text-collapsed.is-open {
    max-height: none;
}

.text-collapsed.is-open::after {
    display: none;
}

.link-button {
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    gap: 4px;
    padding: 4px 0;
}

.amenities-list {
    display: grid;
    gap: 18px 60px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.amenity-item {
    align-items: center;
    display: flex;
    font-size: 14px;
    gap: 12px;
}

.amenity-item .material-symbols-outlined {
    color: var(--primary);
    font-size: 22px;
}

.amenity-extra {
    display: none;
}

.amenities-list.is-open .amenity-extra {
    display: flex;
}

.accommodation-summary {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    gap: 16px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 18px;
}

.accommodation-summary > .material-symbols-outlined {
    align-items: center;
    background: var(--primary-soft);
    border-radius: 12px;
    color: var(--primary);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.accommodation-summary p,
.card-room-summary {
    color: var(--muted);
    margin-bottom: 0;
}

.service-chips {
    margin-top: 12px;
}

.service-chips span {
    background: #f2fbf7;
    color: #087443;
}

.map-layout {
    align-items: stretch;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

.map-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.map-card {
    background: #dfeffc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 390px;
    overflow: hidden;
    position: relative;
}

.map-card iframe {
    border: 0;
    height: 100%;
    min-height: 390px;
    width: 100%;
}

.map-info-card {
    background: #fff;
    /* border-radius: 14px; */
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 8px;
    left: 18px;
    max-width: 240px;
    padding: 18px;
    position: static;
    top: auto;
}

/* Release polish: public mobile navigation, contrast and map metadata. */
.map-column .map-info-card {
    align-items: center;
    border: 1px solid var(--line);
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    max-width: none;
    padding: 12px 14px;
    width: 100%;
}

.map-column .map-info-card strong {
    flex: 0 0 auto;
}

.map-column .map-info-card > span {
    flex: 1 1 180px;
    min-width: 0;
}

.map-column .map-info-card .btn {
    margin-left: auto;
}

[data-theme="dark"] .site-footer,
[data-theme="dark"] .trust-section article,
[data-theme="dark"] .map-info-card,
[data-theme="dark"] .about-page .info-panel,
[data-theme="dark"] .site-nav.is-open {
    background: #111a2b;
    border-color: #25344d;
    color: #e8eef8;
}

[data-theme="dark"] .site-footer a,
[data-theme="dark"] .site-footer p,
[data-theme="dark"] .trust-section article p,
[data-theme="dark"] .trust-section article small {
    color: #a8b3c7;
}

[data-theme="dark"] .site-footer strong,
[data-theme="dark"] .trust-section article h3,
[data-theme="dark"] .map-info-card strong {
    color: #e8eef8;
}

.auth-link-button {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
}

.about-flow {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.5fr) minmax(220px, .9fr);
    margin-top: 22px;
}

.about-flow .info-panel {
    align-self: start;
}

.about-intro > .material-symbols-outlined {
    color: var(--primary);
    font-size: 30px;
}

.about-steps {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-steps li {
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 12px;
    padding: 16px;
}

.about-steps li > span {
    align-items: center;
    background: #e8f2ff;
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 30px;
    font-size: 13px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
}

.about-steps strong,
.about-steps p {
    display: block;
}

.about-steps p {
    color: var(--muted);
    font-size: 14px;
    margin: 4px 0 0;
}

[data-theme="dark"] .about-steps li {
    background: #111a2b;
    border-color: #25344d;
}

[data-theme="dark"] .about-steps li > span {
    background: #173256;
    color: #8ec0ff;
}

@media (max-width: 900px) {
    .about-flow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .site-header {
        border-radius: 0;
        margin: 0;
        padding: 12px 16px;
        /* position: sticky; */
        top: 0;
        z-index: 100;
    }

    .site-logo .logo-copy strong {
        font-size: 17px;
    }

    .site-actions {
        gap: 6px;
    }

    .site-actions > .btn,
    .site-actions > .top-logout-form,
    .site-actions .top-register-link {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .site-nav {
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 24px rgba(15, 23, 42, .12);
        display: none;
        inset: 68px 0 auto;
        padding: 10px 16px 14px;
        position: fixed;
        z-index: 99;
    }

    .site-nav.is-open {
        display: grid;
        gap: 4px;
    }

    .site-nav a {
        border-bottom: 0;
        border-left: 3px solid transparent;
        padding: 11px 12px;
    }

    .site-nav a.is-active {
        border-color: var(--primary);
    }

    .map-column .map-info-card {
        align-items: flex-start;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .map-column .map-info-card > span {
        grid-column: 1 / -1;
    }

    .map-column .map-info-card .btn {
        margin-left: 0;
    }
}

.map-info-card > span,
.map-info-card small,
.nearby-list small {
    color: var(--muted);
}

.map-info-card p {
    color: var(--text);
    font-size: 14px;
    margin: 8px 0;
}

.nearby-list {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nearby-list div {
    align-items: start;
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 24px 1fr auto;
}

.nearby-list .material-symbols-outlined {
    color: var(--muted);
    font-size: 21px;
    grid-row: span 2;
}

.nearby-list strong {
    border-bottom: 1px dotted var(--line-strong);
    font-size: 14px;
    font-weight: 700;
}

.nearby-list em {
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.nearby-list small {
    grid-column: 2 / 4;
}

.booking-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 20px;
    position: sticky;
    top: 112px;
}

.price-line {
    align-items: baseline;
    display: flex;
    gap: 8px;
}

.price-line span,
.price-line em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    text-transform: uppercase;
}

.price-line strong {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

.booking-card p {
    color: var(--muted);
    font-size: 13px;
    margin: -6px 0 4px;
}

.booking-card .btn {
    flex-wrap: wrap;
    white-space: normal;
    width: 100%;
}

.booking-card .btn small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-left: 4px;
}

.phone-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: flex;
    font-weight: 800;
    gap: 12px;
    justify-content: center;
    padding: 14px 0;
}

.phone-row .material-symbols-outlined {
    color: var(--primary);
}

.phone-list {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
}

.phone-list .phone-row {
    border: 0;
    padding: 10px 0;
}

.phone-list .phone-row + .phone-row {
    border-top: 1px dashed var(--line);
}

.contact-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
}

.contact-actions a {
    align-items: center;
    color: var(--text);
    display: grid;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    justify-items: center;
    text-align: center;
}

.contact-actions .material-symbols-outlined {
    color: var(--primary);
    font-size: 26px;
}

.contact-actions a:first-child .material-symbols-outlined {
    color: var(--whatsapp);
}

.contact-actions a:nth-child(2) .material-symbols-outlined {
    color: var(--telegram);
}

.social-action img {
    display: block;
    height: 22px;
    object-fit: contain;
    width: 22px;
}

.base-mode-card {
    background: #f5f9ff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    display: grid;
    gap: 6px;
    padding: 12px;
}

.base-mode-card strong {
    color: var(--text);
    font-size: 15px;
}

.base-mode-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.date-price-list {
    background: #f8fbff;
    border: 1px solid #dce8fb;
    border-radius: 12px;
    display: grid;
    gap: 8px;
    padding: 10px;
}

.date-price-list span {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.date-price-list strong,
.date-price-list em {
    font-size: 12px;
    font-style: normal;
    line-height: 1.2;
}

.date-price-list strong {
    color: #0f172a;
}

.date-price-list em {
    color: #155bd5;
    font-weight: 900;
    text-align: right;
}

.date-price-list-modal {
    margin-top: 12px;
}

.booking-note {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.reviews-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 300px minmax(0, 1fr);
}

.rating-summary,
.review-card,
.review-modal-card,
.room-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.rating-summary {
    padding: 22px;
}

.rating-summary strong {
    color: #37749a;
    display: block;
    font-size: 42px;
    line-height: 1;
}

.rating-summary span,
.review-card b {
    color: var(--warning);
}

.rating-summary small {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.rating-bars {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.rating-bars i {
    background: var(--primary-soft);
    border-radius: 999px;
    display: block;
    height: 6px;
    overflow: hidden;
}

.rating-bars i::before {
    background: var(--primary);
    border-radius: inherit;
    content: "";
    display: block;
    height: 100%;
    width: var(--w);
}

.review-card {
    padding: 22px;
}

.review-card div {
    display: grid;
    float: left;
}

.review-card div span {
    color: var(--muted);
    font-size: 13px;
}

.review-card b {
    float: right;
    font-size: 14px;
}

.review-card p {
    clear: both;
    padding-top: 16px;
}

.modal {
    display: grid;
    inset: 0;
    padding: 24px;
    place-items: center;
    position: fixed;
    z-index: 300;
}

.modal-backdrop {
    background: rgba(16, 24, 40, 0.48);
    inset: 0;
    position: absolute;
}

.modal-dialog {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(16, 24, 40, 0.28);
    max-height: min(86vh, 900px);
    max-width: 560px;
    overflow: auto;
    padding: 28px;
    position: relative;
    width: min(100%, 560px);
    z-index: 1;
}

.modal-wide {
    max-width: 980px;
    width: min(100%, 980px);
}

.modal-close {
    align-items: center;
    background: var(--surface-soft);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
}

.modal-lead {
    color: var(--muted);
    margin: -8px 0 22px;
}

.rooms-modal-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 330px minmax(0, 1fr);
}

.room-list {
    display: grid;
    gap: 14px;
}

.room-card {
    display: grid;
    gap: 14px;
    grid-template-columns: 110px minmax(0, 1fr);
    overflow: hidden;
    padding: 10px;
}

.room-card img {
    border-radius: 12px;
    height: 110px;
    object-fit: cover;
    width: 110px;
}

.room-card p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.selected-date {
    background: var(--primary-soft);
    border-radius: 12px;
    color: var(--primary-strong);
    font-weight: 700;
    padding: 14px;
}

.availability-calendar {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

.calendar-nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.calendar-nav strong {
    font-size: 16px;
    font-weight: 800;
    text-transform: capitalize;
}

.calendar-nav-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.calendar-nav-button:disabled {
    color: var(--subtle);
    cursor: default;
    opacity: .55;
}

.calendar-month {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.calendar-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-grid span,
.calendar-grid button {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    height: 36px;
    justify-content: center;
}

.calendar-grid span {
    color: var(--subtle);
}

.calendar-grid button {
    background: var(--primary-soft);
    border: 0;
    color: var(--primary-strong);
    cursor: pointer;
}

.calendar-grid button.is-booked {
    background: #f1f4f8;
    color: var(--subtle);
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-grid button.is-selected {
    background: var(--primary);
    color: #fff;
}

.modal-actions,
.contact-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.contact-modal-actions .btn {
    flex: 1 1 210px;
}

.review-modal-card {
    box-shadow: none;
    margin-top: 12px;
    padding: 18px;
}

.review-modal-card strong {
    display: flex;
    justify-content: space-between;
}

.review-modal-card span {
    color: var(--warning);
}

.install-steps {
    display: grid;
    gap: 12px;
}

.install-steps article {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.install-steps p {
    color: var(--muted);
    margin: 6px 0 0;
}

.lightbox {
    background: rgba(2, 6, 23, 0.92);
    display: grid;
    inset: 0;
    padding: 28px;
    place-items: center;
    position: fixed;
    z-index: 400;
}

.lightbox img {
    border-radius: 14px;
    max-height: 82vh;
    max-width: min(1120px, 92vw);
    object-fit: contain;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox.is-loading img { opacity: .55; }

.lightbox-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    position: absolute;
    width: 48px;
}

.lightbox-close {
    right: 24px;
    top: 24px;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-caption {
    bottom: 24px;
    color: #fff;
    font-weight: 700;
    position: absolute;
    text-align: center;
}

.hero-panel {
    margin: 20px auto 34px;
    max-width: 880px;
    text-align: center;
}

.hero-panel p {
    color: var(--muted);
    font-size: 18px;
}

.search-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin: 0 auto 34px;
    max-width: 920px;
    padding: 16px;
}

.search-form {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1.25fr) minmax(130px, .7fr) minmax(130px, .7fr) minmax(190px, .9fr) minmax(118px, auto);
}

label span,
.field-title {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.search-field {
    display: grid;
    gap: 6px;
    position: relative;
}

.field-icon {
    color: var(--primary);
    bottom: 11px;
    left: 13px;
    position: absolute;
    top: auto;
    transform: none;
    z-index: 1;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text);
    min-height: 42px;
    padding: 11px 13px;
    width: 100%;
}

.search-field input,
.search-field select {
    padding-left: 42px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 124, 255, 0.12);
    outline: 0;
}

.check-row,
.mini-check {
    align-items: center;
    color: var(--muted);
    display: flex;
    gap: 9px;
    min-height: 42px;
}

.check-row input,
.mini-check input {
    accent-color: var(--primary);
    flex: 0 0 auto;
    height: 18px;
    min-height: auto;
    width: 18px;
}

.check-row {
    align-self: end;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 12px;
}

.search-form > .btn,
.advanced-main-fields > .btn {
    align-self: end;
    min-height: 42px;
    white-space: nowrap;
    width: 100%;
}

.mini-check > span {
    margin-bottom: 0;
}

.content-grid {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: 290px minmax(0, 1fr);
}

.search-page-head,
.home-map-section,
.search-map-band {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 24px;
}

.search-page-head p,
.home-map-section p,
.search-map-band p {
    color: var(--muted);
    margin-bottom: 0;
}

.search-page > .search-page-head {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding: 16px 20px;
}
.search-page > .search-page-head h1 { font-size: clamp(25px, 3.2vw, 38px); margin: 3px 0 5px; }
.search-page > .search-page-head p { font-size: 14px; line-height: 1.45; }

.advanced-search-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: 310px minmax(0, 1fr);
}

.advanced-filters {
    position: sticky;
    top: 104px;
}

.advanced-results {
    min-width: 0;
}

.advanced-main-fields {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 12px;
    align-items: stretch;
    grid-template-columns: minmax(190px, 1.2fr) minmax(128px, .68fr) minmax(128px, .68fr) minmax(112px, .55fr) minmax(112px, auto);
    margin-bottom: 22px;
    padding: 16px;
}

.advanced-main-fields .advanced-query {
    grid-column: span 4;
}

.filter-check-grid,
.owner-check-grid {
    display: grid;
    gap: 5px;
}

.filter-actions {
    bottom: 16px;
    position: sticky;
    display: grid;
    gap: 10px;
    margin-top: 14px;
    z-index: 10;
}

.home-map-section {
    align-items: start;
    margin-top: 34px;
}

.home-map-links,
.search-map-points {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(160px, 1fr));
    min-width: 360px;
}

.home-map-links a,
.search-map-points a {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 82px;
    overflow: hidden;
    padding: 12px;
    position: relative;
}

/* Production polish: public dark theme and simpler search UX */
[data-theme="dark"] {
    --bg: #0f1724;
    --surface: #182235;
    --surface-soft: #121b2b;
    --text: #e8eef8;
    --muted: #a8b3c7;
    --subtle: #7f8aa1;
    --line: #2a3850;
    --line-strong: #3a4b66;
    --primary: #62a8ff;
    --primary-strong: #8ec0ff;
    --primary-soft: #162d4c;
    --success-soft: #123522;
    --shadow: 0 18px 55px rgba(0, 0, 0, .32);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .24);
}

[data-theme="dark"] body {
    background: linear-gradient(180deg, #111b2b 0, var(--bg) 420px);
    color: var(--text);
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .search-panel,
[data-theme="dark"] .search-page-head,
[data-theme="dark"] .home-map-section,
[data-theme="dark"] .search-map-band,
[data-theme="dark"] .filter-card,
[data-theme="dark"] .advanced-main-fields,
[data-theme="dark"] .info-panel,
[data-theme="dark"] .seo-block,
[data-theme="dark"] .settlement-head,
[data-theme="dark"] .house-card,
[data-theme="dark"] .property-head,
[data-theme="dark"] .property-gallery,
[data-theme="dark"] .feature-strip,
[data-theme="dark"] .content-section,
[data-theme="dark"] .booking-card,
[data-theme="dark"] .modal-dialog,
[data-theme="dark"] .rating-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .rating-summary,
[data-theme="dark"] .room-card,
[data-theme="dark"] .map-info-card,
[data-theme="dark"] .gallery-thumbs,
[data-theme="dark"] .pwa-install {
    background: rgba(24, 34, 53, .96);
    border-color: var(--line);
    color: var(--text);
}

[data-theme="dark"] .settlement-group {
    background: rgba(24, 34, 53, .96);
    border-color: var(--line);
}

[data-theme="dark"] .settlement-group-links {
    border-color: var(--line);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .btn-light,
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .check-row,
[data-theme="dark"] .chips span,
[data-theme="dark"] .amenity-item,
[data-theme="dark"] .nearby-list div,
[data-theme="dark"] .date-price-list span,
[data-theme="dark"] .base-mode-card,
[data-theme="dark"] .compact-empty,
[data-theme="dark"] .review-empty,
[data-theme="dark"] .selected-date {
    background: #121b2b;
    border-color: var(--line);
    color: var(--text);
}

[data-theme="dark"] p,
[data-theme="dark"] small,
[data-theme="dark"] label span,
[data-theme="dark"] .field-title,
[data-theme="dark"] .muted,
[data-theme="dark"] .breadcrumbs,
[data-theme="dark"] .house-info > p,
[data-theme="dark"] .property-subline,
[data-theme="dark"] .modal-lead {
    color: var(--muted);
}

[data-theme="dark"] .text-collapsed::after {
    background: linear-gradient(180deg, rgba(15, 23, 36, 0), var(--surface));
}

[data-theme="dark"] .site-logo,
[data-theme="dark"] .house-info h3 a,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: var(--text);
}

@media (max-width: 980px) {
    .filter-actions {
        background: rgba(255, 255, 255, .96);
        border: 1px solid var(--line);
        border-radius: 14px;
        bottom: 10px;
        box-shadow: var(--shadow-soft);
        padding: 8px;
        position: sticky;
        z-index: 20;
    }

    [data-theme="dark"] .filter-actions {
        background: rgba(18, 27, 43, .96);
    }
}

.home-map-links a.has-photo {
    background: #21374d;
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
    isolation: isolate;
}

.home-map-links a.has-photo::after {
    background: linear-gradient(90deg, rgba(8, 20, 36, .74), rgba(8, 20, 36, .28));
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
}

.home-map-cover {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: -2;
}

.house-list .house-card,
.home-map-section,
.trust-section {
    contain-intrinsic-size: auto 420px;
    content-visibility: auto;
}

.home-map-links a.has-photo .material-symbols-outlined,
.home-map-links a.has-photo small {
    color: #fff;
}

.home-map-links .material-symbols-outlined,
.search-map-points .material-symbols-outlined {
    color: var(--primary);
    grid-row: span 2;
}

.home-map-links small {
    color: var(--muted);
}

.search-map-groups {
    grid-template-columns: 1fr;
    min-width: min(520px, 100%);
}

.settlement-group {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.settlement-group summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 8px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    list-style: none;
    padding: 12px 14px;
}

.settlement-group summary::-webkit-details-marker {
    display: none;
}

.settlement-group summary .material-symbols-outlined {
    color: var(--primary);
    font-size: 21px;
}

.settlement-group summary strong {
    font-size: 14px;
}

.settlement-group summary small {
    background: var(--primary-soft);
    border-radius: 999px;
    color: var(--primary);
    font-size: 12px;
    padding: 3px 8px;
}

.settlement-group-links {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    padding: 10px;
}

.settlement-group-links a {
    border-radius: 10px;
    min-height: 46px;
    padding: 9px 10px;
}

.filter-card,
.info-panel,
.owner-card,
.notice-panel,
.seo-block,
.settlement-head {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.filter-card {
    position: sticky;
    top: 104px;
}

.filter-title {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.filter-title > .material-symbols-outlined {
    align-items: center;
    background: var(--primary-soft);
    border-radius: 14px;
    color: var(--primary);
    display: inline-flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.filter-title h2 {
    font-size: 22px;
    margin: 0;
}

.filter-title p,
.trust-note p,
.seo-block p,
.settlement-head p {
    color: var(--muted);
}

.filter-group {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.filter-group h3 {
    align-items: center;
    display: flex;
    font-size: 15px;
    gap: 8px;
}

.filter-group a {
    color: var(--muted);
    display: block;
    font-weight: 600;
    padding: 7px 0 7px 28px;
}

.trust-note {
    background: var(--surface-blue);
    border-radius: 12px;
    padding: 14px;
}

.section-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.eyebrow {
    color: var(--primary);
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.map-link {
    align-items: center;
    color: var(--primary);
    display: inline-flex;
    font-weight: 800;
    gap: 6px;
}

.house-list {
    display: grid;
    gap: 14px;
}

.house-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    height: 200px;
    overflow: hidden;
}

.house-photo {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.house-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.photo-status {
    left: 14px;
    position: absolute;
    top: 14px;
    z-index: 2;
}

.price-badge {
    bottom: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    left: 16px;
    position: absolute;
    z-index: 2;
}

.price-badge-soft {
    background: rgba(8, 20, 36, .78);
    border-radius: 999px;
    font-size: 13px;
    padding: 8px 11px;
}

.price-badge small {
    font-size: 13px;
    font-weight: 600;
}

.house-info {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 13px 15px;
    position: relative;
}

.house-topline {
    display: flex;
    justify-content: flex-end;
    min-height: 20px;
    position: absolute;
    right: 20px;
    top: 10px;
}

.house-topline .muted {
    font-size: 10px;
}

.house-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.house-card h3 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.house-info p:not(.location-line) {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.house-info > p:not(.location-line):not(.card-room-summary) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.house-card .location-line,
.house-card .card-room-summary {
    min-height: 21px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-room-summary {
    align-items: center;
    display: flex;
    font-size: 14px;
    gap: 7px;
}

.card-room-summary .material-symbols-outlined {
    color: var(--primary);
    font-size: 18px;
}

.chips,
.amenity-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chips {
    margin: 6px 0 9px;
}

.house-card .chips {
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0 0;
    max-height: 48px;
    min-height: 22px;
    overflow: hidden;
}

.chips span,
.amenity-grid span {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 5px;
    padding: 5px 8px;
}

.house-card .chips span {
    border-radius: 8px;
    font-size: 11px;
    padding: 3px 6px;
    white-space: nowrap;
}

.chips .material-symbols-outlined,
.amenity-grid .material-symbols-outlined {
    color: var(--primary);
    font-size: 16px;
}

.card-actions {
    border-top: 1px solid var(--line);
    justify-content: flex-end;
    margin-top: auto;
    padding: 8px 0 2px;
}

.house-card .card-actions {
    gap: 8px;
    min-height: 46px;
    overflow: hidden;
}

.house-card .btn {
    min-height: 36px;
    padding: 8px 10px;
    white-space: nowrap;
}

.trust-section {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 38px;
}

.trust-section article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.trust-section .material-symbols-outlined {
    color: var(--primary);
    font-size: 30px;
}

.site-footer {
    align-items: start;
    background: #fff;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(240px, 1.2fr) minmax(180px, .7fr) minmax(260px, 1.2fr) minmax(220px, .8fr);
    margin-top: 42px;
    padding: 28px max(24px, calc((100vw - var(--container)) / 2 + 24px));
}

.site-footer strong {
    font-size: 20px;
    font-weight: 900;
}

.site-footer p {
    color: var(--muted);
    margin: 3px 0 0;
}

.site-footer nav,
.footer-legal,
.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-nav,
.footer-legal {
    align-content: flex-start;
}

.footer-settlements {
    align-content: flex-start;
}

.settlement-head {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    padding: 15px 20px;
}
.settlement-head .breadcrumbs { margin: 0 0 2px; }
.settlement-head h1 { font-size: clamp(25px, 3.2vw, 38px); margin: 2px 0; }
.settlement-head p { font-size: 14px; line-height: 1.45; margin: 0; }

.footer-contacts {
    align-content: flex-start;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contacts strong { font-size: 15px; }
.footer-contacts a { align-items: center; display: flex; font-size: 13px; gap: 8px; }
.footer-contacts a > img,
.footer-contacts a > .material-symbols-outlined { flex: 0 0 18px; height: 18px; width: 18px; }
.footer-contacts a > .material-symbols-outlined { color: var(--primary); font-size: 18px; }

.footer-brand small {
    color: var(--subtle);
    display: block;
    font-size: 12px;
    margin-top: 10px;
}

.site-footer a {
    color: var(--muted);
    font-weight: 700;
}

.about-contact {
    background: linear-gradient(135deg, #f1fbf8, #fff);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
    margin-top: 24px;
    padding: 28px;
}
.about-contact h2 { font-size: clamp(24px, 3vw, 36px); margin: 8px 0; }
.about-contact-copy > p { color: var(--muted); }
.about-contact-links { display: grid; gap: 10px; margin-top: 20px; }
.about-contact-links a { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 12px; padding: 12px; }
.about-contact-links a > .material-symbols-outlined { color: var(--primary); }
.about-contact-icon { flex: 0 0 24px; height: 24px; object-fit: contain; width: 24px; }
.about-contact-links a span:last-child { display: grid; }
.about-contact-links small { color: var(--muted); }
.about-contact-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); display: grid; gap: 13px; padding: 20px; }
.about-contact-form label { display: grid; gap: 6px; }
.about-contact-form label > span { font-size: 13px; font-weight: 800; }
.about-contact-form input,
.about-contact-form textarea { box-sizing: border-box; width: 100%; }
.about-contact-form > small { color: var(--muted); margin-top: -8px; }
.about-contact-fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-contact-form .btn { justify-self: start; }
[data-theme="dark"] .about-contact { background: linear-gradient(135deg, #10231f, #111827); }
[data-theme="dark"] .about-contact-links a,
[data-theme="dark"] .about-contact-form { background: #111827; }

.pwa-install {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    bottom: 18px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    left: 18px;
    max-width: 450px;
    padding: 14px;
    position: fixed;
    z-index: 110;
}

.pwa-install span {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.pwa-install button {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    min-height: 36px;
    padding: 8px 11px;
}

#pwa-install-btn {
    background: var(--primary);
    color: #fff;
}

#pwa-install-close {
    background: var(--surface-soft);
}

#sitenotices {
    position: fixed;
    right: 20px;
    top: 90px;
    z-index: 500;
}

.sitenotice {
    background: var(--text);
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: #fff;
    max-width: 360px;
    padding: 14px 16px;
}

.auth-body {
    background: var(--bg);
    padding-top: 0;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.auth-logo {
    color: var(--primary);
    font-size: 28px;
    font-weight: 900;
    margin: 10px;
    /*left: 28px;*/
    /*position: fixed;*/
    /*top: 22px;*/
}

.auth-logo img {
    height: 30px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 13px;
    max-width: 470px;
    padding: 30px;
    width: 100%;
}

.auth-card p,
.auth-links a,
.clean-list {
    color: var(--muted);
}

.auth-links {
    justify-content: space-between;
}

.owner-head {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 26px;
}

.owner-card,
.notice-panel {
    padding: 22px;
}

.top-logout-form {
    margin: 0;
}

.review-empty,
.review-form-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.review-form {
    display: grid;
    gap: 14px;
}

.owner-grid {
    display: grid;
    gap: 24px;
}

.owner-card {
    display: grid;
    gap: 22px;
}

.owner-card-head {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 170px minmax(0, 1fr);
}

.owner-card-head img {
    aspect-ratio: 1.35 / 1;
    border-radius: 14px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.owner-stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-stat-grid div {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px;
}

.owner-stat-grid span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.owner-stat-grid strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
    margin-top: 4px;
}

.owner-section {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.owner-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-create-form {
    margin-top: 18px;
}

.owner-wide {
    grid-column: 1 / -1;
}

.owner-two-cols {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.owner-check-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-upload-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 14px;
}

.owner-media-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.owner-media-grid article {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.owner-media-grid img {
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
    width: 100%;
}

.owner-media-grid span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px 0;
}

.owner-media-grid form {
    padding: 10px;
}

.owner-media-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.owner-room-cards {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.owner-room-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    gap: 16px;
    padding: 16px;
}

.owner-room-card-head {
    align-items: start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.owner-room-card-head h4,
.owner-room-tools h4 {
    font-size: 17px;
    margin: 8px 0 4px;
}

.owner-room-card-head p {
    color: var(--muted);
    margin-bottom: 0;
}

.owner-room-edit-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1.4fr .55fr .55fr .7fr .7fr;
}

.owner-room-tools,
.room-detail-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
}

.owner-calendar {
    background: #fff;
}

.compact-empty {
    box-shadow: none;
    padding: 16px;
}

.owner-list,
.owner-bookings,
.owner-reviews-list {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.owner-room-row,
.owner-booking-add {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: 1.4fr .55fr .55fr .7fr .55fr 1.4fr auto;
}

.owner-room-row input,
.owner-booking-add input,
.owner-booking-add select {
    min-width: 0;
}

.owner-room-add {
    background: var(--surface-soft);
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    padding: 12px;
}

.owner-booking-row {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1.1fr 1fr auto auto auto auto;
    padding: 10px;
}

.owner-booking-row small {
    color: var(--muted);
    display: block;
    font-size: 12px;
}

.owner-booking-add {
    grid-template-columns: 1fr 150px 150px 160px 1fr 160px 1fr auto;
}

.owner-location-form {
    display: grid;
    gap: 12px;
}

.location-preview {
    background: var(--primary-soft);
    border-radius: 12px;
    color: var(--primary-strong);
    font-weight: 700;
    padding: 14px;
}

.owner-reviews-list article {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.owner-reviews-list span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-top: 3px;
}

.owner-submit-row {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.legal-page p {
    color: var(--muted);
}

.room-detail-head {
    align-items: start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.room-detail-head strong {
    color: var(--primary);
    font-size: 24px;
    white-space: nowrap;
}

.room-detail-gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-detail-gallery .gallery-open:first-child {
    grid-column: 1 / -1;
}

.room-detail-gallery img {
    aspect-ratio: 1.45 / 1;
    border-radius: 12px;
    height: auto;
    object-fit: cover;
}

.room-detail-amenities {
    margin-top: 14px;
}

.room-detail-description {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    padding: 14px;
}

.owner-v2-body {
    background: #f4f7fb;
    padding-top: 0;
}

.owner-v2-body .site-footer {
    display: none;
}

.owner-v2-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.owner-v2-sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    overflow-y: auto;
    padding: 28px 22px;
    position: sticky;
    top: 0;
}

.owner-v2-brand {
    color: #0a3a70;
    display: grid;
    gap: 0 10px;
    grid-template-columns: 52px 1fr;
    line-height: 1.1;
}

.owner-v2-logo {
    align-items: center;
    background: linear-gradient(135deg, #e8f6ff, #dff8f1);
    border-radius: 14px;
    color: var(--primary);
    display: inline-flex;
    grid-row: span 2;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.owner-v2-brand strong {
    font-size: 25px;
    font-weight: 900;
}

.owner-v2-brand small {
    color: #2472a8;
    font-weight: 700;
}

.owner-v2-scenic {
    background:
        radial-gradient(circle at 75% 25%, rgba(255,255,255,.75), transparent 32%),
        linear-gradient(145deg, #79c9bb, #d8efe5 48%, #f6d6a9);
    border-radius: 0;
    height: 145px;
    margin: 0 -22px;
}

.owner-v2-nav {
    display: grid;
    gap: 8px;
}

.owner-v2-nav a {
    align-items: center;
    border-radius: 10px;
    color: #3b4657;
    display: grid;
    gap: 12px;
    grid-template-columns: 24px 1fr auto;
    font-weight: 700;
    padding: 13px 16px;
}

.owner-v2-nav a.is-active {
    background: linear-gradient(135deg, #075ec2, #053c82);
    box-shadow: 0 12px 25px rgba(5, 75, 160, .22);
    color: #fff;
}

.owner-v2-badge {
    align-items: center;
    background: var(--primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.owner-v2-promo {
    background: linear-gradient(160deg, #e4f6ff, #f2fbf7);
    border: 1px solid #d4eaf8;
    border-radius: 12px;
    color: #074278;
    display: grid;
    gap: 16px;
    margin-top: auto;
    padding: 18px;
}

.owner-v2-promo a,
.owner-v2-side-card a {
    align-items: center;
    color: var(--primary-strong);
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 5px;
}

.owner-v2-promo span {
    color: #236082;
    font-size: 14px;
}

.owner-v2-version {
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--primary-strong);
    font-weight: 800;
    padding: 11px 14px;
    text-align: center;
}

.owner-v2-main {
    min-width: 0;
    padding: 28px 28px 44px;
}

.owner-v2-topbar {
    align-items: center;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(220px, 1fr) auto;
    margin-bottom: 22px;
}

.owner-v2-topbar h1 {
    font-size: 30px;
    margin-bottom: 0;
}

.owner-v2-search {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: 24px 1fr;
    padding: 0 16px;
}

.owner-v2-search input {
    border: 0;
    min-height: 54px;
    outline: 0;
}

.owner-v2-user {
    align-items: center;
    display: flex;
    gap: 14px;
}

.owner-v2-user > .material-symbols-outlined {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px;
}

.owner-v2-user small {
    color: var(--muted);
    display: block;
}

.owner-v2-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.owner-v2-center,
.owner-v2-aside,
.owner-v2-form,
.owner-v2-panel,
.owner-v2-block {
    display: grid;
    gap: 18px;
}

.owner-v2-panel,
.owner-v2-side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 26px;
}

.owner-v2-panel-head {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.owner-v2-panel-head h2 {
    font-size: 24px;
    margin-bottom: 0;
}

.owner-v2-switch {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: inline-flex;
    gap: 4px;
    justify-self: start;
    padding: 4px;
}

.owner-v2-switch a {
    border-radius: 9px;
    color: var(--muted);
    font-weight: 800;
    padding: 9px 14px;
}

.owner-v2-switch a.is-active {
    background: var(--primary);
    color: #fff;
}

.owner-v2-stepper {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.owner-v2-stepper li {
    color: var(--muted);
    display: grid;
    gap: 7px;
    justify-items: center;
    position: relative;
    text-align: center;
}

.owner-v2-stepper li::after {
    background: var(--line);
    content: "";
    height: 2px;
    left: calc(50% + 20px);
    position: absolute;
    right: calc(-50% + 20px);
    top: 17px;
}

.owner-v2-stepper li:last-child::after {
    display: none;
}

.owner-v2-stepper span {
    align-items: center;
    background: #fff;
    border: 2px solid var(--line-strong);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    position: relative;
    width: 36px;
    z-index: 1;
}

.owner-v2-stepper strong {
    font-size: 12px;
}

.owner-v2-stepper .is-active span,
.owner-v2-stepper .is-done span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.owner-v2-stepper .is-done::after {
    background: var(--primary);
}

.owner-v2-block {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.owner-v2-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-v2-wide {
    grid-column: 1 / -1;
}

.owner-v2-choice-grid {
    display: grid;
    gap: 16px;
}

.owner-v2-choice-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-v2-choice-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    gap: 6px 14px;
    grid-template-columns: 24px 58px 1fr;
    padding: 18px;
}

.owner-v2-choice-card input {
    height: 20px;
    width: 20px;
}

.owner-v2-choice-card > .material-symbols-outlined {
    color: var(--primary);
    font-size: 42px;
    grid-row: span 2;
}

.owner-v2-choice-card small {
    color: var(--muted);
}

.owner-v2-checks {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-v2-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.owner-v2-upload-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-v2-upload {
    background: var(--surface-soft);
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    display: grid;
    gap: 10px;
    padding: 16px;
}

.owner-v2-unit-hint {
    align-items: center;
    background: #f0fbff;
    border: 1px solid #cbeef8;
    border-radius: 12px;
    display: grid;
    gap: 16px;
    grid-template-columns: 92px 1fr;
    padding: 14px;
}

.owner-v2-unit-hint img {
    aspect-ratio: 1.4 / 1;
    border-radius: 10px;
    height: 68px;
    object-fit: cover;
    width: 92px;
}

.owner-v2-unit-hint p {
    color: #216172;
    margin-bottom: 0;
}

.owner-v2-soft-pill {
    background: var(--primary-soft);
    border-radius: 999px;
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
}

.owner-v2-aside {
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    position: sticky;
    top: 24px;
}

.owner-v2-side-card {
    display: grid;
    gap: 12px;
    position: relative;
}

.owner-v2-side-card h3 {
    margin-bottom: 0;
}

.owner-v2-side-card p,
.owner-v2-side-card small {
    color: var(--muted);
    margin-bottom: 0;
}

.owner-v2-side-card > strong {
    font-size: 22px;
}

.owner-v2-side-icon {
    align-items: center;
    background: #fff3d8;
    border-radius: 999px;
    color: #c47800;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
}

.owner-v2-progress {
    align-items: center;
    background: conic-gradient(var(--primary) var(--p), #eef2f7 0);
    border-radius: 999px;
    display: inline-flex;
    height: 72px;
    justify-content: center;
    justify-self: end;
    margin-top: -42px;
    width: 72px;
}

.owner-v2-progress strong {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.owner-v2-checklist {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.owner-v2-checklist li {
    align-items: center;
    color: var(--muted);
    display: grid;
    gap: 10px;
    grid-template-columns: 18px 1fr;
}

.owner-v2-checklist li span {
    border: 2px solid var(--line-strong);
    border-radius: 999px;
    height: 18px;
    width: 18px;
}

.owner-v2-checklist li.is-done {
    color: var(--text);
}

.owner-v2-checklist li.is-done span {
    background: var(--success);
    border-color: var(--success);
    box-shadow: inset 0 0 0 4px #fff;
}

.owner-v2-mini-map {
    align-items: center;
    background:
        repeating-linear-gradient(35deg, transparent 0 18px, rgba(255,255,255,.36) 19px 22px),
        linear-gradient(135deg, #d4efe9, #f4e1bd);
    border-radius: 10px;
    color: var(--primary);
    display: flex;
    height: 82px;
    justify-content: center;
}

.owner-v2-mini-map .material-symbols-outlined {
    background: #fff;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    color: var(--primary);
    padding: 8px;
}

.owner-v2-preview {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: 94px 1fr;
    overflow: hidden;
    padding: 10px;
}

.owner-v2-preview img {
    aspect-ratio: 1.2 / 1;
    border-radius: 9px;
    height: 78px;
    object-fit: cover;
    width: 94px;
}

.owner-v2-preview span {
    background: var(--surface-soft);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    padding: 5px 9px;
}

.owner-v2-preview strong,
.owner-v2-preview small {
    display: block;
}

.owner-v2-submit .btn {
    width: 100%;
}

/* Final public dark-theme guard. Keep this at the end of the file. */
[data-theme="dark"],
[data-theme="dark"] body {
    background: #0b1220;
    color: #e8eef8;
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .mobile-nav,
[data-theme="dark"] .hero,
[data-theme="dark"] .trust-strip,
[data-theme="dark"] .search-layout,
[data-theme="dark"] .search-panel,
[data-theme="dark"] .search-results,
[data-theme="dark"] .house-card,
[data-theme="dark"] .guest-card,
[data-theme="dark"] .detail-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .booking-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .page-card,
[data-theme="dark"] .footer,
[data-theme="dark"] .install-prompt,
[data-theme="dark"] .filter-actions,
[data-theme="dark"] .gallery-strip,
[data-theme="dark"] .amenity-grid,
[data-theme="dark"] .location-card,
[data-theme="dark"] .map-card,
[data-theme="dark"] .room-card,
[data-theme="dark"] .calendar-modal,
[data-theme="dark"] .photo-modal,
[data-theme="dark"] .contact-card {
    background: #111a2b;
    border-color: #25344d;
    color: #e8eef8;
}

[data-theme="dark"] .muted,
[data-theme="dark"] small,
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .house-meta,
[data-theme="dark"] .detail-meta,
[data-theme="dark"] .card-subtitle,
[data-theme="dark"] .form-hint,
[data-theme="dark"] .search-note,
[data-theme="dark"] .review-date {
    color: #a8b3c7;
}

[data-theme="dark"] a:not(.btn),
[data-theme="dark"] .link {
    color: #8ec0ff;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #0f1727;
    border-color: #2a3850;
    color: #e8eef8;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #7d8ba2;
}

[data-theme="dark"] .btn:not(.btn-primary),
[data-theme="dark"] button:not(.btn-primary) {
    background: #152238;
    border-color: #2b3d5c;
    color: #e8eef8;
}

[data-theme="dark"] .pill,
[data-theme="dark"] .badge,
[data-theme="dark"] .tag,
[data-theme="dark"] .status-pill {
    background: #16253d;
    color: #dbe8ff;
}

@media (max-width: 980px) {
    .filter-actions {
        bottom: 0;
        box-shadow: 0 -14px 34px rgba(16, 24, 40, .14);
        margin: 0 -14px -14px;
        padding: 12px 14px;
        position: sticky;
        z-index: 20;
    }

    .filter-actions .btn,
    .filter-actions button {
        width: 100%;
    }
}

/* Final public UX fixes for search cards, sticky filters, gallery and detail spacing. */
button,
.btn,
a.btn,
summary,
[data-gallery-open],
[data-modal-open],
[data-favorite],
[data-share],
.mini-check {
    cursor: pointer;
}

.filter-amenities {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
}

.filter-amenities summary {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto 1fr auto;
    list-style: none;
    padding: 12px;
}

.filter-amenities summary::-webkit-details-marker {
    display: none;
}

.filter-amenities summary small {
    color: var(--muted);
    font-size: 12px;
}

.filter-amenities .filter-check-grid {
    padding: 0 12px 12px;
}

.house-card .chips {
    max-height: 24px;
    min-height: 24px;
}

.house-card .house-info {
    padding-right: 76px;
}

.house-card .card-actions {
    align-items: center;
    border-left: 1px solid var(--line);
    border-top: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 42px;
    justify-content: center;
    margin: 0;
    min-height: 100%;
    padding: 12px;
    position: absolute;
    right: 0;
    top: 0;
    width: 66px;
}

.house-card .btn-icon {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    min-height: 42px;
    padding: 0;
    width: 42px;
}

.house-card .btn-icon img,
.contact-actions img,
.btn-whatsapp img {
    display: block;
    height: 20px;
    width: 20px;
}

.content-section {
    padding: 24px;
}

.nearby-list div {
    align-items: center;
    grid-template-columns: 32px minmax(0, 1fr) auto;
}

.nearby-list div strong,
.nearby-list div em {
    min-width: 0;
}

.lightbox {
    padding: 18px;
}

.lightbox img {
    max-height: 90vh;
    max-width: 96vw;
}

/* Current release: a single fixed public navigation and reachable filters. */
.site-header {
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    width: 100% !important;
}

@media (min-width: 981px) {
    .advanced-filters {
        max-height: calc(100vh - 102px);
        overflow-y: auto;
        position: relative;
        top: auto;
    }

    .content-grid > .filter-card,
    .content-grid > aside.filter-card {
        max-height: calc(100vh - 102px);
        overflow-y: auto;
        position: relative;
        top: auto;
    }

    #search-filters.advanced-filters {
        align-self: start;
        max-height: calc(100vh - 102px);
        overflow-y: auto;
        position: relative;
        top: auto;
    }

    .content-grid.filter-affix-parent,
    .advanced-search-layout.filter-affix-parent {
        position: relative;
    }

    .filter-affix-placeholder {
        display: none;
    }

    #search-filters.advanced-filters.is-viewport-fixed {
        margin: 0;
        position: fixed !important;
        top: 92px !important;
        z-index: 30;
    }

    #search-filters.advanced-filters.is-affix-bottom {
        bottom: 0;
        margin: 0;
        position: absolute !important;
        top: auto !important;
    }
}

[data-theme="dark"] .house-card .contact-actions,
[data-theme="dark"] .house-card .contact-actions a,
[data-theme="dark"] .house-card-side {
    background: #111a2b;
    border-color: #25344d;
    color: #e8eef8;
}

/* One BIIR sign across the public site, owner cabinet and administration. */
.site-logo .logo-mark {
    /* background: #006a62 url('/ui/img/favicon.svg') center / cover no-repeat; */
}
.site-logo .logo-mark .material-symbols-outlined { display: none; }

[data-theme="dark"] .house-card .contact-actions small,
[data-theme="dark"] .house-card .contact-actions span {
    color: #a8b3c7;
}

@media (max-width: 700px) {
    .site-actions [data-theme-toggle] {
        align-items: center !important;
        display: inline-flex !important;
    }

    .site-nav .mobile-owner-link {
        align-items: center;
        display: flex;
        gap: 8px;
    }
}

.lightbox-caption {
    background: rgba(2, 6, 23, .72);
    border-radius: 999px;
    bottom: 16px;
    max-width: min(92vw, 920px);
    padding: 8px 14px;
}

.modal-wide {
    max-width: min(1180px, calc(100vw - 32px));
    width: min(1180px, calc(100vw - 32px));
}

@media (max-width: 980px) {
    .filter-actions {
        background: rgba(255, 255, 255, .96);
        border: 1px solid var(--line);
        border-radius: 16px 16px 0 0;
        bottom: 0;
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr 1fr;
        left: 0;
        margin: 0;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom));
        position: fixed;
        right: 0;
        z-index: 90;
    }

    .filter-actions .btn,
    .filter-actions button {
        width: 100%;
    }

    .search-page {
        padding-bottom: 86px;
    }

    .house-card .card-actions {
        padding: 8px 6px;
        width: 54px;
    }

    .house-card .house-info {
        padding-right: 62px;
    }
}

@media (max-width: 620px) {
    .house-card {
        grid-template-columns: 112px minmax(0, 1fr);
        height: auto;
    }

    .house-card .card-actions {
        border-left: 0;
        border-top: 1px solid var(--line);
        bottom: auto;
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 42px);
        justify-content: end;
        min-height: 0;
        position: static;
        width: auto;
    }

    .house-card .house-info {
        padding-right: 12px;
    }
}

[data-theme="dark"] .filter-actions {
    background: rgba(17, 26, 43, .96);
}

/* Search card v2: clear desktop side rail, full-width mobile photo, no overlapping actions. */
.house-card {
    align-items: stretch;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 170px;
    height: auto;
    height: 200px;
    overflow: hidden;
}

.house-card .house-photo {
    height: 100%;
    min-height: 200px;
}

.house-card .house-info {
    min-width: 0;
    padding: 16px 18px;
    padding-right: 18px;
}

.house-card .house-topline {
    position: static;
}

.house-card .chips {
    max-height: 54px;
    min-height: 0;
}

.house-card-side {
    align-items: stretch;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    padding: 16px 14px;
}

.house-side-meta {
    display: grid;
    gap: 3px;
}

.house-side-meta strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.15;
}

.house-side-meta small,
.house-side-meta span {
    color: var(--muted);
    font-size: 12px;
}

.house-side-meta span {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.house-side-meta .material-symbols-outlined {
    font-size: 15px;
}

.house-card .card-actions {
    align-items: center;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin: 0;
    min-height: 0;
    overflow: visible;
    padding: 0;
    position: static;
    width: auto;
}

.house-card .btn-icon {
    flex: 0 0 40px;
    height: 40px;
    min-height: 40px;
    width: 40px;
}

.house-card-more {
    min-height: 40px;
    width: 100%;
}

@media (max-width: 980px) {
    .house-card {
        grid-template-columns: 196px minmax(0, 1fr);
        min-height: 190px;
    }

    .house-card .house-photo {
        min-height: 190px;
    }

    .house-card-side {
        border-left: 0;
        border-top: 1px solid var(--line);
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 12px 14px;
    }

    .house-card .card-actions {
        justify-content: flex-end;
    }

    .house-card-more {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .house-card {
        display: block;
        min-height: 0;
    }

    .house-card .house-photo {
        display: block;
        height: 188px;
        min-height: 188px;
        width: 100%;
    }

    .house-card .house-info {
        padding: 14px;
    }

    .house-card .house-info > p:not(.location-line):not(.card-room-summary) {
        -webkit-line-clamp: 2;
    }

    .house-card-side {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .house-card .card-actions {
        justify-content: flex-start;
    }
}

/* Final public UX pass: mobile search rows and compact route card. */
.lightbox-caption[hidden] {
    display: none;
}

.map-info-card .btn {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    width: auto;
}

@media (min-width: 701px) {
    .map-info-card {
        max-width: 190px;
        padding: 12px;
    }
}

@media (max-width: 700px) {
    .location-section .map-layout {
        display: flex;
        flex-direction: column;
    }

    .location-section .map-card {
        display: flex;
        flex-direction: column;
        min-height: 310px;
        overflow: visible;
    }

    .location-section .map-card iframe {
        min-height: 310px;
    }

    .map-info-card {
        align-items: center;
        box-shadow: none;
        display: flex;
        flex-wrap: wrap;
        gap: 8px 10px;
        left: auto;
        max-width: none;
        order: 2;
        padding: 5px;
        position: static;
        top: auto;
    }

    .map-info-card strong {
        flex: 1 1 120px;
    }
}

@media (max-width: 620px) {
    .advanced-main-fields {
        display: flex !important;
        flex-wrap: wrap;
        gap: 10px;
    }

    .advanced-main-fields .search-field:first-child {
        flex: 1 1 100%;
    }

    .advanced-main-fields .search-field:nth-of-type(2),
    .advanced-main-fields .search-field:nth-of-type(3) {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
    }

    .advanced-main-fields .search-field:nth-of-type(4),
    .advanced-main-fields .advanced-query {
        flex: 1 1 auto;
        min-width: min(100%, 180px);
    }

    .advanced-main-fields > .btn {
        flex: 0 0 auto;
        width: auto;
    }

    .search-map-groups {
        min-width: 0;
    }

    .settlement-group-links {
        grid-template-columns: 1fr;
    }
}

/* Guest-house room picker: first modal shows only room choices, calendars live inside room detail. */
.modal-wide .rooms-modal-grid {
    display: block;
}

.modal-wide .room-list {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.modal-wide .room-list > .room-card {
    flex: 1 1 300px;
    max-width: calc(50% - 7px);
    min-width: 280px;
}

.modal-wide .room-list > .selected-date {
    flex: 1 1 100%;
}

@media (max-width: 760px) {
    .modal-wide .room-list {
        display: grid;
        grid-template-columns: 1fr;
    }

    .modal-wide .room-list > .room-card {
        max-width: none;
        min-width: 0;
    }
}
/* Guest account and clearer authenticated navigation. */
.top-account-link,
.top-favorites-link {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.top-account-link .material-symbols-outlined {
    font-size: 20px;
}

.account-page {
    display: grid;
    gap: 22px;
    padding-bottom: 56px;
}

.account-hero,
.account-section {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #dfe7e5);
    border-radius: 22px;
    padding: 24px;
}

.account-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.account-hero h1,
.account-section h2,
.account-section h3,
.account-section p { margin: 0; }
.account-hero p,
.account-section header p { color: var(--muted, #64736f); margin-top: 6px; }

.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-tabs a {
    align-items: center;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #dfe7e5);
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    gap: 7px;
    padding: 10px 14px;
    text-decoration: none;
}

.account-tabs a:hover { border-color: #00897f; color: #006a62; }
.account-tabs strong { background: #e5f5f2; border-radius: 999px; font-size: 12px; padding: 2px 7px; }
.account-section > header { margin-bottom: 18px; }
.account-favorite-grid { margin-top: 0; }
.account-notice { margin: 0; }

.account-review-list { display: grid; gap: 10px; }
.account-review-list article { border: 1px solid var(--border, #dfe7e5); border-radius: 14px; padding: 14px; }
.account-review-list article > div { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
.account-review-list article p { margin: 8px 0; }
.account-review-list article small { color: var(--muted, #64736f); }
.account-review-list a { color: inherit; }

.account-profile form { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.account-profile label { display: grid; gap: 5px; }
.account-profile label span { font-size: 13px; font-weight: 700; }
.account-profile button { align-self: end; justify-self: start; }

@media (max-width: 760px) {
    .account-page { gap: 14px; }
    .account-hero { align-items: stretch; flex-direction: column; gap: 18px; margin-top: 14px; }
    .account-hero,
    .account-section { border-radius: 16px; padding: 16px; }
    .account-tabs { display: grid; grid-template-columns: 1fr; }
    .account-profile form { grid-template-columns: 1fr; }
    .account-review-list article > div { align-items: flex-start; flex-direction: column; }
}

/* Visible weather entry point on the home page. */
.home-weather {
    background: linear-gradient(135deg, #e8f8f5 0%, #eef5ff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin: 0 0 24px;
    padding: 18px 20px 20px;
}
.home-weather > header { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 14px; }
.home-weather h2 { margin: 3px 0 0; }
.home-weather header p { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.home-weather-symbol { color: var(--primary); font-size: 44px; }
.home-weather-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.home-weather-grid a {
    align-items: center;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(0,106,98,.14);
    border-radius: 14px;
    color: inherit;
    display: grid;
    gap: 8px;
    grid-template-columns: 42px minmax(0,1fr) auto;
    min-width: 0;
    padding: 9px 11px;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease;
}
.home-weather-grid a:hover { border-color: var(--primary); transform: translateY(-1px); }
.home-weather-grid img { height: 42px; object-fit: contain; width: 42px; }
.home-weather-grid a > .material-symbols-outlined { color: var(--primary); font-size: 34px; }
.home-weather-grid a > span:not(.material-symbols-outlined) { display: grid; min-width: 0; }
.home-weather-grid strong,
.home-weather-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-weather-grid small { color: var(--muted); font-size: 11px; }
.home-weather-grid b { color: var(--primary-strong); font-size: 20px; }
[data-theme="dark"] .home-weather { background: linear-gradient(135deg, #132b2d 0%, #172a42 100%); }
[data-theme="dark"] .home-weather-grid a { background: rgba(13,26,43,.76); border-color: #2b4455; }

@media (max-width: 620px) {
    .home-weather { border-radius: 16px; margin-bottom: 16px; padding: 14px; }
    .home-weather > header { margin-bottom: 10px; }
    .home-weather-symbol { font-size: 34px; }
    .home-weather-grid { display: flex; margin-inline: -2px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
    .home-weather-grid a { flex: 0 0 min(78vw, 250px); scroll-snap-align: start; }
}

/* Settlement weather: server-rendered cached data, no client-side API calls. */
.settlement-weather {
    align-items: stretch;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-blue) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr);
    margin: 22px 0 32px;
    padding: 22px;
}
.settlement-weather > * { min-width: 0; }

.weather-heading h2 { margin: 3px 0 0; }
.weather-now { align-items: center; display: flex; gap: 12px; margin-top: 12px; }
.weather-now > img { flex: 0 0 72px; }
.weather-now > strong { font-size: 42px; line-height: 1; }
.weather-now > div { display: grid; gap: 2px; }
.weather-now b { font-size: 16px; }
.weather-now span,
.weather-unavailable { color: var(--muted); font-size: 13px; margin: 0; }

.weather-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 15px; }
.weather-facts span { align-items: center; color: var(--muted); display: inline-flex; font-size: 12px; gap: 5px; }
.weather-facts .material-symbols-outlined { color: var(--primary); font-size: 17px; font-style: normal; }

.weather-forecast { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; width: 100%; }
.weather-forecast article {
    align-items: center;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    gap: 6px;
    justify-items: center;
    min-width: 0;
    overflow: hidden;
    padding: 12px 8px;
    text-align: center;
    width: 100%;
}
.weather-forecast article > div:first-child { display: grid; max-width: 100%; min-width: 0; width: 100%; }
.weather-forecast article > div:first-child strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-forecast article small { color: var(--muted); font-size: 11px; }
.forecast-temp { align-items: baseline; display: flex; gap: 4px; }
.forecast-temp b { font-size: 18px; }
.forecast-temp span { color: var(--muted); font-size: 13px; }
.forecast-rain { align-items: center; display: inline-flex; gap: 3px; white-space: nowrap; }
.forecast-rain .material-symbols-outlined { color: var(--primary); font-size: 15px; }

.card-weather {
    align-items: center;
    background: var(--primary-soft);
    border-radius: 999px;
    color: var(--primary-strong);
    display: inline-flex;
    flex: 0 0 auto;
    gap: 1px;
    margin-left: 4px;
    padding: 0 7px 0 2px;
    white-space: nowrap;
}
.card-weather img { height: 24px; width: 24px; }
.card-weather strong { font-size: 12px; }

.property-weather {
    align-items: center;
    background: var(--surface-blue);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    gap: 7px;
    margin-top: 12px;
    max-width: 100%;
    padding: 4px 10px 4px 5px;
}
.property-weather img { flex: 0 0 32px; }
.property-weather span,
.property-weather strong { font-size: 12px; }
.property-weather .material-symbols-outlined { color: var(--primary); font-size: 16px; }

[data-theme="dark"] .settlement-weather { background: linear-gradient(135deg, var(--surface) 0%, #172a42 100%); }
[data-theme="dark"] .weather-forecast article { background: rgba(13, 26, 43, .7); }
[data-theme="dark"] .card-weather,
[data-theme="dark"] .property-weather { background: #172a42; }

@media (max-width: 900px) {
    .settlement-weather { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .settlement-weather { gap: 18px; margin: 16px 0 24px; padding: 16px; }
    .weather-now > img { flex-basis: 56px; height: 56px; width: 56px; }
    .weather-now > strong { font-size: 34px; }
    .weather-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weather-facts span { min-width: 0; }
    .weather-forecast { gap: 6px; max-width: calc(100vw - 62px); width: calc(100vw - 62px); }
    .weather-forecast article { padding: 10px 4px; }
    .weather-forecast article > div:first-child strong { font-size: 11px; }
    .weather-forecast article img { height: 40px; width: 40px; }
    .forecast-temp b { font-size: 15px; }
    .forecast-temp span { font-size: 11px; }
    .forecast-rain { font-size: 10px !important; }
    .property-weather span:first-of-type { display: none; }
}
