/* Explain: Styles for site header, sections, forms, and gallery lightbox. */
.site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.7));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    width: 100%;
    height: min(80vh, 820px);
    min-height: 580px;
    border-radius: 2.5rem;
}

.arch-frame-medium {
    height: 620px;
    max-width: 450px;
    border-radius: 2.1rem;
}

.floating-note {
    position: absolute;
    right: -1.5rem;
    bottom: 4rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.story-card {
    position: absolute;
    right: 0;
    bottom: 2.5rem;
    max-width: 290px;
    border-radius: 2rem;
    padding: 1.5rem;
}

.quiet-detail,
.amenity-row,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.25rem;
}

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.class-card {
    min-height: 360px;
    border-radius: 2.2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.class-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.08);
    transform: translateY(-6px);
}

.amenity-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.amenity-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.45rem var(--terracotta-soft);
}

.amenity-image-wrap {
    height: 660px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 3rem;
    box-shadow: var(--shadow-soft);
}

.booking-form,
.booking-overlay-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: #16A34A;
}

.form-status.error {
    color: #DC2626;
}

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.4);
    padding: 1rem;
}

.booking-overlay.is-open {
    display: block;
}

.booking-overlay-panel {
    min-height: calc(100vh - 2rem);
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.15);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium,
    .amenity-image-wrap {
        height: 510px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 450px);
    }

    .floating-note,
    .story-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }

    .amenity-image-wrap {
        border-radius: 2rem;
    }
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.94);
    padding: clamp(1rem, 3vw, 2.5rem);
    backdrop-filter: blur(8px);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox.is-open .gallery-lightbox-figure {
    animation: galleryLightboxIn 240ms ease;
}

@keyframes galleryLightboxIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-lightbox-figure {
    margin: 0;
    max-width: min(100%, 1100px);
    max-height: 85vh;
    text-align: center;
}

.gallery-lightbox-figure img {
    width: auto;
    max-width: 100%;
    max-height: 82vh;
    margin: 0 auto;
    border-radius: 1rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.gallery-lightbox-figure figcaption {
    margin-top: 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.gallery-item-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    min-height: 4.75rem;
    padding: 1.1rem 1.15rem 1rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0));
    color: #ffffff;
    text-align: left;
}

.gallery-item-caption-text {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.gallery-lightbox-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: background 300ms ease;
}

.gallery-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
}

.gallery-lightbox-prev {
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
}

.gallery-lightbox-next {
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
}

@media (max-width: 640px) {
    .gallery-lightbox-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .gallery-lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .gallery-lightbox-prev {
        left: 0.5rem;
    }

    .gallery-lightbox-next {
        right: 0.5rem;
    }
}

/* Frame shrinks to fit the whole image — no empty space around it */
.arch-frame-fit {
    height: auto;
    min-height: 0;
}

.arch-frame-fit img {
    height: auto;
    width: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .arch-frame-fit {
        height: auto;
        min-height: 0;
        width: min(100%, 450px);
        margin-right: auto;
        margin-left: auto;
    }
}

@keyframes heroFogReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fog-reveal {
    animation: heroFogReveal 1100ms ease-out 280ms both;
}

.hero-text-reveal {
    animation: heroTextReveal 900ms ease-out 520ms both;
}

@media (prefers-reduced-motion: reduce) {
    .hero-fog-reveal,
    .hero-text-reveal {
        animation: none;
    }
}