/*
Theme Name: Linnamaja 04
Description: Eestikeelne linnamaja näidisveeb.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: linnamaja-04
*/
@import url("assets/newsreader.css");
@import url("assets/plaan.css");

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

:root {
    --paper: #f7f3ec;
    --ink: #292620;
    --muted: #625b50;
    --rule: #cfc5b5;
    --wood: #513a30;
    --forest: #33382e;
    --sand: #eae1d3;
    --gutter: clamp(21px, 5.2vw, 90px);
    --header: 74px;
    --serif: "Newsreader", Georgia, serif;
    --sans: "Instrument Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.01; letter-spacing: -.035em; }
h1 { font-size: clamp(3.65rem, 7.1vw, 7rem); }
h2 { font-size: clamp(2.9rem, 5.25vw, 5.4rem); }
h3 { font-size: clamp(1.65rem, 2.7vw, 2.55rem); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #956750; outline-offset: 4px; }
.shell { width: min(calc(100% - 2 * var(--gutter)), 1360px); margin-inline: auto; }
.fill-photo { width: 100%; height: 100%; object-fit: cover; }
.skip-link:not(:focus) { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 99999; background: var(--paper); padding: 10px 15px; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: var(--header); gap: 16px; }
.wordmark { font-size: 15px; letter-spacing: .11em; font-weight: 650; white-space: nowrap; }
.wordmark span { color: #845742; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 48px); font-size: 15px; }
.site-nav a:not(.nav-action):hover, .site-nav a[aria-current="page"]:not(.nav-action) { text-decoration: underline; text-underline-offset: 6px; }
.nav-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 13px; border: 1px solid #878174; }
.nav-action:hover { background: var(--sand); }
.nav-action span, .action span { font-size: 16px; line-height: 1; }
.menu-toggle { display: none; }
.action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 49px;
    padding: 11px 16px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fffbf4;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 550;
    transition: background-color .18s ease;
}
.action:hover { background: var(--wood); }
.text-link { display: inline-flex; align-items: center; gap: 12px; width: fit-content; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 550; }
.text-link:hover { color: #82563f; }
.text-link span { font-size: 16px; }
.link-arrow { display: inline-block; flex: none; position: relative; width: 13px; height: 13px; vertical-align: -.1em; }
.link-arrow::before, .link-arrow::after { content: ""; position: absolute; }
.link-arrow::before { width: 7px; height: 7px; top: 2px; right: 2px; border-top: 1px solid; border-right: 1px solid; }
.link-arrow::after { height: 1px; width: 11px; top: 6px; left: 1px; background: currentColor; transform: rotate(-45deg); }

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
    align-items: center;
    gap: clamp(30px, 5.1vw, 84px);
    padding-block: clamp(34px, 4vw, 65px) clamp(32px, 3.5vw, 53px);
}
.property-location { font-size: 14px; font-weight: 500; margin-bottom: 22px; color: var(--muted); }
.home-hero h1 { line-height: .9; }
.home-hero h1 em { display: block; margin-top: .065em; color: var(--wood); font-size: .77em; font-weight: 400; }
.hero-intro { color: var(--muted); max-width: 33ch; font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.55; margin: 21px 0 23px; }
.hero-figure { min-width: 0; }
.hero-stage { aspect-ratio: 1.31; position: relative; isolation: isolate; overflow: hidden; background: #dcd0be; }
.hero-photo, .hero-plan, .hero-doors { position: absolute; inset: 0; }
.hero-photo img { object-position: 50% 52%; }
.hero-plan { visibility: hidden; }
.hero-doors { pointer-events: none; }
.hero-door, .hero-door__surface { position: absolute; top: 0; bottom: 0; }
.hero-door { width: 50%; overflow: hidden; }
.hero-door__surface { width: 200%; }
.hero-door--left, .hero-door--left .hero-door__surface { left: 0; }
.hero-door--right, .hero-door--right .hero-door__surface { right: 0; }
.hero-figure[data-view="intro"] .hero-door { animation: left-panel 2.8s cubic-bezier(.68,.01,.19,1) both; }
.hero-figure[data-view="intro"] .hero-door--right { animation-name: right-panel; }
.hero-figure:not([data-view="intro"]) .hero-doors { display: none; }
.hero-figure[data-view="plan"] .hero-plan { visibility: visible; }
@keyframes left-panel { 0%, 56% { transform: translateX(0); } 100% { transform: translateX(-101%); } }
@keyframes right-panel { 0%, 56% { transform: translateX(0); } 100% { transform: translateX(101%); } }
.hero-caption { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.plan-toggle { border: 0; padding: 7px 0 7px 10px; background: transparent; font-size: 14px; font-weight: 550; }
.plan-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.plan-toggle .link-arrow { margin-left: 6px; }
.plan-toggle[aria-pressed="true"] .link-arrow { transform: rotate(180deg); }

.facts-band { border-block: 1px solid var(--rule); }
.house-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.house-facts > div { display: flex; flex-direction: column-reverse; gap: 3px; padding: 18px clamp(12px, 2.9vw, 42px); border-left: 1px solid var(--rule); }
.house-facts > div:first-child { padding-left: 0; border-left: 0; }
.house-facts dt { font-size: 14px; color: var(--muted); }
.house-facts dd { font: 400 clamp(1.9rem, 4.1vw, 3.7rem)/1 var(--serif); letter-spacing: -.045em; }

.house-story { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(34px, 10vw, 150px); padding-block: clamp(65px, 9.4vw, 144px); }
.story-photo img { aspect-ratio: 4 / 4.65; object-position: 50% 45%; }
.story-photo figcaption, .courtyard-photos figcaption, .bedroom-photo figcaption { color: var(--muted); font-size: 13px; padding-top: 8px; }
.story-copy p, .rooms-preview p, .courtyard-copy p, .page-intro p, .bedrooms p, .practical p { max-width: 45ch; margin-top: 16px; color: var(--muted); }
.story-copy .text-link, .rooms-preview .text-link, .practical .text-link { margin-top: 22px; }
.rooms-section { padding-block: clamp(55px, 6.8vw, 100px); background: var(--forest); color: #fbf4e9; }
.rooms-preview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(29px, 6vw, 97px); }
.rooms-preview p { color: #ece2d2; }
.rooms-preview .text-link:hover { color: #f1d0b6; }
.rooms-preview-photo { aspect-ratio: 1.36; }
.courtyard-section { padding-block: clamp(65px, 9.4vw, 135px); }
.courtyard-copy { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: end; gap: 22px; margin-bottom: 27px; }
.courtyard-copy p { margin-top: 0; }
.courtyard-photos { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr); align-items: end; gap: clamp(13px, 3vw, 42px); }
.courtyard-photos figure:first-child > div { aspect-ratio: 1.43; }
.courtyard-photos figure:last-child > div { aspect-ratio: 1.04; }
.reserve-section { background: var(--sand); }
.reserve-inner { padding-block: clamp(36px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.reserve-inner h2 { font-size: clamp(2.3rem, 4.2vw, 4rem); }
.stay-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(22px, 3.4vw, 48px);
    padding-block: clamp(32px, 4.6vw, 64px);
}
.stay-details h2 { font-size: clamp(2.1rem, 3.5vw, 3.25rem); margin-bottom: 15px; }
.stay-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.stay-photo { display: block; aspect-ratio: 1.51; background: var(--sand); overflow: hidden; }
.stay-photo img { transition: transform .28s ease; }
.stay-photo:hover img { transform: scale(1.055); }
.photo-viewer { width: min(880px, calc(100% - 28px)); max-width: none; max-height: calc(100dvh - 28px); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 0; }
.photo-viewer::backdrop { background: #211c17c7; }
.photo-viewer-top { display: flex; justify-content: flex-end; padding: 9px 12px; }
.photo-viewer-image { display: block; width: 100%; height: min(68dvh, 600px); object-fit: contain; background: var(--ink); }
.photo-viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; }
.photo-viewer-footer p { text-align: center; font-size: 14px; }
.photo-viewer-button { border: 1px solid var(--rule); background: transparent; min-height: 39px; padding: 5px 9px; font-size: 14px; }
.photo-viewer-button:hover { background: var(--sand); }
.google-card { display: grid; grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr); border: 1px solid var(--rule); background: #f0e8db; }
.google-reviews { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(12px, 2.1vw, 28px); }
.google-reviews h3 { font: 550 15px/1.3 var(--sans); letter-spacing: 0; }
.google-rating { font: 400 clamp(2.6rem, 4.9vw, 4.4rem)/.98 var(--serif); letter-spacing: -.045em; margin-top: 12px; }
.google-stars { display: flex; flex-wrap: nowrap; gap: 3px; margin-top: 6px; }
.google-stars span {
    display: block;
    width: clamp(11px, 1.45vw, 17px);
    aspect-ratio: 1;
    background: linear-gradient(to right, #8a5a27 var(--star-fill), #c9bba6 var(--star-fill));
    clip-path: polygon(50% 0%, 65% 33%, 100% 38%, 75% 62%, 80% 100%, 50% 80%, 20% 100%, 25% 62%, 0% 38%, 35% 33%);
}
.google-caption { color: var(--muted); font-size: 13px; line-height: 1.3; }
.google-reviews .google-caption, .google-reviews-link { margin-top: 10px; }
.google-location { min-width: 0; display: grid; grid-template-rows: minmax(200px, 1fr) auto; border-left: 1px solid var(--rule); background: var(--paper); }
.google-location iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; background: var(--sand); }
.google-location-info { display: flex; gap: 5px 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 9px 12px; }
.google-map-link { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 550; text-underline-offset: 3px; }
.google-map-link:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 23px; min-height: 95px; padding-block: 19px; }
.footer-inner p { color: var(--muted); font-size: 14px; }
.footer-inner .text-link { margin-left: auto; }

.page-intro, .booking-page { padding-top: clamp(29px, 5vw, 72px); }
.page-intro p { max-width: 57ch; }
.page-intro .house-facts { border-block: 1px solid var(--rule); margin-block: clamp(26px, 3.7vw, 48px) 24px; }
.back-link { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.gallery { max-width: 1160px; margin-inline: auto; }
.gallery-stage { aspect-ratio: 1.8; position: relative; isolation: isolate; overflow: hidden; background: #e1d6c5; }
.gallery-photo { position: absolute; inset: 0; }
.gallery-photo img { object-position: center 52%; }
.gallery-photo[data-photo="maja"] img { object-fit: contain; }
.gallery-caption { color: var(--muted); font-size: 14px; padding-block: 9px; }
.gallery-options { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.gallery-option { background: transparent; border: 1px solid transparent; padding: 3px; width: clamp(48px, 9vw, 108px); aspect-ratio: 1.36; }
.gallery-option[aria-pressed="true"] { border-color: var(--ink); }
.gallery-option img { aspect-ratio: 1.36; }
.bedrooms { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(27px, 7vw, 95px); padding-block: clamp(65px, 9.5vw, 140px); }
.bedroom-photo img { aspect-ratio: 1.14; }
.room-list { margin-top: 24px; }
.room-list > div, .summary-details > div { border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 10px 0; font-size: 14px; }
.room-list > div:last-child, .summary-details > div:last-child { border-bottom: 1px solid var(--rule); }
.room-list dt, .summary-details dt { color: var(--muted); }
.room-list dd, .summary-details dd { text-align: right; }
.plans-section { background: var(--sand); padding-block: clamp(53px, 7vw, 108px); }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; margin-top: 24px; }
.floor-drawing { aspect-ratio: 1.35; border: 1px solid #c8b9a6; }
.plans-grid figcaption { margin-top: 13px; }
.plans-grid p { color: var(--muted); margin-top: 3px; font-size: 14px; }
.practical { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(31px, 9vw, 130px); padding-block: clamp(65px, 8vw, 120px); }
.practical h2 { font-size: clamp(2.7rem, 4.3vw, 4.5rem); }
.amenities { margin: 12px 0 0; padding: 0; list-style: none; }
.amenities li { border-top: 1px solid var(--rule); padding: 8px 0; }

.booking-page { padding-bottom: clamp(60px, 7.5vw, 110px); min-height: 69vh; }
.booking-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(29px, 6vw, 95px); align-items: start; }
.booking-page h1 { font-size: clamp(3.15rem, 6.3vw, 6.1rem); }
.booking-lead { color: var(--muted); margin-top: 10px; }
.booking-photo { aspect-ratio: 1.2; }
.booking-form { border-top: 1px solid var(--rule); margin-top: 21px; padding-top: 18px; }
.booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.booking-fields label { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 14px; }
.booking-fields input, .booking-fields select { background: #fcf9f4; border: 1px solid #b9ae9c; border-radius: 0; padding: 0 8px; width: 100%; max-width: 100%; min-width: 0; min-height: 46px; }
.booking-fields input[aria-invalid="true"] { border-color: #9c3e32; }
.booking-form .action { margin-top: 14px; }
.booking-error { margin-top: 10px; color: #9b352a; font-size: 14px; }
.booking-note { color: var(--muted); margin-top: 8px; font-size: 13px; }
.booking-summary { background: var(--sand); padding: 20px; margin-top: 23px; }
.booking-summary h2 { font-size: clamp(2.25rem, 4.5vw, 3.3rem); margin-bottom: 12px; }
.booking-summary .action { margin-top: 12px; }
.generic-page { min-height: 61vh; padding-bottom: 70px; }

.panorama-bar { flex: none; position: relative; border-top: 1px solid var(--rule); background: var(--paper); }
.panorama-bar-inner { min-height: 48px; gap: 16px; display: flex; align-items: center; justify-content: space-between; }
.panorama-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(12px, 2.5vw, 38px); }
.panorama-nav a, .panorama-next { display: inline-flex; min-height: 40px; align-items: center; font-size: 14px; font-weight: 550; white-space: nowrap; }
.panorama-nav a { color: var(--muted); }
.panorama-nav a:hover, .panorama-nav a[aria-current="location"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.panorama-next { gap: 7px; }
.panorama-next:hover { color: #82563f; }
.panorama-progress { position: absolute; bottom: 0; inset-inline: 0; height: 2px; background: #ded4c4; }
.panorama-progress span { display: block; height: 100%; background: var(--wood); transform: scaleX(0); transform-origin: left center; }
.panorama[data-mode="scroll"] { --panorama-size: calc(100svh - var(--panorama-top)); height: calc(var(--panorama-size) + var(--panorama-distance)); }
.panorama[data-mode="scroll"] .panorama-pin { position: sticky; top: var(--panorama-top); height: var(--panorama-size); display: flex; flex-direction: column; }
.panorama[data-mode="scroll"] .panorama-window { overflow: clip; flex: 1; min-height: 0; }
.panorama[data-mode="scroll"] .panorama-track,
.panorama[data-mode="swipe"] .panorama-track { display: flex; width: 100%; }
.panorama[data-mode="scroll"] .panorama-track { height: 100%; will-change: transform; }
.panorama[data-mode="scroll"] .panorama-panel,
.panorama[data-mode="swipe"] .panorama-panel { flex: 0 0 100%; min-width: 0; }
.panorama[data-mode="scroll"] .panorama-panel { height: 100%; display: grid; align-items: center; overflow: clip; }
.panorama[data-mode="scroll"] .intro-panel { grid-template-rows: minmax(0, 1fr) auto; padding-bottom: 18px; }
.panorama[data-mode="scroll"] .home-hero { padding-block: 20px; }
.panorama[data-mode="scroll"] .hero-stage { max-height: calc(var(--panorama-size) - 190px); }
.panorama[data-mode="scroll"] .property-location { margin-bottom: 18px; }
.panorama[data-mode="scroll"] .house-facts > div { padding-block: 12px; }
.panorama[data-mode="scroll"] .house-facts dd { font-size: clamp(1.9rem, 3.4vw, 3.15rem); }
.house-panel { background: #eee6d9; }
.court-panel { background: #faf6ee; }
.panorama[data-mode="scroll"] .house-story,
.panorama[data-mode="scroll"] .rooms-section,
.panorama[data-mode="scroll"] .courtyard-section { padding-block: 24px; }
.panorama[data-mode="scroll"] .story-photo img { max-height: calc(var(--panorama-size) - 141px); }
.panorama[data-mode="scroll"] .rooms-preview-photo { max-height: calc(var(--panorama-size) - 115px); }
.panorama[data-mode="scroll"] .courtyard-photos figure > div { max-height: calc(var(--panorama-size) - 244px); }
.panorama[data-mode="swipe"] .panorama-pin { display: flex; flex-direction: column; }
.panorama[data-mode="swipe"] .panorama-bar { order: -1; border-top: 0; }
.panorama[data-mode="swipe"] .panorama-next { display: none; }
.panorama[data-mode="swipe"] .panorama-window { overflow: hidden; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; }
.panorama[data-mode="swipe"] .panorama-track { align-items: flex-start; }
.panorama[data-mode="swipe"] .panorama-panel { scroll-snap-align: start; scroll-snap-stop: always; }
.panorama[data-mode="swipe"] .intro-panel { padding-bottom: 25px; }
.panorama[data-mode="swipe"] .house-story,
.panorama[data-mode="swipe"] .rooms-section,
.panorama[data-mode="swipe"] .courtyard-section { padding-block: clamp(32px, 5vw, 62px); }
.panorama[data-mode="swipe"] .panorama-nav a { font-size: clamp(12px, 2vw, 14px); }

@media (max-width: 1020px) and (min-width: 761px) {
    .home-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 25px; }
    .home-hero h1 { font-size: clamp(3.5rem, 6.6vw, 5rem); }
}

@media (max-width: 760px) {
    :root { --header: 62px; }
    h1 { font-size: clamp(3.6rem, 11.7vw, 6.1rem); }
    .site-nav { flex-wrap: wrap; gap: 9px 15px; padding-block: 7px; }
    .site-header[data-menu-ready] .site-nav { display: none; }
    .site-header[data-menu-open] .site-nav {
        display: grid;
        position: absolute;
        inset: 100% 0 auto;
        padding: 7px var(--gutter) 15px;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
    }
    .site-nav a:not(.nav-action) { padding: 9px 0; }
    .nav-action { width: fit-content; margin-top: 5px; }
    .menu-toggle { display: flex; align-items: center; gap: 8px; padding: 7px 0 7px 8px; border: 0; background: transparent; min-height: 42px; font-size: 15px; }
    .menu-toggle span, .menu-toggle span::after { display: block; width: 14px; height: 1px; background: currentColor; }
    .menu-toggle span { position: relative; top: -2px; }
    .menu-toggle span::after { content: ""; position: absolute; top: 4px; }
    .home-hero, .house-story, .rooms-preview, .courtyard-copy, .bedrooms, .practical, .booking-grid { grid-template-columns: minmax(0, 1fr); }
    .home-hero { gap: 23px; padding-top: 30px; }
    .hero-intro { margin-block: 13px 15px; }
    .property-location { margin-bottom: 17px; }
    .hero-stage { aspect-ratio: 1.16; }
    .hero-caption { min-height: 40px; }
    .house-story, .rooms-preview, .bedrooms { gap: 23px; }
    .story-copy { grid-row: 1; }
    .story-photo img { aspect-ratio: 1.12; object-position: 50% 47%; }
    .rooms-preview-photo, .bedroom-photo img { aspect-ratio: 1.3; }
    .courtyard-copy { gap: 12px; margin-bottom: 18px; }
    .courtyard-photos { grid-template-columns: minmax(0, 1fr); gap: 19px; }
    .courtyard-photos figure:last-child > div { aspect-ratio: 1.55; }
    .reserve-inner { flex-wrap: wrap; }
    .stay-details { grid-template-columns: minmax(0, 1fr); }
    .stay-photo { aspect-ratio: 1.4; }
    .footer-inner .text-link { margin-left: 0; }
    .gallery-stage { aspect-ratio: 1.32; }
    .gallery-option { width: clamp(39px, 12.5vw, 94px); }
    .plans-grid { grid-template-columns: minmax(0, 1fr); }
    .floor-drawing { aspect-ratio: 1.3; }
    .booking-photo { aspect-ratio: 1.4; }
}

@media (max-width: 490px) {
    :root { --gutter: 18px; }
    .house-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .house-facts > div { padding-block: 13px; }
    .house-facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
    .house-facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
    .house-facts dt { font-size: 13px; }
    .room-list > div { gap: 10px; }
    .panorama[data-mode="swipe"] .home-hero { padding-top: 22px; }
    .panorama[data-mode="swipe"] .panorama-bar-inner { min-height: 40px; }
    .panorama[data-mode="swipe"] .panorama-nav a { min-height: 38px; }
    .google-reviews h3, .photo-viewer-footer p { font-size: 13px; }
    .google-location-info { padding-inline: 8px; }
}

@media (max-width: 360px) {
    .google-card { grid-template-columns: minmax(81px, .55fr) minmax(200px, 1.45fr); margin-inline: -14px; }
    .google-reviews { padding-inline: 8px; }
    .google-stars { gap: 2px; }
    .google-rating { font-size: 2.55rem; }
    .google-caption { font-size: 12px; }
}

@media (max-width: 302px) {
    .google-card { grid-template-columns: minmax(0, 1fr); }
    .google-reviews { display: grid; grid-template-columns: 1fr auto; column-gap: 13px; align-items: center; }
    .google-rating { grid-row: span 2; margin-top: 0; }
    .google-reviews .google-caption { margin-top: 5px; }
    .google-location { border-top: 1px solid var(--rule); border-left: 0; }
}

@media (max-width: 600px) {
    .admin-bar .site-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-doors { display: none; }
    *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
