/* 페이지 전용 스타일 */
.fac-page {
    background: var(--sf-cream);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* 헤더 */
.fac-header {
    background: var(--sf-navy);
    padding: 60px 80px 48px;
    text-align: center;
}
.fac-header__title {
    font-family: var(--sf-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--sf-white);
    margin-bottom: 8px;
}
.fac-header__sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 36px;
}

/* 검색 폼 */
.fac-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.fac-search select,
.fac-search input[type="text"] {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid rgba(201,168,76,0.3);
    background: rgba(255,255,255,0.07);
    color: var(--sf-white);
    font-size: 0.9rem;
    outline: none;
    min-width: 160px;
}
.fac-search select option { color: var(--sf-navy); background: #fff; }
.fac-search input::placeholder { color: rgba(255,255,255,0.4); }
.fac-search__btn {
    padding: 10px 28px;
    background: var(--sf-gold);
    color: var(--sf-navy);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.fac-search__btn:hover { background: var(--sf-gold-light); }
.fac-search__reset {
    padding: 10px 20px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.fac-search__reset:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* 결과 수 */
.fac-meta {
    padding: 24px 80px 0;
    font-size: 0.88rem;
    color: var(--sf-gray);
}

/* 카드 그리드 */
.fac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px 80px 0;
}
@media (max-width: 1200px) { .fac-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .fac-grid { grid-template-columns: repeat(2, 1fr); padding: 20px 24px 0; } .fac-meta { padding: 20px 24px 0; } .fac-header { padding: 48px 24px 36px; } }
@media (max-width: 560px)  { .fac-grid { grid-template-columns: 1fr; } }

/* 카드 */
.fac-card {
    background: var(--sf-white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.07);
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(.2,.8,.4,1), box-shadow 0.28s;
    display: flex;
    flex-direction: column;
}
.fac-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sf-shadow-lg);
}

/* 카드 이미지 */
.fac-card__img {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.fac-card__img img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.fac-card:hover .fac-card__img img { transform: scale(1.06); }

/* 상태 뱃지 */
.fac-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.fac-badge--open        { background: #e8f5e9; color: #2e7d32; }
.fac-badge--maintenance { background: #fff3e0; color: #e65100; }
.fac-badge--closed      { background: #f0f0f0; color: #888; }

/* 카드 본문 */
.fac-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.fac-card__branch {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sf-gold);
    margin-bottom: 6px;
}
.fac-card__name {
    font-family: var(--sf-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.35;
}
.fac-card__desc {
    font-size: 0.88rem;
    color: var(--sf-gray);
    line-height: 1.65;
    margin-bottom: 12px;
    flex: 1;
}
.fac-card__time {
    font-size: 0.78rem;
    color: var(--sf-gray);
    margin-bottom: 10px;
}
.fac-card__time i { margin-right: 4px; }

/* 혼잡도 바 */
.fac-cong {
    margin-bottom: 16px;
}
.fac-cong__label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--sf-gray);
    margin-bottom: 4px;
}
.fac-cong__track {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}
.fac-cong__fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s;
}
.fac-cong__fill--low  { background: #4caf50; }
.fac-cong__fill--mid  { background: #ff9800; }
.fac-cong__fill--high { background: #f44336; }

/* 카드 푸터 */
.fac-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 14px;
}
.fac-card__price {
    font-family: var(--sf-font-display);
    font-size: 1.1rem;
    color: var(--sf-navy);
}
.fac-card__price small {
    font-size: 0.78rem;
    color: var(--sf-gray);
    font-family: var(--sf-font-body);
}
.fac-card__btn {
    padding: 7px 18px;
    background: var(--sf-navy);
    color: var(--sf-gold);
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.fac-card__btn:hover { background: var(--sf-navy-dark); color: var(--sf-gold); }

/* 결과 없음 */
.fac-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: var(--sf-gray);
}
.fac-empty i { font-size: 2.5rem; display: block; margin-bottom: 16px; opacity: 0.4; }


/* 상세 페이지 전용 */
.fac-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    min-height: unset;
    background: var(--sf-cream);
}
@media (max-width: 900px) {
    .fac-detail { grid-template-columns: 1fr; }
    .fac-detail__panel { position: static; }
}

/* 브레드크럼 */
.fac-crumb {
    padding: 18px 80px;
    font-size: 0.82rem;
    color: var(--sf-gray);
    background: var(--sf-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    grid-column: 1 / -1;
}
.fac-crumb a { color: var(--sf-gray); }
.fac-crumb a:hover { color: var(--sf-navy); }
.fac-crumb__sep { margin: 0 8px; }

/* 좌측 콘텐츠 */
.fac-detail__main {
    padding: 40px 48px 60px 80px;
}

/* 대표 이미지 */
.fac-detail__img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
    background: #eee;
}
.fac-detail__img img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* 설명 */
.fac-detail__section { margin-bottom: 32px; }
.fac-detail__desc {
    font-size: 0.92rem;
    color: var(--sf-gray);
    line-height: 1.9;
    white-space: pre-wrap;
}

/* 혼잡도 박스 */
.fac-cong-box {
    padding: 24px 28px;
    background: var(--sf-white);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.07);
}
.fac-cong-box__title {
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sf-gold);
    margin-bottom: 16px;
}
.fac-cong-box__row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.fac-cong-box__track {
    flex: 1;
    height: 10px;
    background: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
}
.fac-cong-box__fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s;
}
.fac-cong-box__fill--low  { background: #4caf50; }
.fac-cong-box__fill--mid  { background: #ff9800; }
.fac-cong-box__fill--high { background: #f44336; }
.fac-cong-box__pct { font-size: 1.2rem; font-weight: 700; min-width: 48px; text-align: right; }
.fac-cong-box__label { font-size: 0.82rem; color: var(--sf-gray); min-width: 32px; }

/* 우측 패널 */
.fac-detail__panel {
    padding: 40px 48px 40px 32px;
    border-left: 1px solid rgba(0,0,0,0.07);
    background: var(--sf-white);
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 상태 뱃지 */
.fac-status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.fac-status-badge--open        { background: #e8f5e9; color: #2e7d32; }
.fac-status-badge--maintenance { background: #fff3e0; color: #e65100; }
.fac-status-badge--closed      { background: #f0f0f0; color: #888; }

/* 시설명 */
.fac-detail__name {
    font-family: var(--sf-font-display);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

/* 호텔·지점 */
.fac-detail__where {
    font-size: 0.85rem;
    color: var(--sf-gray);
    margin-bottom: 28px;
}
.fac-detail__where i { margin-right: 4px; }

/* 스펙 행 */
.fac-spec { margin-bottom: 28px; }
.fac-spec__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.9rem;
}
.fac-spec__row:first-child { border-top: 1px solid rgba(0,0,0,0.06); }
.fac-spec__label { color: var(--sf-gray); }
.fac-spec__val { font-weight: 600; }

/* 요금 강조 */
.fac-price-block {
    padding: 20px 0;
    border-top: 2px solid rgba(201,168,76,0.3);
    border-bottom: 2px solid rgba(201,168,76,0.3);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.fac-price-block__label { font-size: 0.82rem; color: var(--sf-gray); }
.fac-price-block__val {
    font-family: var(--sf-font-display);
    font-size: 1.9rem;
}
.fac-price-block__val small {
    font-family: var(--sf-font-body);
    font-size: 0.82rem;
    color: var(--sf-gray);
}

/* 운영 상태 안내 */
.fac-panel-status {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}
.fac-panel-status--open { background: #e8f5e9; color: #2e7d32; }
.fac-panel-status--warn { background: #fff3e0; color: #e65100; }
.fac-panel-status--off  { background: #f0f0f0; color: #888; }

/* 목록 버튼 */
.fac-back-btn {
    display: block;
    padding: 13px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 7px;
    color: var(--sf-gray);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.fac-back-btn:hover { background: var(--sf-cream); color: var(--sf-navy); }
