/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #ff6b35;
    --accent-dark: #e55a2b;
    --light-color: #ffffff;
    --light-bg: #f8f9fa;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --border-radius: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating Back Button */
.floating-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.floating-back-btn:hover {
    background: var(--accent-dark);
    transform: translateX(-3px);
}

/* Header */
.booking-header {
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 30px;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-content p {
    color: var(--gray-light);
    font-size: 1.1rem;
}

/* Main Layout */
.booking-main {
    padding-bottom: 50px;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Header */
.section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header p {
    color: var(--gray);
    font-size: 1rem;
}

/* Combined Calendar */
.combined-calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .combined-calendar {
        grid-template-columns: 1fr;
    }
}

.calendar-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-light);
}

.calendar-header {
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.calendar-controls h4 {
    font-size: 1.1rem;
    color: var(--gray-dark);
    font-weight: 600;
}

.nav-btn {
    background: var(--light-bg);
    border: 1px solid var(--gray-light);
    color: var(--gray-dark);
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.booked):not(.blocked) {
    background: var(--gray-light);
}

.calendar-day.today {
    border-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--accent-color);
    color: white;
    font-weight: 700;
}

.calendar-day.booked {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.blocked {
    background: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.disabled {
    background: var(--light-bg);
    color: var(--gray);
    cursor: not-allowed;
}

/* Selected Dates */
.selected-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.date-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--gray-light);
    transition: var(--transition);
}

.date-box:hover {
    border-color: var(--accent-color);
}

.date-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.date-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    min-height: 30px;
}

.date-time {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.available {
    background: white;
    border: 2px solid var(--success);
}

.legend-dot.booked {
    background: var(--danger);
    border: 2px solid var(--danger);
}

.legend-dot.blocked {
    background: var(--gray);
    border: 2px solid var(--gray);
}

/* Form Section */
.form-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group small {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Guest Counter */
.guest-counter {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    padding: 10px 20px;
    width: fit-content;
}

.counter-btn {
    background: var(--light-bg);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
    font-size: 1rem;
    transition: var(--transition);
}

.counter-btn:hover {
    background: var(--accent-color);
    color: white;
}

#guest-count {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

/* Price Summary */
.price-summary {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 10px;
}

.price-summary h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray-dark);
}

.price-row.total {
    border-bottom: none;
    border-top: 2px solid var(--accent-color);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Fees Info */
.fees-info {
    background: rgba(23, 162, 184, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    border-left: 4px solid var(--info);
}

.fee-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.fee-item i {
    color: var(--info);
    margin-top: 2px;
}

.fee-item strong {
    color: var(--primary-color);
}

/* Terms Agreement */
.terms-agreement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
}

.terms-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.terms-agreement label {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.terms-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    border-left: 4px solid var(--danger);
    display: none;
    align-items: center;
    gap: 10px;
}

.error-message i {
    color: var(--danger);
}

#error-text {
    color: var(--danger);
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.submit-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.security-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.security-note i {
    color: var(--success);
}

/* Footer */
.booking-footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.footer-info p {
    color: var(--gray-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info i {
    color: var(--accent-color);
    width: 20px;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.modal-body ol {
    padding-left: 20px;
    margin-bottom: 30px;
}

.modal-body li {
    margin-bottom: 10px;
    color: var(--gray-dark);
    line-height: 1.5;
}

.signature {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    padding-top: 20px;
    border-top: 2px solid var(--gray-light);
}

/* Success Modal */
.success-icon {
    text-align: center;
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.success-message {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.booking-details {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.booking-details p {
    margin-bottom: 10px;
    color: var(--gray-dark);
}

.booking-details strong {
    color: var(--primary-color);
}

.email-instruction {
    text-align: center;
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.email-address {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    border: 2px solid var(--accent-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--gray-dark);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--gray);
    color: white;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-back-btn {
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .booking-grid {
        gap: 30px;
    }

    .form-section {
        padding: 20px;
    }

    .selected-dates {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .calendar-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
        justify-content: center;
    }
}



/* Add to book.css */

/* Calendar day states */
.calendar-day.available {
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    border: 2px solid transparent;
}

.calendar-day.available:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.calendar-day.selected-range {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
    border: 2px dashed var(--accent-color);
}

.calendar-day.check-in {
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    border: 2px solid var(--accent-dark);
}

.calendar-day.check-out {
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    border: 2px solid var(--accent-dark);
}

.calendar-day.today {
    border-color: var(--accent-color);
    font-weight: bold;
}

.calendar-day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success message */
.success-message {
    background: var(--success);
    color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form validation */
input:invalid,
select:invalid {
    border-color: var(--danger);
}

input:valid,
select:valid {
    border-color: var(--success);
}

/* Admin page overrides */
.admin-page .container {
    max-width: 1400px;
}

/* Modal animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    animation: fadeIn 0.3s ease;
}