/* Explain: Styles for UI components like sections, cards, forms, and specific page elements. */
.site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(18px);
}

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

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 2px;
    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.6));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    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.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

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

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

.floating-note {
    position: absolute;
    inset-inline-end: -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;
    inset-inline-end: 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.7);
    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: 700;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: 0.95rem;
    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(240, 180, 41, 0.5);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 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.5rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.45rem var(--sage-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.85rem;
    font-weight: 700;
}

.form-status.success {
    color: #15803d;
}

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

.city-chip {
    transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.city-chip .fa-chevron-down {
    transition: transform 300ms ease;
}

.city-chip:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.city-chip-active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
}

.city-chip-active .fa-location-dot,
.city-chip-active .fa-chevron-down {
    color: #ffffff;
}

.city-chip-active .fa-chevron-down {
    transform: rotate(180deg);
}

.city-panel {
    animation: cityPanelFade 300ms ease;
}

@keyframes cityPanelFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.mobile-book-bar {
    position: fixed;
    inset-inline-end: 0;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.95);
    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.6);
    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.22);
}

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

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

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

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

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

.project-prose {
    margin-top: 1.5rem;
    max-width: none;
    color: var(--text-muted);
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem 3rem 2.5rem 2.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.project-prose::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    bottom: 2.5rem;
    inset-inline-start: 0;
    width: 6px;
    background: var(--accent-color);
    border-radius: 4px 0 0 4px;
}

.project-prose > * {
    position: relative;
    z-index: 1;
}

.project-prose > * + * {
    margin-top: 1.6rem;
}

.project-prose ::selection {
    background: var(--accent-color);
    color: #ffffff;
}

.project-prose p {
    font-size: 1.08rem;
    line-height: 2.1;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: 0.02em;
    margin: 0;
}

.project-prose p + p {
    margin-top: 1.4rem;
}

.project-prose p:first-of-type {
    color: var(--primary-color);
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.95;
    text-align: start;
    border-inline-start: 4px solid var(--accent-color);
    padding-inline-start: 1.1rem;
    padding-block: 0.25rem;
}

.project-prose p:not(:first-of-type) strong,
.project-prose p:not(:first-of-type) b {
    display: inline;
}

.project-prose h1,
.project-prose h2,
.project-prose h3,
.project-prose h4 {
    margin-top: 1.9rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.5;
}

.project-prose h2 {
    font-size: 1.4rem;
}

.project-prose h3 {
    font-size: 1.18rem;
}

.project-prose h4 {
    font-size: 1.05rem;
}

.project-prose ul,
.project-prose ol {
    margin-top: 1rem;
    padding-inline-start: 1.5rem;
}

.project-prose li {
    margin-top: 0.65rem;
    line-height: 1.95;
}

.project-prose li::marker {
    color: var(--accent-color);
    font-weight: 700;
}

.project-prose strong,
.project-prose b {
    color: var(--text-color);
    font-weight: 700;
}

.project-prose a {
    color: var(--accent-color);
    text-decoration: underline;
}

.project-prose blockquote {
    margin-top: 1.5rem;
    border-inline-start: 3px solid var(--accent-color);
    background: var(--field-bg);
    border-radius: 0 1rem 1rem 0;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    font-weight: 500;
}