.seat-finder-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0 0;
    padding: 0 16px;
}

.seat-finder {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #F2EEE9;
    border: 1px solid #C19A5B;
    border-radius: 50px;
    padding: 10px 22px;
    color: #8C7954;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    max-width: 280px;
    overflow: hidden;
    transition:
        max-width 0.4s ease,
        border-radius 0.4s ease,
        padding 0.4s ease,
        background 0.3s ease;
}

.seat-finder:hover,
.seat-finder:focus-visible {
    background: #FFFFFF;
    text-decoration: none;
}

.seat-finder-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8C7954;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #F2EEE9;
    transition: width 0.4s ease, height 0.4s ease;
}

.seat-finder-icon svg {
    width: 16px;
    height: 16px;
    transition: width 0.4s ease, height 0.4s ease;
}

.seat-finder-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    white-space: nowrap;
}

.seat-finder-title {
    color: #8C7954 !important;
    font-size: 14px;
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.3;
}

.seat-finder-subtitle {
    color: #8C7954 !important;
    font-size: 12px;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease 0.1s, max-height 0.4s ease;
}

.seat-finder-cta {
    background: #8C7954;
    color: #F2EEE9 !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.25s ease 0.1s, max-width 0.4s ease, padding 0.4s ease;
    padding-left: 0;
    padding-right: 0;
}

/* ===== Expanded state (hover on desktop) ===== */
@media (hover: hover) and (pointer: fine) {
    .seat-finder:hover,
    .seat-finder:focus-visible {
        max-width: 520px;
        border-radius: 12px;
        padding: 16px 18px;
    }

    .seat-finder:hover .seat-finder-icon,
    .seat-finder:focus-visible .seat-finder-icon {
        width: 44px;
        height: 44px;
    }

    .seat-finder:hover .seat-finder-icon svg,
    .seat-finder:focus-visible .seat-finder-icon svg {
        width: 22px;
        height: 22px;
    }

    .seat-finder:hover .seat-finder-title,
    .seat-finder:focus-visible .seat-finder-title {
        font-family: Georgia, serif;
        font-size: 18px;
        letter-spacing: 0;
    }

    .seat-finder:hover .seat-finder-subtitle,
    .seat-finder:focus-visible .seat-finder-subtitle {
        opacity: 0.75;
        max-height: 24px;
        margin-top: 2px;
    }

    .seat-finder:hover .seat-finder-cta,
    .seat-finder:focus-visible .seat-finder-cta {
        opacity: 1;
        max-width: 120px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===== Modal styles ===== */
.seat-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 16px 16px;
    overflow-y: auto;
}

.seat-modal-backdrop.is-open {
    display: flex;
}

.seat-modal {
    background: #F2EEE9;
    width: 100%;
    max-width: 520px;
    border: 1px solid #C19A5B;
    border-radius: 6px;
    overflow: hidden;
    animation: seatModalIn 0.25s ease-out;
}

@keyframes seatModalIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.seat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #DED7C7;
}

.seat-modal-title {
    color: #8C7954;
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    margin: 0;
}

.seat-modal-close {
    background: transparent;
    border: none;
    color: #C19A5B;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
}

.seat-modal-body {
    padding: 24px;
}

.seat-search-wrap {
    position: relative;
    margin-bottom: 20px;
}

.seat-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #C19A5B;
    pointer-events: none;
}

.seat-search-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #C19A5B;
    border-radius: 4px;
    background: #FFFFFF;
    color: #8C7954;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.seat-search-input:focus {
    border-color: #8C7954;
}

.seat-status {
    color: #8C7954;
    font-size: 12px;
    letter-spacing: 1px;
    margin: 0 0 12px;
    text-transform: uppercase;
    min-height: 16px;
}

.seat-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.seat-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1px solid #DED7C7;
    border-radius: 4px;
}

.seat-result-name {
    color: #8C7954;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.seat-result-table-num {
    color: #C19A5B;
    font-family: Georgia, serif;
    font-size: 22px;
    margin: 0;
    line-height: 1;
}

.seat-result-table-label {
    color: #8C7954;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 2px 0 0;
    text-transform: uppercase;
    text-align: right;
}

.seat-empty {
    text-align: center;
    color: #8C7954;
    font-size: 14px;
    padding: 32px 16px;
    opacity: 0.75;
}

body.seat-modal-open {
    overflow: hidden;
}