/* Explain: Styles for various UI components like cards, buttons, forms, and ads. */
.site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(251, 252, 255, 0.88));
    backdrop-filter: blur(18px);
}

.brand-logo-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
}

.brand-logo-frame {
    display: block;
    width: 8.25rem;
    height: 2.5rem;
    overflow: hidden;
}

.brand-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 640px) {
    .brand-logo-frame {
        width: 9.75rem;
        height: 3rem;
    }
}

.brand-logo-frame--sm {
    width: 7.5rem;
    height: 2.25rem;
}

.nav-dropdown > summary,
.nav-mobile-group > summary {
    cursor: pointer;
    list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker,
.nav-mobile-group > summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown > summary {
    color: var(--text-color);
    transition: color 200ms ease;
}

.nav-dropdown > summary:hover {
    color: var(--primary-hover);
}

.nav-dropdown > summary i {
    transition: transform 200ms ease;
}

.nav-dropdown[open] > summary {
    color: var(--primary-color);
}

.nav-dropdown[open] > summary i {
    transform: rotate(180deg);
}

.nav-dropdown-panel a:hover {
    background: var(--surface-color);
}

.is-hidden {
    display: none !important;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--sage-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.section-kicker::before {
    display: inline-block;
    width: 2.2rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.card-soft {
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 252, 0.92));
    box-shadow: var(--shadow-soft);
}

.card-hover {
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.card-hover:hover {
    border-color: rgba(29, 63, 145, 0.34);
    box-shadow: 0 26px 60px rgba(18, 33, 59, 0.14);
    transform: translateY(-4px);
}

.pill {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    padding: 0.3rem 0.8rem;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.7;
}

.pill-soft {
    background: var(--terracotta-soft);
    color: var(--text-muted);
}

.icon-badge {
    display: inline-flex;
    width: 2.9rem;
    height: 2.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.1rem;
}

.field {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid var(--glass-border);
    background: var(--field-bg);
    padding: 0.8rem 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.field::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.field:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--sage-soft);
}

.field-icon {
    padding-right: 2.75rem;
}

.field.is-readonly {
    background: var(--surface-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.field-compact {
    height: 2.5rem;
    padding: 0.35rem 2.25rem 0.35rem 0.75rem;
    font-size: 0.82rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 700;
}

.form-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-status.success {
    color: #1F7A4D;
}

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

.form-status.info {
    color: var(--text-muted);
}

.form-status.warn {
    color: #B26A00;
}

.step-pill {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.72);
    padding: 0.35rem 0.9rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    transition: border-color 250ms ease, background 250ms ease, color 250ms ease;
}

.step-pill-num {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 0.72rem;
    font-weight: 700;
}

.step-pill.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.step-pill.is-active .step-pill-num {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.step-pill.is-done {
    border-color: rgba(31, 122, 77, 0.34);
    background: rgba(31, 122, 77, 0.1);
    color: #1F7A4D;
}

.step-pill.is-done .step-pill-num {
    background: rgba(31, 122, 77, 0.16);
    color: #1F7A4D;
}

.source-note--db {
    border-color: rgba(31, 122, 77, 0.34);
    background: rgba(31, 122, 77, 0.08);
    color: #1F7A4D;
}

.source-note--none {
    border-color: var(--glass-border);
    background: var(--terracotta-soft);
    color: var(--accent-color);
}

.source-note--error {
    border-color: rgba(192, 57, 43, 0.34);
    background: rgba(192, 57, 43, 0.08);
    color: #C0392B;
}

[data-shabbat-note] {
    display: none;
    margin-top: 0.9rem;
    border-radius: 0.9rem;
    background: var(--terracotta-soft);
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

html.is-shabbat [data-shabbat-note] {
    display: block;
}

.dir-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.68);
    padding: 1.4rem;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.dir-card:hover {
    border-color: rgba(29, 63, 145, 0.34);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.dir-list-shell {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.dir-list-head {
    display: none;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: var(--surface-color);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.dir-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dir-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    border-top: 1px solid var(--glass-border);
    padding: 1rem 1.25rem;
    transition: background 250ms ease;
}

.dir-row:first-child {
    border-top: 0;
}

.dir-row:hover {
    background: rgba(255, 255, 255, 0.95);
}

.dir-row-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.dir-row-cell {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.dir-row-cell::before {
    content: attr(data-label) ": ";
    color: var(--sage-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.dir-row-action {
    padding-top: 0.35rem;
}

@media (min-width: 768px) {
    .dir-list-head {
        display: grid;
    }

    .dir-row {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
        align-items: center;
        gap: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .dir-row-cell::before {
        content: none;
    }

    .dir-row-action {
        padding-top: 0;
    }
}

.chip-filter {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.72);
    padding: 0.4rem 1rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    transition: all 250ms ease;
}

.chip-filter:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.chip-filter.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.stars {
    color: #F07A20;
    letter-spacing: 0.08em;
}

.review-stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem 0;
}

.review-star {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(29, 63, 145, 0.22);
    font-size: 1.4rem;
    line-height: 1;
    transition: color 200ms ease, transform 200ms ease, filter 200ms ease;
}

.review-star i {
    pointer-events: none;
}

.review-star:hover {
    color: rgba(240, 122, 32, 0.75);
    transform: scale(1.1);
}

.review-star.is-lit {
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px rgba(240, 122, 32, 0.55));
}

.review-star.is-preview {
    color: rgba(240, 122, 32, 0.6);
    filter: none;
}

.review-stars.is-picked .review-star.is-lit {
    animation: reviewStarPop 340ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reviewStarPop {
    0% {
        transform: scale(0.86);
    }

    60% {
        transform: scale(1.16);
    }

    100% {
        transform: scale(1);
    }
}

.review-rating-hint {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.7;
}

.review-rating-hint.is-active {
    color: var(--accent-color);
}

@media (prefers-reduced-motion: reduce) {
    .review-star,
    .review-stars.is-picked .review-star.is-lit {
        animation: none;
        transform: none;
    }
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    overflow-y: auto;
    background: rgba(18, 33, 59, 0.55);
    padding: 1rem;
}

.modal-shell.is-open {
    display: block;
}

.forum-modal {
    position: fixed;
    inset: 0;
    z-index: 75;
    display: none;
    overflow-y: auto;
    background: rgba(18, 33, 59, 0.58);
    padding: 1rem;
}

.forum-modal.is-open {
    display: block;
}

.forum-modal .forum-modal-panel {
    margin: 3rem auto 2rem;
    width: 100%;
    max-width: 34rem;
    border: 1px solid var(--glass-border);
    background: #ffffff;
}

@media (max-width: 639px) {
    .forum-modal .forum-modal-panel {
        margin: 1.5rem auto;
    }
}

.modal-panel {
    margin: 2.5rem auto 1rem;
    width: 100%;
    max-width: 32rem;
}

.board-composer-overlay {
    position: fixed;
    inset: 0;
    z-index: 78;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
    background: rgba(18, 33, 59, 0.55);
    backdrop-filter: blur(3px);
}

.board-composer-overlay.is-open {
    display: flex;
}

.board-composer-panel {
    position: relative;
    width: 100%;
    max-width: 38rem;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 30px 80px rgba(18, 33, 59, 0.28);
}

@media (min-width: 640px) {
    .board-composer-panel {
        padding: 1.75rem;
    }
}

body.board-modal-open {
    overflow: hidden;
    padding-inline-end: var(--board-scrollbar-gap, 0px);
}

.site-header {
    padding-inline-end: var(--board-scrollbar-gap, 0px);
}

.auth-login-box {
    display: none;
}

.auth-user-box {
    display: none;
}

#authUserBox button[data-signout] {
    display: none;
}

#authUserBox.is-visible button[data-signout] {
    display: inline-flex;
}

.login-card {
    --s123-auth-btn-height: 3rem;
    --s123-auth-btn-radius: 999px;
}

.login-card .s123-auth-provider-btn {
    width: 100%;
    min-height: var(--s123-auth-btn-height);
    border: 1px solid var(--glass-border);
    border-radius: var(--s123-auth-btn-radius);
    background: #ffffff;
    color: var(--text-color);
    font-weight: 700;
    transition: background 200ms ease, border-color 200ms ease;
}

.login-card .s123-auth-provider-btn--google:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.auth-login-box.is-hidden {
    display: none;
}

.hero-image-frame,
.amenity-image-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.footer-title {
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

@media (min-width: 1024px) {
    .auth-login-box {
        display: flex;
    }

    .auth-user-box.is-visible {
        display: flex;
    }
}

.family-cell {
    border: 1px solid var(--glass-border);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.55rem 0.85rem;
}

.family-cell-label {
    color: var(--sage-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.family-cell-value {
    margin: 0.15rem 0 0;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
}

.family-cell-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.choice-card {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.6rem 1.1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

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

.choice-card.is-selected {
    border-color: var(--primary-color);
    background: var(--secondary-color);
    box-shadow: 0 12px 26px rgba(29, 63, 145, 0.18);
}

.choice-card.is-selected i {
    color: var(--accent-color);
}

.ad-stage {
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
}

.ad-frame {
    position: relative;
    aspect-ratio: 210 / 297;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ad-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms ease;
}

.ad-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.ad-empty {
    display: flex;
    aspect-ratio: 210 / 297;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px dashed var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    padding: 1.5rem;
    text-align: center;
}

.ad-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.ad-nav {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-color);
    transition: background 200ms ease, border-color 200ms ease;
}

.ad-nav:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.ad-dot {
    width: 0.6rem;
    height: 0.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--glass-border);
    transition: width 200ms ease, background 200ms ease;
}

.ad-dot.is-active {
    width: 1.6rem;
    background: var(--accent-color);
}

.ad-caption {
    margin-top: 0.65rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

@keyframes ad-anim-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.14);
    }
}

@keyframes ad-anim-pan {
    from {
        transform: scale(1.1) translateX(-2.5%);
    }

    to {
        transform: scale(1.1) translateX(2.5%);
    }
}

@keyframes ad-anim-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.ad-slide img.anim-zoom {
    animation: ad-anim-zoom 14s ease-out forwards;
}

.ad-slide img.anim-pan {
    animation: ad-anim-pan 14s ease-in-out infinite alternate;
}

.ad-slide img.anim-pulse {
    animation: ad-anim-pulse 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .ad-slide img.anim-zoom,
    .ad-slide img.anim-pan,
    .ad-slide img.anim-pulse {
        animation: none;
    }
}

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

    .hero-image-frame,
    .amenity-image-wrap {
        border-radius: 2rem;
    }
}