/* Calendar Styles */
.calendar-hero {
    background: linear-gradient(135deg, #8FA68E 0%, #B8C9B7 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calendar-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.calendar-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.calendar-hero .hero-title i {
    margin-right: 1rem;
    color: #F6E05E;
}

.calendar-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.calendar-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.month-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: #8FA68E;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #6B8A6A;
    transform: scale(1.1);
}

.current-month {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.view-toggle {
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.toggle-btn.active {
    background: #8FA68E;
    color: white;
}

.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.calendar-day-header {
    background: #8FA68E;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: scale(1.02);
}

.calendar-day.other-month {
    background: #f5f5f5;
    color: #999;
}

.calendar-day.today {
    background: #F5F3F0;
    border: 2px solid #8FA68E;
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-event {
    background: #4caf50;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.calendar-event.available {
    background: #4caf50;
}

.calendar-event.full {
    background: #ff9800;
}

.calendar-event.closed {
    background: #f44336;
}

.calendar-event.cancelled {
    background: #9e9e9e;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available {
    background: #4caf50;
}

.legend-color.full {
    background: #ff9800;
}

.legend-color.closed {
    background: #f44336;
}

.legend-color.cancelled {
    background: #9e9e9e;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #8FA68E, #B8C9B7);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.event-details {
    margin-bottom: 2rem;
}

.event-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item i {
    color: #8FA68E;
    width: 20px;
}

.event-description,
.event-requirements {
    margin-bottom: 1rem;
}

.event-description h4,
.event-requirements h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.reserve-btn,
.whatsapp-btn,
.instagram-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reserve-btn {
    background: #8FA68E;
    color: white;
}

.reserve-btn:hover {
    background: #6B8A6A;
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.instagram-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Reservation Info Box */
.reservation-info {
    background: linear-gradient(135deg, #E8F5E8, #F0F8F0);
    border: 2px solid #8FA68E;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.reservation-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(143,166,142,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(143,166,142,0.1)"/><circle cx="40" cy="80" r="0.8" fill="rgba(143,166,142,0.1)"/></svg>');
    animation: float 15s infinite linear;
    pointer-events: none;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #8FA68E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.info-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.info-content h4 {
    color: #2D5A2D;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-content h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #8FA68E, transparent);
    margin-left: 0.5rem;
}

.info-content p {
    color: #4A6741;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Reservation Form */
.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8FA68E;
    box-shadow: 0 0 0 3px rgba(143, 166, 142, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

.submit-btn {
    background: #8FA68E;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: #6B8A6A;
    transform: translateY(-2px);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8FA68E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #4caf50;
}

.toast.error {
    background: #f44336;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Week View Styles */
.calendar-day.week-view {
    min-height: 150px;
    border-left: 3px solid #8FA68E;
}

.calendar-day.week-view .calendar-day-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8FA68E;
    margin-bottom: 0.75rem;
}

.calendar-day.week-view .calendar-events {
    gap: 4px;
}

.calendar-day.week-view .calendar-event {
    font-size: 0.8rem;
    padding: 4px 8px;
    margin-bottom: 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day.week-view .calendar-event:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Week view specific adjustments */
.week-view .calendar-day-number {
    background: rgba(143, 166, 142, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Week View Container for Horizontal Scroll */
.week-view-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #8FA68E #f0f0f0;
}

.week-view-container::-webkit-scrollbar {
    height: 8px;
}

.week-view-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.week-view-container::-webkit-scrollbar-thumb {
    background: #8FA68E;
    border-radius: 4px;
}

.week-view-container::-webkit-scrollbar-thumb:hover {
    background: #6B8A6A;
}

/* Week Grid for Horizontal Scroll */
.week-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(7, minmax(200px, 1fr));
    gap: 1px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    min-width: 1400px; /* Minimum width to ensure proper spacing */
}

/* Vertical Week View for Mobile */
.week-grid-vertical {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.week-day-vertical {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #8FA68E;
}

.week-day-header-vertical {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.week-day-name-vertical {
    font-weight: 700;
    font-size: 1.1rem;
    color: #8FA68E;
}

.week-day-number-vertical {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    background: rgba(143, 166, 142, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.week-day-vertical.today {
    border-left-color: #F6E05E;
    background: #F5F3F0;
}

.week-day-vertical.today .week-day-number-vertical {
    background: #F6E05E;
    color: #333;
}

.week-events-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.week-event-vertical {
    background: #4caf50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.week-event-vertical:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.week-event-vertical.available {
    background: #4caf50;
}

.week-event-vertical.full {
    background: #ff9800;
}

.week-event-vertical.closed {
    background: #f44336;
}

.week-event-vertical.cancelled {
    background: #9e9e9e;
}

/* Week View Toggle Button */
.week-view-toggle {
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.week-view-toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.week-view-toggle-btn.active {
    background: #8FA68E;
    color: white;
}

.week-view-toggle-btn i {
    margin-right: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calendar-hero .hero-title {
        font-size: 2rem;
    }
    
    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .month-navigation {
        justify-content: center;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 80px;
    }
    
    .calendar-day.week-view {
        min-height: 120px;
    }
    
    .calendar-event {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .calendar-day.week-view .calendar-event {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    /* Week View Mobile Styles */
    .week-grid-horizontal {
        min-width: 1200px; /* Reduced minimum width for mobile */
    }
    
    .week-grid-vertical {
        display: flex; /* Show vertical layout on mobile */
    }
    
    .week-view-container {
        display: none !important; /* Hide horizontal scroll on mobile */
    }
    
    /* Hide week view toggle on mobile - force vertical view */
    .week-view-toggle {
        display: none !important;
    }
    
    .week-day-vertical {
        padding: 0.75rem;
    }
    
    .week-day-header-vertical {
        margin-bottom: 0.75rem;
    }
    
    .week-day-name-vertical {
        font-size: 1rem;
    }
    
    .week-day-number-vertical {
        font-size: 1.1rem;
    }
    
    .week-event-vertical {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .event-info {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .reserve-btn,
    .whatsapp-btn,
    .instagram-btn {
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .calendar-legend {
        gap: 1rem;
    }
    
    /* Reservation Info Mobile */
    .reservation-info {
        padding: 1rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 auto;
    }
    
    .info-content h4 {
        font-size: 1rem;
        justify-content: center;
    }
    
    .info-content h4::after {
        display: none;
    }
    
    .info-content p {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .week-grid-horizontal {
        min-width: 1000px;
    }
    
    .week-view-toggle {
        display: flex !important;
    }
    
    .week-view-container {
        display: block !important;
    }
    
    .week-grid-vertical {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }
    
    .calendar-day-number {
        font-size: 0.8rem;
    }
    
    .calendar-event {
        font-size: 0.5rem;
        padding: 1px 2px;
    }
    
    .calendar-day-header {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .week-day-vertical {
        padding: 0.5rem;
    }
    
    .week-day-name-vertical {
        font-size: 0.9rem;
    }
    
    .week-day-number-vertical {
        font-size: 1rem;
    }
    
    .week-event-vertical {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    /* Reservation Info Small Mobile */
    .reservation-info {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .info-content h4 {
        font-size: 0.95rem;
    }
    
    .info-content p {
        font-size: 0.85rem;
    }
}

/* Form Help Text */
.form-help {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    font-style: italic;
}
