/* content wrapper */
.booking-banner-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    width: stretch;
}
.booking-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

/* banner / hero */
.booking-banner {
    position: relative;
    overflow: hidden;
}
.booking-banner--has-image {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 8px;
}
.booking-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.booking-banner-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    pointer-events: none;
}

/* header (title + burgee row) */
.booking-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px 6px 0;
    box-sizing: border-box;
}
.booking-header--on-image {
    position: relative;
    z-index: 1;
    padding: 20px 0 20px;
}
.booking-subtitle {
    font-size: 13px;
    color: #6a7482;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.booking-subtitle--on-image {
    color: rgba(255,255,255,0.8);
}
.booking-header-title--on-image {
    color: #fff;
}
.booking-burgee {
    width: 72px;
    height: 72px;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 5px;
    border: 1px solid #e4ebf1;
    background-color: #fff;
    flex-shrink: 0;
}
.booking-burgee--on-image {
    border-color: rgba(255,255,255,0.3);
}

/* info / rule card */
.booking-info-card {
    background: #f8fafc;
    border: 1px solid #e4ebf1;
    padding: 14px 16px;
}
.booking-info-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.booking-info-icon {
    color: #4a56f8;
    font-size: 16px;
    margin-top: 2px;
}
.booking-info-type {
    font-size: 14px;
    font-weight: 500;
    color: #283664;
    margin-bottom: 2px;
}
.booking-info-message {
    font-size: 13px;
    color: #6a7482;
    line-height: 1.5;
}

/* expandable note card */
.booking-note-card {
    border: 1px solid #e4ebf1;
    padding: 14px 16px;
    position: relative;
}
.booking-note-body {
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.booking-note-text {
    font-size: 14px;
    line-height: 1.6;
    color: #3a3f4b;
}
.booking-note-text p {
    margin: 0 0 6px;
}
.booking-note-text p:last-child {
    margin-bottom: 0;
}
.booking-note-fade {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}
.booking-note-toggle {
    display: block;
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    color: #4a56f8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.booking-note-toggle:hover {
    color: #1a1d2e;
}

/* sticky toolbar */
.booking-sticky-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding: 16px;
    margin: 0 -16px;
    border-bottom: 1px solid #e4ebf1;
}
/* pill picker */
.booking-pill-picker-wrap {
    position: relative;
}
.booking-pill-picker {
    display: flex;
    align-items: center;
    border: 1px solid #e4ebf1;
    border-radius: 50px;
    overflow: hidden;
}
.booking-pill-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    font-size: 14px;
    color: #292e4a;
    white-space: nowrap;
    user-select: none;
    transition: background-color 0.1s ease;
}
.booking-pill-section:hover {
    background-color: #f8fafc;
}
.booking-pill-icon {
    margin-right: 6px;
    font-size: 14px;
    color: #6a7482;
}

/* calendar dropdown */
.booking-calendar-dropdown {
    position: absolute;
    top: 4px;
    left: 0;
    z-index: 100;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e4ebf1;
}

/* anchor row: invisible flex row mirroring pill sections, used to position dropdowns under their trigger */
.booking-pill-drop-row {
    display: flex;
    pointer-events: none;
}
.booking-pill-drop-anchor {
    position: relative;
    flex: 1;
    pointer-events: none;
}
.booking-pill-drop-anchor > * {
    pointer-events: auto;
}
.booking-calendar-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px 14px;
    border-top: 1px solid #e4ebf1;
}
.booking-calendar-close-btn {
    background: #4a56f8;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 7px 14px;
}
.booking-calendar-close-btn:hover {
    background: #1a1d2e;
}

/* generic picker dropdown (player count, party size, time, etc.) */
.booking-picker-dropdown {
    position: absolute;
    top: 4px;
    left: 0;
    z-index: 100;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e4ebf1;
    padding: 6px 0;
    min-width: 160px;
    max-height: 260px;
    overflow-y: auto;
}
.booking-picker-dropdown--right {
    left: auto;
    right: 0;
}
.booking-picker-option {
    padding: 10px 20px;
    font-size: 14px;
    color: #292e4a;
    transition: background-color 0.1s ease;
}
.booking-picker-option:hover {
    background-color: #f3f4f8;
}
.booking-picker-option.active {
    font-weight: 600;
    color: #4a56f8;
}

/* secondary toolbar (course / filter selects) */
.booking-toolbar {
    margin-top: 8px;
}
.booking-toolbar-selects {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* loading skeleton area */
.booking-loading-wrap {
    padding: 16px 6px;
}

/* empty state */
.booking-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6a7482;
}
.booking-empty-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    color: #c4cdd6;
}
.booking-empty-text {
    font-size: 14px;
    line-height: 1.5;
}

/* slot card list */
.booking-slot-list {
    padding: 12px 0;
}
.booking-slot-card {
    border: 1px solid #e4ebf1;
    padding: 14px 18px;
    margin-bottom: 10px;
    cursor: default;
    transition: border-color 0.1s ease, box-shadow 0.1s ease;
}
.booking-slot-card--bookable {
    cursor: pointer;
}
.booking-slot-card--bookable:hover, .booking-slot-card--expanded {
    border-color: #c7d3dd;
    box-shadow: 0 1px 4px rgba(74, 86, 248, 0.08);
}
.booking-slot-card--disabled {
    opacity: 0.5;
}
.booking-slot-requested-pill {
    font-size: 13px;
    font-weight: 500;
    color: #4a56f8;
    background: #eef0fe;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

/* area chips (shown when a time card is expanded) */
.booking-area-chips-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e4ebf1;
}
.booking-area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}
.booking-area-chips-title {
    font-size: 13px;
    font-weight: 500;
    color: #6a7482;
}
.booking-area-chip {
    border: 1px solid #e4ebf1;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 5px;
    background: #fff;
    transition: background-color 0.1s ease;
}
.booking-area-chip:hover {
    /* border-color: #c7d3dd; */
    /* color: #4a56f8; */
    background: #f8f9fb;
}
.booking-area-chip--disabled {
    /* border-color: #c4cdd6; */
    color: #8c95a1;
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}
.booking-slot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.booking-slot-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.booking-slot-expand-icon {
    font-size: 12px;
    color: #9aa4af;
    transition: transform 0.2s ease;
}
.booking-slot-time {
    font-size: 17px;
    font-weight: 500;
}
.booking-slot-badge {
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}
.booking-slot-badge--free {
    background: #e8f5ee;
    color: #2d7a4f;
}
.booking-slot-badge--muted {
    background: #f1f3f6;
    color: #8c95a1;
}
.booking-slot-badge--warning {
    background: #fef3e6;
    color: #b5760a;
}

/* date navigation */
.booking-date-nav {
    display: flex;
    justify-content: space-between;
    padding: 16px 6px 8px;
}


/* responsive */
@media (max-width: 480px) {
    /* .booking-content-wrap {
        padding: 0 10px;
    } */
    .booking-slot-card {
        padding: 12px 14px;
    }
    .booking-slot-time {
        font-size: 15px;
    }
}
