/* 일정표 머리: 큰 연·월 표기, 이전/다음 달, 예약 버튼입니다. */
.cal-head { align-items: flex-end; margin-bottom: 24px; }
.cal-month { margin: 0 0 10px; color: #111; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.cal-month span { color: #777; font-size: 34px; font-weight: 400; }
.month-nav { display: flex; align-items: center; }
.month-nav a { display: inline-flex; align-items: center; gap: 6px; color: #333; font-size: 15px; }
.month-nav a:hover { color: var(--orange); }
.month-nav__prev:before, .month-nav__next:after { content: ""; display: grid; width: 22px; height: 22px; border-radius: 50%; background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M6.5 1.5 3 5l3.5 3.5' fill='none' stroke='%23555' stroke-width='1.4'/%3E%3C/svg%3E") center/10px no-repeat; }
.month-nav__next:after { transform: scaleX(-1); }
.month-nav__next { margin-left: 10px; padding-left: 10px; border-left: 1px solid #ccc; line-height: 1; }
.btn-reserve { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border: 1px solid var(--orange); border-radius: 100px; color: var(--orange); font-size: 15px; font-weight: 600; transition: background .15s, color .15s; }
.btn-reserve:after { content: "›"; font-size: 18px; line-height: 1; }
.btn-reserve:hover { background: var(--orange); color: #fff; }

/* 일정표 달력: 회색 요일 머리, 원형 날짜, 흰 카드 형태의 일정입니다. */
.calendar { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; }
.calendar th { height: 46px; padding: 0; background: #666; color: #fff; font-size: 15px; font-weight: 700; text-align: center; vertical-align: middle; }
.calendar th abbr { text-decoration: none; }
.calendar td { height: 130px; padding: 10px 8px; border-top: 1px solid #e5e5e5; border-left: 1px solid #e5e5e5; vertical-align: top; background: #fff; }
.calendar td:first-child { border-left: 0; }
.calendar td.off { background: #f1f3f6; }
.calendar .day { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-bottom: 8px; padding: 0 4px; border-radius: 50%; background: #f6f6f6; color: #333; font-size: 12px; }
.calendar td.sun .day { color: #e0402f; }
.calendar td.sat .day { color: #2f6fd1; }
.calendar td.off .day { background: transparent; color: #aaa; }
.calendar td.today .day { background: var(--orange); color: #fff; font-weight: 700; }
.calendar .ev { position: relative; display: block; margin-top: 6px; padding: 6px 8px 6px 28px; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.16); color: var(--tone); font-size: 13px; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.calendar .ev:before { content: ""; position: absolute; left: 8px; top: 8px; width: 14px; height: 14px; background: var(--tone); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3Cpath d='M5 8.2 7 10l4-4.2' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3Cpath d='M5 8.2 7 10l4-4.2' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center/contain no-repeat; }
.calendar button.ev { width: 100%; border: 0; text-align: left; font-family: inherit; cursor: pointer; }
.calendar .ev.is-requested:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E"); }
.calendar .ev:hover, .calendar .ev:focus-visible { box-shadow: 0 0 0 1px var(--tone), 0 2px 8px rgba(0,0,0,.12); outline: 0; }
.calendar .ev time { display: block; color: #888; font-size: 12px; font-weight: 700; }

/* 장소별 색: 범례 칩과 일정 카드가 같은 색을 씁니다. */
.tone-0 { --tone: #555; }
.tone-1 { --tone: #e2581b; }
.tone-2 { --tone: #2b7bc4; }
.tone-3 { --tone: #1d8f5f; }
.tone-4 { --tone: #c63f7f; }
.tone-5 { --tone: #6f45b8; }
.tone-6 { --tone: #a76f00; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--tone); border-radius: 3px; color: var(--tone); font-size: 13px; font-weight: 600; }
.cal-legend li:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.cal-legends { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.cal-legends .cal-legend { margin: 0; }
.cal-status { display: flex; gap: 14px; margin: 0; padding: 6px 0 0; list-style: none; color: #555; font-size: 13px; white-space: nowrap; }
.cal-status li { display: inline-flex; align-items: center; gap: 5px; }
.cal-status li:before { content: ""; width: 13px; height: 13px; border: 1.5px solid #2b7bc4; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3 7 10.6l4.4-4.6' fill='none' stroke='%232b7bc4' stroke-width='1.6'/%3E%3C/svg%3E") center/100% no-repeat; }
.cal-status li.is-requested:before { border-color: var(--orange); background: none; }

/* 예약정보 팝업: 일정을 누르면 뜨는 상세 정보 창입니다. */
.ev-modal { width: min(560px, calc(100% - 40px)); padding: 0; border: 0; background: transparent; overflow: visible; }
.ev-modal::backdrop { background: rgba(0,0,0,.45); }
.ev-modal__box { position: relative; padding: 26px 24px 22px; border: 2px solid var(--orange); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.ev-modal__close { position: absolute; top: -18px; right: -18px; width: 36px; height: 36px; border: 1.5px solid var(--orange); border-radius: 50%; background: #fff; cursor: pointer; }
.ev-modal__close:before, .ev-modal__close:after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--orange); transform: translate(-50%, -50%) rotate(45deg); }
.ev-modal__close:after { transform: translate(-50%, -50%) rotate(-45deg); }
.ev-modal__close:hover { background: var(--orange); }
.ev-modal__close:hover:before, .ev-modal__close:hover:after { background: #fff; }
.ev-modal__title { display: flex; align-items: center; gap: 6px; margin: 0; color: #111; font-size: 20px; font-weight: 800; }
.ev-modal__title:before { content: "!"; display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid var(--orange); border-radius: 50%; color: var(--orange); font-size: 11px; font-weight: 800; line-height: 1; }
.ev-modal__name { margin: 4px 0 12px; color: #777; font-size: 14px; }
.ev-modal__grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1.5px solid #333; }
.ev-modal__grid div { display: grid; grid-template-columns: 92px 1fr; align-items: center; min-height: 44px; border-bottom: 1px solid #e5e5e5; }
.ev-modal__grid .is-wide { grid-column: 1 / -1; grid-template-columns: 92px 1fr; }
.ev-modal__grid dt { padding: 0 10px; color: #111; font-size: 14px; font-weight: 800; }
.ev-modal__grid dd { margin: 0; padding: 8px 10px 8px 0; color: #444; font-size: 14px; word-break: keep-all; overflow-wrap: anywhere; }
.ev-modal__link[hidden] { display: none; }
.ev-modal__link { display: inline-flex; margin-top: 14px; color: var(--orange); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
    .ev-modal__grid { grid-template-columns: 1fr; }
    .ev-modal__close { top: -14px; right: -8px; }
    .cal-legends { flex-direction: column; }
}
.cal-empty { margin: 18px 0 0; color: #888; font-size: 15px; text-align: center; }

/* 일정안내 확대: 달력 페이지만 본문 폭을 넓히고 칸·글자를 키웁니다. */
body:has(.calendar) main .wrap { width: min(1360px, 92%); }
.calendar th { height: 52px; font-size: 16px; }
.calendar td { height: 160px; padding: 12px 10px; }
.calendar .day { min-width: 28px; height: 28px; font-size: 13px; }
.calendar .ev { padding: 7px 10px 7px 30px; font-size: 14px; }
.calendar .ev:before { top: 9px; left: 9px; }
.calendar .ev time { font-size: 12.5px; }

/* 알림 상자: 예약 신청 결과와 입력 오류를 보여줍니다. */
.form-alert { margin: 0 0 20px; padding: 14px 18px; border: 1px solid #f3c2b0; border-radius: 10px; background: #fff4ef; color: #9a3412; font-size: 15px; }
.form-alert p { margin: 0; font-weight: 700; }
.form-alert ul { margin: 6px 0 0; padding-left: 18px; }
.form-alert.is-ok { border-color: #b9e2c8; background: #effaf3; color: #17663a; font-weight: 700; }

/* 시설이용예약 신청서: 절차 안내, 입력 칸, 개인정보 동의입니다. */
.resv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: none; }
.resv-steps li { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid #eee; border-radius: 14px; background: #fff; font-size: 17px; font-weight: 800; }
.resv-steps b { color: var(--orange); font-size: 13px; letter-spacing: .06em; }
.resv-steps span { color: #888; font-size: 13.5px; font-weight: 500; }
.resv-note { margin: 0 0 26px; color: #666; font-size: 14.5px; }
.resv-note a { color: var(--orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.resv-form fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.resv-form legend { width: 100%; margin-bottom: 4px; padding-bottom: 10px; border-bottom: 2px solid #111; font-size: 18px; font-weight: 800; }
.resv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.resv-field { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid #e8e8e8; }
.resv-field label, .resv-label { font-size: 15px; font-weight: 700; }
.resv-form em { color: var(--orange); font-style: normal; }
.resv-field input, .resv-field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #222; font: inherit; font-size: 15px; }
.resv-field input:focus, .resv-field select:focus { outline: 2px solid rgba(239,106,44,.3); border-color: var(--orange); }
.resv-field.has-error input, .resv-field.has-error select { border-color: #dc2626; background: #fffafa; }
.resv-time { display: flex; align-items: center; gap: 8px; }
.resv-time select { flex: 1; }
.resv-help { margin: 10px 0 0; color: #888; font-size: 13.5px; }
.resv-agree dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 14px 0 10px; padding: 16px 18px; border-radius: 10px; background: #f7f7f7; font-size: 14px; }
.resv-agree dt { color: #333; font-weight: 700; }
.resv-agree dd { margin: 0; color: #555; }
.resv-agree p { margin: 0 0 12px; color: #888; font-size: 13.5px; }
.resv-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; cursor: pointer; }
.resv-check input { width: 20px; height: 20px; accent-color: var(--orange); }
.resv-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.resv-cancel, .resv-submit { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; height: 52px; padding: 0 26px; border-radius: 100px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.resv-cancel { border: 1px solid #ccc; color: #444; }
.resv-submit { border: 0; background: var(--orange); color: #fff; }
.resv-submit:hover { background: #d9561b; }
.resv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) {
    .resv-steps, .resv-grid { grid-template-columns: 1fr; }
    .resv-field { grid-template-columns: 1fr; gap: 6px; }
    .calendar td { height: 110px; }
}
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
