:root {
    --ink: #2e2925;
    --paper: #f7f3ed;
    --cream: #eee5d8;
    --terracotta: #a95035;
    --wine: #6e302d;
    --line: #d9cec1;
    --white: #fff;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Header */
.site-header {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100% - var(--max)) / 2));
    background: rgba(247, 243, 237, 0.96);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
    font-family: Georgia, serif;
    font-size: 25px;
    letter-spacing: 0.03em;
}

.brand span {
    color: var(--terracotta);
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 24px;
}

/* Hero */
.hero {
    height: min(760px, calc(100vh - 78px));
    min-height: 570px;
    position: relative;
    color: var(--white);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 20, 15, 0.65), rgba(30, 20, 15, 0.08) 70%);
}

.hero-copy {
    position: absolute;
    left: max(24px, calc((100% - var(--max)) / 2));
    top: 50%;
    transform: translateY(-50%);
    max-width: 650px;
}

.eyebrow,
.kicker,
.section-title > p {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    font: clamp(62px, 5vw, 126px) / 0.9 Georgia, serif;
    margin: 12px 0 24px;
}

.hero-copy > p:not(.eyebrow) {
    font-size: 21px;
    max-width: 480px;
}

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

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 24px;
    background: var(--terracotta);
    color: var(--white);
    border: 1px solid var(--terracotta);
    font-weight: 650;
}

.btn.ghost {
    background: transparent;
    border-color: var(--white);
}

/* Common sections */
.section {
    max-width: var(--max);
    margin: auto;
    padding: 100px 24px;
}

.section-title p {
    color: var(--terracotta);
    margin: 0;
}

.section-title h2,
.feature h2,
.contact h2 {
    font: clamp(34px, 4vw, 54px) / 1.08 Georgia, serif;
    margin: 12px 0 0;
}

/* About */
.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.intro-text {
    font-size: 18px;
    padding-top: 20px;
}

/* Amenities */
.feature {
    max-width: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--cream);
}

.feature-photo {
    min-height: 650px;
}

.feature-copy {
    padding: 90px max(40px, calc((100vw - var(--max)) / 2)) 90px 70px;
}

.kicker {
    color: var(--terracotta);
}

.amenities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 45px;
    border-top: 1px solid var(--line);
}

.amenities div {
    padding: 18px 8px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    align-items: center;
}

.amenities b {
    font-size: 14px;
}

.wifi-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wifi-icon circle {
    fill: var(--terracotta);
    stroke: none;
}

/* Gallery */
.centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

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

.gallery-item img {
    transition: transform 0.55s ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
}

/* Prices */
.prices {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: end;
}

.price-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.price-cards article {
    background: var(--white);
    padding: 38px;
    border: 1px solid var(--line);
}

.price-cards .featured {
    background: var(--wine);
    color: var(--white);
}

.price-cards strong {
    display: block;
    font: 52px Georgia, serif;
    margin-top: 12px;
}

.price-cards small {
    font-size: 25px;
}

.price-cards article > span {
    font-size: 13px;
    opacity: 0.8;
}

/* Contact */
.contact {
    max-width: none;
    background: var(--ink);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-left: max(24px, calc((100% - var(--max)) / 2));
    padding-right: max(24px, calc((100% - var(--max)) / 2));
}

.contact-card {
    border-left: 1px solid #655d56;
    padding-left: 50px;
}

.contact-card > a:first-child {
    font: clamp(34px, 4vw, 50px) Georgia, serif;
}

.contact-card .btn {
    margin-top: 18px;
}

/* Footer */
footer {
    min-height: 90px;
    padding: 25px max(24px, calc((100% - var(--max)) / 2));
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    font-size: 13px;
}

footer div:nth-child(2) {
    text-align: center;
}

footer div:last-child {
    text-align: right;
}

footer a:hover {
    color: var(--terracotta);
}

/* Back to top */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    background: var(--terracotta);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 10, 0.94);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 88vw;
    max-height: 86vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.lightbox.open img {
    opacity: 1;
    transform: scale(1);
}

.lightbox button {
    position: absolute;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 48px;
    cursor: pointer;
}

.lb-close {
    right: 25px;
    top: 15px;
}

.lb-prev {
    left: 25px;
}

.lb-next {
    right: 25px;
}

/* Mobile */
@media (max-width: 800px) {
    .site-header {
        height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        background: var(--paper);
        display: none;
        flex-direction: column;
        padding: 20px 24px;
        gap: 12px;
        border-top: 1px solid var(--line);
    }

    .nav.open {
        display: flex;
    }

    .hero {
        min-height: 0;
        height: auto;
        aspect-ratio: 4 / 5;
        overflow: hidden;
    }

    .hero > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero h1 {
        font-size: 62px;
    }

    .intro,
    .prices,
    .contact,
    .feature {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 20px;
    }

    .intro {
        gap: 12px;
    }

    .intro-text {
        padding-top: 10px;
    }

    .feature-photo {
        min-height: 440px;
    }

    .feature-copy {
        padding: 60px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 14px;
    }

    .gallery-item,
    .gallery-item.large {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

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

    .prices {
        gap: 30px;
    }

    .price-cards {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 70px 20px;
        gap: 35px;
    }

    .contact-card {
        border-left: 0;
        border-top: 1px solid #655d56;
        padding: 30px 0 0;
    }

    .contact-card > a:first-child {
        font-size: 36px;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 7px;
    }

    footer div:nth-child(2),
    footer div:last-child {
        text-align: center;
    }

    .lightbox img {
        max-width: 94vw;
    }

    .lb-prev {
        left: 6px;
    }

    .lb-next {
        right: 6px;
    }
}


/* Language switch */
.lang {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-left: 4px;
}

.lang a.active {
    color: var(--terracotta);
    font-weight: 700;
}

/* Location highlight */
.location-note {
    display: inline-block;
    margin: 0 0 4px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(30, 20, 15, 0.28);
    font-size: 14px !important;
}

.contact-distance {
    color: #e5c9b9;
}

.gps-link {
    text-decoration: none;
}

.gps-link:hover {
    color: #e5c9b9;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.contact-actions .btn {
    margin-top: 0;
}

.map-btn {
    background: transparent;
    border-color: #8d8178;
}

/* Optional special offers - 1, 2 or 3 cards fill the available width */
.special-offers {
    border-top: 1px solid var(--line);
}

.special-offers[hidden] {
    display: none;
}

.offers-heading {
    margin-bottom: 34px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(var(--offer-count, 1), minmax(0, 1fr));
    gap: 22px;
}

/* A single offer stays compact instead of stretching across the full row. */
.offers-grid[style*="--offer-count: 1"] {
    grid-template-columns: minmax(0, 1fr);
    width: calc(50% - 11px);
    margin-left: 0;
    margin-right: auto;
}

.offer-card {
    min-height: 230px;
    padding: 34px;
    background: var(--cream);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.offer-card h3 {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.08;
}

.offer-card p {
    margin: 0;
    white-space: pre-line;
}

@media (max-width: 800px) {
    .lang {
        margin: 6px 0 0;
    }

    .location-note {
        font-size: 12px !important;
    }

    .contact-actions {
        flex-direction: column;
    }

    .offers-grid,
    .offers-grid[style*="--offer-count: 1"] {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .offer-card {
        min-height: 0;
        padding: 26px;
    }
}

/* Special offer details */
.offer-text {
    flex: 1;
}

.offer-price {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1;
    color: var(--terracotta);
}


/* AVE Marina monogram */
.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 108px;
    height: 66px;
    object-fit: contain;
}

/* Footer branding and Facebook links */
footer {
    grid-template-columns: 1.35fr 1.15fr 0.55fr 1fr;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 54px;
    height: 36px;
    object-fit: contain;
    flex: 0 0 auto;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.facebook-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta);
    color: var(--white);
    font: 700 17px/1 Arial, sans-serif;
}

.footer-copy {
    text-align: center;
}

.footer-design {
    text-align: right;
}

@media (max-width: 760px) {
    .brand img {
        width: 88px;
        height: 54px;
    }

    footer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-brand,
    .footer-social {
        justify-content: center;
    }

    .footer-social {
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .footer-copy,
    .footer-design {
        text-align: center;
    }
}
