/* 
   Verano Takvim - Restored Peak Performance Style (Turn 16)
   Seamless ranges, rounded ends, smart transitions.
*/

.calendar-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.calendar-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

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

.calendar-header h2 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0; }

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #f1f5f9;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    color: #64748b;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 4px;
    column-gap: 0;
}

.day {
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.day-num { font-size: 0.9rem; font-weight: 500; color: #1e293b; z-index: 2; }
.day-price { font-size: 0.6rem; color: #64748b; font-weight: 700; z-index: 2; }

.day::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    z-index: 0;
    transition: 0.2s;
}

.day:hover::before { background-color: #f8fafc; }

/* SELECTION RANGE */
.day.selected::before { background-color: #0f172a !important; color: #fff !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; }
.day.selected .day-num, .day.selected .day-price { color: #fff !important; }

.day.range-start::before { border-radius: 12px 0 0 12px !important; }
.day.range-end::before { border-radius: 0 12px 12px 0 !important; }
.day.in-range::before { background-color: #f1f5f9 !important; border-radius: 0 !important; width: 100% !important; height: 100% !important; }

/* Legend Styles */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.dot { width: 10px; height: 10px; border-radius: 3px; }
.dot.booked { background: #ef4444; }
.dot.option { background: #f97316; }
.dot.available { background: #fff; border: 1px solid #e2e8f0; }

/* Status Range (Dolu/Opsiyon) - High Clarity Edition */
.day.booked::before { background-color: #ef4444 !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; }
.day.option::before { background-color: #f97316 !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; }

.day.booked .day-num { color: #fff !important; font-weight: 800 !important; text-decoration: line-through rgba(255,255,255,0.5); }
.day.booked .day-price, .day.option .day-num, .day.option .day-price { color: #fff !important; }

.day.status-range-start::before { border-radius: 12px 0 0 12px !important; }
.day.status-range-end::before { border-radius: 0 12px 12px 0 !important; }

/* Transitions (Diagonal) */
.day.is-checkin-booked::before { background: linear-gradient(115deg, transparent 48%, #ef4444 50%) !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; }
.day.is-checkout-booked::before { background: linear-gradient(115deg, #ef4444 48%, transparent 52%) !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; }

.day.past { opacity: 0.15 !important; cursor: not-allowed !important; pointer-events: none !important; }
.day.past::before { background-color: transparent !important; }

/* FOOTER */
.calendar-footer { margin-top: 25px; padding-top: 25px; border-top: 1px solid #f1f5f9; }
#rangeText { font-size: 1rem; font-weight: 700; color: #0f172a; }
#nightCount { font-size: 0.8rem; color: #f97316; font-weight: 700; margin-top: 4px; }
.footer-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
#resetBtn { background: none; border: none; color: #64748b; cursor: pointer; text-decoration: underline; font-size: 0.85rem; }
.primary-btn { background: #f97316; color: #fff; border: none; padding: 12px 24px; border-radius: 14px; font-weight: 700; cursor: pointer; }
