﻿/* ===================== 전체 CSS 1 (모두 포함) ===================== */
:root {
    --brand: #3b82f6;
    --brand-600: #2563eb;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f7fafc;
    --card: #ffffff;
    --sat-color: #2563eb;
    --sun-color: #ef4444;
    --cal-cell-h: 44px;
}

/* reset & base */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.container {
    max-width: 980px;
    margin: 20px auto;
    padding: 0 14px
}

.card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    overflow: hidden
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f7;
    font-weight: 700;
    font-size: 1.05rem
}

.card-body {
    padding: 20px
}

.row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.col {
    flex: 1 1 240px;
    min-width: 240px
}

label {
    display: block;
    margin: 4px 0 8px;
    color: #374151;
    font-size: .95rem
}

.hidden {
    display: none !important
}

/* 상단 헤더 */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(180deg,#ffffff,#fbfcff);
    box-shadow: 0 6px 18px rgba(2,6,23,0.04);
    margin-bottom: 12px;
    position: relative;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(45deg,var(--brand),var(--brand-600));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(37,99,235,0.12);
}
/*.site-title { font-weight:700; font-size:1.05rem; color:var(--text); }*/
.site-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    /* 추가된 스타일 */
    max-width: 140px; /* 👈 최대 너비 제한 (조절 가능) */
    white-space: nowrap; /* 한 줄 유지 */
    overflow: hidden; /* 넘친 텍스트 자르기 */
    text-overflow: ellipsis; /* ... 표시 */
    flex-shrink: 1; /* flex 줄어들 수 있게 */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 메뉴 버튼 */
.menu-btn {
    width: 44px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(2,6,23,0.04);
}
/* --- 햄버거: 공백 줄인 정상 버전 --- */
.hamburger-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    padding: 0;
    cursor: pointer;
}

.hamburger {
    display: inline-block;
    width: 24px; /* 조금 키움 */
    height: 18px; /* 줄 사이 간격 확보 */
    position: relative;
    box-sizing: content-box;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

    /* 공통 막대 스타일 */
    .hamburger .bar {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #0c1d3c; /* 또는 var(--text) */
        border-radius: 2px;
    }

    /* 각 바의 위치 */
    .hamburger .bar1 {
        top: 0;
    }

    .hamburger .bar2 {
        top: 8px;
    }

    .hamburger .bar3 {
        bottom: 0;
    }

/* hover 효과(선택사항) */
.menu-btn:hover .bar {
    transform: translateY(0) scaleX(1.02);
}

/* 열린 상태: X 표시 (컨테이너 높이 줄어든 것에 맞춰 translate 값 보정) */
.menu-btn.open .bar1 {
    transform: translateY(4px) rotate(45deg); /* 상단 -> 중앙으로 내려오며 회전 */
}

.menu-btn.open .bar2 {
    opacity: 0; /* 중앙 바 숨김 */
    transform: scaleX(.6);
}

.menu-btn.open .bar3 {
    transform: translateY(-4px) rotate(-45deg); /* 하단 -> 중앙으로 올라가며 회전 */
}

/* 포커스 표시(접근성) */
.menu-btn:focus {
    outline: 2px solid rgba(37,99,235,0.18);
    outline-offset: 2px;
}

.menu-btn:hover {
    transform: translateY(-2px);
    transition: .12s;
}

.menu-btn .bar {
    width: 18px;
    height: 2px;
    background: var(--text);
    display: block;
    margin: 2px 0;
    border-radius: 2px;
    opacity: 0.9;
}

/* modal overlay (메뉴) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.4);
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .modal-overlay.show {
        display: flex;
    }

.menu-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(2,6,23,0.28);
    padding: 18px;
    transform: translateY(8px) scale(.98);
    opacity: 0;
    transition: all .18s ease;
    max-height: 90vh;
    overflow: auto;
}

.modal-overlay.show .menu-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.modal-close {
    background: transparent;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    color: var(--muted);
}

/* quick links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.quick-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    background: linear-gradient(180deg,#fff,#fbfbff);
}

.quick-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    user-select: none;
}

    .quick-head:focus {
        outline: 2px solid rgba(37,99,235,0.14);
    }

    .quick-head .icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 700;
        flex: 0 0 auto;
    }

    .quick-head .meta {
        flex: 1 1 auto;
    }

        .quick-head .meta .title {
            font-weight: 700;
        }

        .quick-head .meta .sub {
            font-size: 0.88rem;
            color: var(--muted);
            margin-top: 3px;
        }

    .quick-head .chev {
        font-size: 18px;
        color: var(--muted);
        transform: rotate(90deg);
        transition: transform .12s ease;
    }

    .quick-head[aria-expanded="true"] .chev {
        transform: rotate(270deg);
    }

/* submenu styles */
.submenu {
    display: none;
    /*padding: 10px 18px 14px 60px;*/
    padding: 0px 18px 14px 60px;
    background: linear-gradient(180deg,#fff,#fcfdff);
    gap: 8px;
    flex-direction: column;
}

.submenu a {
    display: block;        
    padding: 8px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

    .submenu a:hover {
        text-decoration: underline;
    }

/* icon colors */
/*
.icon-directions {
    background: linear-gradient(45deg,#f59e0b,#f97316);
}

.icon-info {
    background: linear-gradient(45deg,#3b82f6,#06b6d4);
}

.icon-terms {
    background: linear-gradient(45deg,#8b5cf6,#a78bfa);
}

.icon-contact {
    background: linear-gradient(45deg,#10b981,#34d399);
}*/

.icon-skywork {
    background: linear-gradient(45deg,#f59e0b,#f97316);
}

.icon-swing {
    background: linear-gradient(45deg,#3b82f6,#06b6d4);
}

.icon-net {
    background: linear-gradient(45deg,#8b5cf6,#a78bfa);
}

.icon-contact {
    background: linear-gradient(45deg,#10b981,#34d399);
}




/* iframe overlay (서브메뉴 클릭 시) */
.iframe-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.6);
    z-index: 13000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

    .iframe-overlay.show {
        display: flex;
    }

.iframe-panel {
    width: 100%;
    max-width: 900px;
    height: 80vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(2,6,23,0.4);
    display: flex;
    flex-direction: column;
}

.iframe-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.iframe-body {
    flex: 1 1 auto;
}

    .iframe-body iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

/* 섹션 타이틀 */
.section-title {
    font-size: 0.98rem;
    color: #0f172a;
    font-weight: 700;
    margin: 0 0 10px 0
}

.section-sub {
    font-size: 0.86rem;
    color: var(--muted);
    margin: 0 0 12px 0
}

/* 폼, 버튼 */
.form-control, select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: #fff
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: .15s
}

    .btn:hover {
        background: var(--brand-600)
    }

    .btn.secondary {
        background: #6b7280
    }

    .btn.pill {
        border-radius: 999px;
        padding: 10px 16px
    }

    .btn.ghost {
        background: #eef2ff;
        color: #1f2937;
        border: 1px solid rgba(59,130,246,0.12)
    }

        .btn.ghost.active {
            background: var(--brand-600);
            color: #fff
        }

/* time grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(96px,1fr));
    gap: 10px
}

/* FullCalendar custom */
.fc {
    --fc-border-color: #eef2f7;
    --fc-page-bg-color: #fff
}

    .fc .fc-toolbar-title {
        font-size: 1rem;
        font-weight: 600
    }

    .fc .fc-toolbar {
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 8px
    }

    .fc .fc-button {
        background: var(--brand);
        border: none;
        border-radius: 6px;
        padding: 6px 10px;
        font-size: 0.85rem;
        color: white
    }

        .fc .fc-button:hover {
            background: var(--brand-600)
        }

.fc-daygrid-event {
    display: none !important
}

/* today button special */
.btn-today {
    background: linear-gradient(180deg, rgba(255,247,192,0.9), rgba(255,243,168,0.95)) !important;
    color: #111827 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
}

/* 요일색 */
.fc .fc-col-header-cell.fc-day-sat, .fc .fc-col-header-cell.fc-col-header-cell-sat {
    color: var(--sat-color)
}

.fc .fc-col-header-cell.fc-day-sun, .fc .fc-col-header-cell.fc-col-header-cell-sun {
    color: var(--sun-color)
}

.calendar-wrap {
    max-width: 380px;
    margin: 0 auto
}

.fc .fc-daygrid-day-number {
    font-weight: 500;
    font-size: 0.78rem;
    padding: 0;
    line-height: 1
}

.fc .fc-daygrid-day.fc-day-sat .fc-daygrid-day-number {
    color: var(--sat-color)
}

.fc .fc-daygrid-day.fc-day-sun .fc-daygrid-day-number {
    color: var(--sun-color)
}

/* day cell height/padding */
.fc .fc-daygrid-day-frame {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 4px !important;
    min-height: var(--cal-cell-h) !important;
    height: var(--cal-cell-h) !important;
    box-sizing: border-box !important;
}

.fc .fc-daygrid-day-top {
    flex: 0 0 auto !important;
    padding: 2px !important;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    height: 18px
}

.fc .fc-daygrid-day-events {
    flex: 0 0 auto !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: max-height .12s ease !important
}

    .fc .fc-daygrid-day-events.show-events {
        max-height: 64px !important
    }

    .fc .fc-daygrid-day-events > * {
        margin: 0 !important;
        padding: 0 !important
    }

/* grid borders */
.fc .fc-scroller .fc-daygrid-body td {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0;
    vertical-align: top;
    box-sizing: border-box;
}

.fc .fc-scroller .fc-daygrid-body tr td:last-child {
    border-right: none;
}

.fc .fc-scroller .fc-daygrid-body tr:last-child td {
    border-bottom: none;
}

/* product toggle */
/*.product-toggle { display:flex; gap:8px; justify-content:center; align-items:center; margin:0 auto 6px; max-width:420px; }*/
/*.prod-btn { flex:1 1 0; border-radius:999px; padding:8px 12px; border:1px solid rgba(15,23,42,0.06); background:#fff; color:var(--text); font-weight:600; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition: all .12s ease; box-shadow: 0 1px 0 rgba(0,0,0,0.02); }*/
.prod-btn:hover {
    transform: translateY(-1px);
}
/*.prod-btn.active { background: linear-gradient(180deg,var(--brand),var(--brand-600)); color:#fff; border-color: rgba(37,99,235,0.9); box-shadow: 0 6px 18px rgba(37,99,235,0.12); }*/
/*.prod-btn .icon { width:18px; height:18px; margin-right:8px; display:inline-block; border-radius:4px; flex:0 0 auto; }*/
.prod-btn[data-product="2"] .icon {
    background: linear-gradient(45deg,#6ee7b7,#3b82f6);
}

.prod-btn[data-product="1"] .icon {
    background: linear-gradient(45deg,#fda4af,#fb7185);
}



/* hint text */
.hint-row {
    text-align: center;
    margin-bottom: 8px;
    color: #d41f1f;
    font-size: 0.95rem;
    display: none;
}

    .hint-row.show {
        display: block;
    }

/* skeleton shimmer */
.skeleton {
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 37%,#f1f5f9 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite
}

@keyframes shimmer {
    0% {
        background-position: 100% 0
    }

    100% {
        background-position: -100% 0
    }
}

/* popover / toast */
.layer-popover, .layer-toast {
    position: fixed;
    z-index: 9999;
    pointer-events: auto;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(17,24,39,0.95);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(2,6,23,0.4);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transition: opacity .18s ease, transform .18s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 260px;
    word-break: keep-all;
}

    .layer-popover.show, .layer-toast.show {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .layer-popover::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        background: rgba(17,24,39,0.95);
        transform: rotate(45deg);
        left: 12px;
        bottom: -5px;
        box-shadow: 0 2px 6px rgba(2,6,23,0.15);
    }

    .layer-popover.above::after {
        bottom: auto;
        top: -5px;
        transform: rotate(225deg);
    }

.layer-toast {
    left: 50%;
    top: 18px;
    transform: translateX(-50%) translateY(-6px) scale(0.98);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
}

    .layer-toast .icon {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        background: #fff;
        opacity: .12;
    }

/* selection & today */
.fc .fc-daygrid-day.selected {
    background: linear-gradient(180deg, var(--brand), var(--brand-600)) !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 18px rgba(37,99,235,0.12) !important;
}

    .fc .fc-daygrid-day.selected .fc-daygrid-day-number {
        color: #fff !important;
        font-weight: 700;
    }

.fc .fc-daygrid-day.fc-day-today {
    background: linear-gradient(180deg, rgba(255,247,192,0.85), rgba(255,243,168,0.95));
    border-radius: 8px;
}

    .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
        color: #111827;
        font-weight: 700;
    }

/* today legend */
.today-legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text);
    margin: 8px 0 10px 0;
}

    .today-legend .today-box {
        width: 14px;
        height: 14px;
        border-radius: 4px;
        background: linear-gradient(180deg, rgba(255,247,192,0.85), rgba(255,243,168,0.95));
        box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
        flex: 0 0 auto;
    }

    .today-legend .label {
        font-weight: 600;
        color: var(--text);
    }

/* consent box */
.consent-box {
    border: 1px solid var(--border);
    background: #fcfdff;
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
}

.consent-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

    .consent-item:last-child {
        margin-bottom: 0;
    }

.consent-text {
    font-size: 0.92rem;
    color: var(--text);
}

.consent-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.consent-body {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.28;
}

input[type="checkbox"].consent-check {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.consent-error {
    color: #d41f1f;
    font-size: 0.92rem;
    margin-top: 8px;
    display: none;
}

    .consent-error.show {
        display: block;
    }

/* auth grid */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 10px;
    align-items: end;
    margin-top: 12px;
}

.form-control.small {
    height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    box-sizing: border-box;
}

.btn.auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--brand);
    background: transparent;
    color: var(--brand);
    font-weight: 700;
    cursor: pointer;
    transition: all .12s ease;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
}

    .btn.auth.primary {
        background: var(--brand);
        color: #fff;
        border: 1px solid var(--brand);
    }

    .btn.auth.ghost {
        background: rgba(59,130,246,0.06);
        color: var(--brand-600);
        border: 1px solid rgba(59,130,246,0.12);
    }

.btn.reserve {
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border: none;
}

/* footer */
.site-footer {
    max-width: 980px;
    margin: 18px auto;
    padding: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    background: transparent;
}

/* responsive */
@media (max-width:480px) {
    :root {
        --cal-cell-h: 36px;
    }

    .container {
        padding: 8px;
        margin: 10px auto
    }

    .card-header {
        padding: 12px;
        font-size: 1rem
    }

    .card-body {
        padding: 12px
    }

    .col {
        min-width: 140px;
        flex: 1 1 140px
    }

    .form-control, select {
        padding: 8px 10px;
        font-size: .95rem;
        border-radius: 10px
    }

    .btn {
        padding: 8px 12px;
        font-size: .95rem;
        border-radius: 10px
    }

    .calendar-wrap {
        max-width: 100%
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.75rem !important
    }

    .time-grid {
        grid-template-columns: repeat(auto-fill,minmax(70px,1fr));
        gap: 8px
    }

    .btn.pill {
        padding: 8px 10px
    }
}

@media (min-width:481px) and (max-width:900px) {
    .container {
        padding: 12px
    }

    .col {
        min-width: 180px;
        flex: 1 1 180px
    }

    .calendar-wrap {
        max-width: 360px
    }
}

@media (min-width:901px) {
    .calendar-wrap {
        max-width: 420px
    }

    .col {
        min-width: 240px
    }
}

/* --------- FullCalendar 버튼(이전/다음/기타) 리파인 --------- */

/* 버튼 그룹에 gap 주기 (버튼들이 너무 붙어 보이는 문제 해결) */
.fc .fc-toolbar .fc-button-group {
    display: inline-flex; /* flex로 간격 제어 */
    gap: 8px; /* 버튼 간격 */
    align-items: center;
}

/* 기본 fc 버튼 스타일 재정의 (너무 진한 파란색 완화) */
.fc .fc-button {
    background: linear-gradient(180deg, #e9f2ff, #def0ff); /* 연한 파랑 그라데이션 */
    color: #1e3a8a; /* 진한 네이비 텍스트 (가독성 확보) */
    border: 1px solid rgba(37,99,235,0.14); /* 연한 테두리 */
    box-shadow: 0 2px 6px rgba(37,99,235,0.04); /* 아주 연한 그림자 */
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 600;
    transition: background .12s ease, transform .08s ease, box-shadow .12s ease;
}

    /* 마우스 오버 시 약간 진해짐 (그러나 기존처럼 강한 블루 아님) */
    .fc .fc-button:hover {
        background: linear-gradient(180deg, #dbeeff, #cce7ff);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(37,99,235,0.06);
    }

    /* 포커스/포커스 아웃라인 정리 (접근성 유지) */
    .fc .fc-button:focus {
        outline: 3px solid rgba(37,99,235,0.14);
        outline-offset: 2px;
    }

    /* 오늘 버튼(.btn-today)은 기존 스타일 우선 적용되도록 유지 */
    .fc .fc-button.btn-today {
        /* 기존 btn-today가 이미 정의돼 있다면 이 블록을 제거하거나 주석 처리하세요.
     여기서는 현재 정의된 btn-today 스타일을 덮어쓰지 않도록 최소화합니다. */
    }

/* 모바일에서 버튼 간격 축소 */
@media (max-width:480px) {
    .fc .fc-toolbar .fc-button-group {
        gap: 6px;
    }

    .fc .fc-button {
        padding: 6px 8px;
        font-size: 0.88rem;
    }
}

/* site-logo - 컨테이너 크기 확대, 여백 및 쉐도우 */
.site-logo {
    width: 56px; /* 더 크게 표시 (원하면 64px 등으로 조정) */
    height: 56px;
    border-radius: 10px; /* 모서리 둥글게 */
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff; /* 이미지가 둥근 흰 박스 위에 보이도록 */
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
    padding: 6px; /* 이미지와 테두리 사이 여백 */
    box-sizing: border-box;
}

/* 내부 이미지: 비율 유지하면서 영역에 맞게 보여줌 */
.site-logo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* 이미지 비율 유지(자르지 않음) */
    object-position: center;
}

/* 작은 화면일 때 (옵션) */
@media (max-width:480px) {
    .site-logo {
        width: 44px;
        height: 44px;
        padding: 5px;
        border-radius: 8px;
    }

    .site-logo-img { /* 그대로 */
    }
}


/* day badge */
.day-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 6px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-top: 6px;
    line-height: 1;
}

    .day-badge.open {
        background: #10b981;
    }
    /* green */
    /*.day-badge.partial { background: #f59e0b; }*/ /* amber */
    .day-badge.partial {
        background: #10b981;
    }
    /* 이것도 그린으로 */
    .day-badge.full {
        background: #ef4444;
    }
    /* red */
    .day-badge.closed {
        background: #94a3b8;
    }
/* gray */

/* calendar legend (한 줄) */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    font-size: 0.92rem;
    color: var(--muted);
}

    /* 각 항목 컨테이너 (아이콘 + 텍스트) */
    .calendar-legend .item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 4px 6px;
    }

    /* 오늘 박스 (원래 today-box 스타일 유지) */
    .calendar-legend .today-box {
        width: 14px;
        height: 14px;
        border-radius: 4px;
        background: linear-gradient(180deg, rgba(255,247,192,0.85), rgba(255,243,168,0.95));
        box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
        flex: 0 0 auto;
    }

    /* swatch 색상 (예약상태 표시용) */
    .calendar-legend .swatch {
        width: 14px;
        height: 14px;
        border-radius: 4px;
        flex: 0 0 auto;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        border: 1px solid rgba(0,0,0,0.03);
    }

        /* 상태별 색상 (일관성 유지) */
        .calendar-legend .swatch.open {
            background: #10b981;
        }
        /* 녹색: 예약 */
        /*.calendar-legend .swatch.partial { background:#f59e0b; }*/ /* 주황: 일부마감 */
        .calendar-legend .swatch.partial {
            background: #10b981;
        }
        /* 주황: 이것도 그린으로 */

        .calendar-legend .swatch.full {
            background: #ef4444;
        }
        /* 빨강: 마감 */
        .calendar-legend .swatch.closed {
            background: #94a3b8;
        }
    /* 회색: 휴무 */

    /* label (텍스트) */
    .calendar-legend .label {
        font-weight: 600;
        color: var(--muted);
        font-size: 0.9rem;
    }

/* 반응형: 아주 좁은 화면에서는 줄바꿈 허용 */
@media (max-width:420px) {
    .calendar-legend {
        gap: 8px;
        font-size: 0.85rem;
    }

        .calendar-legend .item {
            padding: 3px 4px;
            gap: 6px;
        }
}



/* === 로고 큼직하게 (붙여넣기 위치: style 맨 아래) === */
.site-logo {
    width: 72px; /* 더 크게 표시 (원하면 80px 등으로 조정) */
    height: 72px;
    border-radius: 12px; /* 모서리 둥글게 */
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 26px rgba(2,6,23,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 내부 이미지가 영역을 꽉 채우며 비율 유지 */
.site-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (max-width:480px) {
    .site-logo {
        width: 56px;
        height: 56px;
        padding: 5px;
        border-radius: 10px;
    }
}



/* 그네 네트 재설정 */
.product-toggle {
    display: flex;
    gap: 15px; /* 버튼간격 */
    justify-content: center;
    align-items: center;
    margin: 0 auto 6px;
    /* max-width: 420px; 제거 또는 조정 */
    width: calc(100% - 200px); /*100%;*/ /* 또는 calc(100% - 40px); 등으로 늘릴 수 있음 */
}

.prod-btn-wrap {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.prod-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 2rem; /* 그네 네트 명 크기*/
    flex: 1 1 45%;
    min-width: 180px;
    background: #fff;
    border: 1px solid #eee;
    color: #111;
    transition: all 0.2s ease-in-out;
}

    .prod-btn.active {
        background: linear-gradient(90deg, #2a62ff, #2373f7);
        color: #fff;
        border: 1px solid #2a62ff;
    }

    .prod-btn .icon {
        /*width: 48px;
  height: 48px;*/
        width: 80px; /* 그네, 네트 아이콘 크기 */
        height: 80px;
        margin-right: 10px;
        border-radius: 8px;
        flex-shrink: 0;
    }


/* 모바일에서는 조금 더 작게 조정 */
@media (max-width: 768px) {
    .prod-btn {
        padding: 12px 20px;
        font-size: 1.5rem;
        max-width: none; /* 👉 모바일에선 제한 풀기 */
    }

        .prod-btn .icon {
            width: 48px;
            height: 48px;
        }
}


/* === 달력(카드 내부) 좌우 여백 없이 꽉 채우기 === */
/* 카드 내부 패딩(예: 20px)에 맞춰 width를 확장합니다 */
.calendar-wrap {
    max-width: none; /* 기존 max-width 해제 */
    width: calc(100% + 40px); /* 좌우 padding * 2 (20px * 2) */
    margin: 0 -20px; /* 카드 내부 padding(20px) 만큼 음수 마진 */
    box-sizing: border-box;
    padding: 0 20px; /* 내부에서 캘린더가 약간 padding 갖게 하려면 유지 */
}

/* 내부 calendar 요소가 100%를 따르도록 */
#calendar, .fc {
    width: 100% !important;
    box-sizing: border-box;
}

/* 반응형: 작은 화면에서 음수마진/확장 크기를 줄임 */
@media (max-width:480px) {
    .calendar-wrap {
        width: calc(100% + 24px);
        margin: 0 -12px;
        padding: 0 12px;
    }
}



/* ------------------------------------------------------------------
   Full-bleed layout patch
   - 페이지 전체를 좌우 여백 없이 꽉 채우도록 조정
   - 카드 내부 컨텐츠는 기존 여백/패딩을 유지하도록 함
   붙이는 위치: 기존 <style> 끝부분(또는 .fc 스타일들 뒤)
   ------------------------------------------------------------------ */

/* 1) container 를 풀-브리드로 바꿔 옆 공백 제거 */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0; /* 중앙 정렬 제거 */
    padding: 0; /* 화면 끝까지 붙게 함 (원하면 좌우 8~16px로 조정) */
    box-sizing: border-box;
}

/* 2) 카드(흰 박스)가 화면 끝까지 붙지 않게 내부 여백은 유지하면서
      '카드 그룹'은 화면 전체 폭에서 여백 없이 보이도록 함.
   필요하면 카드 자체를 완전 풀-브리드로 만들 수도 있음. */
.card {
    margin: 0 0 18px 0; /* 카드 사이 세로 간격은 유지 */
    border-radius: 12px; /* 카드 모서리 유지 */
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* 3) 카드 내부의 실제 콘텐츠(패딩)는 .card-body 가 담당하므로
      .card-body 의 좌우 패딩을 늘려 '여백 있는 박스'처럼 만듭니다. */
.card-body {
    padding-left: 20px;
    padding-right: 20px;
}

/* 4) 상단 헤더(배경은 전체 폭) — 내부 내용은 좁게 유지 (가운데 정렬)
      header 내부를 화면 중앙에 고정하려면 .header-inner 를 사용. */
.site-header {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    background: transparent; /* 기존 그라데이션 유지하려면 제거 */
}

    /* 가운데 정렬된 내부 영역 (헤더 안쪽 콘텐츠 폭 제한 및 패딩) */
    .site-header > .site-brand,
    .site-header > .header-actions {
        /* 내부 아이템은 card와 동일한 패딩 기준으로 정렬되도록 보정 */
        padding-left: 20px;
        padding-right: 20px;
    }

/* 5) 캘린더(중요): 양 옆 공백 없이 꽉 채우기
   - calendar를 포함한 카드가 화면 폭 모두 사용하도록 하고,
   - 달력 내부는 적절한 좌우 여백을 유지합니다. */
.calendar-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0 20px; /* 달력 내부 좌우 여백: 0으로 하려면 제거 */
    box-sizing: border-box;
}

/* FullCalendar 내부 스크롤/프레임이 넓이를 따라가게 처리 */
.fc {
    width: 100% !important;
}

    .fc .fc-scroller {
        width: 100% !important;
    }

/* 6) footer를 화면 끝까지 늘림 */
.site-footer {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* 7) 모바일/작은 화면에서 좌우 여백 조금 유지하고 싶으면 아래 값 조정 */
@media (max-width: 480px) {
    .card-body, .calendar-wrap, .site-footer, .site-header > .site-brand, .site-header > .header-actions {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* -> 기존 :root 수정 (또는 아래 블록을 style 끝에 추가해서 우선 적용) */
:root {
    --cal-cell-h: 72px; /* 한 셀(행) 높이 — 필요하면 64~80으로 조정 */
}

/* 보장용 (강제 적용) */
.fc .fc-daygrid-day-frame {
    min-height: var(--cal-cell-h) !important;
    height: var(--cal-cell-h) !important;
    box-sizing: border-box !important;
}

/* 모바일에서 너무 크면 줄이기 */
@media (max-width:480px) {
    :root {
        --cal-cell-h: 48px;
    }
}


/* ---------- 달력: 화면 폭에 맞춰 꽉 채우되 좌우 각각 100px 여유 ----------
   동작: 달력은 뷰포트 너비(viewport)를 기준으로 (100vw - 200px) 만큼 너비를 갖습니다.
   장점: 컨테이너(max-width)에 의해 제한되지 않고 항상 화면 좌우에 100px 간격을 확보합니다.
   주의: 모바일(좁은) 화면에선 여유를 줄여 넘치지 않게 처리합니다.
*/
.calendar-wrap {
    /* 뷰포트를 기준으로 총 200px(좌100 + 우100) 빼서 크기 지정 */
    /*width: calc(100vw - 200px); 좌우 100씩 마이너스*/
    /*width: calc(100vw - 100px); 좌우 50씩 마이너스*/
    width: calc(100vw - 50px); /*좌우 25씩 마이너스*/
    max-width: none; /* 기존 max-width가 있다면 덮어쓰기 */
    margin: 0 auto; /* 가운데 정렬 */
    box-sizing: border-box;
    padding-left: 6px; /* 캘린더 내부 여백(선택) */
    padding-right: 6px;
}

    /* FullCalendar 내부가 좌우 여백 때문에 넘치거나 스크롤 생기면 내부 컨테이너도 보정 */
    .calendar-wrap .fc {
        width: 100%;
    }

/* 반응형: 화면이 좁아질수록 좌우 여유를 줄임(안정성) */
@media (max-width: 1400px) {
    /*.calendar-wrap { width: calc(100vw - 160px); }  좌우 80px */
    .calendar-wrap {
        width: calc(100vw - 10px);
    }
    /* 좌우 80px */
}

@media (max-width: 1100px) {
    .calendar-wrap {
        width: calc(100vw - 120px);
    }
    /* 좌우 60px */
}

@media (max-width: 900px) {
    /* 모바일: 충분히 여유를 줄이고 컨테이너 내부 패딩 따르도록 */
    .calendar-wrap {
        width: calc(100vw - 40px);
        margin: 0 20px;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .calendar-wrap {
        width: calc(100vw - 24px);
        margin: 0 12px;
    }
}

/* --- 레이아웃 여백 제어(데스크탑: 좌우 100px, 모바일: 반응형 여백) --- */
:root {
    --side-gutter-desktop: 10px; /* 데스크탑 좌우 여백(원하시면 80~120으로 조정) */
    --side-gutter-mobile: 10px; /* 모바일에서의 최소 여백 */
    --cal-cell-h: 72px; /* 달력 세로 셀 높이(원하면 값 조정) */
}

/* 캘린더 영역을 화면 너비에 맞추되 좌우 여백 유지 */
.calendar-wrap {
    width: calc(100% - (var(--side-gutter-desktop) * 2));
    margin: 0 auto;
    max-width: none; /* 기존 제한 제거 */
    box-sizing: border-box;
    padding: 0; /* 내부 여백은 따로 줄 수 있음 */
}


.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background-color: #f8fbfd;
    gap: 16px;
    flex-wrap: wrap; /* 작을 땐 줄바꿈 */
}

.logo {
    width: 130px;
    height: auto;
    border-radius: 20px;
    flex-shrink: 0;
}

.title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 160px;
}

.title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 2px;
}

/* 모바일: 왼쪽 로고, 오른쪽 텍스트 유지 */
@media (max-width: 480px) {
    .header {
        justify-content: flex-start;
        gap: 12px;
    }

    .logo {
        width: 80px;
    }

    .title {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }
}




/* ===================== CSS 끝 ===================== */










/* ===================== CSS 2 시작 ===================== */

/* 전체 기본 폰트 크기 키우기 */
html {
    font-size: 17px; /* 기본은 보통 16px인데 조금 키움 */
}


.title {
    font-size: 1.0rem;
    font-weight: 700;
    white-space: nowrap;
}



.subtitle {
    font-size: 0.9rem;
}

/* 섹션 타이틀 및 설명 텍스트 키우기 */
.section-title {
    font-size: 1rem !important;
}

.section-sub {
    font-size: 1rem !important;
}

/* 버튼 텍스트 크기 키우기 */
.btn, .prod-btn {
    font-size: 1.2rem !important;
}

/* 인풋, 셀렉트, 텍스트영역 등 기본 컨트롤 */
input, select, textarea, .form-control {
    font-size: 1.05rem !important;
}

/* 달력 숫자 */
.fc .fc-daygrid-day-number {
    font-size: 0.9rem !important;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    html {
        font-size: 16px;
    }
}

/* 웹 전용 - 화면 너비 768px 이상일 때 */
@media (min-width: 768px) {
    .title {
        font-size: 1.7rem; /* ← 웹에서는 더 큼 */
    }
}


.logo {
    width: auto;
    height: 60px; /* 모바일 기본 높이 조금 키움 */
    border-radius: 8px;
    object-fit: contain;
}

/* 웹 전용 - 768px 이상 */
@media (min-width: 768px) {
    .logo {
        height: 120px; /* 웹에서 더 크게 */
        max-width: 300px;
    }
}

/* ===================== CSS 2 끝 ===================== */




/* ===================== CSS 3 시작 ===================== */

/* 중앙 정렬 토스트 및 팝오버 통일 스타일 중앙으로 통일 이걸 지우면 제각각. 위에서 설정됨 */
.layer-toast, .layer-popover {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    z-index: 9999 !important;
    background: rgba(17,24,39,0.96);
    padding: 12px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    word-break: keep-all;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}


    .layer-toast.show, .layer-popover.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }


    /* 팝오버 말풍선 화살표 제거 */
    .layer-popover::after {
        display: none !important;
    }



.btn.reserved, .btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid rgba(0,0,0,0.04) !important;
    background: linear-gradient(180deg,#fff,#f7f7f8) !important;
    color: #6b7280 !important;
    box-shadow: none !important;
}

/* ===================== CSS 3 끝 ===================== */



/* ===================== CSS 4 시작 ===================== */

/* ---------- FullCalendar day badge fix (붙여넣기) ---------- */

/* 1) 셀을 상대위치로 만들어 내부 절대배치 허용 */
.fc .fc-daygrid-day-frame {
    position: relative !important;
    padding: 6px 6px 32px 6px !important; /* 아래 공간 확보 (badge 위치에 따라 조정) */
    min-height: 64px !important; /* 셀 높이: 필요하면 64~80으로 조정 */
    height: auto !important;
    box-sizing: border-box !important;
}

/* 전체 높이가 너무 작으면 루트 변수도 같이 늘리세요 */
:root {
    --cal-cell-h: 72px;
}
/* (선택) 필요하면 숫자 조절 */

/* 2) 배지를 절대위치로 바꿈 — 셀 하단 왼쪽에 작은 pill로 표시 */
.fc .fc-daygrid-day-frame .day-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: inline-block;
    font-size: 0.72rem; /* 폰트 작게 */
    line-height: 1;
    padding: 4px 6px; /* 내부 여백 줄임 */
    border-radius: 8px;
    white-space: nowrap;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    z-index: 3;
}

/* 3) 상태별 색상 (이미 정의되어 있으면 중복되므로 필요시 제거) */
.day-badge.open {
    background: #10b981;
    color: #fff;
}
/* 예약(녹색) */
/*.day-badge.partial { background: #f59e0b; color: #fff; }*/ /* 일부마감 */
.day-badgepartial {
    background: #10b981;
    color: #fff;
}
/* 일부마감(이것도 녹색) */
.day-badge.full {
    background: #ef4444;
    color: #fff;
}
/* 마감(빨강) */
.day-badge.closed {
    background: #94a3b8;
    color: #fff;
}
/* 휴무(회색) */

/* 4) 날짜 숫자가 배지에 가려지지 않게 숫자 영역 우선순위 조정 */
.fc .fc-daygrid-day-number {
    position: relative;
    z-index: 4; /* 숫자가 배지보다 위로 올라오도록 (원하면 낮추세요) */
}

/* 5) 모바일/좁은 화면에서는 배지 더 작게 */
@media (max-width:480px) {
    .fc .fc-daygrid-day-frame {
        padding-bottom: 28px !important;
        min-height: 56px !important;
    }

        .fc .fc-daygrid-day-frame .day-badge {
            font-size: 0.64rem;
            padding: 3px 6px;
            border-radius: 6px;
        }
}

/* ===================== CSS 4 끝 ===================== */



/* ===================== CSS 5 시작 ===================== */
/* 슬롯 내부 텍스트 (시간) */
.slot-time {
    font-weight: 700;
    line-height: 1;
    display: block;
    white-space: nowrap; /* 시간 텍스트가 줄바뀜 안하도록 */
    margin: 0;
}

/* 슬롯 내부 보조 텍스트 (잔여/상태) */
.slot-sub {
    color: #6b7280;
    display: block;
    margin-top: 6px;
    line-height: 1;
    font-weight: 600;
}

/* 예약완료 버튼 스타일 (비활성) */
.btn.pill.ghost.reserved {
    opacity: 0.6;
    cursor: default;
    pointer-events: none; /* 클릭 차단 (disabled랑 중복 가능) */
}

    /* 비활성화된 버튼의 내부 텍스트 색상 미세조정 */
    .btn.pill.ghost.reserved .slot-time {
        color: rgba(0,0,0,0.45);
    }

    .btn.pill.ghost.reserved .slot-sub {
        color: rgba(0,0,0,0.35);
    }

/* 선택된(active) 버튼 강조 */
.btn.pill.ghost.active {
    box-shadow: 0 6px 18px rgba(37,99,235,0.12);
    background: linear-gradient(180deg, var(--brand), var(--brand-600));
    color: #fff;
}

/* 반응형 보정: 작은 화면에서 폰트가 너무 크면 줄이기(옵션) */
@media (max-width:480px) {
    .slot-time {
        font-size: 14px;
    }

    .slot-sub {
        font-size: 11px;
    }
}


/* 슬롯 내부 텍스트 (시간) */
.slot-time {
    display: block; /* 줄바꿈 허용 */
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: normal; /* 중요: 줄바꿈 허용 */
}

/* 슬롯 내부 보조 텍스트 (잔여/상태) */
.slot-sub {
    display: block;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1;
    font-weight: 600;
    text-align: center;
    white-space: normal;
}

/* 버튼 높이/여백 여유를 줘서 두 줄이 들어갈 공간 확보 */
.btn.pill.ghost {
    padding: 14px 18px; /* 필요시 조정 */
    min-width: 84px; /* 컬럼 폭에 맞춰 조정하세요 */
    box-sizing: border-box;
}

    /* 예약완료 버튼 스타일 (비활성) */
    .btn.pill.ghost.reserved {
        opacity: 0.6;
        cursor: default;
        pointer-events: none;
    }

.slot-time {
    font-weight: 700;
    display: block;
    line-height: 1;
}

.slot-sub {
    color: #6b7280;
    display: block;
    margin-top: 6px;
    line-height: 1;
    font-weight: 600;
}

/* 예약완료 버튼 약간 흐리게(클릭 불가) */
.btn.pill.ghost.reserved {
    opacity: 0.6;
    cursor: default;
}

/* 선택된 버튼 */
.btn.pill.ghost.active {
    box-shadow: 0 6px 18px rgba(37,99,235,0.12);
    outline: none;
    transform: translateY(-2px);
}

/* 버튼 내부 줄바꿈 여유(모바일 등) */
.btn.pill.ghost {
    padding: 14px 12px;
    min-height: 64px;
    box-sizing: border-box;
    text-align: center;
}
/* 버튼 내부를 세로로 쌓아서 줄바꿈 보장 */
.btn.pill.ghost {
    display: inline-flex; /* inline-block 처럼 동작하면서 flex 가능 */
    flex-direction: column; /* main / sub을 세로로 쌓음 */
    align-items: center; /* 가운데 정렬 */
    justify-content: center;
    white-space: normal; /* 줄바꿈 허용 */
    text-align: center; /* 중앙 정렬(멀티라인) */
    padding: 12px 14px; /* 필요시 조정 */
    min-height: 64px; /* 버튼 높이 (원하면 조정) */
    box-sizing: border-box;
}

/* 메인 타임 (예: 10:00) */
.slot-time {
    display: block;
    line-height: 1;
    font-weight: 700;
    margin: 0; /* 불필요한 마진 제거 */
    padding: 0;
}

/* 서브 라인 (예: 잔여: 30명) */
.slot-sub {
    display: block;
    margin-top: 6px;
    line-height: 1;
    color: #6b7280;
    font-weight: 600;
    opacity: 0.95;
}

/* 예약완료 버튼 스타일(불투명도 등) */
.btn.pill.ghost.reserved {
    opacity: 0.6;
    cursor: default;
    pointer-events: none; /* 확실히 클릭 방지 */
}

/* 모바일/작은 화면에서 가독성 보정 */
@media (max-width:480px) {
    .btn.pill.ghost {
        padding: 10px 10px;
        min-height: 56px;
    }

    .slot-time {
        font-size: 14px;
    }

    .slot-sub {
        font-size: 12px;
        margin-top: 4px;
    }
}
/* 선택된(활성화된) 버튼 스타일 */
.btn.pill.ghost.active {
    background-color: #2563eb; /* 파란 배경 */
    color: #fff; /* slot-time(상단) 흰색 */
    box-shadow: 0 6px 18px rgba(37,99,235,0.12);
    transform: translateY(-2px);
}

    /* slot-sub(하단 텍스트)도 흰색으로 */
    .btn.pill.ghost.active .slot-sub {
        color: #fff;
    }

/* ===================== CSS 5 끝 ===================== */



/* ===================== CSS 6 시작 ===================== */
/* -------------------------
   선택되었을 때: 버튼 배경 채움 + 링
   (기존 그래디언트 규칙을 이게 덮어씌웁니다)
   ------------------------- */

/* 공통 선택 기본 */
.prod-btn.active,
.prod-btn[aria-pressed="true"] {
  color: #fff !important;                  /* 텍스트는 흰색 */
  border-color: transparent !important;    /* 테두리 대신 채움으로 보이게 */
  box-shadow: 0 6px 18px rgba(11,35,77,0.06) !important;
  position: relative;                      /* ::after 링용 기준 */
}

/* 그네(1) 채움 */
.prod-btn.active[data-product="1"],
.prod-btn[aria-pressed="true"][data-product="1"] {
  background: linear-gradient(45deg,#fda4af,#fb7185) !important;
}

/* 네트(2) 채움 */
.prod-btn.active[data-product="2"],
.prod-btn[aria-pressed="true"][data-product="2"] {
  background: linear-gradient(45deg,#6ee7b7,#3b82f6) !important;
}

/* 선택된 버튼에 외곽 '링' 추가 (파란빛) */
.prod-btn.active::after,
.prod-btn[aria-pressed="true"]::after,
.prod-btn:focus-visible::after {
  content: "";
  position: absolute;
  left: -6px; top: -6px; right: -6px; bottom: -6px;
  border-radius: 34px;
  box-shadow: 0 0 0 6px rgba(59,130,246,0.12); /* 파란 링 */
  pointer-events: none;
  z-index: 0;
}

/* 아이콘은 선택 시에도 별도 단색 유지(원하면 제거) */
.prod-btn.active[data-product="1"] .icon,
.prod-btn[aria-pressed="true"][data-product="1"] .icon {
  background-image: none !important;
  background: #fb7185 !important;
}
.prod-btn.active[data-product="2"] .icon,
.prod-btn[aria-pressed="true"][data-product="2"] .icon {
  background-image: none !important;
  background: #3b82f6 !important;
}


/* ===================== CSS 6 끝 ===================== */
/* ===================== CSS 7 시작 ===================== */


/* ----------------------------
   기본(비선택) : 연한 페일 배경
   붙이는 위치: CSS 맨 아래
   ---------------------------- */
.prod-btn {
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}

/* 비선택(연한) 상태 */
.prod-btn[data-product="1"] {
  background: linear-gradient(45deg,#fde7ea 0%,#ffeef1 100%);
  color: #111;                 /* 글자 어두움 */
  border: 1px solid #eef2f6;
}
.prod-btn[data-product="2"] {
  background: linear-gradient(45deg,#ecfff7 0%,#e6f4ff 100%);
  color: #111;
  border: 1px solid #eef2f6;
}

/* 아이콘은 평상시에도 진한 단색으로 (식별성 확보) */
.prod-btn[data-product="1"] .icon { background: #fb7185 !important; }
.prod-btn[data-product="2"] .icon { background: #3b82f6 !important; }

/* ----------------------------
   선택(active) : 진한(채도 높은) 배경 + 흰 글자
   ---------------------------- */
.prod-btn.active,
.prod-btn[aria-pressed="true"] {
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 26px rgba(11,35,77,0.10);
  position: relative;
}

/* 그네(1) 선택 시 - 진한 그라데이션 */
.prod-btn.active[data-product="1"],
.prod-btn[aria-pressed="true"][data-product="1"] {
  background: linear-gradient(45deg,#fda4af 0%,#fb7185 100%) !important;
}

/* 네트(2) 선택 시 - 진한 그라데이션 */
.prod-btn.active[data-product="2"],
.prod-btn[aria-pressed="true"][data-product="2"] {
  background: linear-gradient(45deg,#6ee7b7 0%,#3b82f6 100%) !important;
}

/* 선택된 버튼에 파란 링(외곽) - optional */
.prod-btn.active::after,
.prod-btn[aria-pressed="true"]::after,
.prod-btn:focus-visible::after {
  content:"";
  position:absolute;
  left:-6px; top:-6px; right:-6px; bottom:-6px;
  border-radius:34px;
  box-shadow: 0 0 0 6px rgba(59,130,246,0.10);
  pointer-events:none;
}

/* 선택 시 아이콘은 단색 유지 (시각 연속성) */
.prod-btn.active[data-product="1"] .icon,
.prod-btn[aria-pressed="true"][data-product="1"] .icon {
  background: #fb7185 !important;
}
.prod-btn.active[data-product="2"] .icon,
.prod-btn[aria-pressed="true"][data-product="2"] .icon {
  background: #3b82f6 !important;
}



/* ===================== CSS 7 끝 ===================== */




/* ===================== CSS 8 시작 ===================== */

/* ===================== CSS 8 끝 ===================== */




/* ===================== CSS 9 시작 ===================== */

/* ===================== CSS 9 끝 ===================== */