/* Frontend Booking Styles */
.ww-booking-calendar,
.ww-booking-form-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ww-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.ww-lake-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ww-lake-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

.ww-calendar-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ww-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ww-nav-button {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ww-nav-button:hover {
    background: #005a87;
}

.ww-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #ddd;
    border: 1px solid #ddd;
}

.ww-calendar-header-day {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.ww-calendar-day {
    background: white;
    padding: 10px;
    min-height: 80px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ww-calendar-day:hover:not(.ww-empty-day):not(.ww-fully-booked) {
    background: #f0f8ff;
}

.ww-empty-day {
    background: #f8f9fa;
    cursor: default;
}

.ww-available {
    background: #d4edda;
}

.ww-partly-booked {
    background: #fff3cd;
}

.ww-fully-booked {
    background: #f8d7da;
    cursor: not-allowed;
    opacity: 0.6;
}

.ww-day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.ww-day-status {
    font-size: 0.8em;
    color: #666;
}

.ww-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.ww-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ww-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}

.ww-legend-color.ww-available { background: #d4edda; }
.ww-legend-color.ww-partial { background: #fff3cd; }
.ww-legend-color.ww-booked { background: #f8d7da; }

/* Modal Styles */
.ww-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ww-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.ww-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.ww-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.ww-modal-body {
    padding: 20px;
}

/* Form Styles */
.ww-booking-form {
    max-width: 600px;
    margin: 0 auto;
}

.ww-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ww-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ww-form-group {
    margin-bottom: 15px;
}

.ww-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ww-form-group input[type="text"],
.ww-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.ww-pegs-list {
    margin-top: 10px;
}

.ww-pegs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ww-peg-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
}

.ww-peg-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.ww-peg-booking {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.ww-peg-booking h5 {
    margin: 0 0 10px 0;
    color: #333;
}

.ww-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.ww-submit-button,
.ww-submit-booking {
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ww-cancel-button,
.ww-cancel-booking {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ww-submit-button:hover { background: #005a87; }
.ww-cancel-button:hover { background: #545b62; }

/* Messages */
.ww-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.ww-message.ww-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ww-message.ww-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading States */
.ww-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .ww-booking-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ww-form-row {
        grid-template-columns: 1fr;
    }

    .ww-calendar-header {
        flex-direction: column;
        gap: 10px;
    }

    .ww-calendar-day {
        min-height: 60px;
        padding: 5px;
    }

    .ww-day-status {
        font-size: 0.7em;
    }
}