/* Explain: Styles for various UI components and global rounded corner adjustments. */
.site-header {
    background: var(--banner-color);
    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;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.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.frame-clear {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.arch-frame.frame-clear::after {
    display: none;
}

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 2.5rem;
}

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

.arch-frame-medium.sanitation-frame {
    height: 480px;
    max-width: 358px;
}

.square-frame {
    aspect-ratio: 1 / 1;
    border-radius: 2.5rem;
}

.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(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;
}

.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(88, 129, 87, 0.58);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
    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: 594px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    box-shadow: var(--shadow-soft);
}

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

.booking-form {
    border-radius: 0.75rem;
}

.booking-form .input,
.booking-form .select,
.booking-form .textarea {
    border-radius: 0.25rem;
}

.booking-form .btn {
    border-radius: 0.25rem;
}

.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-large,
    .arch-frame-medium,
    .amenity-image-wrap {
        height: 510px;
        min-height: 0;
    }

    .arch-frame-medium.sanitation-frame {
        height: 400px;
    }

    .square-frame {
        aspect-ratio: 1 / 1;
        height: auto;
        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;
    }
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.6);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    color: var(--sage-dark);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--accent-color);
    transition: transform 300ms ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

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

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

.gallery-lightbox-inner {
    margin: 0;
    max-width: min(92vw, 1100px);
}

.gallery-lightbox-inner img {
    display: block;
    margin: 0 auto;
    max-height: 80vh;
    max-width: 100%;
    width: auto;
    border-radius: 1.4rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-caption {
    margin-top: 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.gallery-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    cursor: pointer;
    transition: background 300ms ease, transform 300ms ease;
}

.gallery-lightbox-close:hover {
    background: #ffffff;
    transform: scale(1.06);
}

.consent-line {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
    cursor: pointer;
}

.consent-checkbox {
    margin-top: 0.2rem;
    height: 1.15rem;
    width: 1.15rem;
    flex-shrink: 0;
    accent-color: var(--accent-color);
}

.consent-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.required-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.15rem 0.6rem;
    color: var(--sage-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

.quote-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    border: 1px dashed var(--glass-border);
    border-radius: 0.25rem;
    background: rgba(250, 249, 246, 0.5);
    padding: 1.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 300ms ease, background 300ms ease;
}

.quote-upload:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.quote-upload i {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.quote-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 0.25rem;
    background: var(--surface-color);
}

.quote-thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.quote-thumb-remove {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    display: inline-flex;
    height: 1.7rem;
    width: 1.7rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(31, 46, 35, 0.7);
    color: #ffffff;
    font-size: 0.7rem;
    cursor: pointer;
}

.review-block {
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    background: rgba(250, 249, 246, 0.58);
    padding: 1.25rem 1.4rem;
}

.review-block h4 {
    margin: 0 0 0.5rem;
    color: var(--sage-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.review-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
    padding: 0.45rem 0;
    font-size: 0.88rem;
}

.review-row:last-child {
    border-bottom: 0;
}

.review-label {
    color: var(--text-muted);
}

.review-value {
    color: var(--text-color);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* ---------- Edgy corner system (site-wide) ---------- */
[class*="rounded"] {
    border-radius: 0.35rem !important;
}

.arch-frame,
.arch-frame-large,
.arch-frame-medium,
.arch-frame-medium.sanitation-frame,
.square-frame {
    border-radius: 0.6rem;
}

.arch-frame::after {
    border-radius: inherit;
}

.floating-note,
.story-card,
.quiet-detail,
.amenity-row,
.contact-note,
.class-card,
.amenity-image-wrap,
.faq-item,
.booking-form,
.booking-overlay-panel {
    border-radius: 0.5rem;
}

.booking-form .input,
.booking-form .select,
.booking-form .textarea,
.booking-form .btn,
.quote-upload,
.quote-thumb,
.quote-thumb-remove,
.review-block,
.required-badge {
    border-radius: 0.25rem;
}

.gallery-lightbox-inner img,
.gallery-lightbox-close {
    border-radius: 0.4rem;
}

@media (max-width: 767px) {
    .amenity-image-wrap {
        border-radius: 0.5rem;
    }
}

/* Slightly rounded icon bullets (industry tiles) */
.industry-bullet {
    border-radius: 0.9rem !important;
}

/* Wavy bottom edge for the top banner */
.site-header-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    line-height: 0;
    pointer-events: none;
    transform: translateY(calc(100% - 1px));
    filter: drop-shadow(0 8px 14px rgba(31, 46, 35, 0.10));
}

.site-header-wave svg {
    display: block;
    width: 100%;
    height: clamp(24px, 4vw, 42px);
}

.site-header .dropdown-content {
    white-space: normal;
}

.site-header .dropdown-content .grid > a,
.site-header .dropdown-content h4,
.site-header .dropdown-content p {
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
}
