/* Explain: Component styles for header, cards, form elements, and layout. */
.site-header {
    background: linear-gradient(180deg, rgba(15, 13, 11, 0.9), rgba(15, 13, 11, 0.58));
    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(30, 25, 20, 0.85), rgba(18, 15, 12, 0.68));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 106, 0.34);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

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

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

.arch-frame-medium {
    height: 620px;
    max-width: 450px;
    border-radius: 999px 999px 2.1rem 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.03);
    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(201, 168, 106, 0.58);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
    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 999px 999px 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: #9CC58A;
}

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

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 13, 11, 0.92);
    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(0, 0, 0, 0.66);
    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(0, 0, 0, 0.6);
}

@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: 999px 999px 2rem 2rem;
    }
}

.builder-step-number {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--background-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.box-size-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    border-radius: 2rem;
    padding: 1.75rem;
    text-align: left;
    font-family: var(--font-body);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.box-size-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.box-size-card.is-active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color), var(--shadow-soft);
}

.box-size-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.15rem;
}

.box-size-ml {
    margin-top: 0.4rem;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.box-size-title {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
}

.box-size-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.box-size-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.box-size-card.is-active .box-size-action {
    color: var(--accent-color);
}

.builder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.builder-tab {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0.65rem 1.15rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 300ms ease;
}

.builder-tab:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.builder-tab.is-active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--background-color);
}

.decant-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.8rem;
    padding: 0;
    text-align: left;
    font-family: var(--font-body);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.decant-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.decant-card.is-selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color), var(--shadow-soft);
}

.decant-card.is-hidden {
    display: none;
}

.decant-thumb {
    display: block;
    flex: 0 0 auto;
    height: 150px;
    overflow: hidden;
    background: var(--surface-color);
}

@media (max-width: 639px) {
    .decant-thumb {
        height: 120px;
    }

    .decant-body {
        padding: 0.85rem 0.9rem 1rem;
    }

    .decant-name {
        font-size: 0.98rem;
    }

    .decant-notes {
        font-size: 0.76rem;
    }
}

.decant-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    width: 1.9rem;
    height: 1.9rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(15, 13, 11, 0.85);
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: all 300ms ease;
}

.decant-card.is-selected .decant-check {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--background-color);
}

.decant-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem 1.25rem 1.35rem;
}

.decant-brand {
    overflow: hidden;
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.decant-name {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.6em;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.decant-notes {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.builder-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 13, 11, 0.92);
    padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.box-size-prices {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.6rem;
}

.box-size-price-line {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.box-size-price-value {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
}

.box-size-price-note {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}