/*
 * 충남아이키움포털 — ik_center 스킨 (센터 소개) 전용 스타일
 * 02-1 인사말 / 02-2 조직도 / 02-3 월별 일정
 * 공통 디자인 토큰(:root 변수)은 _layout/bootstrap/css/style.css 에서 로드됩니다.
 */

.app {

    background: #ffffff;
}

/* ===== 서브 탭 ===== */
.subtabs {
    position: sticky;
    top: var(--topbar-h);
    z-index: 19;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.subtabs__scroll {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
    padding: 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.subtabs__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .3;
    white-space: nowrap;
}

/* ===== 인사말 (02-1) ===== */
.intro-hero {
    position: relative;
    background: #eef8f8;
    padding: 24px 24px 32px;
    overflow: hidden;
}

.intro-hero__title,
.intro-hero__desc {
    position: relative;
    z-index: 1;
}

.intro-hero__title {
    font-weight: 800;
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.28;
    letter-spacing: -.02em;
    color: var(--color-text);
}

.intro-hero__desc {
    margin-top: 20px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .8;
}

.intro-hero {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.intro-hero__deco {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45.5%;
    max-width: 201px;
    height: auto;
    pointer-events: none;
}

.intro-body {
    padding: 16px 0 8px;
}

.intro-body__lead,
.intro-body__closing {
    padding: 12px 24px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .85;
}

.intro-body__lead strong {
    font-weight: 700;
    opacity: 1;
}

.mission {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}

.mission__item {
    padding: 8px 24px;
}

.mission__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 32px;
    padding: 0 10px;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
}

.mission__title {
    margin-top: 12px;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    color: var(--color-text);
}

.mission__desc {
    margin-top: 4px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .8;
}

.intro-sign {
    padding: 24px;
    text-align: right;
}

.intro-sign__role {
    font-weight: 600;
    font-size: 16px;
    line-height: 32px;
    color: var(--color-text);
}

.intro-sign__name {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: var(--color-text);
}

/* ===== 조직도 (02-2) ===== */
.org {
    padding: 24px 20px;
}

/* 트리 — 한 단계당 32px 들여쓰기, 박스는 우측 정렬 풀폭 */
.orgtree,
.orgtree__children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.orgtree__children {
    padding-left: 32px;
}

.orgnode {
    position: relative;
}

/* 노드 간 세로 간격 16px (gap 대신 margin 으로 연결선이 덮도록) */
.orgtree__children>.orgnode {
    margin-top: 16px;
}

/* 연결선 색 */
.orgtree {
    --org-line: #d2d2d2;
}

/* 세로 연결선 — 윗 간격(16px) + 박스 중앙(30px)까지 */
.orgtree__children>.orgnode::before {
    content: "";
    position: absolute;
    left: -16px;
    top: -16px;
    width: 2px;
    bottom: 0;
    background: var(--org-line);
}

/* 마지막 자식은 박스 중앙까지만 */
.orgtree__children>.orgnode:last-child::before {
    bottom: auto;
    height: 46px;
}

/* 가로 연결선 — 박스 중앙(높이 60px 의 절반) */
.orgtree__children>.orgnode::after {
    content: "";
    position: absolute;
    left: -16px;
    top: 30px;
    width: 16px;
    height: 2px;
    background: var(--org-line);
}

/* 박스 공통 */
.orgbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 60px;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
}

.orgbox__label {
    position: relative;
    z-index: 1;
}

.orgbox__sub {
    position: relative;
    z-index: 1;
    opacity: .5;
}

/* 색상 박스 (센터장·팀) — 데코 클리핑을 위해 overflow hidden */
.orgbox--head,
.orgbox--blue,
.orgbox--teal,
.orgbox--orange {
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}

.orgbox--head {
    background: #b764a3;
}

.orgbox--blue {
    background: #0ca2ee;
}

.orgbox--teal {
    background: #009184;
}

.orgbox--orange {
    background: #ffa000;
}

/* 회색 박스 (팀장·팀원) */
.orgbox--gray {
    background: #f0f0f0;
    color: var(--color-text);
}

.orgbox--gray .orgbox__label {
    opacity: .8;
}

/* 우상단 워터마크 데코 SVG */
.orgbox__deco {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 96px;
    height: 52px;
    pointer-events: none;
}

/* ===== 월별 일정 (02-3) ===== */
.schedule-page {
    padding: 16px 20px 8px;
}

.sched-filter {
    display: flex;
    gap: 12px;
}

.dropdown {
    position: relative;
    flex: 1 0 0;
    min-width: 0;
}

.dropdown__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    background: #fff;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
}

.dropdown__caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid #9a9a9a;
    border-bottom: 2px solid #9a9a9a;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .15s;
}

.dropdown.is-open .dropdown__caret {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.dropdown__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 15;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    padding: 6px;
    display: none;
}

.dropdown.is-open .dropdown__menu {
    display: block;
}

.dropdown__option {
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    cursor: pointer;
}

.dropdown__option:hover {
    background: var(--color-bg);
}

.dropdown__option.is-selected {
    background: #eef8f8;
    color: var(--color-primary);
    font-weight: 700;
}

/* 주차 탭 */
.weektabs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.weektabs::-webkit-scrollbar {
    display: none;
}

.weektabs__tab {
    position: relative;
    flex: 1 0 auto;
    padding: 10px 4px 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text);
    opacity: .4;
    white-space: nowrap;
}

.weektabs__tab.is-active {
    opacity: 1;
    color: var(--color-primary);
}

.weektabs__tab.is-active::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--color-primary);
}

/* 일자 카드 (가로 스와이프) */
.daycards {
    display: flex;
    gap: 12px;
    margin: 16px -20px 0;
    padding: 0 20px 8px;
    overflow-x: auto;
    /* mandatory + center 조합은 첫/마지막 카드를 가운데로 맞출 수 없어
       스크롤이 되돌아가 "안 움직인다"는 느낌을 줍니다. proximity 로 완화합니다. */
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.daycards::-webkit-scrollbar {
    display: none;
}

/* 하루 = 헤더 카드 + 일정 카드, 두 섹션을 분리 (Figma 02-3) */
.dayblock {
    flex: 0 0 86%;
    /* center 는 양 끝 카드에서 맞출 수 없어 start 로 둡니다. */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 마우스로 끌어서 넘길 때 (데스크톱) — 링크 드래그·텍스트 선택을 막습니다. */
.daycards.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.daycards.is-dragging a {
    pointer-events: none;
}

.daycard {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 28px;
    overflow: hidden;
}

/* 헤더 카드 */
.daycard--head {
    padding: 20px 0 12px;
}

.daycard__badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.daycard__dow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 32px;
    padding: 0 8px;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
}

.daycard__dow--red {
    background: #e8534e;
}

.daycard__dow--green {
    background: #1bbf99;
}

.daycard__dow--teal {
    background: var(--color-primary);
}

.daycard__dow--orange {
    background: var(--color-accent);
}

.daycard__dow--blue {
    background: var(--color-secondary);
}

.daycard__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #ec6101;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
}

.daycard__date {
    padding: 8px 20px 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
}

/* 이벤트 — 카드 안에서 하단 구분선만 있는 플랫 행 (Figma 02-3) */
.daycard__events {
    display: flex;
    flex-direction: column;
}

.event {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
}

.event:last-child {
    border-bottom: 0;
}

.event__title {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
}

.event__meta {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.event__meta-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.event__meta-label {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: var(--color-primary);
    opacity: .8;
}

.event__meta-label.is-green {
    color: #6db92b;
}

.event__meta-label.is-primary {
    color: var(--color-primary);
}

.event__meta-value {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .8;
}

/* ===== 서브 탭 (2단계 — 시설 안내 / 시설 대관) ===== */
.subtabs2 {
    position: sticky;
    top: calc(var(--topbar-h) + 60px);
    z-index: 18;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 60px;
    padding: 0 24px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.subtabs2::-webkit-scrollbar {
    display: none;
}

.subtabs2__item {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .3;
    white-space: nowrap;
}

.subtabs2__item.is-active {
    opacity: 1;
}

/* ===== 시설 안내 (02-4) ===== */
.facility {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px 8px;
}

/* 공통 카드 */
.info-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 28px;
    padding: 12px 0 16px;
}

.info-card__title {
    padding: 8px 20px;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
}

/* 시설 현황 표 */
.info-table {
    margin: 0;
}

.info-table__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    min-height: 40px;
    font-size: 14px;
    line-height: 40px;
    color: var(--color-text);
}

.info-table__label {
    opacity: .5;
    flex: 0 0 auto;
}

.info-table__value {
    opacity: .8;
    text-align: right;
}

/* 층별 시설 */
.floorgroup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px;
}

.floorgroup__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 44px;
    height: 32px;
    padding: 0 10px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
}

.floorgroup__badge--blue {
    background: #0ca2ee;
}

.floorgroup__badge--teal {
    background: #009184;
}

.floorgroup__badge--orange {
    background: #ffa000;
}

.floorgroup__badge--b1 {
    background: #ec6101;
}

.floorgroup__rooms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.room-chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    white-space: nowrap;
}

.room-chip--blue {
    background: rgba(12, 162, 238, .1);
    color: #0ca2ee;
}

.room-chip--teal {
    background: rgba(0, 145, 132, .1);
    color: #009184;
}

.room-chip--orange {
    background: rgba(255, 160, 0, .1);
    color: #ffa000;
}

.room-chip--b1 {
    background: rgba(236, 97, 1, .1);
    color: #ec6101;
}

/* 도면 카드 */
.plan-card {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-tabs {
    display: flex;
    gap: 0;
    padding: 4px;
    background: var(--color-bg);
    border-radius: 20px;
}

.plan-tabs__tab {
    flex: 1 0 0;
    height: 48px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    opacity: .3;
}

.plan-tabs__tab.is-active {
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 0 2px rgba(0, 0, 0, .08);
    opacity: 1;
}

.plan-floor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-floor[hidden] {
    display: none;
}

.plan-floor__title {
    padding: 0 8px;
    font-weight: 700;
    font-size: 15px;
    line-height: 24px;
    color: var(--color-text);
}

.plan-card__map {
    border-radius: 20px;
    overflow: hidden;
    background: #faf7f0;
}

.plan-card__map img {
    width: 100%;
    height: auto;
    display: block;
}

.plan-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.plan-gallery__item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.plan-gallery__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 90 / 60;
    border-radius: 16px;
    overflow: hidden;
    background: #d9d9d9;
}

.plan-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.plan-gallery__caption {
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .6;
}

/* 편의시설 카드 */
.amenity {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 28px;
    padding: 8px 8px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amenity__photo {
    width: 100%;
    aspect-ratio: 360 / 240;
    border-radius: 20px;
    overflow: hidden;
    background: #d9d9d9;
}

.amenity__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amenity__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
}

.amenity__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
}

.amenity__loc {
    font-size: 14px;
    line-height: 24px;
}

.amenity__loc-label {
    font-weight: 700;
    color: var(--color-primary);
    opacity: .8;
    margin-right: 8px;
}

.amenity__loc-value {
    font-weight: 500;
    color: var(--color-text);
    opacity: .8;
}

.amenity__desc {
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .6;
}

/* ===== 시설 대관 — 공통 ===== */
/* 장소 텍스트 탭 (대관 장소) */
.roomtabs {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 60px;
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.roomtabs::-webkit-scrollbar {
    display: none;
}

.roomtabs__item {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .3;
    white-space: nowrap;
}

.roomtabs__item.is-active {
    opacity: 1;
}

/* 세그먼트 컨트롤 (대관 신청 장소) */
.seg {
    display: flex;
    padding: 4px;
    background: var(--color-bg);
    border-radius: 20px;
}

.seg__item {
    flex: 1 0 0;
    height: 48px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    opacity: .3;
}

.seg__item.is-active {
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 0 2px rgba(0, 0, 0, .08);
    opacity: 1;
}

/* ===== 대관 장소 (02-5-1) ===== */
.rental-place {
    padding-bottom: 8px;
}

.place-panel[hidden] {
    display: none;
}

.place-hero {
    position: relative;
}

.place-hero__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.place-hero__track::-webkit-scrollbar {
    display: none;
}

.place-hero__img {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 440 / 294;
    object-fit: cover;
    scroll-snap-align: center;
    background: #d9d9d9;
}

.place-hero__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.place-hero__dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 2px rgba(0, 0, 0, .3);
    transition: background .2s;
}

.place-hero__dots i.is-active {
    background: #fff;
}

.place-head__sub {
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text);
    opacity: .5;
}

.place-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px 8px;
}

.place-head__title {
    font-weight: 700;
    font-size: 22px;
    line-height: 32px;
    color: var(--color-text);
}

.place-head__loc {
    font-size: 14px;
    line-height: 24px;
}

.place-head__loc-label {
    font-weight: 700;
    color: var(--color-primary);
    opacity: .8;
    margin-right: 8px;
}

.place-head__loc-value {
    font-weight: 500;
    color: var(--color-text);
    opacity: .8;
}

.place-head__desc {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .6;
}

/* 사양 표 (개요 / 대관 시간) */
.spec-wrap {
    margin: 0 20px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
}

.spec,
.fee {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 24px;
    color: var(--color-text);
}

.spec th,
.spec td,
.fee th,
.fee td {
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    vertical-align: middle;
}

.spec th {
    width: 80px;
    background: var(--color-bg);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    opacity: .8;
}

.spec td {
    opacity: .85;
}

.spec__nested {
    padding: 0 !important;
    display: flex;
    align-items: stretch;
}

.spec__sub {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
    font-weight: 700;
    opacity: .8;
}

.spec__subval {
    padding: 8px 12px;
}

.spec__guides {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec__guides li {
    position: relative;
    padding-left: 12px;
    opacity: .8;
}

.spec__guides li::before {
    content: "·";
    position: absolute;
    left: 2px;
}

/* 섹션 (▶ 제목 + 본문) */
.rsec {
    padding: 16px 24px 8px;
}

.rsec__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    margin-bottom: 24px;
}

.rsec__title::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent var(--color-primary);
}

.rsec__text {
    margin-top: 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .8;
}

.rsec__list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rsec__list li {
    position: relative;
    padding-left: 14px;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .8;
}

.rsec__list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-primary);
}

.rsec__list--plain li::before {
    background: var(--color-text);
    opacity: .5;
}

.rsec .spec-wrap {
    margin: 12px 0 0;
}

/* 신청 절차 */
.steps {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steps__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 0 6px rgba(0, 0, 0, .04);
}

.steps__no {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(0, 145, 132, .2);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 14px;
}

.steps__label {
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: var(--color-text);
}

/* 표 아래 참고 문구 (※) */
.rsec__notes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 20px 0;
}

.rsec__notes li {
    position: relative;
    padding-left: 16px;
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    color: var(--color-text);
    opacity: .6;
    word-break: keep-all;
}

.rsec__notes li::before {
    content: '※';
    position: absolute;
    left: 0;
}

/* 대관료 표 */
.fee {
    text-align: center;
}

.fee th {
    background: var(--color-bg);
    font-weight: 500;
    opacity: .8;
}

.fee__times,
.fee__price {
    padding: 0 !important;
}

.fee__times span,
.fee__price span {
    display: block;
    padding: 8px 8px;
}

.fee__times span+span,
.fee__price span+span {
    border-top: 1px solid var(--color-border);
}

.fee__times {
    text-align: left;
    font-size: 13px;
}

.fee__price--span {
    padding: 8px 12px !important;
    background: #fff;
}

.fee--refund td {
    text-align: center;
    opacity: .85;
}

.fee--refund th[scope="row"] {
    width: 33.33%;
    background: var(--color-bg);
}

/* 감면사항 */
.reduce {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
}

.reduce__item {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.reduce__item:last-child {
    border-bottom: 0;
}

.reduce__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.reduce__name {
    font-weight: 700;
    font-size: 15px;
    line-height: 24px;
    color: var(--color-text);
}

.reduce__rates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex: 0 0 auto;
}

.reduce__rate {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(0, 145, 132, .1);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.reduce__docs {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    font-size: 14px;
    line-height: 22px;
}

.reduce__docs-label {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--color-primary);
    opacity: .8;
}

.reduce__docs-value {
    color: var(--color-text);
    opacity: .7;
}

/* ===== 대관 신청 (02-5-2) ===== */
.rental-apply {
    padding: 16px 20px 120px;
}

.rental-apply .seg {
    margin-bottom: 16px;
}

/* 달력 */
.cal {
    margin-top: 16px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
}

.cal__head {
    display: flex;
    background: var(--color-bg);
}

.cal__dow {
    flex: 1 0 0;
    min-width: 0;
    text-align: center;
    padding: 16px 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text);
    opacity: .6;
}

.cal__dow--sun {
    color: #ffa000;
    opacity: 1;
}

.cal__week {
    display: flex;
    background: #fff;
}

.cal__day {
    flex: 1 0 0;
    min-width: 0;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 8px 12px;
    border: 2px solid transparent;
}

.cal__day--muted {
    background: var(--color-bg);
}

.cal__num {
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text);
    opacity: .8;
}

.cal__day--off .cal__num {
    opacity: .3;
}

.cal__day--muted .cal__num {
    opacity: .2;
}

.cal__day:disabled {
    cursor: default;
}

.cal__day.is-selected {
    border-color: var(--color-primary);
}

.cal__dots {
    display: flex;
    gap: 4px;
}

.cal__dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.cal__dot--am {
    background: #ffa000;
}

.cal__dot--pm {
    background: #009184;
}

.cal__dot--off {
    background: #ececec;
}

.cal-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
}

.cal-legend li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--color-text);
    opacity: .5;
}

/* 시간 슬롯 */
.timeslots[hidden],
.rental-bar[hidden] {
    display: none;
}

.timeslots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.slot {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 12px 0 8px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: #fff;
}

.slot__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.slot__period {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
}

.slot__badge {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
}

.slot__body {
    display: flex;
    flex-direction: column;
    padding: 8px 16px;
}

.slot__time {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
}

.slot__price {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.slot--am .slot__period { background: #ffa000; }
.slot--pm .slot__period { background: #009184; }

.slot--am .slot__badge {
    background: rgba(255, 160, 0, .1);
    color: #ffa000;
}

.slot--pm .slot__badge {
    background: rgba(0, 145, 132, .1);
    color: #009184;
}

.slot--am .slot__price { color: #ffa000; }
.slot--pm .slot__price { color: #009184; }

.slot--am.is-selected { border: 2px solid #ffa000; }
.slot--pm.is-selected { border: 2px solid #009184; }

/* 서식 다운로드 */
.dl-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.dl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 20px;
    background: #f6f6f6;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    opacity: .85;
}

.dl-item__ico {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.dl-item__ico::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 11px;
    background: var(--color-text);
    transform: translateX(-50%);
    opacity: .6;
}

.dl-item__ico::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 5px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    transform: translateX(-50%) rotate(45deg);
    opacity: .6;
}

/* 하단 고정 바 */
.rental-bar {
    
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--bnb-h);
    z-index: 25;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);

    display: none;
}

.rental-bar__info {
    flex: 1 1 auto;
    min-width: 0;
}

.rental-bar__place {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-primary);
}

.rental-bar__when {
    margin-top: 2px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    opacity: .8;
}

.rental-bar__price {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 18px;
    color: var(--color-text);
}

.rental-bar__next {
    flex: 1 0 100%;
    height: 52px;
    border-radius: 16px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

/* ===== 대관 신청 조회 (02-5-3) ===== */
.rental-lookup {
    padding-bottom: 8px;
}

.period-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 0;
}

.period-filter__field {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 20px;
    border: 2px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
}

.period-filter__ph {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
    opacity: .3;
}

.period-filter__tilde {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
}

.period-filter__caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid #9a9a9a;
    border-bottom: 2px solid #9a9a9a;
    transform: rotate(45deg) translate(-2px, -2px);
    flex: 0 0 auto;
}

.lookup-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.lookup-bar__count {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
}

.lookup-bar__filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
}

/* 예약 카드 */
.booking {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.booking__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.booking__date {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: var(--color-text);
}

.booking__status {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(0, 145, 132, .1);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
}

.booking__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 4px;
}

.booking__row {
    display: flex;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
}

.booking__row dt {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-weight: 500;
}

.booking__row dd {
    margin: 0;
    color: var(--color-text);
    opacity: .5;
}

.booking__row--price dd {
    font-weight: 600;
    opacity: 1;
}

.booking__detail {
    height: 52px;
    border-radius: 16px;
    background: #f6f6f6;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    opacity: .6;
}

/* 페이지네이션 */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
}

.pager__page {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    opacity: 1;
}

/* ===== 오시는 길 (02-6) ===== */
.location {
    padding-bottom: 8px;
}

.location__map {
    width: 100%;
    aspect-ratio: 440 / 380;
    background: #eaeaea;
}

.location__map[hidden] {
    display: none;
}

/* 지도 대체 영역 */
.location__mapfall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    aspect-ratio: 440 / 380;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.location__mapfall[hidden] {
    display: none;
}

.location__mapfall-text {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: var(--color-text);
    opacity: .6;
}

.location__mapfall-links {
    display: flex;
    gap: 8px;
}

.location__mapfall-links a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--color-border-strong);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
}

.location__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 8px;
}

.location__info .info-table__value a {
    color: inherit;
    text-decoration: none;
}

.location__actions {
    display: flex;
    gap: 8px;
}

.btn-map {
    flex: 1 1 0;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.btn-map--ghost {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
}

/* 찾아오시는 방법 */
.ways {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.way {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 28px;
}

.way__head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.way__badge {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    white-space: nowrap;
}

.way__badge--teal   { background: #009184; }
.way__badge--blue   { background: #0ca2ee; }
.way__badge--orange { background: #ffa000; }

.way__title {
    flex: 1 1 auto;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    word-break: keep-all;
}

.way__lead {
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: var(--color-text);
    opacity: .6;
    word-break: keep-all;
}

.way__routes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 16px;
    background: var(--color-bg);
    border-radius: 20px;
}

.way__route {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 22px;
}

.way__route-name {
    flex: 0 0 88px;
    font-weight: 700;
    color: var(--color-text);
    opacity: .5;
    word-break: keep-all;
}

.way__route-value {
    flex: 1 1 auto;
    margin: 0;
    font-weight: 500;
    color: var(--color-text);
    opacity: .8;
    word-break: keep-all;
}

.way__note {
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(0, 145, 132, .06);
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    color: var(--color-text);
    opacity: .8;
    word-break: keep-all;
}

.way__note-label {
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ===== 시설 대관 — 신청·조회 기능 ===== */

/* 신청 기간 안내 */
.rental-guide {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(0, 145, 132, .06);
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    color: var(--color-text);
    opacity: .85;
    word-break: keep-all;
}

.rental-guide--closed {
    background: rgba(255, 160, 0, .1);
}

.rental-guide[hidden] {
    display: none;
}

/* 하루(종일) 타임 — 두 칸을 차지합니다. */
.slot--day {
    grid-column: 1 / -1;
}

.slot--day .slot__period { background: var(--color-primary-dark); }

.slot--day .slot__badge {
    background: rgba(67, 101, 87, .1);
    color: var(--color-primary-dark);
}

.slot--day .slot__price { color: var(--color-primary-dark); }
.slot--day.is-selected { border: 2px solid var(--color-primary-dark); }

.slot.is-disabled {
    opacity: .45;
}

.slot.is-disabled .slot__period,
.slot.is-disabled .slot__badge {
    background: #ececec;
    color: #8a8a8a;
}

.slot.is-disabled .slot__price {
    color: #8a8a8a;
}

/* 기간 필터 — 날짜 입력 */
.period-filter__input {
    width: 100%;
    border: 0;
    background: transparent;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
}

.period-filter__input:focus {
    outline: none;
}

/* 시설 필터 드롭다운 (테두리 없는 형태) */
.dropdown--plain .dropdown__toggle {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-weight: 600;
    font-size: 16px;
}

.dropdown--plain .dropdown__menu {
    right: 0;
    left: auto;
    min-width: 160px;
}

/* 예약 상태 배지 색 — req_st 코드별 */
.booking__status--1 { background: rgba(51, 102, 255, .1);  color: #3366ff; }
.booking__status--2 { background: rgba(176, 126, 64, .12); color: #b07e40; }
.booking__status--3,
.booking__status--4 { background: rgba(0, 145, 132, .1);   color: var(--color-primary); }
.booking__status--5 { background: rgba(255, 102, 102, .12); color: #ff6666; }
.booking__status--9 { background: rgba(40, 40, 40, .08);   color: #8a8a8a; }

/* 비어 있음 · 로그인 안내 */
.rental-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 20px;
    text-align: center;
}

.rental-empty__text {
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    color: var(--color-text);
    opacity: .6;
    word-break: keep-all;
}

/* ===== 신청서 작성 ===== */
.rental-form {
    padding: 16px 20px 32px;
}

.rental-form__title {
    margin: 28px 0 12px;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    color: var(--color-text);
}

.rental-form__note {
    margin-top: 16px;
    font-size: 13px;
    line-height: 20px;
    color: var(--color-text);
    opacity: .5;
    word-break: keep-all;
}

/* 선택한 대관 정보 요약 */
.rental-summary {
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.rental-summary[hidden],
.rental-fields[hidden] {
    display: none;
}

.rental-summary__place {
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    color: var(--color-primary);
}

.rental-summary__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0 0;
}

.rental-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    line-height: 22px;
}

.rental-summary__row dt {
    color: var(--color-text);
    opacity: .5;
}

.rental-summary__row dd {
    margin: 0;
    color: var(--color-text);
    opacity: .85;
    text-align: right;
}

.rental-summary__row--price dd {
    font-weight: 700;
    color: var(--color-primary);
    opacity: 1;
}

/* 입력 필드 */
.rental-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.rental-field__label {
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: var(--color-text);
    opacity: .8;
}

.rental-field__label .req {
    margin-left: 2px;
    color: #ff6666;
}

.rental-field__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rental-field__row .rental-input {
    flex: 1 1 0;
    min-width: 0;
}

.rental-field__sep {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--color-text);
    opacity: .5;
}

.rental-input,
.rental-select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--color-border-strong);
    border-radius: 16px;
    background: #fff;
    font-size: 15px;
    color: var(--color-text);
}

.rental-input::placeholder {
    color: rgba(40, 40, 40, .3);
}

.rental-input:focus,
.rental-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.rental-input[readonly] {
    background: var(--color-bg);
}

/* 첨부 파일 */
.rental-file {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 8px 0 16px;
    border: 1px solid var(--color-border-strong);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.rental-file input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.rental-file__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: var(--color-text);
    opacity: .6;
}

.rental-file__btn,
.rental-btn-sm {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    background: var(--color-bg);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
    opacity: .8;
    white-space: nowrap;
}

/* 버튼 */
.rental-btnbar {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.rental-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

.rental-btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.rental-btn--ghost {
    background: #f6f6f6;
    color: var(--color-text);
    opacity: .7;
}

.rental-btn--danger {
    background: #fff;
    border: 1px solid #ff6666;
    color: #ff6666;
}

.rental-btn[disabled] {
    opacity: .5;
}

/* 안내 영역의 버튼은 내용만큼만 넓힙니다. */
.rental-empty .rental-btn {
    flex: 0 0 auto;
    padding: 0 32px;
}

/* ===== 신청 상세 ===== */
.rental-detail {
    padding: 20px 20px 32px;
}

.rental-detail .booking__top {
    padding: 0 0 4px;
}

.rental-detail .info-table__row {
    padding: 0;
    border-bottom: 1px solid var(--color-border);
}

.rental-detail .dl-list {
    margin-top: 0;
}

.rental-detail__memo {
    padding: 16px;
    border-radius: 16px;
    background: var(--color-bg);
    font-size: 14px;
    line-height: 22px;
    color: var(--color-text);
    opacity: .8;
    white-space: pre-line;
    word-break: keep-all;
}
