/* ── Lapland Entry Point – Availability Calendar v3 ── */

/* ═══ DATE PICKER ═══════════════════════════════════════════════════════════ */

.lep-datepicker-wrap {
    background: #1A3A5C;
    border-radius: 14px;
    padding: 24px 28px 18px;
    max-width: 560px;
    margin: 0 auto 32px;
    box-shadow: 0 6px 28px rgba(26, 58, 92, 0.22);
}

.lep-datepicker-inner {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.lep-datepicker-sep {
    color: #C9A84C;
    font-size: 1.4rem;
    font-weight: 700;
    padding-bottom: 6px;
    flex-shrink: 0;
}

.lep-datepicker-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 140px;
}

.lep-datepicker-field label {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #C9A84C;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.lep-datepicker-field input[type="date"] {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(201, 168, 76, 0.5);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    padding: 9px 12px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s;
    color-scheme: dark;
}

.lep-datepicker-field input[type="date"]:focus {
    outline: none;
    border-color: #C9A84C;
}

.lep-datepicker-hint {
    margin: 12px 0 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

/* ═══ CALENDAR WRAP ═════════════════════════════════════════════════════════ */

.lep-calendar-wrap {
    font-family: 'Open Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

/* ═══ MONTH BLOCK ═══════════════════════════════════════════════════════════ */

.lep-month {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(26, 58, 92, 0.13);
    padding: 22px 20px 18px;
}

/* ── Navigation ── */
.lep-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lep-month-title {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1A3A5C;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    flex: 1;
}

.lep-btn-nav {
    background: none;
    border: 1.5px solid #1A3A5C;
    border-radius: 50%;
    color: #1A3A5C;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.lep-btn-nav:hover:not(:disabled) {
    background: #1A3A5C;
    color: #ffffff;
}

.lep-btn-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

/* ── Grid ── */
.lep-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.lep-dow {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #1A3A5C;
    padding: 3px 0 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Day cells ── */
.lep-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
}

.lep-empty { background: transparent; }

.lep-available {
    background: #E8F5E9;
    color: #2e7d32;
}

.lep-past {
    background: #f5f5f5;
    color: #c0c0c0;
}

.lep-today.lep-available {
    outline: 2px solid #2e7d32;
    outline-offset: -2px;
}

/* Booked – middle of a run */
.lep-booked         { background: #C9A84C; color: #fff; border-radius: 0; }
.lep-run-single     { border-radius: 6px; }
.lep-run-mid        { border-radius: 0; }

/* Check-in: top-left = available (green), bottom-right = booked (gold) */
.lep-checkin {
    background: linear-gradient(135deg, #E8F5E9 50%, #C9A84C 50%);
    color: #1A3A5C;
    border-radius: 6px;
}

/* Check-out: top-left = booked (gold), bottom-right = available (green) */
.lep-checkout {
    background: linear-gradient(135deg, #C9A84C 50%, #E8F5E9 50%);
    color: #1A3A5C;
    border-radius: 6px;
}

/* Selected stay range */
.lep-selected       { background: #BBDEFB; color: #0d47a1; border-radius: 0; }
.lep-sel-single     { border-radius: 6px; }
.lep-sel-start      { border-radius: 6px 0 0 6px; }
.lep-sel-end        { border-radius: 0 6px 6px 0; }
.lep-sel-mid        { border-radius: 0; }

/* ── Status banner ── */
.lep-status {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 14px 0 0;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    letter-spacing: 0.3px;
}

.lep-status-available   { background: #E8F5E9; color: #2e7d32; }
.lep-status-unavailable { background: #FFEBEE; color: #c62828; }

/* ── CTA button ── */
.lep-cta-btn {
    display: block;
    text-align: center;
    margin: 14px 0 0;
    padding: 12px 20px;
    background: #C9A84C;
    color: #ffffff !important;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 3px 10px rgba(201, 168, 76, 0.35);
}

.lep-cta-btn:hover:not(.lep-cta-disabled) {
    background: #b8943e;
    transform: translateY(-1px);
}

.lep-cta-disabled {
    background: #e0e0e0 !important;
    color: #9e9e9e !important;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Legend ── */
.lep-legend {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.lep-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #555;
}

.lep-dot {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.lep-dot-available { background: #E8F5E9; border: 1.5px solid #2e7d32; }
.lep-dot-selected  { background: #BBDEFB; border: 1.5px solid #0d47a1; }
.lep-dot-booked    { background: #C9A84C; }
.lep-dot-checkin   { background: linear-gradient(135deg, #E8F5E9 50%, #C9A84C 50%); border: 1px solid #C9A84C; }
.lep-dot-checkout  { background: linear-gradient(135deg, #C9A84C 50%, #E8F5E9 50%); border: 1px solid #C9A84C; }
.lep-dot-past      { background: #f5f5f5; border: 1.5px solid #c0c0c0; }

/* ═══ RESPONSIVE ════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .lep-datepicker-sep { display: none; }
    .lep-datepicker-field { flex: 1 1 100%; }
    .lep-calendar-wrap { max-width: 100%; }
    .lep-month { max-width: 100%; }
    .lep-day { font-size: 0.72rem; }
}
