:root {
    --ink: #172033;
    --muted: #5d6a7c;
    --line: #dfe6ee;
    --panel: #ffffff;
    --soft: #f5f7fa;
    --mist: #eaf3f5;
    --primary: #0f6f7f;
    --primary-dark: #0a4d59;
    --accent: #d46a4c;
    --gold: #c58a22;
    --success: #15803d;
    --danger: #b42318;
    --shadow: 0 22px 60px rgba(23, 32, 51, .11);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    padding-bottom: 190px;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

#casa,
#dove-siamo,
#prenota,
#home,
#amenities,
#location,
#book {
    scroll-margin-top: 88px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 72px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 0 max(20px, calc((100vw - 1180px) / 2));
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(223, 230, 238, .82);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 800;
    color: var(--ink);
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand span {
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-weight: 700;
    font-size: .92rem;
}

.site-nav a:hover {
    color: var(--primary);
}

.header-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.language-switch {
    order: 2;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 22px rgba(23, 32, 51, .06);
}

.language-switch a,
.language-switch span {
    min-width: 34px;
    padding: 7px 8px;
    border-radius: 6px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.language-switch .active {
    background: var(--primary);
    color: white;
}

.header-cta,
.primary-button,
.ghost-button,
.secondary-button {
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.header-cta {
    order: 1;
    flex: 0 0 auto;
    padding: 11px 15px;
    background: var(--primary);
    color: white;
    box-shadow: 0 12px 28px rgba(15, 111, 127, .2);
}

.header-cta:hover,
.primary-button:hover,
.ghost-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.legal-strip {
    position: relative;
    z-index: 10;
    padding: 9px max(20px, calc((100vw - 1180px) / 2));
    background: #10232b;
    color: rgba(255, 255, 255, .86);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: end;
    overflow: hidden;
    background: #17323b;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 22, 31, .78), rgba(12, 22, 31, .34) 52%, rgba(12, 22, 31, .72)),
        var(--hero-photo, url("../../logo.png"));
    background-size: cover;
    background-position: center;
    filter: saturate(.86);
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0 132px;
    color: white;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
    font-size: .76rem;
}

.hero .eyebrow {
    color: #f3b49e;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    width: min(780px, 100%);
    margin: 0;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: .9;
    letter-spacing: 0;
}

.hero-copy {
    width: min(650px, 100%);
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 1.15rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
}

.primary-button {
    background: var(--accent);
    color: white;
    box-shadow: 0 18px 38px rgba(212, 106, 76, .28);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, .42);
    color: white;
    background: rgba(255, 255, 255, .08);
}

.hero-bottom {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1180px, calc(100% - 40px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 0;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, .24);
}

.hero-stat {
    min-width: 0;
}

.hero-stat span {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: .85rem;
}

.hero-stat strong {
    display: block;
    margin-top: 5px;
    font-size: 1.05rem;
}

.intro-section,
.amenities-section,
.location-section,
.booking-panel,
.newsletter-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.intro-section {
    padding: 78px 0 40px;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    margin-bottom: 26px;
}

.section-heading h2,
.visual-copy h2,
.booking-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.info-card {
    min-height: 240px;
    display: grid;
    align-content: end;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(23, 32, 51, .06);
}

.info-card span {
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .74rem;
}

.info-card h3 {
    margin: 10px 0 10px;
    font-size: 1.35rem;
}

.info-card p,
.visual-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.gallery-section {
    width: min(1180px, calc(100% - 40px));
    margin: 24px auto 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(180px, 260px));
    gap: 10px;
}

.gallery-grid figure {
    margin: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #dfe6ee;
}

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

.gallery-large {
    grid-row: 1 / span 2;
}

.visual-section {
    width: 100%;
    margin: 48px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    align-items: stretch;
    background: #101f2a;
    color: white;
}

.visual-main {
    min-height: 520px;
    display: grid;
    place-items: center;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(15, 111, 127, .32), rgba(212, 106, 76, .16)),
        #e9edf2;
}

.visual-main img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.visual-copy {
    display: grid;
    align-content: center;
    padding: 56px max(40px, calc((100vw - 1180px) / 2)) 56px 48px;
}

.visual-copy .eyebrow {
    color: #f3b49e;
}

.visual-copy p {
    width: min(520px, 100%);
    margin-top: 20px;
    color: rgba(255, 255, 255, .76);
}

.amenities-section {
    padding: 76px 0 36px;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.amenities-list span {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font-weight: 800;
}

.location-section {
    padding: 46px 0 22px;
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.35fr);
    gap: 16px;
    align-items: stretch;
}

.location-details {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.location-details span {
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .74rem;
}

.location-details strong {
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1.2;
}

.location-details p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.location-details .secondary-button {
    justify-self: start;
    margin-top: 4px;
    text-align: center;
}

.location-map {
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #dfe6ee;
    box-shadow: var(--shadow);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    border: 0;
}

.booking-panel {
    padding: 54px 0 78px;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.booking-heading,
.sandbox-warning {
    grid-column: 1 / -1;
}

.booking-heading {
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
    align-items: end;
    gap: 24px;
    margin-bottom: 2px;
}

.summary,
.booking-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.sandbox-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 8px;
    padding: 13px 16px;
    font-weight: 800;
}

.summary {
    position: sticky;
    top: 90px;
}

.summary h3 {
    margin: 0 0 18px;
    font-size: 1.25rem;
}

.summary-grid {
    display: grid;
    gap: 10px;
}

.summary-grid div,
.total-box {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.summary-grid span,
.total-box span {
    color: var(--muted);
}

.stay-box {
    margin-top: 14px;
    padding: 14px;
    background: var(--mist);
    border: 1px solid #cfe2e7;
    border-radius: 8px;
}

.stay-box span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
    margin-bottom: 7px;
}

.stay-box strong {
    display: block;
    color: var(--primary-dark);
    line-height: 1.35;
}

.total-box {
    margin-top: 12px;
    border-bottom: 0;
    font-size: 1.05rem;
    display: grid;
    gap: 5px;
}

.total-box strong {
    color: var(--primary);
}

.total-box .original-total {
    color: var(--danger);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    font-size: 1rem;
}

#totalLabel {
    font-size: 1.35rem;
}

.discount-box {
    margin-top: 8px;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
}

.discount-box span,
.discount-box small {
    display: block;
    color: var(--muted);
}

.discount-box strong {
    display: block;
    margin: 7px 0 4px;
    color: var(--accent);
    font-size: 1.1rem;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-row {
    display: grid;
    gap: 7px;
}

.form-row.full,
.date-trigger,
.calendar-card,
.message,
.paypal-box {
    grid-column: 1 / -1;
}

.date-trigger {
    display: grid;
    gap: 7px;
}

.date-button {
    width: 100%;
    min-height: 68px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--ink);
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.date-button:hover {
    border-color: var(--primary);
}

.date-button span {
    color: var(--muted);
}

.date-button strong {
    color: var(--primary);
    white-space: nowrap;
}

label {
    font-weight: 800;
    color: var(--muted);
    font-size: .9rem;
}

input,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    background: white;
    font: inherit;
    font-size: 16px;
}

input:focus,
textarea:focus,
.date-button:focus {
    outline: 3px solid rgba(15, 111, 127, .16);
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 104px;
}

.message {
    padding: 12px 14px;
    border-radius: 8px;
    background: #ecfdf3;
    color: var(--success);
    border: 1px solid #b7e4c7;
}

.message.error {
    background: #fff1f0;
    color: var(--danger);
    border-color: #ffc9c2;
}

.paypal-box {
    min-height: 48px;
    position: relative;
    z-index: 1;
}

.newsletter-section {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483000;
    width: min(560px, calc(100% - 36px));
    margin: 0;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(260px, 1.14fr);
    gap: 14px;
    align-items: center;
    background: #101f2a;
    color: white;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(12, 25, 33, .28);
}

.newsletter-section[hidden] {
    display: none;
}

.newsletter-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: white;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.newsletter-close:hover {
    background: rgba(255, 255, 255, .2);
}

.newsletter-copy h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.05;
}

.newsletter-copy .eyebrow {
    color: #f3b49e;
}

.newsletter-copy p:last-child {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .76);
    line-height: 1.45;
    font-size: .9rem;
}

.newsletter-form {
    display: grid;
    gap: 9px;
    padding: 12px;
    background: white;
    color: var(--ink);
    border-radius: 8px;
}

.newsletter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.newsletter-row button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--accent);
    color: white;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.newsletter-row button:disabled {
    opacity: .64;
    cursor: wait;
}

.privacy-check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    color: var(--muted);
    font-weight: 700;
    font-size: .84rem;
    line-height: 1.45;
}

.privacy-check input {
    width: 18px;
    min-height: 18px;
    margin: 1px 0 0;
    padding: 0;
}

.newsletter-message {
    margin-top: 2px;
    padding: 9px 10px;
}

.calendar-card {
    border: 1px solid var(--line);
    background: #fbfdff;
    border-radius: 8px;
    padding: 16px;
}

.calendar-modal[hidden] {
    display: none;
}

.calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(12, 25, 33, .58);
}

.calendar-dialog {
    width: min(980px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
    background: #fbfdff;
    box-shadow: 0 24px 70px rgba(14, 30, 42, .38);
}

.calendar-head {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
}

.calendar-head button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.calendar-head button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.calendar-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.calendar-head p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.4;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
    color: var(--muted);
    font-size: .88rem;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.calendar-legend i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid var(--line);
}

.calendar-legend .available { background: #ffffff; }
.calendar-legend .selected { background: var(--primary); border-color: var(--primary); }
.calendar-legend .blocked { background: #e5e7eb; }

.availability-calendar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.calendar-month h3 {
    margin: 0 0 12px;
    text-transform: capitalize;
    font-size: 1rem;
}

.weekdays,
.days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.weekdays {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
}

.day-cell {
    aspect-ratio: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.day-cell:not(.blocked):not(.past):hover {
    border-color: var(--primary);
    color: var(--primary);
}

.day-cell.empty {
    border: 0;
    background: transparent;
    cursor: default;
}

.day-cell.past,
.day-cell.blocked {
    background: #e5e7eb;
    color: #94a3b8;
    cursor: not-allowed;
}

.day-cell.checkout-allowed {
    background: #fff7ed;
    color: var(--gold);
    border-color: #fed7aa;
    cursor: pointer;
}

.day-cell.selected {
    background: #d9eef2;
    border-color: #8fc7d0;
    color: var(--primary);
}

.day-cell.start,
.day-cell.end {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.calendar-loading {
    grid-column: 1 / -1;
    padding: 22px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.error-text {
    color: var(--danger);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.secondary-button {
    border: 1px solid var(--line);
    background: white;
    color: var(--primary);
    padding: 11px 16px;
}

.site-footer {
    display: grid;
    gap: 8px;
    padding: 26px max(20px, calc((100vw - 1180px) / 2));
    background: #10232b;
    color: rgba(255, 255, 255, .78);
    font-size: .88rem;
    line-height: 1.5;
}

.site-footer strong {
    color: white;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

.footer-links a {
    color: white;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-check a {
    color: var(--primary);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 82px;
}

.legal-hero {
    margin-bottom: 26px;
}

.legal-hero h1 {
    width: 100%;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: .95;
}

.legal-hero p {
    width: min(720px, 100%);
    margin: 18px 0 10px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.legal-hero span {
    color: var(--muted);
    font-weight: 800;
    font-size: .9rem;
}

.legal-content {
    display: grid;
    gap: 16px;
    padding: 26px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.legal-content h2 {
    margin: 14px 0 0;
    font-size: 1.35rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.legal-content a {
    color: var(--primary);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 940px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        display: none;
    }

    .visual-section,
    .booking-panel,
    .location-grid,
    .section-heading,
    .booking-heading {
        grid-template-columns: 1fr;
    }

    .summary {
        position: static;
    }

    .intro-grid,
    .amenities-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, minmax(150px, 220px));
    }

    .gallery-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .visual-main {
        min-height: 360px;
    }

    .visual-copy {
        padding: 42px 24px;
    }
}

@media (max-width: 680px) {
    .site-header {
        height: 66px;
        padding: 0 14px;
        gap: 10px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .brand span {
        max-width: 128px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-cta {
        padding: 10px 12px;
        font-size: .86rem;
        min-height: 42px;
    }

    .header-actions {
        gap: 7px;
    }

    .language-switch a,
    .language-switch span {
        min-width: 30px;
        padding: 7px 6px;
        font-size: .72rem;
    }

    .hero {
        min-height: calc(100vh - 66px);
        min-height: min(720px, calc(100svh - 66px));
    }

    .hero-inner {
        width: min(100% - 28px, 1180px);
        padding: 50px 0 150px;
    }

    h1 {
        font-size: clamp(2.55rem, 13vw, 4.2rem);
    }

    .hero-copy {
        font-size: 1rem;
        max-width: 34rem;
    }

    .hero-actions {
        gap: 10px;
    }

    .primary-button,
    .ghost-button {
        flex: 1 1 150px;
        padding-inline: 14px;
    }

    .hero-bottom {
        width: calc(100% - 28px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 12px 0;
    }

    .hero-stat span {
        font-size: .72rem;
    }

    .hero-stat strong {
        font-size: .92rem;
        line-height: 1.2;
    }

    .intro-section,
    .gallery-section,
    .amenities-section,
    .location-section,
    .booking-panel,
    .newsletter-section {
        width: calc(100% - 28px);
    }

    .newsletter-section {
        right: 14px;
        bottom: 14px;
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 10px;
    }

    .newsletter-form {
        padding: 12px;
    }

    .intro-section {
        padding-top: 54px;
    }

    .section-heading,
    .booking-heading {
        gap: 10px;
        margin-bottom: 18px;
    }

    .section-heading h2,
    .visual-copy h2,
    .booking-heading h2 {
        font-size: 2rem;
        line-height: 1.05;
    }

    .intro-grid,
    .amenities-list {
        gap: 10px;
    }

    .info-card {
        padding: 18px;
    }

    .gallery-section {
        margin-top: 14px;
    }

    .gallery-grid {
        display: flex;
        gap: 10px;
        margin-inline: -14px;
        padding-inline: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-grid figure,
    .gallery-large {
        flex: 0 0 82vw;
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 3;
        scroll-snap-align: center;
    }

    .visual-section {
        margin-top: 36px;
    }

    .visual-main {
        min-height: 280px;
    }

    .visual-copy {
        padding: 32px 18px;
    }

    .visual-copy ul {
        grid-template-columns: 1fr;
    }

    .amenities-section {
        padding: 48px 0 26px;
    }

    .location-section {
        padding: 36px 0 12px;
    }

    .amenities-list {
        grid-template-columns: 1fr;
    }

    .location-details {
        padding: 18px;
    }

    .location-map,
    .location-map iframe {
        min-height: 330px;
    }

    .legal-page {
        width: calc(100% - 28px);
        padding: 38px 0 58px;
    }

    .legal-content {
        padding: 18px;
    }

    .booking-panel {
        padding: 32px 0 56px;
        gap: 12px;
    }

    .newsletter-row {
        grid-template-columns: 1fr;
    }

    .newsletter-row button {
        width: 100%;
    }

    .summary {
        padding: 18px;
        box-shadow: 0 14px 34px rgba(23, 32, 51, .08);
    }

    .summary h3 {
        margin-bottom: 12px;
    }

    .summary-grid div,
    .total-box {
        gap: 8px;
    }

    .booking-form {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }

    .date-button {
        align-items: flex-start;
        flex-direction: column;
        min-height: 74px;
        padding: 14px;
    }

    .date-button strong {
        white-space: normal;
    }

    .availability-calendar {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .calendar-modal {
        align-items: flex-end;
        padding: 0;
    }

    .calendar-dialog {
        width: 100%;
        max-height: 92vh;
        max-height: 92svh;
        border-radius: 14px 14px 0 0;
        padding: 16px;
    }

    .calendar-head {
        grid-template-columns: 42px 1fr 42px;
        gap: 8px;
    }

    .calendar-head button {
        width: 42px;
        height: 42px;
    }

    .calendar-head h2 {
        font-size: 1.05rem;
    }

    .calendar-head p {
        font-size: .9rem;
    }

    .calendar-legend {
        gap: 9px;
        font-size: .8rem;
    }

    .weekdays,
    .days-grid {
        gap: 4px;
    }

    .day-cell {
        border-radius: 7px;
        font-size: .86rem;
    }

    .modal-actions {
        position: sticky;
        bottom: -16px;
        margin: 16px -16px -16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fbfdff;
        border-top: 1px solid var(--line);
    }

    .secondary-button {
        width: 100%;
        min-height: 46px;
    }
}

@media (max-width: 420px) {
    .brand span {
        max-width: 104px;
    }

    .hero-inner {
        padding-top: 42px;
    }

    .hero-bottom {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .hero-stat {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
    }

    .hero-stat strong {
        margin-top: 0;
        text-align: right;
    }

    .gallery-grid figure,
    .gallery-large {
        flex-basis: 86vw;
    }
}

.rate-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.rate-selector legend {
    width: 100%;
    margin-bottom: 9px;
    font-weight: 800;
}

.rate-selector label {
    position: relative;
    display: block;
    cursor: pointer;
}

.rate-selector input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rate-selector span {
    display: block;
    min-height: 84px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
}

.rate-selector strong,
.rate-selector small {
    display: block;
}

.rate-selector small {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.4;
}

.rate-selector input:checked + span {
    border-color: #1f7a8c;
    background: #eef8fb;
    box-shadow: inset 0 0 0 1px #1f7a8c;
}

.rate-selector input:focus-visible + span {
    outline: 3px solid rgba(31, 122, 140, .22);
    outline-offset: 2px;
}

@media (max-width: 620px) {
    .rate-selector {
        grid-template-columns: 1fr;
    }
}
