/* Explain: Styles for components like buttons, panels, and gallery items. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.86), rgba(250, 249, 246, 0.52));
    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(250, 249, 246, 0.78), rgba(255, 255, 255, 0.48));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    padding: 0;
}

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

.arch-frame-large {
    height: auto;
    min-height: 0;
    border-radius: 0;
}

.arch-frame-large::after {
    border-radius: 0;
}

.arch-frame-medium {
    height: 760px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.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(250, 249, 246, 0.58);
    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;
}

/* Photo-forward class cards */
.class-photo {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--glass-border);
    border-radius: 2.2rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    cursor: zoom-in;
    padding: 0;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.class-photo:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(31, 46, 35, 0.16);
}

.class-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 46, 35, 0) 40%, rgba(31, 46, 35, 0.8) 100%);
    pointer-events: none;
}

.class-photo-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.6rem;
    text-align: left;
    pointer-events: none;
}

.class-photo-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
}

.class-photo-meta {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.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 {
    display: block;
    width: 100%;
    height: 780px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 3rem 999px 999px 3rem;
    box-shadow: var(--shadow-soft);
    padding: 0;
}

/* Gallery + lightbox */
.gallery-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.gallery-photo {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: none;
    background: var(--surface-color);
    padding: 0;
    cursor: zoom-in;
}

.gallery-photo img {
    height: auto;
    width: 100%;
    object-fit: contain;
    transition: opacity 300ms ease;
}

.gallery-photo:hover img,
.gallery-photo:focus-visible img {
    opacity: 0.92;
}

.gallery-zoom {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.92);
    color: var(--sage-dark);
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(31, 46, 35, 0.18);
    opacity: 0;
    transform: translateY(0.4rem);
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease, background 300ms ease;
}

.gallery-photo:hover .gallery-zoom,
.gallery-photo:focus-visible .gallery-zoom {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .gallery-zoom {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem 1.2rem;
    border-top: 1px solid var(--glass-border);
}

.gallery-title {
    min-height: 1.4rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

#gravures .gallery-title {
    font-family: var(--font-body);
}

.gallery-meta {
    min-height: 1rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-price {
    min-height: 1.2rem;
    margin-top: 0.15rem;
    padding-top: 0.1rem;
    color: var(--accent-color);
    font-size: 0.98rem;
    font-weight: 700;
}

.gallery-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--glass-border);
}

.gallery-option {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.86rem;
    line-height: 1.5;
}

.gallery-option-label {
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.gallery-option-dots {
    flex: 1 1 auto;
    min-width: 1rem;
    border-bottom: 1px dotted var(--glass-border);
    transform: translateY(-0.2rem);
}

.gallery-option-price {
    color: var(--text-color);
    font-weight: 700;
    white-space: nowrap;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(31, 46, 35, 0.92);
    padding: 1.25rem;
    backdrop-filter: blur(6px);
}

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

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    max-width: min(100%, 1120px);
}

.lightbox-figure img {
    max-height: 78vh;
    width: auto;
    max-width: 100%;
    border-radius: 0;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lightbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--background-color);
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 300ms ease;
}

.lightbox-btn:hover {
    background: var(--surface-color);
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.lightbox-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.lightbox-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.lightbox-meta {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lightbox-price {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    font-weight: 700;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.92);
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 300ms ease;
}

.lightbox-close:hover {
    background: var(--surface-color);
}

.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: #4A6B53;
}

.form-status.error {
    color: #9B4A3D;
}

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(250, 249, 246, 0.86);
    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(31, 46, 35, 0.32);
    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(31, 46, 35, 0.22);
}

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

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

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

    .arch-frame-medium {
        width: min(100%, 450px);
    }

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

    .class-photo-caption {
        padding: 1.25rem;
    }

    .class-photo-title {
        font-size: 1.35rem;
    }
}

/* Cart drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    overflow-y: auto;
    background: rgba(31, 46, 35, 0.32);
    padding: 1rem;
    backdrop-filter: blur(3px);
}

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

.cart-panel {
    margin-left: auto;
    max-width: 30rem;
    min-height: calc(100vh - 2rem);
    border-radius: 2.4rem;
    background: var(--background-color);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.22);
}

@media (max-width: 767px) {
    .cart-panel {
        max-width: none;
    }
}