/* Explain: Styles for admin modals, hero banner toggles, and gallery sorting UI. */
.site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
    backdrop-filter: blur(18px);
}

.hero-logo-mark {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    -webkit-mask: url("https://files.cdn-files-a.com/uploads/12355238/normal_filter_nobg_6aaeee86c68c4.png?format=avif") center / contain no-repeat;
    mask: url("https://files.cdn-files-a.com/uploads/12355238/normal_filter_nobg_6aaeee86c68c4.png?format=avif") center / contain no-repeat;
}

.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(255, 255, 255, 0.6));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(21, 29, 64, 0.15);
    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 {
    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.65);
    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(21, 29, 64, 0.3);
    box-shadow: 0 26px 80px rgba(21, 29, 64, 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 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: #151E3D;
}

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

.member-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    overflow-y: auto;
    background: rgba(21, 29, 64, 0.4);
    backdrop-filter: blur(4px);
}

.member-overlay.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.member-panel {
    width: 100%;
    max-width: 38rem;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 2.25rem;
    border: 1px solid var(--glass-border);
    background: var(--background-color);
    padding: clamp(1.75rem, 5vw, 3rem);
    box-shadow: 0 34px 100px rgba(21, 29, 64, 0.28);
    animation: member-drop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes member-drop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

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

.admin-toggle.is-active {
    border-color: var(--accent-color);
    background: var(--terracotta-soft);
    color: var(--accent-color);
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(21, 29, 64, 0.42);
    backdrop-filter: blur(4px);
}

.admin-modal.is-open {
    display: flex;
}

.admin-modal-panel {
    width: 100%;
    max-width: 30rem;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: 2.25rem;
    background: var(--background-color);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    box-shadow: 0 34px 100px rgba(21, 29, 64, 0.28);
    animation: member-drop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item {
    position: relative;
}

.artwork-admin-actions {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.artwork-delete-btn,
.artwork-archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 200ms ease, background 200ms ease;
}

.artwork-delete-btn {
    background: #b91c1c;
    box-shadow: 0 12px 28px rgba(185, 28, 28, 0.35);
}

.artwork-delete-btn:hover {
    background: #991b1b;
    transform: scale(1.04);
}

.artwork-archive-btn {
    background: #b45309;
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.32);
}

.artwork-archive-btn:hover {
    background: #92400e;
    transform: scale(1.04);
}

.artwork-archive-btn.artwork-publish-btn {
    background: #15803d;
    box-shadow: 0 12px 28px rgba(21, 128, 61, 0.32);
}

.artwork-archive-btn.artwork-publish-btn:hover {
    background: #166534;
}

.artwork-delete-btn i,
.artwork-archive-btn i {
    font-size: 0.82rem;
}

.gallery-sort-btn {
    display: none;
}

.admin-mode .gallery-sort-btn {
    display: inline-flex;
    align-items: center;
}

.gallery-sort-bar {
    display: none;
    margin-top: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
    padding: 1.1rem 1.4rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

body.gallery-sorting .gallery-sort-bar {
    display: block;
}

body.gallery-sorting .gallery-item {
    cursor: grab;
    outline: 1px dashed rgba(191, 162, 114, 0.6);
}

body.gallery-sorting .gallery-item:active {
    cursor: grabbing;
}

.gallery-item.is-lifting {
    transform: scale(1.05);
    box-shadow: 0 32px 70px rgba(21, 29, 64, 0.28);
    z-index: 30;
    pointer-events: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

body.gallery-dragging {
    -webkit-user-select: none;
    user-select: none;
}

body.gallery-sorting .gallery-item {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.artwork-drag-handle {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: var(--button-color);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(21, 29, 64, 0.28);
    cursor: grab;
    pointer-events: none;
}

.hero-admin-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(21, 29, 64, 0.45);
    backdrop-filter: blur(4px);
}

.hero-admin-modal.is-open {
    display: flex;
}

.hero-admin-panel {
    width: 100%;
    max-width: 42rem;
    max-height: 88vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: 2.25rem;
    background: var(--background-color);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 34px 100px rgba(21, 29, 64, 0.28);
}

.hero-admin-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    background: var(--surface-color);
    padding: 0.6rem 0.85rem;
}

.hero-admin-row img {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 0.85rem;
    object-fit: cover;
    background: var(--secondary-color);
}

.hero-admin-toggle {
    display: inline-flex;
    min-height: 2.6rem;
    flex-shrink: 0;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface-color);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 200ms ease;
}

.hero-admin-toggle:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.hero-admin-toggle.is-on {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
}

.hero-admin-toggle:disabled {
    opacity: 0.6;
}
