/* ═══════════════════════════════════════════════════════════════════
   FULL BOOKING PAGE CSS
   ═══════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:             #dc2626;
    --primary-dark:        #991b1b;
    --primary-light:       #f87171;
    --bg:                  #0a0a0a;
    --card-bg:             #1a1a1a;
    --text:                #ffffff;
    --muted:               #9ca3af;
    --border:              #262626;
    --bc-bg-secondary:     #1a1a24;
    --bc-bg-card:          #242433;
    --bc-accent-primary:   #ff4757;
    --bc-accent-secondary: #ff6b7a;
    --bc-text-primary:     #ffffff;
    --bc-text-secondary:   #a8a8b8;
    --bc-border-color:     #2d2d3f;
    --bc-hover-bg:         #2d2d42;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); padding: 20px; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; }
.hero { background: linear-gradient(135deg, var(--card-bg) 0%, #262626 100%); border-radius: 16px; padding: 24px; display: flex; gap: 24px; margin-bottom: 32px; border: 1px solid var(--border); box-shadow: 0 4px 6px rgba(220,38,38,.1); }
.hero-thumb { width: 200px; height: 200px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 32px; margin-bottom: 12px; background: linear-gradient(90deg, #fff, var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
h2 { font-size: 24px; margin-bottom: 24px; color: var(--text); }
.booking-wrap { display: grid; grid-template-columns: 1fr 400px; gap: 24px; }
.left, .right { background: var(--card-bg); border-radius: 16px; padding: 24px; border: 1px solid var(--border); }

.court-details-section { background: #1a1a1a; border: 1px solid #262626; border-radius: 16px; padding: 6px; }
.court-details-content { color: #e5e7eb; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-height: 1.6em; transition: max-height .45s cubic-bezier(.4,0,.2,1); }
.court-details-content.expanded { -webkit-line-clamp: unset; max-height: 600px; overflow: visible; }
.court-details-content h3 { color: #f87171; font-size: 18px; margin: 20px 0 15px; }
.court-details-content p  { margin-bottom: 15px; }
.court-details-content strong { color: #f87171; }
.court-details-content ul, .court-details-content ol { margin-left: 20px; margin-bottom: 15px; }
.court-details-content li { margin-bottom: 8px; }
.court-details-toggle { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; background: none; border: none; color: #f87171; font-size: .85rem; font-weight: 600; cursor: pointer; }
.court-details-toggle:hover { opacity: .75; }
.court-details-toggle .toggle-arrow { display: inline-block; transition: transform .35s; font-style: normal; }
.court-details-toggle.open .toggle-arrow { transform: rotate(180deg); }

.popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; justify-content: center; align-items: center; }
.popup-overlay.active { display: flex; }
.popup-box { background: #fff; width: 90%; max-width: 420px; padding: 26px 24px; border-radius: 14px; text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,.4); animation: popupScale .35s ease; }
.popup-box h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.popup-box p  { font-size: 14px; color: #666; margin-bottom: 22px; }
.popup-icon   { font-size: 40px; margin-bottom: 12px; display: block; }
.popup-box-success h3 { color: #059669; }
.popup-actions { display: flex; gap: 12px; }
.popup-actions button { flex: 1; padding: 11px 0; border-radius: 10px; border: none; font-weight: 600; cursor: pointer; }
.btn-login { background: #e63946; color: #fff; } .btn-login:hover { background: #c71f2d; }
.btn-cancel { background: #f1f1f1; }
@keyframes popupScale { from { transform:scale(.85); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes popIn      { from { transform:scale(.85); opacity:0; } to { transform:scale(1); opacity:1; } }

.bc-body-wrapper { font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, #0a0a0f, #1a1428); color: var(--bc-text-primary); min-height: 100vh; padding: 20px; }
.bc-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 400px; gap: 30px; animation: bc-fadeIn .6s ease-out; }
@keyframes bc-fadeIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.bc-calendar-section { background: var(--bc-bg-secondary); border-radius: 24px; padding: 40px; border: 1px solid var(--bc-border-color); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.bc-section-title { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; color: var(--bc-accent-primary); margin-bottom: 30px; letter-spacing: -.5px; }
.bc-calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.bc-month-year { font-size: 24px; font-weight: 600; }
.bc-nav-buttons { display: flex; gap: 10px; }
.bc-nav-btn { background: var(--bc-bg-card); border: 1px solid var(--bc-border-color); color: var(--bc-text-primary); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .3s; }
.bc-nav-btn:hover { background: var(--bc-accent-primary); border-color: var(--bc-accent-primary); transform: scale(1.05); }
.bc-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 20px; }
.bc-weekday { text-align: center; font-size: 12px; font-weight: 600; color: var(--bc-text-secondary); padding: 10px 0; text-transform: uppercase; letter-spacing: 1px; }
.bc-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .3s cubic-bezier(.4,0,.2,1); position: relative; background: var(--bc-bg-card); border: 1px solid transparent; }
.bc-day:not(.bc-day-empty):not(.bc-day-past):hover { background: var(--bc-hover-bg); transform: scale(1.08); border-color: var(--bc-accent-secondary); box-shadow: 0 8px 20px rgba(255,71,87,.2); }
.bc-day-empty { background: transparent; cursor: default; }
.bc-day-past  { color: var(--bc-text-secondary); opacity: .3; cursor: not-allowed; }
.bc-day-selected { background: linear-gradient(135deg, var(--bc-accent-primary), var(--bc-accent-secondary)); color: white; font-weight: 600; transform: scale(1.05); box-shadow: 0 8px 25px rgba(255,71,87,.4); }
.bc-day-has-available { background: rgba(16,185,129,.18) !important; border: 1px solid rgba(16,185,129,.5) !important; color: #fff !important; }
.bc-day-has-available:hover { background: rgba(16,185,129,.35) !important; border-color: #10b981 !important; }
.bc-day-selected.bc-day-has-available { background: linear-gradient(135deg, var(--bc-accent-primary), var(--bc-accent-secondary)) !important; border-color: var(--bc-accent-primary) !important; }

.bc-time-slots { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--bc-border-color); }
.bc-time-slots-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.bc-slots-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.bc-time-slot { padding: 11px 20px; background: var(--bc-bg-card); border: 1px solid var(--bc-border-color); border-radius: 10px; cursor: pointer; transition: all .25s; white-space: nowrap; font-size: 14px; font-weight: 500; }
.bc-time-slot .bc-slot-time { display: block; font-size: 14px; font-weight: 600; color: var(--bc-text-primary); }
.bc-time-slot:hover:not(.bc-time-slot-unavailable) { border-color: var(--bc-accent-secondary); background: var(--bc-hover-bg); transform: translateY(-2px); }
.bc-time-slot-selected { background: var(--bc-accent-primary) !important; border-color: var(--bc-accent-primary) !important; box-shadow: 0 4px 16px rgba(255,71,87,.4); }
.bc-time-slot-selected .bc-slot-time { color: #fff; }
.bc-time-slot-unavailable { opacity: .4; cursor: not-allowed; }

#bcCourtsSection { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--bc-border-color); }
.bc-courts-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bc-courts-title { font-size: 18px; font-weight: 600; color: var(--bc-text-primary); }
.bc-view-toggle { display: none; gap: 6px; align-items: center; background: var(--bc-bg-card); padding: 4px; border-radius: 10px; border: 1px solid var(--bc-border-color); }
.bc-view-btn { width: 32px; height: 32px; background: transparent; border: none; border-radius: 7px; color: var(--bc-text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.bc-view-btn:hover { background: var(--bc-hover-bg); color: var(--bc-text-primary); }
.bc-view-btn.active { background: var(--bc-accent-primary); color: #fff; box-shadow: 0 2px 8px rgba(255,71,87,.4); }

/* ── 2 COLUMNS DEFAULT ── */
#bcCourtsGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ── COURT CARD ── */
.gm-court-card { background: var(--bc-bg-card); border-radius: 14px; border: 1px solid var(--bc-border-color); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; animation: gm-slideUp .4s ease-out both; position: relative; overflow: hidden; }
.gm-court-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #ff4757, #ff6b7a); opacity: 0; transition: opacity .25s; }
.gm-court-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.4), 0 0 0 1px var(--bc-accent-primary); border-color: var(--bc-accent-primary); }
.gm-court-card:hover::before { opacity: 1; }
@keyframes gm-slideUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
.gm-card-maintenance, .gm-card-booked { opacity: .7; }
.gm-card-maintenance:hover, .gm-card-booked:hover { transform: none; box-shadow: none; border-color: var(--bc-border-color); }
.gm-card-maintenance:hover::before, .gm-card-booked:hover::before { opacity: 0; }
.gm-card-image-wrap { display: none !important; }

.gm-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

/* Update the gm-card-capacity CSS */

.gm-card-capacity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 6px;
    margin-bottom: 6px;
    font-weight: 500;
    padding: 0;
}

.gm-card-capacity svg {
    stroke: currentColor;
    opacity: .75;
    flex-shrink: 0;
}

/* Update gm-card-top-row if it still exists - remove it or keep it empty */
.gm-card-top-row {
    display: none;
}

/* Adjust gm-card-title to full width */
.gm-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-card-meta, .gm-card-time-row, .gm-card-meta-right, .gm-card-img, .gm-card-img-overlay, .gm-card-type-badge, .gm-card-status-wrap { display: none !important; }

.gm-status-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px; align-self: flex-start; }
.gm-status-maintenance { background: rgba(234,179,8,.2); color: #fbbf24; border: 1px solid rgba(234,179,8,.3); }
.gm-status-booked      { background: rgba(239,68,68,.2);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }

/* FOOTER — price left, button right, ALWAYS one line */
.gm-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); margin-top: auto; min-width: 0; }
.gm-card-price  { display: flex; flex-direction: column; flex-shrink: 0; }
.gm-price-label { font-size: 8px; text-transform: uppercase; letter-spacing: .7px; color: rgba(255,255,255,.35); font-weight: 700; margin-bottom: 1px; }
.gm-price-row   { display: flex; align-items: baseline; gap: 1px; }
.gm-price-currency { font-size: 16px; font-weight: 700; color: var(--bc-accent-primary); }
.gm-price-amount   { font-size: 24px; font-weight: 800; color: var(--bc-accent-primary); line-height: 1; }

.gm-add-to-cart-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 16px; background: linear-gradient(135deg, var(--bc-accent-primary), var(--bc-accent-secondary)); color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all .25s; box-shadow: 0 4px 12px rgba(255,71,87,.3); font-family: inherit; }
.gm-add-to-cart-btn:hover:not(:disabled):not(.gm-btn-added) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,71,87,.5); }
.gm-add-to-cart-btn:disabled { cursor: not-allowed; transform: none !important; box-shadow: none; opacity: .65; }
.gm-btn-added       { background: linear-gradient(135deg, #10b981, #059669) !important; box-shadow: 0 4px 12px rgba(16,185,129,.35) !important; cursor: default; }
.gm-btn-maintenance { background: linear-gradient(135deg, #78716c, #57534e) !important; box-shadow: none !important; }
.gm-btn-booked      { background: linear-gradient(135deg, #7f1d1d, #991b1b) !important; box-shadow: none !important; }
.btn-ico  { flex-shrink: 0; }
.btn-text { white-space: nowrap; }

.bc-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 32px; color: var(--bc-text-secondary); font-size: 14px; grid-column: 1 / -1; }
.bc-spinner { width: 22px; height: 22px; border: 2px solid var(--bc-border-color); border-top-color: var(--bc-accent-primary); border-radius: 50%; animation: bc-spin .7s linear infinite; flex-shrink: 0; }
@keyframes bc-spin { to { transform: rotate(360deg); } }
.bc-no-slots, .bc-no-courts, .bc-error-msg { text-align: center; padding: 28px; border-radius: 12px; font-size: 14px; grid-column: 1 / -1; }
.bc-no-slots, .bc-no-courts { color: var(--bc-text-secondary); background: var(--bc-bg-card); border: 1px dashed var(--bc-border-color); }
.bc-error-msg { color: #f87171; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.2); }

.addon-popup-box { width: 95%; max-width: 600px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; padding: 0; background: #1a1a24; color: #fff; border: 1px solid #2d2d3f; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.75); animation: popupScale .35s ease; }
.addon-popup-header { padding: 26px 28px 18px; text-align: center; background: linear-gradient(135deg, #242433, #1a1a2e); border-bottom: 1px solid #2d2d3f; flex-shrink: 0; }
.addon-popup-emoji { font-size: 36px; display: block; margin-bottom: 8px; }
.addon-popup-header h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.addon-popup-header p  { font-size: 13px; color: #a8a8b8; margin: 0; }
.addon-popup-content { flex: 1; overflow-y: auto; padding: 20px 24px; scrollbar-width: thin; scrollbar-color: #2d2d3f transparent; }
.addon-popup-content::-webkit-scrollbar { width: 5px; }
.addon-popup-content::-webkit-scrollbar-thumb { background: #2d2d3f; border-radius: 10px; }
.addon-item-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: #242433; border: 1px solid #2d2d3f; border-radius: 14px; margin-bottom: 10px; transition: border-color .2s, background .2s; position: relative; overflow: hidden; }
.addon-item-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background .2s; }
.addon-item-row.addon-active { border-color: #ff4757; background: rgba(255,71,87,.06); }
.addon-item-row.addon-active::before { background: #ff4757; }
.addon-item-row.addon-fully-out { opacity: .45; pointer-events: none; }
.addon-item-info { flex: 1; min-width: 0; }
.addon-item-name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.addon-item-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.addon-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.addon-badge-stock     { color: #2ed573; background: rgba(46,213,115,.1);   border: 1px solid rgba(46,213,115,.25); }
.addon-badge-stock.low { color: #ffa502; background: rgba(255,165,2,.1);    border-color: rgba(255,165,2,.25); }
.addon-badge-stock.out { color: #f87171; background: rgba(248,113,113,.1);  border-color: rgba(248,113,113,.2); }
.addon-badge-max       { color: #a8a8b8; background: rgba(168,168,184,.08); border: 1px solid rgba(168,168,184,.15); }
.addon-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.addon-item-unit-price { font-size: 15px; font-weight: 700; color: #ff4757; white-space: nowrap; }
.addon-item-unit-price .addon-currency { font-size: 12px; }
.addon-qty-wrap { display: flex; align-items: center; background: #1a1a2e; border: 1px solid #2d2d3f; border-radius: 10px; overflow: hidden; }
.addon-qty-btn { width: 34px; height: 34px; background: transparent; border: none; color: #a8a8b8; font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.addon-qty-btn:hover:not(:disabled) { background: rgba(255,71,87,.15); color: #ff4757; }
.addon-qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.addon-qty-val { min-width: 28px; text-align: center; font-size: 14px; font-weight: 700; color: #fff; padding: 0 4px; user-select: none; }
.addon-out-label { font-size: 12px; color: #5f5f7a; font-style: italic; }
.addon-popup-footer { padding: 14px 24px 18px; border-top: 1px solid #2d2d3f; background: #1a1a2e; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.addon-selected-count { font-size: 12px; color: #a8a8b8; white-space: nowrap; }
.addon-popup-actions  { display: flex; gap: 10px; }
.btn-skip-addon { padding: 11px 20px; background: transparent; border: 1px solid #2d2d3f; color: #a8a8b8; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; white-space: nowrap; font-family: inherit; }
.btn-skip-addon:hover { border-color: #ff4757; color: #ff4757; }
.btn-add-selected-addon { padding: 11px 22px; background: linear-gradient(135deg, #ff4757, #ff6b7a); border: none; color: #fff; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .3s; white-space: nowrap; display: flex; align-items: center; gap: 8px; font-family: inherit; }
.btn-add-selected-addon:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,71,87,.45); }
.btn-add-selected-addon:disabled { background: #2d2d3f; color: #5f5f7a; cursor: not-allowed; transform: none; box-shadow: none; }
.addon-total-pill { background: rgba(255,255,255,.2); padding: 2px 9px; border-radius: 20px; font-size: 12px; }
.addon-unavail-state { text-align: center; padding: 30px 20px 20px; }
.addon-unavail-icon { font-size: 36px; margin-bottom: 10px; }
.addon-unavail-state h4 { font-size: 16px; font-weight: 700; color: #f87171; margin: 0 0 8px; }
.addon-unavail-state p  { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; margin: 0 0 6px; }
.addon-unavail-sub      { font-size: 12px !important; color: rgba(255,255,255,.4) !important; }
.addon-user-already-note { font-size: 11px; color: #f59e0b; margin-top: 4px; padding: 3px 6px; background: rgba(245,158,11,.12); border-radius: 4px; border-left: 2px solid #f59e0b; }

.bc-summary-section { background: #0e0e1a; border: 1px solid #1c1c30; border-radius: 20px; padding: 20px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); height: fit-content; position: sticky; top: 20px; }
.bc-summary-section .bc-section-title { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 800; font-style: italic; letter-spacing: .8px; color: #ff4757; text-transform: uppercase; margin-bottom: 14px; }
.bc-no-selection { text-align: center; padding: 32px 16px; }
.bc-no-selection-icon { font-size: 30px; margin-bottom: 10px; opacity: .18; display: block; }
.bc-no-selection p { font-size: 12px; color: #30305a; }
#bcSelectedSlotsList { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.bc-selected-slot-item { background: #141422; border: 1px solid #1e1e36; border-radius: 11px; display: flex; flex-direction: column; overflow: hidden; position: relative; transition: border-color .2s, box-shadow .2s; animation: bsSlidein .28s cubic-bezier(.2,.8,.3,1) both; }
@keyframes bsSlidein { from { opacity:0; transform:translateX(12px); } to { opacity:1; transform:translateX(0); } }
.bc-selected-slot-item:hover { border-color: rgba(255,71,87,.38); box-shadow: 0 4px 16px rgba(255,71,87,.1); }
.bc-selected-slot-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #ff4757, #ff2d3d); border-radius: 11px 0 0 11px; }
.bc-selected-slot-item .bc-slot-info { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 5px; padding: 9px 34px 9px 12px; }
.bc-slot-court-name { font-size: 11px; font-weight: 800; color: #fff; white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0; }
.bc-slot-date       { font-size: 10px; color: #e8e8eb; white-space: nowrap; flex-shrink: 0; }
.bc-slot-date::before { content: '·'; margin-right: 4px; opacity: .35; }
.bc-slot-time-label { font-size: 10px; font-weight: 700; color: #ff6b7a; white-space: nowrap; flex-shrink: 0; }
.bc-slot-time-label::before { content: '·'; margin-right: 4px; opacity: .35; }
.bc-slot-item-price { font-size: 11px; font-weight: 800; color: #fff; white-space: nowrap; margin-left: auto; padding-right: 2px; flex-shrink: 0; }
.bc-selected-slot-item > .bc-remove-slot { position: absolute; right: 7px; top: 7px; padding: 3px; background: transparent; border: none; color: white; cursor: pointer; transition: color .15s, transform .15s; z-index: 2; }
.bc-selected-slot-item > .bc-remove-slot:hover { color: #ff4757; transform: scale(1.2); }
.bc-remove-slot svg { width: 11px; height: 11px; }
.bc-addon-chip-strip { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px 10px 8px 12px; border-top: 1px solid #18182a; }
.bc-addon-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px 3px 6px; background: rgba(255,71,87,.07); border: 1px solid rgba(255,71,87,.18); border-radius: 20px; white-space: nowrap; animation: bsChipPop .2s cubic-bezier(.34,1.56,.64,1) both; }
.bc-addon-chip:hover { background: rgba(255,71,87,.14); border-color: rgba(255,71,87,.35); }
@keyframes bsChipPop { from { opacity:0; transform:scale(.65); } to { opacity:1; transform:scale(1); } }
.bc-chip-icon  { font-size: 8px; opacity: .55; }
.bc-chip-name  { font-size: 10px; font-weight: 700; color: #e8e8ff; }
.bc-chip-sep   { font-size: 8px; opacity: .2; }
.bc-chip-qty   { font-size: 9px; font-weight: 600; color: #50508a; }
.bc-chip-price { font-size: 10px; font-weight: 800; color: #ff6b7a; }
.bc-chip-remove { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: white; padding: 0; margin-left: 1px; transition: color .12s, transform .12s; }
.bc-chip-remove:hover { color: #ff4757; transform: scale(1.4); }
.bc-chip-remove svg { width: 8px; height: 8px; }
.bc-account-summary { margin-top: 12px; background: #08080e; border-radius: 10px; padding: 2px 12px; border: 1px solid #111120; }
.bc-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid #0c0c1a; }
.bc-summary-row:last-child { border-bottom: none; }
.bc-summary-label { font-size: 11px; color: #2e2e55; }
.bc-summary-value { font-size: 12px; font-weight: 700; color: #606098; }
.bc-total-pay { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ff4757; display: flex; align-items: center; justify-content: space-between; }
.bc-total-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #2e2e55; }
.bc-total-amount { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 900; color: #ff4757; line-height: 1; display: flex; align-items: baseline; gap: 2px; text-shadow: 0 0 20px rgba(255,71,87,.45); }
.bc-currency { font-size: 15px; font-weight: 800; }
.bc-add-to-cart-btn { width: 100%; margin-top: 14px; padding: 13px; background: linear-gradient(135deg, #ff2940, #ff6b7a); color: #fff; border: none; border-radius: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 22px rgba(255,41,64,.38); transition: transform .2s, box-shadow .2s; }
.bc-add-to-cart-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,41,64,.55); }
.bc-add-to-cart-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

.skip-warn-box { position: relative; max-width: 420px; text-align: center; padding: 32px 28px 28px; border-radius: 20px; background: #1a1a2e; border: 1px solid rgba(248,113,113,.2); animation: popIn .25s cubic-bezier(.34,1.56,.64,1); }
.skip-warn-close-btn { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #a0a0b8; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .18s, color .18s; padding: 0; }
.skip-warn-close-btn:hover { background: rgba(248,113,113,.15); border-color: rgba(248,113,113,.4); color: #f87171; }
.skip-warn-icon  { font-size: 52px; margin-bottom: 14px; line-height: 1; animation: bounce .6s ease; }
@keyframes bounce { 0% { transform:scale(.7); opacity:0; } 60% { transform:scale(1.15); } 100% { transform:scale(1); opacity:1; } }
.skip-warn-title { font-size: 19px; font-weight: 700; color: #fff; margin: 0 0 10px; line-height: 1.3; }
.skip-warn-body  { font-size: 14px; color: #a0a0b8; line-height: 1.6; margin: 0 0 20px; }
.skip-warn-price-box { display: flex; align-items: center; justify-content: space-between; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.22); border-radius: 12px; padding: 12px 18px; margin: 0 0 24px; }
.skip-warn-price-label { font-size: 13px; color: #a0a0b8; font-weight: 500; }
.skip-warn-price-value { font-size: 20px; font-weight: 800; color: #f87171; }
.skip-warn-cancel-note { font-size: 11.5px; color: #6b6b88; margin: 0 0 18px; line-height: 1.5; }
.skip-warn-cancel-note strong { color: #f87171; font-weight: 600; }
.skip-warn-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.skip-warn-btn-back { flex: 1; min-width: 140px; padding: 11px 18px; border-radius: 10px; border: 2px solid rgba(99,102,241,.5); background: rgba(99,102,241,.08); color: #a5b4fc; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .18s, border-color .18s; font-family: inherit; }
.skip-warn-btn-back:hover { background: rgba(99,102,241,.18); border-color: rgba(99,102,241,.8); color: #c7d2fe; }
.skip-warn-btn-confirm { flex: 1; min-width: 140px; padding: 11px 18px; border-radius: 10px; border: none; background: linear-gradient(135deg, #f87171, #dc2626); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity .18s, transform .15s; font-family: inherit; box-shadow: 0 4px 14px rgba(220,38,38,.3); }
.skip-warn-btn-confirm:hover { opacity: .92; transform: translateY(-1px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .bc-container { grid-template-columns: 1fr; } .bc-summary-section { position: static; } .bc-section-title { font-size: 28px; } }
@media (max-width: 968px)  { .hero { flex-direction: column; } .hero-thumb { width: 100%; height: 120px; } }
@media (max-width: 768px)  { .bc-body-wrapper { padding: 15px; } .bc-calendar-section { padding: 25px; border-radius: 16px; } .bc-summary-section { padding: 16px 14px; border-radius: 16px; } .bc-section-title { font-size: 24px; margin-bottom: 20px; } .bc-month-year { font-size: 20px; } .bc-calendar-grid { gap: 8px; } .bc-day { font-size: 13px; border-radius: 10px; } .bc-weekday { font-size: 11px; padding: 8px 0; } .bc-time-slot { padding: 9px 14px; } }

/* ═══ MOBILE ≤ 640px ═══ */
@media (max-width: 640px) {
    .bc-view-toggle { display: flex; }
    #bcCourtsGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    #bcCourtsGrid .gm-card-body  { padding: 12px 12px 14px !important; gap: 10px !important; }
    #bcCourtsGrid .gm-card-title { font-size: 13px !important; }
    #bcCourtsGrid .gm-card-footer { flex-wrap: nowrap !important; gap: 8px !important; }
    #bcCourtsGrid .gm-price-amount   { font-size: 20px !important; }
    #bcCourtsGrid .gm-price-currency { font-size: 14px !important; }
    /* icon-only button on mobile */
    #bcCourtsGrid .gm-add-to-cart-btn .btn-text { display: none !important; }
    #bcCourtsGrid .gm-add-to-cart-btn { width: 42px !important; height: 42px !important; padding: 0 !important; border-radius: 10px !important; flex-shrink: 0 !important; }

    /* LIST MODE */
    #bcCourtsGrid.bc-list-view { grid-template-columns: 1fr !important; gap: 8px !important; }
    #bcCourtsGrid.bc-list-view .gm-court-card { border-radius: 12px !important; }
    #bcCourtsGrid.bc-list-view .gm-card-body  { padding: 0 !important; gap: 0 !important; }
    #bcCourtsGrid.bc-list-view .gm-card-top-row { background: rgba(255,71,87,.18); border-bottom: 1px solid rgba(255,71,87,.25); padding: 9px 14px !important; justify-content: space-between !important; gap: 10px !important; }
    #bcCourtsGrid.bc-list-view .gm-card-title { font-size: 13px !important; font-weight: 800 !important; text-overflow: ellipsis !important; margin-left: 18px;}
    #bcCourtsGrid.bc-list-view .gm-card-footer { padding: 10px 14px !important; border-top: none !important; flex-wrap: nowrap !important; gap: 10px !important; margin-top: 0 !important; align-items: center !important; }
    #bcCourtsGrid.bc-list-view .gm-price-amount   { font-size: 22px !important; }
    #bcCourtsGrid.bc-list-view .gm-price-currency { font-size: 16px !important; }
    #bcCourtsGrid.bc-list-view .gm-add-to-cart-btn .btn-text { display: none !important; }
    #bcCourtsGrid.bc-list-view .gm-add-to-cart-btn { width: 44px !important; height: 44px !important; padding: 0 !important; flex-shrink: 0 !important; }

    .addon-popup-footer  { flex-direction: column; align-items: stretch; }
    .addon-popup-actions { justify-content: stretch; }
    .btn-skip-addon, .btn-add-selected-addon { flex: 1; justify-content: center; }
    .addon-selected-count { text-align: center; }
    .addon-item-row { flex-wrap: wrap; }
    .addon-item-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
    #bcCourtsGrid.bc-list-view .gm-card-capacity{
        margin-left: 18px;
    }
}

@media (max-width: 480px) {
    .bc-body-wrapper { padding: 10px; } .bc-calendar-section { padding: 20px; } .bc-summary-section { padding: 14px 12px; }
    .bc-section-title { font-size: 20px; } .bc-month-year { font-size: 18px; } .bc-calendar-grid { gap: 6px; }
    .bc-day { font-size: 12px; border-radius: 8px; } .bc-nav-btn { width: 36px; height: 36px; font-size: 16px; }
    .bc-total-amount { font-size: 22px; } .bc-add-to-cart-btn { padding: 12px; font-size: 11px; }
    .bc-slot-court-name { font-size: 10px; } .bc-slot-date, .bc-slot-time-label { font-size: 9px; } .bc-slot-item-price { font-size: 10px; }
    .skip-warn-box { padding: 24px 18px 20px; margin: 12px; } .skip-warn-actions { flex-direction: column; }
    .skip-warn-btn-back, .skip-warn-btn-confirm { width: 100%; }
}

@media (max-width: 360px) {
    .bc-calendar-grid { gap: 4px; } .bc-day { font-size: 11px; } .bc-weekday { font-size: 10px; }
    #bcCourtsGrid { grid-template-columns: 1fr !important; }
}

.court-details-content {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 1.6em;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.court-details-content.expanded {
    -webkit-line-clamp: unset;
    max-height: 600px;
    overflow: visible;
}

.court-details-toggle .toggle-arrow {
    transition: transform 0.35s;
}

.court-details-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}