/* ============================================ */
/* FILE: /css/mlt_calendar.css                */
/* VERSION: 4.0.0 - PROFESSIONAL EDITION      */
/* DESCRIPTION: Professional calendar styles  */
/* ============================================ */

.payment-btn {
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.payment-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.payment-btn:active {
    transform: translateY(0);
}


/* ============================================ */
/* OUTSIDE BOOKING PERIOD - DISABLED DATES      */
/* ============================================ */
.day-cell.outside-booking {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: line-through;
}

.day-cell.outside-booking:hover {
    background: #f1f5f9;
    transform: none;
    cursor: not-allowed;
}

.day-cell.outside-booking .day-number {
    color: #94a3b8;
}

.day-cell.outside-booking .day-price span {
    color: #94a3b8;
}
/* ============================================ */
/* RESET & BASE                                */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    padding: 30px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: start;
}

/* ============================================ */
/* CALENDAR WRAPPER                            */
/* ============================================ */
.calendar-wrapper {
    flex: 2;
    background: white;
    border-radius: 4px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ============================================ */
/* HEADER - CHECK-IN/OUT BOXES                 */
/* ============================================ */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.apartment-code-header {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #475569;
    display: inline-block;
    margin-bottom: 10px;
}

.header-left h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.minimum-stay {
    font-size: 12px;
    color: #64748b;
}

.header-right {
    display: flex;
    gap: 16px;
}

.date-selection-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px 16px;
    min-width: 130px;
    text-align: center;
}

.date-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.date-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

/* ============================================ */
/* NAVIGATION BUTTONS - SMALL & PROFESSIONAL   */
/* ============================================ */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.clear-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.current-range {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    background: white;
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.single-night-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.single-night-toggle label {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
}

/* ============================================ */
/* LEGEND                                      */
/* ============================================ */
.calendar-legend {
    background: #f8fafc;
    border-radius: 4px;
    padding: 12px 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.today { background: #dbeafe; border: 1px solid #bfdbfe; }
.legend-color.available { background: white; border: 1px solid #10b981; }
.legend-color.low-availability { background: #fef3c7; border: 1px solid #f59e0b; }
.legend-color.booked-pending { background: #fee2e2; border: 1px solid #ef4444; }
.legend-color.first-night { background: #667eea; }
.legend-color.in-range { background: #e0e7ff; }

/* ============================================ */
/* MONTHS GRID & DAY CELLS                     */
/* ============================================ */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.month-container {
    background: white;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.month-title {
    background: #f8fafc;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.day-header {
    padding: 8px 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-cell {
    min-height: 80px;
    padding: 8px 4px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    text-align: center;
	border-radius: 2px;
}

.day-cell:hover:not(.empty):not(.booked):not(.past-date) {
    background: #f8fafc;
    transform: translateY(-1px);
}

.day-cell.empty {
    background: #fafcff;
    cursor: default;
}

.day-cell.available {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

/* Fully Booked - Κόκκινο με διαγώνιες γραμμές (για booked και booked-pending) */
.day-cell.booked,
.day-cell.booked-pending {
    background: #fee2e2;
    border: 1px solid #fecaca;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.day-cell.booked::before,
.day-cell.booked-pending::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(239, 68, 68, 0.15),
        rgba(239, 68, 68, 0.15) 10px,
        transparent 10px,
        transparent 20px
    );
    pointer-events: none;
}

.day-cell.booked .day-number,
.day-cell.booked-pending .day-number,
.day-cell.booked .day-price span,
.day-cell.booked-pending .day-price span {
    position: relative;
    z-index: 1;
    color: #991b1b;
}

.day-cell.past-date {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.day-cell.today {
    background: #dbeafe;
    border: 1px solid #667eea;
}

.day-cell.first-night {
    background: #667eea;
    color: white;
}

.day-cell.first-night .day-number,
.day-cell.first-night .day-price span {
    color: white;
}

.day-cell.in-range {
    background: #a5b4fc !important;
    color: #1e293b !important;
}

.day-number {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.day-price {
    font-size: 10px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.day-price span {
    font-weight: 500;
}

.day-availability {
    background: #f1f5f9;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    color: #10b981;
}

/* ============================================ */
/* SIDEBAR                                     */
/* ============================================ */
.apartment-sidebar {
    flex: 1;
    position: sticky;
    top: 20px;
}

.property-card,
.amenities-card,
.rules-card,
.booking-summary-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.property-card h4,
.amenities-card h4,
.rules-card h4,
.booking-summary-sidebar h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.property-description {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 15px;
}

.property-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
}

.stat-item i {
    color: #667eea;
    width: 18px;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity-chip {
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.rule-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.rule-status.status-allowed {
    background: #d1fae5;
    color: #065f46;
}

.rule-status.status-not-allowed {
    background: #fee2e2;
    color: #991b1b;
}

.check-times {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f8fafc;
    padding: 10px 16px;
    border-radius: 8px;
    margin-top: 15px;
}
/* ============================================ */
/* PROFESSIONAL FEATURES - COMPACT & CLEAN      */
/* ============================================ */

.property-features {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Τα πρώτα 3 σε σειρά */
.features-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

/* Μικρά τετραγωνάκια */
.feature-item {
    flex: 1;
    background: #f8fafc;
    padding: 10px 6px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.feature-item i {
    font-size: 18px;
    color: #667eea;
    margin-right: 6px;
}

.feature-item .feature-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.feature-item .feature-label {
    font-size: 13px;
    color: #64748b;
}

/* Min 1 night - ίδιο ακριβώς μέγεθος με τα άλλα */
.min-nights-item {
    background: #f0fdf4;
    padding: 10px 6px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #d1fae5;
}

.min-nights-item i {
    font-size: 18px;  /* ίδιο με feature-item i */
    color: #10b981;
    margin-right: 6px;
}

.min-nights-item .feature-value {
    font-size: 18px;  /* ίδιο με feature-item */
    font-weight: 700;
    color: #065f46;
}

.min-nights-item .feature-label {
    font-size: 13px;  /* ίδιο με feature-item */
    color: #065f46;
}
/* ============================================ */
/* UNIT SELECTOR                               */
/* ============================================ */
.unit-selector {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border: 1px solid #e2e8f0;
}

.availability-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #d1fae5;
    color: #065f46;
}

.availability-badge.ok {
    background: #d1fae5;
    color: #065f46;
}

.availability-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================ */
/* PRICE SUMMARY                               */
/* ============================================ */
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: #475569;
}

.price-row.total {
    font-weight: 700;
    color: #1e293b;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 12px;
}

.continue-btn {
    width: 100%;
    padding: 10px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 15px;
}

.continue-btn:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.continue-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}
.day-cell.last-night-green {
    background: #10b981;
    color: white;
}
/* ============================================ */
/* RESPONSIVE                                  */
/* ============================================ */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .apartment-sidebar {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .calendar-header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-right {
        justify-content: center;
    }
    
    .calendar-nav {
        flex-direction: column;
    }
    
    .months-grid {
        grid-template-columns: 1fr;
    }
    
    .day-cell {
        min-height: 65px;
        padding: 4px 2px;
    }
    
    .day-number {
        font-size: 13px;
    }
}
.day-cell.first-night .day-price span,
.day-cell.in-range .day-price span {
    color: #1e293b !important;  /* μαύρο/σκούρο */
}

.day-cell.first-night .day-availability,
.day-cell.in-range .day-availability {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}
/* Για τις επιλεγμένες ημερομηνίες (μπλε background) */
.day-cell.first-night .day-price span,
.day-cell.in-range .day-price span,
.day-cell.last-night-green .day-price span {
    color: white !important;
}

/* Για το badge διαθεσιμότητας σε μπλε/πράσινο background */
.day-cell.first-night .day-availability,
.day-cell.in-range .day-availability,
.day-cell.last-night-green .day-availability {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Για το badge σε πρώτη επιλογή (μπλε) */
.day-cell.first-night .day-availability {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

/* Για το badge σε τελευταία ημέρα (πράσινο) */
.day-cell.last-night-green .day-availability {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}
.legend-color.last-night-green {
    background: #10b981;
    border-radius: 2px;
}
/* Professional Dropdown */
.unit-select {
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
	height: 28px;
    padding: 0 24px 0 10px;
    line-height: 36px;

}

.unit-select:hover {
    border-color: #c8a05e;
}

.unit-select:focus {
    outline: none;
    border-color: #c8a05e;
    box-shadow: 0 0 0 3px rgba(200, 160, 94, 0.1);
}


