/* ============================
   BUSINESS SCHEDULE CALENDAR
   ============================ */
.schedule-section { background: #fff; }
.schedule-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.schedule-heading .section-title { margin-bottom: .5rem; }
.schedule-lead { color: var(--color-muted); }
.schedule-legend { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; color: var(--color-muted); font-size: .78rem; }
.schedule-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend-dot { width: .7rem; height: .7rem; border-radius: 50%; }
.legend-open { background: var(--color-accent); }
.legend-closed { background: var(--flat-muted, #535353); }
.legend-unset { background: #a7a7a7; }
.legend-event { background: var(--color-sky); }
.schedule-calendar { padding: 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.schedule-controls { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; max-width: 390px; margin: 0 auto 1.2rem; }
.schedule-current-month { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; text-align: center; }
.schedule-nav { width: 40px; height: 40px; border: 1px solid var(--color-border); border-radius: 50%; background: #fff; color: var(--color-text); cursor: pointer; font-size: 1.1rem; }
.schedule-nav:hover:not(:disabled) { border-color: var(--color-accent); color: var(--color-accent); }
.schedule-nav:disabled { opacity: .3; cursor: default; }
.schedule-weekdays, .schedule-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.schedule-weekdays span { padding: .55rem; color: var(--color-muted); font-size: .72rem; font-weight: 700; text-align: center; }
.schedule-weekdays span:first-child { color: var(--flat-green-dark, #1d6849); }
.schedule-weekdays span:last-child { color: var(--flat-blue-dark, #18537f); }
.schedule-day { min-height: 116px; padding: .55rem; border-top: 1px solid var(--color-border); border-left: 1px solid var(--color-border); background: #fff; overflow: hidden; cursor: pointer; }
.schedule-day:not(.is-blank):hover { position: relative; z-index: 1; box-shadow: inset 0 0 0 2px var(--color-accent); }
.schedule-day:focus-visible { position: relative; z-index: 2; outline: 3px solid var(--color-accent); outline-offset: -3px; }
.schedule-day:nth-child(7n) { border-right: 1px solid var(--color-border); }
.schedule-day.is-blank { background: #fff; }
.schedule-day.is-blank { cursor: default; }
.schedule-day.is-closed { background: #f2f2f2; }
.schedule-day.is-unset { background: #f4f4f4; color: #777; }
.schedule-day.is-today { box-shadow: inset 0 0 0 2px var(--flat-blue, #226fa8); }
.schedule-day-head { display: flex; align-items: center; justify-content: space-between; gap: .3rem; }
.schedule-day-head time { font-family: var(--font-display); font-weight: 700; }
.schedule-status { padding: .08rem .35rem; border-radius: 999px; background: var(--color-accent-lt); color: #1d6849; font-size: .58rem; font-weight: 700; }
.is-closed .schedule-status { background: #e5e5e5; color: var(--flat-muted, #535353); }
.is-unset .schedule-status { background: #e2e2e2; color: #555; }
.schedule-note, .schedule-hours { margin-top: .3rem; color: var(--color-muted); font-size: .66rem; line-height: 1.35; }
.schedule-event { display: block; margin-top: .35rem; padding: .25rem .35rem; border-radius: 6px; background: #e9f6fb; color: #215c74; font-size: .65rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.schedule-event:hover { background: #d8eff8; }
.schedule-event span, .schedule-event small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-event small { margin-top: .1rem; font-size: .57rem; font-weight: 500; }
.schedule-footnote { margin-top: 1rem; color: var(--color-muted); font-size: .75rem; text-align: right; }
.schedule-detail-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; background: rgba(20, 20, 20, .55); }
.schedule-detail-modal[hidden] { display: none; }
.schedule-detail-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.5rem; border: 2px solid var(--flat-line, #242424); border-radius: 12px; background: #fff; box-shadow: 10px 10px 0 rgba(0, 0, 0, .25); }
.schedule-detail-dialog > h3 { padding-right: 2.5rem; font-family: var(--font-display); font-size: 1.35rem; }
.schedule-detail-close { position: absolute; top: .75rem; right: .75rem; width: 38px; height: 38px; border: 1px solid var(--color-border); border-radius: 50%; background: #fff; color: var(--color-text); font-size: 1.4rem; cursor: pointer; }
.schedule-detail-dialog section { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.schedule-detail-dialog h4 { margin-bottom: .65rem; font-size: .92rem; }
.schedule-detail-dialog ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.schedule-detail-dialog li { display: grid; gap: .2rem; padding: .7rem .8rem; border-radius: 7px; background: #f7f7f7; font-size: .82rem; line-height: 1.55; }
.schedule-detail-dialog li span { color: var(--color-muted); font-size: .75rem; }
.schedule-detail-dialog a { color: var(--color-accent-dk, #1d6849); font-weight: 700; }
.schedule-detail-empty { color: var(--color-muted); font-size: .82rem; }
body.has-schedule-modal { overflow: hidden; }

@media (max-width: 768px) {
    .schedule-heading { display: block; }
    .schedule-legend { margin-top: 1rem; }
    .schedule-calendar { padding: .75rem; }
    .schedule-day { min-height: 70px; padding: .3rem; }
    .schedule-day-head { align-items: center; flex-direction: row; gap: .1rem; }
    .schedule-status { display: inline-block; padding: .05rem .25rem; font-size: .5rem; line-height: 1.35; white-space: nowrap; }
    .schedule-note, .schedule-hours { display: none; }
    .schedule-event { padding: .2rem; font-size: .56rem; }
    .schedule-event small { display: none; }
    .schedule-footnote { text-align: left; }
}

@media (max-width: 420px) {
    .schedule-calendar { margin-inline: -1rem; border-radius: 14px; }
    .schedule-day { min-height: 62px; }
    .schedule-day-head time { font-size: .78rem; }
    .schedule-status { font-size: .46rem; }
    .schedule-event { line-height: 1.2; }
}

/* Progressive reveal enhancement (previously injected by main.js). */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
