:root {
    --color-bg: #faf8f5;
    --color-surface: #ffffff;
    --color-text: #1c1917;
    --color-muted: #78716c;
    --color-accent: #9a6b43;
    --color-accent-dark: #7d5636;
    --color-border: #e7e5e4;
    --color-success: #166534;
    --color-error: #b91c1c;
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Inter", system-ui, sans-serif;
    --radius: 12px;
    --shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.logo-image {
    display: block;
    height: 42px;
    width: auto;
    max-width: 0;
    object-fit: contain;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-width 0.25s ease;
}

.site-header.is-scrolled .logo-image {
    opacity: 1;
    max-width: min(180px, 42vw);
}

.site-header.is-scrolled .logo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.logo:hover,
.footer-logo-link:hover,
.footer-text-brand:hover,
.hero-brand:hover {
    text-decoration: none;
    opacity: 0.92;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo {
    display: block;
    width: min(220px, 100%);
    height: auto;
    object-fit: contain;
}

.footer-text-brand {
    display: none;
    text-decoration: none;
}

.footer-text-brand .logo-text {
    color: #fafaf9;
    font-size: clamp(1.75rem, 6vw, 2.25rem);
}

.main-nav { display: flex; gap: 1.5rem; }
.main-nav a { color: var(--color-text); font-weight: 500; text-decoration: none; }

.hero {
    padding: 4rem 0 4.5rem;
    background: linear-gradient(135deg, #f5efe8 0%, #faf8f5 60%, #eef2f6 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.15fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.hero-logo {
    width: min(480px, 100%);
    height: auto;
    object-fit: contain;
}

.page-home.has-logo-fly .hero-logo {
    opacity: 0;
}

.logo-fly {
    position: fixed;
    z-index: 21;
    left: 0;
    top: 0;
    object-fit: contain;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: left, top, width, height, opacity;
}

.page-home .logo-image {
    transition: none;
}

.page-home .site-header.is-scrolled .logo-image {
    opacity: 1;
    max-width: min(180px, 42vw);
}

.page-home .site-header.is-scrolled .logo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-inner { max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--color-muted); }
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.05;
    margin: 0.5rem 0 1rem;
}
.hero-lead { font-size: 1.125rem; color: var(--color-muted); max-width: 560px; }

.section { padding: 4rem 0; }
.section-muted { background: #f3f0eb; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-family: var(--font-serif); font-size: 2.25rem; margin: 0 0 0.5rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); text-decoration: none; }
.btn-secondary { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-block { width: 100%; }

.apartment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.apartment-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-image { display: block; aspect-ratio: 4/3; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.apartment-card:hover .card-image img { transform: scale(1.04); }

.gallery-card {
    margin-bottom: 0;
}

.gallery-card .gallery-main {
    margin-bottom: 0;
    border-radius: 0;
    aspect-ratio: 4/3;
}

.gallery-card .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card .gallery-thumbs-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gallery-card .gallery-counter {
    top: 0.75rem;
    right: 0.75rem;
    bottom: auto;
}

.gallery-card .review-score-badge {
    top: auto;
    bottom: 0.75rem;
    right: 0.75rem;
}

.card-body { padding: 1.25rem; }
.card-body h3 { margin: 0 0 0.5rem; font-family: var(--font-serif); font-size: 1.5rem; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-meta { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; color: var(--color-muted); font-size: 0.875rem; }

.card-image { position: relative; }

.review-score-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    background: rgba(28, 25, 23, 0.82);
    color: #fff;
    line-height: 1.1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.review-score-badge strong {
    font-size: 1.125rem;
    font-weight: 700;
}

.review-score-badge span {
    font-size: 0.75rem;
    opacity: 0.85;
}

.review-score-badge small {
    font-size: 0.625rem;
    opacity: 0.75;
    margin-top: 0.125rem;
}

.detail-review-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.detail-review-summary .review-score-badge {
    position: static;
    background: var(--color-accent);
}

.detail-review-label {
    color: var(--color-muted);
    font-weight: 600;
}

.reviews-apartment-group {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
}

.reviews-apartment-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.reviews-more {
    margin: 1rem 0 0;
}

.reviews-block-collapsible {
    gap: 1rem;
}

.reviews-details-toggle {
    justify-self: start;
}

.reviews-details[hidden] {
    display: none;
}

.reviews-details {
    display: grid;
    gap: 1.5rem;
}

.reviews-expand-btn {
    justify-self: start;
}

.review-card--collapsed {
    display: none;
}

.reviews-block.is-expanded .review-card--collapsed {
    display: grid;
}

.reviews-block.is-expanded .reviews-expand-btn {
    display: none;
}

.detail-reviews {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.detail-reviews-last {
    margin-top: 2.5rem;
}

.reviews-block {
    display: grid;
    gap: 1.5rem;
}

.reviews-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.reviews-summary-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--color-accent);
    color: #fff;
}

.reviews-score-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.reviews-score-max {
    font-size: 1rem;
    opacity: 0.85;
}

.reviews-score-label {
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.reviews-apartment-thumb {
    flex-shrink: 0;
}

.reviews-apartment-thumb img {
    display: block;
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.reviews-apartment-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin: 0 0 0.25rem;
}

.reviews-count {
    margin: 0 0 0.35rem;
}

.reviews-booking-note {
    margin: 1.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
    text-align: right;
}

.reviews-booking-note a {
    color: var(--color-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reviews-booking-note a:hover {
    color: var(--color-accent-dark);
}

.reviews-list {
    display: grid;
    gap: 1rem;
}

.review-card {
    display: grid;
    grid-template-columns: minmax(120px, 160px) 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.review-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.review-meta-line {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.review-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.review-date {
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.review-score {
    flex-shrink: 0;
    min-width: 2.5rem;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: #1e3a5f;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.review-title {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.review-comment {
    margin: 0;
    color: #44403c;
}

.reviews-block-compact .review-card {
    box-shadow: none;
}

.cta-box { text-align: center; max-width: 640px; margin-inline: auto; }
.cta-box h2 { font-family: var(--font-serif); font-size: 2rem; }

.route-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.route-panel {
    display: grid;
    gap: 1.25rem;
}

.route-address {
    font-style: normal;
    line-height: 1.6;
    color: var(--color-text);
}

.route-address strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.route-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.route-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.route-form-row input {
    flex: 1 1 220px;
    min-height: 44px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
    background: var(--color-surface);
}

.route-form-row input:focus {
    outline: 2px solid rgba(154, 107, 67, 0.35);
    border-color: var(--color-accent);
}

.route-hint {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.route-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.route-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #e7e5e4;
    box-shadow: var(--shadow);
    min-height: 320px;
}

.route-map iframe {
    display: block;
    width: 100%;
    height: min(420px, 60vh);
    min-height: 320px;
    border: 0;
}

.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
    background: #1c1917;
    color: #d6d3d1;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}
.site-footer a { color: #fafaf9; }

.footer-contact-info p,
.footer-links {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact {
    border-top: 1px solid #292524;
    padding: 2.5rem 0 2rem;
    margin-top: 2rem;
}

.footer-contact h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    color: #fafaf9;
}

.footer-contact .muted {
    color: #a8a29e;
    margin-bottom: 1.25rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
}

.form-row-full {
    grid-column: 1 / -1;
}

.footer-contact .form-row label {
    color: #d6d3d1;
}

.footer-contact .form-row input,
.footer-contact .form-row textarea {
    background: #292524;
    border-color: #44403c;
    color: #fafaf9;
}

.footer-contact .form-message.success {
    background: #14532d;
    color: #bbf7d0;
}

.footer-contact .form-message.error {
    background: #7f1d1d;
    color: #fecaca;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer-bottom {
    border-top: 1px solid #292524;
    margin-top: 2rem;
    padding-top: 1.25rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    color: #a8a29e;
    font-size: 0.875rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    flex: 1 1 auto;
    text-align: center;
}

.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    z-index: 40;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-accent-dark);
}

.flash { margin: 1rem auto; padding: 0.75rem 1rem; border-radius: 8px; }
.flash-success { background: #dcfce7; color: var(--color-success); }
.flash-error { background: #fee2e2; color: var(--color-error); }

.breadcrumb { color: var(--color-muted); margin-bottom: 1rem; font-size: 0.875rem; }

.detail-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.detail-header h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.detail-sub { color: var(--color-muted); margin-top: 0.5rem; }
.detail-price { text-align: right; font-size: 1.5rem; font-weight: 600; }
.detail-price small { display: block; font-size: 0.875rem; color: var(--color-muted); font-weight: 400; }

.gallery { margin-bottom: 2rem; }
.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #e7e5e4;
    margin-bottom: 0.75rem;
}

.gallery-main.is-zoomable {
    cursor: zoom-in;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-counter {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.625rem;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.72);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

.gallery-swipe-hint {
    display: none;
}

.gallery-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; }
.gallery-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: none;
    cursor: pointer;
    flex: 0 0 96px;
}
.gallery-thumb.is-active { border-color: var(--color-accent); }
.gallery-thumb img { width: 96px; height: 72px; object-fit: cover; }

body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.gallery-lightbox[hidden] {
    display: none !important;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gallery-lightbox-figure {
    position: relative;
    z-index: 1;
    margin: 0;
    width: min(1120px, 100%);
    max-height: calc(100vh - 4rem);
    display: grid;
    gap: 0.75rem;
}

.gallery-lightbox-image {
    width: 100%;
    max-height: calc(100vh - 7rem);
    object-fit: contain;
    border-radius: 10px;
    background: #1c1917;
}

.gallery-lightbox-caption {
    color: #e7e5e4;
    text-align: center;
    font-size: 0.9375rem;
}

.gallery-lightbox-caption[hidden] {
    display: none;
}

.gallery-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fafaf9;
    font-size: 0.875rem;
    font-weight: 600;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    z-index: 2;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.gallery-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
    line-height: 1;
}

.gallery-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 2rem;
    line-height: 1;
}

.gallery-lightbox-nav[hidden] {
    display: none;
}

.gallery-lightbox-prev {
    left: 1rem;
}

.gallery-lightbox-next {
    right: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    grid-template-areas: 'content aside';
    gap: 2rem;
    align-items: start;
}

.detail-content {
    grid-area: content;
    min-width: 0;
}

.booking-aside {
    grid-area: aside;
    align-self: stretch;
    min-width: 0;
}

.detail-tabs-nav {
    display: none;
}

.detail-tab {
    flex: 1 1 0;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.detail-tab.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.detail-tab-panels {
    display: contents;
}

.detail-tab-panel {
    display: block;
}

.detail-tab-panel .detail-block:last-child {
    margin-bottom: 0;
}

.detail-block { margin-bottom: 2rem; }
.detail-block h2 { font-family: var(--font-serif); font-size: 1.75rem; margin-bottom: 0.75rem; }

.prose { color: #44403c; }

.bed-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }

.bed-variation-list {
    display: grid;
    gap: 1rem;
}

.bed-variation-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.125rem;
}

.bed-variation-card h3 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
}

.bed-variation-meta {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.bed-variation-options {
    display: grid;
    gap: 0.625rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.bed-variation-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.bed-variation-option:has(input:checked) {
    border-color: var(--color-accent, #b45309);
    box-shadow: inset 0 0 0 1px var(--color-accent, #b45309);
}

.bed-variation-option input {
    margin-top: 0.2rem;
}

.bed-variation-option-body {
    display: grid;
    gap: 0.15rem;
}

.bed-variation-option-body small {
    color: var(--color-muted);
}

.price-summary {
    background: #fafaf9;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.amenity-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.amenity-grid li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
}
.facts div span { display: block; font-size: 0.75rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.booking-panel {
    position: sticky;
    top: calc(72px + 1rem);
    background: linear-gradient(180deg, #fff 0%, #fdfbf8 100%);
    border: 2px solid color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 18px 48px rgba(154, 107, 67, 0.14);
}

.booking-panel-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.125rem;
    border-bottom: 1px solid var(--color-border);
}

.booking-panel-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.booking-panel h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

.booking-panel-lead {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.booking-panel-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.booking-panel-price strong {
    font-family: var(--font-serif);
    font-size: 1.625rem;
    color: var(--color-text);
}

.booking-panel-price span {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.booking-panel-note {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.45;
}

.booking-submit {
    font-size: 1.0625rem;
    padding: 0.9375rem 1.25rem;
    box-shadow: 0 8px 20px rgba(154, 107, 67, 0.28);
}

.booking-submit:hover {
    box-shadow: 0 10px 24px rgba(154, 107, 67, 0.34);
}

.muted { color: var(--color-muted); }

.form-row { margin-bottom: 0.875rem; }
.form-row label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
}

.form-row select.form-field-locked,
.form-row select.form-field-locked:disabled {
    background: #f5f5f4;
    color: var(--color-muted);
    cursor: not-allowed;
    opacity: 1;
}

.form-message { padding: 0.75rem; border-radius: 8px; margin-bottom: 0.75rem; }
.form-message.success { background: #dcfce7; color: var(--color-success); }
.form-message.error { background: #fee2e2; color: var(--color-error); }

.calendar-widget { margin: 1rem 0; }
.calendar-hint {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.calendar-header button {
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 0.8125rem;
}
.calendar-grid .dow { text-align: center; color: var(--color-muted); font-weight: 600; padding: 0.25rem; }
.calendar-day {
    aspect-ratio: 1;
    border: none;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.calendar-day.is-blocked { background: #f5f5f4; color: #a8a29e; cursor: not-allowed; text-decoration: line-through; }
.calendar-day.is-selected { background: var(--color-accent); color: #fff; }
.calendar-day.is-in-range { background: #efe4d9; }
.calendar-day.is-empty { background: transparent; cursor: default; }

.legal-page h1 { font-family: var(--font-serif); }

.page-back {
    margin-bottom: 1.25rem;
}

.page-back-bottom {
    margin-top: 2rem;
    margin-bottom: 0;
}

/* Touch-friendly defaults */
.btn,
.gallery-thumb,
.calendar-day,
.calendar-header button,
.nav-toggle {
    -webkit-tap-highlight-color: transparent;
}

/* Mobile navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    .container {
        width: min(1120px, calc(100% - 1.25rem));
    }

    .header-inner {
        position: relative;
        min-height: 64px;
        gap: 0.75rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .site-header.is-scrolled .logo-image {
        height: 36px;
        max-width: min(140px, 38vw);
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 52;
    }

    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    body.nav-open .logo-fly {
        opacity: 0 !important;
        visibility: hidden;
    }

    body.nav-open .site-header {
        z-index: 50;
    }

    body.nav-open .main-nav {
        z-index: 51;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 0.5rem;
        z-index: 30;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 0.875rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
    }

    .main-nav a:hover {
        background: var(--color-bg);
        text-decoration: none;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(28, 25, 23, 0.35);
        z-index: 45;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .nav-overlay.is-visible {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero {
        padding: 2.5rem 0 2.5rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: center;
    }

    .hero-brand {
        order: -1;
    }

    .hero-logo {
        width: min(320px, 88vw);
        margin-inline: auto;
    }

    .hero-inner {
        margin-inline: auto;
    }

    .hero-lead {
        margin-inline: auto;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-head h2 {
        font-size: 1.75rem;
    }

    .apartment-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card-body .btn {
        width: 100%;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .site-footer {
        padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-logo-link {
        display: none;
    }

    .footer-text-brand {
        display: inline-block;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .detail-header h1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .gallery-thumb {
        flex: 0 0 80px;
    }

    .gallery-main {
        touch-action: pan-y pinch-zoom;
    }

    .gallery-card .gallery-main {
        touch-action: pan-y pinch-zoom;
    }

    .gallery-card .gallery-swipe-hint {
        display: block;
        left: 0.75rem;
        bottom: 0.75rem;
        right: auto;
        max-width: calc(100% - 6.5rem);
    }

    .gallery-swipe-hint {
        display: block;
        position: absolute;
        left: 0.75rem;
        bottom: 0.75rem;
        padding: 0.35rem 0.625rem;
        border-radius: 999px;
        background: rgba(28, 25, 23, 0.72);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 500;
        line-height: 1.2;
        pointer-events: none;
    }

    .gallery-counter {
        right: 0.75rem;
        top: 0.75rem;
        bottom: auto;
    }

    .gallery-thumb img {
        width: 80px;
        height: 60px;
    }

    .gallery-thumbs {
        gap: 0.625rem;
        padding-bottom: 0.25rem;
        scroll-snap-type: x mandatory;
    }

    .gallery-thumb {
        scroll-snap-align: start;
    }

    .amenity-grid {
        grid-template-columns: 1fr;
    }

    .booking-panel {
        position: static;
        top: auto;
        padding: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .detail-reviews,
    .detail-reviews-last {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--color-border);
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
        font-size: 16px;
        min-height: 44px;
    }

    .form-row textarea {
        min-height: 120px;
    }

    .btn {
        min-height: 44px;
        padding: 0.875rem 1.25rem;
    }

    .calendar-grid {
        gap: 6px;
        font-size: 0.875rem;
    }

    .calendar-day {
        min-height: 40px;
        font-size: 0.875rem;
    }

    .calendar-header button {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.75rem;
    }

    .legal-page h1 {
        font-size: 1.75rem;
    }

    .review-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .detail-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .booking-aside {
        order: 1;
    }

    .detail-content {
        order: 2;
    }

    .detail-tabs-nav {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .detail-tab-panels {
        display: block;
    }

    .detail-tab-panel:not(.is-active) {
        display: none;
    }

    .detail-tab-panel[hidden] {
        display: none !important;
    }

    .booking-panel { position: static; }
    .detail-header { flex-direction: column; }
    .detail-price { text-align: left; }
    .facts { grid-template-columns: 1fr; }
    .route-grid { grid-template-columns: 1fr; }
    .route-form-row .btn { width: 100%; }
}
