/* ===========================================
   Killian Greens - Public Booking Engine CSS
   Mobile-first, KG branded
   =========================================== */

/* Base */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Calendar */
.calendar-grid .col {
    padding: 8px 4px;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.calendar-day.available {
    background: #d4edda;
    color: #1A5C2E;
    font-weight: 600;
}

.calendar-day.available:hover {
    background: #198754;
    color: white;
    transform: scale(1.05);
}

.calendar-day.unavailable {
    color: #ccc;
}

.calendar-day.past {
    color: #ddd;
}

.calendar-day.today {
    border: 2px solid #198754;
}

.calendar-day.selected {
    background: #1a1a1a !important;
    color: #fff !important;
    font-weight: bold;
    border-radius: 50%;
}

.calendar-legend {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}

.calendar-legend.available {
    background: #d4edda;
}

.calendar-legend.unavailable {
    background: #eee;
}

/* Tee Time Cards (GolfNow grid style) */
.tt-card {
    transition: all 0.2s;
    border-radius: 8px;
    overflow: hidden;
}

.tt-card:hover {
    border-color: #198754 !important;
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.2) !important;
    transform: translateY(-2px);
}

.tt-card:hover .choose-rate-btn {
    background-color: #1A5C2E;
    color: #fff;
    border-color: #1A5C2E;
}

.tt-card .card-header,
.tt-card .card-footer {
    border-radius: 0;
}

.tt-card .card-body {
    color: #333;
}

/* Rate Cards (GolfNow style) */
.rate-card {
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.rate-card:hover {
    border-color: #333 !important;
}

.rate-card .rate-btn {
    border: 2px solid #333;
    background: #fff;
    color: #333;
    padding: 4px 16px;
    font-size: 0.75rem;
    border-radius: 4px;
}

.rate-card.selected {
    background: #1a1a1a;
    border-color: #1a1a1a !important;
    color: #fff;
}

.rate-card.selected .rate-price,
.rate-card.selected .rate-label {
    color: #fff;
}

.rate-card.selected .text-muted {
    color: #bbb !important;
}

.rate-card.selected .rate-btn {
    background: #fff;
    color: #1a1a1a;
    border-color: #fff;
}

/* Golfer Buttons (GolfNow style) */
.golfer-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid #ccc;
    background: #fff;
    color: #333;
    transition: all 0.2s;
}

.golfer-btn:hover {
    border-color: #333;
}

.golfer-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Payment Options */
.payment-option {
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #198754 !important;
    background: #f0faf4;
    transform: translateX(4px);
}

/* Buttons */
.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-outline-success {
    color: #198754;
    border-color: #198754;
}

.btn-outline-success:hover {
    background-color: #198754;
    border-color: #198754;
}

/* Sidebar Filters */
.sidebar-filters {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.filter-section {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-reset {
    font-size: 0.75rem;
    color: #666;
    text-decoration: none;
}

.filter-reset:hover {
    color: #1A5C2E;
}

/* Filter Pills (Golfers) */
.filter-pill {
    border: 2px solid #dee2e6;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s;
}

.filter-pill:hover {
    border-color: #333;
    color: #333;
}

.filter-pill.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Filter Toggles (Holes, Transport) */
.filter-toggle {
    border: 2px solid #dee2e6;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.filter-toggle:hover {
    border-color: #333;
    color: #333;
}

.filter-toggle.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Loading overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

/* Responsive */
@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .calendar-grid .col {
        padding: 6px 2px;
        font-size: 0.8rem;
    }

    .player-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.1rem;
    }
}
