* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', serif;
    background: #f6e9d5;
    min-height: 100vh;
    color: #0f2a27;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    padding: 2.5rem 0 4rem;
}

/* Header (Zola-inspired) */
.site-header {
    background: #0b6f55;
    color: #ffffff;
}

.topbar {
    padding: 0.9rem 0;
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.masthead {
    padding: 2.25rem 2rem 2rem;
    text-align: center;
}

.site-title {
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.page-heading {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
}

.search-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.25rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.search-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #143a35;
    text-align: center;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(15, 42, 39, 0.18);
    border-radius: 0;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
}

.search-input:focus {
    outline: none;
    border-color: #b00053;
}

.cta-button {
    width: 100%;
    padding: 1rem 2rem;
    background-color: #b00053;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'EB Garamond', serif;
}

.cta-button:hover {
    background-color: #8e0042;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 0, 83, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.results-section, .table-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.25rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.search-results {
    text-align: center;
}

.guest-list {
    list-style: none;
    margin-top: 1.5rem;
}

.guest-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(246, 233, 213, 0.55);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.guest-item:hover {
    background: rgba(246, 233, 213, 0.8);
    border-color: #b00053;
}

.guest-item.selected {
    background: #fff5f9;
    border-color: #b00053;
}

.table-color-green {
    color: #0b6f55;
}

.table-color-magenta {
    color: #b00053;
}

.table-color-coral {
    color: #f26b5b;
}

.library-card {
    background: #fffdf8;
    border: 2px solid rgba(0, 0, 0, 0.55);
    border-radius: 0;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    font-family: 'EB Garamond', serif;
    max-width: 520px;
    margin: 0 auto;
    overflow: hidden;
}

.library-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: 0;
}

.checkout-meta {
    position: relative;
    z-index: 2;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.55);
    margin-bottom: 0.75rem;
}

.meta-row {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    padding: 0.15rem 0;
}

.meta-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(0, 0, 0, 0.75);
    white-space: nowrap;
}

.meta-value {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
}

.big-table-number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5rem;
    line-height: 1;
    font-weight: 700;
    margin-top: 0.75rem;
}

.paired-guest-suggestion {
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0, 0, 0, 0.55);
    text-align: center;
}

.suggestion-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 0.75rem;
}

.paired-guest-button {
    padding: 0.75rem 1.5rem;
    background-color: #0b6f55;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', serif;
}

.paired-guest-button:hover {
    background-color: #085a44;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 111, 85, 0.3);
}

.paired-guest-button:active {
    transform: translateY(0);
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #d4c5b9;
}

.card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.table-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.guest-name {
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 1rem;
}

.card-details {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
}

.date-stamp {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #d4c5b9;
    text-align: center;
    font-size: 0.7rem;
    color: #868e96;
}

.no-results {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .topbar-inner {
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .masthead {
        padding: 1.75rem 1rem 1rem;
    }

    .site-title {
        font-size: 2rem;
    }
    .big-table-number {
        font-size: 7.5rem;
    }
    
    .search-section, .results-section, .table-section {
        padding: 1.5rem;
    }
    
    .table-number {
        font-size: 2.5rem;
    }
}
