/* ============================================
   LM EVENTS - AVAILABILITY CALENDAR
   Location: assets/css/services/availability.css
   ============================================ */

.lm-cal {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    font-family: 'Inter', -apple-system, sans-serif;
    user-select: none;
}

/* HEADER */
.lm-cal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lm-cal-title {
    font-weight: 700;
    color: #0f3460;
    font-size: 14px;
}

.lm-cal-nav {
    display: flex;
    gap: 4px;
}

.lm-cal-nav button {
    background: #f8fafc;
    border: 1px solid #eef1f6;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #0f3460;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.lm-cal-nav button:hover:not(:disabled) {
    background: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.lm-cal-nav button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* GRID */
.lm-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.lm-cal-dow {
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    color: #8898aa;
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.lm-cal-day {
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #0f3460;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    border: 1.5px solid transparent;
}

.lm-cal-day.blank {
    pointer-events: none;
    background: transparent;
    border: none;
}

.lm-cal-day.available {
    background: #f0fdf4;
    border-color: #d4f5e0;
    color: #1e8449;
}

.lm-cal-day.available:hover {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(39, 174, 96, .3);
}

.lm-cal-day.limited {
    background: #fff8e6;
    border-color: #fdebd0;
    color: #b9770e;
}

.lm-cal-day.limited:hover {
    background: #f39c12;
    border-color: #f39c12;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(243, 156, 18, .35);
}

.lm-cal-day.full {
    background: #fadbd8;
    border-color: #f5b7b1;
    color: #922b21;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: .85;
}

.lm-cal-day.past {
    background: #f8fafc;
    color: #c5cdd8;
    cursor: not-allowed;
    border-color: #eef1f6;
}

.lm-cal-day.selected {
    background: linear-gradient(135deg, #0f3460, #1a1a2e) !important;
    color: #fff !important;
    border-color: #0f3460 !important;
    box-shadow: 0 4px 12px rgba(15, 52, 96, .3);
}

.lm-cal-day.today {
    border: 2px dashed #f39c12;
}

/* LEGEND */
.lm-cal-legend {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eef1f6;
    font-size: 11px;
    color: #556070;
}

.lm-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lm-cal-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.lm-cal-legend .lg-available i { background: #27ae60; }
.lm-cal-legend .lg-limited   i { background: #f39c12; }
.lm-cal-legend .lg-full      i { background: #e74c3c; }
.lm-cal-legend .lg-past      i { background: #c5cdd8; }

/* READOUT */
.lm-cal-readout {
    text-align: center;
    margin-top: 8px;
    font-size: 12.5px;
    color: #556070;
}

.lm-cal-readout strong {
    color: #0f3460;
}

/* LOADING / ERROR */
.lm-cal-loading,
.lm-cal-error {
    text-align: center;
    padding: 24px 10px;
    font-size: 13px;
    color: #8898aa;
}

.lm-cal-error {
    color: #b0303e;
}

@media (max-width: 480px) {
    .lm-cal { padding: 10px; }
    .lm-cal-day { font-size: 12px; border-radius: 6px; }
    .lm-cal-legend { gap: 8px; font-size: 10px; }
}
/* ============================================
   UI REFRESH: notice window, notice banner, readout
   ============================================ */
.lm-cal-notice {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fff8e6; border: 1px solid #fdebd0; border-left: 4px solid #f39c12;
    border-radius: 10px; padding: 10px 14px; margin-bottom: 12px;
    font-size: 13px; color: #7a5a12; line-height: 1.45;
}
.lm-cal-notice i { color: #f39c12; margin-top: 2px; }
.lm-cal-notice a { color: #0f3460; font-weight: 700; text-decoration: underline; }

.lm-cal { box-shadow: 0 2px 12px rgba(15, 52, 96, .06); padding: 18px; }
.lm-cal-title { font-size: 16px; }
.lm-cal-nav button { width: 36px; height: 36px; }
.lm-cal-grid { gap: 6px; }
.lm-cal-day { font-size: 14.5px; min-height: 40px; }
.lm-cal-day:focus-visible { outline: 3px solid rgba(243,156,18,.5); outline-offset: 1px; }

/* the days blocked by the notice rule (incl. the 3rd day from today) */
.lm-cal-day.notice {
    background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 4px, #eef1f6 4px, #eef1f6 8px);
    color: #a5aebb;
    text-decoration: line-through;
    border-color: #e3e8ef;
}
.lm-cal-legend .lg-notice i {
    background: repeating-linear-gradient(45deg, #fff, #fff 2px, #c5cdd8 2px, #c5cdd8 4px);
    border: 1px solid #c5cdd8;
}
.lm-cal-day.selected { transform: scale(1.04); }
.lm-cal-readout {
    background: #f0f4fa; border-radius: 10px; padding: 10px 12px; margin-top: 12px;
    font-size: 13.5px;
}
.lm-cal-readout i { color: #f39c12; margin-right: 4px; }

@media (max-width: 480px) {
    .lm-cal { padding: 12px; }
    .lm-cal-grid { gap: 4px; }
    .lm-cal-day { font-size: 13px; min-height: 38px; }
}