/**
 * Mintaapartman.hu Style Calendar CSS
 * Blue and white theme with two-step booking process
 */

.mintaapartman-calendar {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #d4b08a;
}

/* Step Headers */
.step-header {
    border-bottom: 2px solid #d4b08a;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.step-header h5 {
    color: #AB7442;
    font-weight: 600;
    margin-bottom: 0;
}

/* Guest Selection Styles */
.guest-selector {
    text-align: center;
    padding: 2rem 0;
}

.guest-counter {
    background: #f8f6f0;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #d4b08a;
}

.guest-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #AB7442;
    color: #AB7442;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.guest-btn:hover {
    background: #AB7442;
    color: white;
    transform: scale(1.1);
}

.guest-btn:disabled {
    border-color: #bbb;
    color: #bbb;
    cursor: not-allowed;
}

.guest-btn:disabled:hover {
    background: transparent;
    transform: none;
}

.guest-display {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(171, 116, 66, 0.15);
    border: 2px solid #d4b08a;
}

.guest-count {
    color: #AB7442;
    font-weight: bold;
    font-size: 2rem;
}

.guest-info {
    color: #666;
    margin-top: 1rem;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #AB7442 0%, #8B5F36 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(171, 116, 66, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(171, 116, 66, 0.4);
}

.btn-outline-secondary {
    border-color: #90a4ae;
    color: #90a4ae;
    border-radius: 20px;
}

.btn-outline-secondary:hover {
    background: #90a4ae;
    border-color: #90a4ae;
}

.btn-success {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
}

/* Guest Summary Alert */
.guest-summary {
    background: linear-gradient(135deg, #f8f6f0 0%, #f0f0f0 100%);
    border: 1px solid #d4b08a;
    border-radius: 12px;
    color: #AB7442;
    font-weight: 500;
}

/* Date Selection */
.date-selection-container {
    padding: 1rem 0;
}

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

.form-control-lg {
    border-radius: 8px;
    border: 2px solid #d4b08a;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: #AB7442;
    box-shadow: 0 0 0 0.2rem rgba(171, 116, 66, 0.25);
}

/* Calendar Preview */
.calendar-preview {
    background: #f8f6f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #d4b08a;
}

.calendar-header {
    margin-bottom: 1rem;
}

.calendar-header h6 {
    color: #AB7442;
    font-weight: 600;
    font-size: 1.1rem;
}

.calendar-legend {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #d4b08a;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

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

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

.legend-dot.occupied {
    background: #f44336;
}

.legend-dot.selected {
    background: #AB7442;
}

/* Calendar Grid */
.calendar-grid {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d4b08a;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #AB7442;
}

.weekday {
    text-align: center;
    padding: 12px 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f8f6f0;
}

.calendar-day {
    background: white;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 4px;
}

.calendar-day:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: #bbb;
    background: #fafafa;
}

.calendar-day.past-day {
    color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
}

.calendar-day.past-day:hover {
    transform: none;
    background: #f5f5f5;
}

.calendar-day.selected {
    background: #AB7442;
    color: white;
    font-weight: bold;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(171, 116, 66, 0.3);
}

.calendar-day.in-range {
    background: #D4B08A;
    color: #8B5F36;
    font-weight: 500;
}

.day-number {
    font-weight: 600;
    font-size: 0.95rem;
}

.availability-indicator {
    margin-top: 4px;
}

.availability-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
}

/* Availability Status */
.availability-status {
    margin-top: 2rem;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8f1 100%);
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #fef5f5 100%);
    color: #c62828;
    border-left: 4px solid #f44336;
}

.available-rooms ul {
    list-style: none;
    padding-left: 0;
}

.available-rooms li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e8f5e8;
}

.available-rooms li:last-child {
    border-bottom: none;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 1000;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading-overlay p {
    color: #AB7442;
    font-weight: 500;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mintaapartman-calendar {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .guest-counter {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .guest-btn {
        width: 45px;
        height: 45px;
    }
    
    .guest-display {
        padding: 1rem 1.5rem;
    }
    
    .guest-count {
        font-size: 1.8rem;
    }
    
    .calendar-preview {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 50px;
        font-size: 0.9rem;
    }
    
    .weekday {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .legend-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .mintaapartman-calendar {
        padding: 1rem;
    }
    
    .guest-counter {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendar-day {
        min-height: 45px;
        font-size: 0.8rem;
    }
    
    .weekday {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation classes */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.booking-step {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

#step-1 {
    animation-name: slideInLeft;
}

#step-2 {
    animation-name: slideInRight;
}

/* Focus states for accessibility */
.guest-btn:focus,
.calendar-day:focus,
.btn:focus {
    outline: 2px solid #AB7442;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .calendar-day {
        border: 1px solid #000;
    }
    
    .calendar-day.selected {
        border: 2px solid #fff;
    }
    
    .legend-dot {
        border: 1px solid #000;
    }
}