/* ============================================================
   너를 만나러 가는길 — site styles
   Palette: black / grey / white / red accent
============================================================ */

:root {
    --color-bg: #ffffff;
    --color-ink: #111111;
    --color-ink-soft: #555;
    --color-mute: #888;
    --color-line: #eaeaea;
    --color-line-strong: #d8d8d8;
    --color-red: #e63946;
    --color-red-soft: #ffe4e6;
    --color-yellow: #fee500;
    --container: 1200px;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 24px rgba(0,0,0,.06);
    --shadow-pop: 0 12px 36px rgba(0,0,0,.10);
    --font-serif: 'Nanum Myeongjo', serif;
    --font-sans: 'Noto Sans KR', system-ui, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    /* Mobile: leave room for bottom-tabs (70px) + fixed FAB (~80px) so last
       content isn't covered. Home doesn't render the FAB at the top, so it
       only needs the bottom-tabs space. */
    padding-bottom: 160px;
}
body.page-home { padding-bottom: 70px; }
@media (min-width: 992px) {
    body { padding-bottom: 0; }
    body.page-home { padding-bottom: 0; }
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-red); }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--color-line); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--bg { background: #fafafa; }

@media (max-width: 560px) {
    .container { width: calc(100% - 24px); }
    .section { padding: 36px 0; }
    .section-title { font-size: 22px; }
    .section-sub { font-size: 13px; }
    .modal-card { padding: 18px; max-height: 88vh; }
    .modal-title { font-size: 18px; }
    .btn-lg { padding: 12px 20px; font-size: 14px; }
    .calendar__cell { padding: 4px; font-size: 12px; }
    .calendar__cell .pill { font-size: 9px; padding: 1px 5px; }
    /* 상단 고정바 — 좌우 여백 최소화 (거의 풀폭) */
    .site-header .container { width: calc(100% - 12px) !important; }
    .site-header__inner { gap: 8px; }
    /* 검색 폼 — 모바일에서만 풀폭 + 4개 균등 분배 */
    .hero__search {
        display: flex;
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
    }
    .hero__search > .cdd {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
    }
    .hero__search > .hero__search-btn {
        flex: 0 0 auto;
    }
    .schedule-landing__form,
    .search-results__form,
    .hero__inner > .hero__search {
        margin-left: -6px;
        margin-right: -6px;
    }
}

/* ===== 플립폰/초소형 화면 (~ 380px) — 달력 깨짐 방지 ===== */
@media (max-width: 380px) {
    .container { width: calc(100% - 16px); }
    /* 고정바·검색바는 더 줄여서 거의 풀폭으로 */
    .site-header .container { width: calc(100% - 8px) !important; }
    .hero__search { width: 100%; padding: 4px; }
    .schedule-landing__form,
    .search-results__form { margin-left: -4px; margin-right: -4px; }
    .calendar { padding: 8px !important; }
    .calendar--compact { padding: 8px !important; }
    .calendar__head { margin-bottom: 8px; }
    .calendar__title { font-size: 15px !important; }
    .calendar__nav a { width: 26px; height: 26px; font-size: 11px; }
    .calendar__grid { gap: 2px; }
    .calendar__dow {
        font-size: 9px !important;
        padding: 3px 0;
    }
    .calendar__cell {
        padding: 2px !important;
        font-size: 10px !important;
        border-radius: 5px;
        gap: 1px;
    }
    .calendar__cell .day { font-size: 11px; }
    .calendar__cell .pill {
        font-size: 8px !important;
        padding: 0 3px !important;
        line-height: 13px;
        border-radius: 999px;
        white-space: nowrap;
    }
    .calendar__event-icons { gap: 1px; }
    .calendar__event-icons .event-icon {
        width: 10px !important;
        height: 10px !important;
    }
    /* 검색 결과 카드 — 정원 표시 줄바꿈 허용 */
    .schedule-card__meta {
        font-size: 11px;
        flex-wrap: wrap;
        gap: 4px 10px !important;
    }
    .schedule-card__head strong { font-size: 13px; }
    .chip { font-size: 10px; padding: 2px 7px; }
    /* 검색 폼 칩 너무 큰거 방지 */
    .hero__search { gap: 4px; flex-wrap: wrap; }
    .cdd__trigger { font-size: 11px; padding: 6px 8px; }
    /* 일정 상세 페이지 — 큰 텍스트 줄바꿈 */
    .grid-sidebar { grid-template-columns: 1fr; gap: 12px; }
    /* 페이지네이션 — 카운트 텍스트 줄바꿈 */
    nav .small.text-muted {
        font-size: 10px;
        text-align: center;
        margin-bottom: 6px;
    }
    .pagination .page-link {
        min-width: 28px; height: 28px;
        font-size: 11px; padding: 0 6px;
    }
}

/* ====================== Top kakao bar ====================== */
.top-kakao-bar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--color-yellow);
    color: #3C1E1E; font-weight: 700; font-size: 13px;
    padding: 9px 16px; cursor: pointer;
    transition: filter .15s;
    position: sticky; top: 0; z-index: 100;
}
.top-kakao-bar:hover { filter: brightness(.95); color: #3C1E1E; }
.top-kakao-bar__icon { display: inline-flex; align-items:center; }

/* ====================== Header ====================== */
.site-header {
    background: #fff; border-bottom: 1px solid var(--color-line);
    position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(8px);
    background: rgba(255,255,255,.92);
}
.top-kakao-bar + .site-header { top: 37px; }
.site-header__inner {
    display: flex; align-items: center; gap: 24px;
    height: 64px;
}
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-serif); font-weight: 800;
    text-decoration: none;
}
.logo__wordmark { height: 24px; width: auto; display: inline-block; }
.logo__stamp-mark { height: 36px; width: 36px; display: inline-block; object-fit: contain; }
@media (max-width: 640px) {
    .logo__wordmark   { height: 18px; }
    .logo__stamp-mark { height: 28px; width: 28px; }
}
/* legacy text fallback */
.logo__title { font-size: 18px; letter-spacing: -0.02em; }
.logo__stamp { display: inline-block; padding: 4px 8px; border: 1.5px solid var(--color-red); color: var(--color-red); font-size: 11px; line-height: 1.1; text-align: center; border-radius: 4px; font-weight: 700; }
.logo__stamp small { font-size: 8px; }

.main-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.main-nav a {
    position: relative;
    font-size: 15px; font-weight: 500;
    padding: 6px 2px;
    color: #222;
    transition: color .25s ease;
}
.main-nav a::before,
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px; pointer-events: none;
}
.main-nav a::before {
    background: var(--color-red);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .4s cubic-bezier(.65,.05,.36,1);
}
.main-nav a::after {
    background: linear-gradient(90deg, transparent 0%, #ffd5d8 30%, #fff 50%, #ffd5d8 70%, transparent 100%);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    box-shadow: 0 0 10px 1px rgba(230,57,70,.65);
}
.main-nav a:hover { color: var(--color-red); }
.main-nav a:hover::before { transform: scaleX(1); }
.main-nav a:hover::after  { animation: navLaser .55s cubic-bezier(.65,.05,.36,1) forwards; }
.main-nav a.is-active { color: var(--color-red); }
.main-nav a.is-active::before { transform: scaleX(1); }
@keyframes navLaser {
    0%   { opacity: 0; transform: scaleX(0); transform-origin: left center; }
    40%  { opacity: 1; transform: scaleX(1); transform-origin: left center; }
    41%  { transform-origin: right center; }
    100% { opacity: 0; transform: scaleX(0); transform-origin: right center; }
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; color: var(--color-ink-soft); }
.btn-link:hover { color: var(--color-red); }
.btn-pill { display:inline-flex; align-items:center; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.btn-pill--dark { background: #111; color: #fff; }
.btn-pill--dark:hover { background: var(--color-red); color: #fff; }

/* 로그인 회원 이름 + 로그아웃 — 같은 라인 + 같은 높이로 정렬 */
.header-user,
.header-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.header-user { color: #111; }
.header-user i { font-size: 16px; color: var(--color-red); }
.header-user:hover { background: #fff; border-color: var(--color-red); color: var(--color-red); }
.header-user:hover i { color: var(--color-red); }
.header-logout { background: #fff; color: #777; }
.header-logout:hover { background: #111; color: #fff; border-color: #111; }
@media (max-width: 560px) {
    .header-user, .header-logout {
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }
    .header-user i { font-size: 14px; }
}

/* hide auth/admin actions text on mobile — those go into the drawer */
@media (max-width: 991.98px) {
    .header-actions > .btn-link,
    .header-actions > form,
    .header-actions > .btn-pill { display: none; }
}

.mobile-menu-toggle {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; padding: 0; color: #1a1a1a;
    transition: all .15s;
    cursor: pointer;
}
.mobile-menu-toggle:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* mobile drawer */
.mobile-drawer { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; z-index: 200; transition: opacity .2s; }
.mobile-drawer__inner { background: #fff; width: 80%; max-width: 320px; height: 100%; margin-left: auto; padding: 32px 24px; transform: translateX(100%); transition: transform .25s; position: relative; }
body.nav-open .mobile-drawer { opacity: 1; pointer-events: auto; }
body.nav-open .mobile-drawer__inner { transform: translateX(0); }
.mobile-drawer .close-btn { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 22px; }
.mobile-drawer nav a, .mobile-drawer nav button { display: block; padding: 14px 0; font-size: 16px; font-weight: 500; color: #111; background: none; border: 0; text-align: left; width: 100%; }
.mobile-drawer hr { margin: 14px 0; }

/* ====================== Hero ====================== */
.hero {
    position: relative; overflow: hidden;
    padding: 60px 0 60px;
    text-align: center;
    background: #ffffff;
}
.hero__inner { position: relative; z-index: 2; }

/* Sparkles — SVG 4-point stars with real twinkle (sudden flash + glow + fade) */
.hero__stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__stars .sparkle {
    position: absolute;
    fill: #cfcfcf;
    opacity: 0;
    transform: scale(0) rotate(0deg);
    transform-origin: 50% 50%;
    will-change: opacity, transform, filter;
    animation: sparkleTwinkle 3.4s ease-in-out infinite;
    filter: drop-shadow(0 0 1px rgba(0,0,0,.05));
}
@keyframes sparkleTwinkle {
    0%, 90%, 100% {
        opacity: 0;
        transform: scale(0.2) rotate(0deg);
        filter: drop-shadow(0 0 0 transparent);
    }
    8% {
        opacity: 0.4;
        transform: scale(0.6) rotate(45deg);
    }
    14% {
        opacity: 1;
        transform: scale(1.3) rotate(90deg);
        filter: drop-shadow(0 0 6px rgba(255,230,150,0.9)) drop-shadow(0 0 12px rgba(230,57,70,0.35));
        fill: #fff5d0;
    }
    22% {
        opacity: 0.9;
        transform: scale(1) rotate(135deg);
        fill: #f0e0a0;
    }
    35% {
        opacity: 0.6;
        transform: scale(0.7) rotate(180deg);
        fill: #cfcfcf;
    }
    50% {
        opacity: 0.2;
        transform: scale(0.4) rotate(220deg);
    }
}

.hero__title {
    font-family: var(--font-serif); font-weight: 900;
    font-size: clamp(40px, 7vw, 84px); line-height: 1.08;
    letter-spacing: -0.04em; margin: 0 0 8px;
    /* Each line center-aligned within the title block, block itself centered
       in the hero. The stamp anchors to the block's bottom-right corner
       which sits near "길". */
    display: inline-block;
    position: relative;
    text-align: center;
}
.hero__title span { display:inline-block; }
.hero__stamp-img {
    /* Anchored at bottom-right diagonal of "길", pushed FULLY outside the title
       block so it never overlaps any character. Translated by 100%+ of its own
       width to clear the text. */
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(32px, 3.6vw, 50px);
    height: auto;
    transform: translate(115%, 40%) rotate(-2deg);
    transform-origin: 0% 100%;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
    animation:
        stampDrop 0.7s cubic-bezier(.34,1.56,.64,1) 0.2s both,
        stampSway 4.2s ease-in-out 1.0s infinite;
}
@keyframes stampDrop {
    0%   { opacity: 0; transform: translate(115%, 10%) rotate(-12deg) scale(1.4); }
    100% { opacity: 1; transform: translate(115%, 40%) rotate(-2deg)  scale(1); }
}
@keyframes stampSway {
    0%   { transform: translate(115%, 40%) rotate(-3deg) scale(1); }
    25%  { transform: translate(115%, 38%) rotate( 1deg) scale(1.01); }
    50%  { transform: translate(115%, 40%) rotate( 2deg) scale(1); }
    75%  { transform: translate(115%, 38%) rotate(-1deg) scale(1.01); }
    100% { transform: translate(115%, 40%) rotate(-3deg) scale(1); }
}
@media (max-width: 640px) {
    .hero__stamp-img { width: clamp(28px, 7vw, 40px); transform: translate(110%, 40%) rotate(-2deg); }
}

/* Vertical divider above 로테이션 소개팅 */
.hero__divider--vertical {
    width: 1px;
    height: 32px;
    background: #999;
    margin: 22px auto 14px;
}

.hero__subtitle { font-size: 15px; font-weight: 600; color: #222; letter-spacing: 0.02em; }
.hero__desc { color: #555; margin: 8px 0 32px; font-size: 14px; }

.hero__search {
    display: inline-flex; align-items: stretch;
    background: #fff; border: 1.4px solid #1a1a1a; border-radius: 999px;
    padding: 6px 6px 6px 6px; gap: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
    max-width: 100%;
}
.hero__field {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 14px; border-right: 1px solid #d8d8d8;
    cursor: pointer;
}
.hero__field i { color: #444; font-size: 14px; }
.hero__field select {
    border: 0; background: none; font-size: 14px; padding: 10px 22px 10px 0; min-width: 70px;
    color: #1a1a1a; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat; background-position: right 2px center; background-size: 14px;
}
.hero__field select:focus { outline: none; }
.hero__search-btn {
    border: 0; background: transparent; color: #1a1a1a;
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .15s;
    font-size: 16px;
}
.hero__search-btn:hover { background: #1a1a1a; color: #fff; }

/* ====================== Custom dropdown (replaces native <select>) ====================== */
.cdd {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-right: 1px solid #d8d8d8;
    cursor: pointer;
    min-width: 0;
}
.cdd:last-of-type { border-right: 0; }
.cdd__trigger {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; padding: 10px 0;
    font: inherit; font-size: 14px; color: #1a1a1a;
    cursor: pointer; min-width: 70px;
}
.cdd__trigger i.bi-chevron-down { color: #555; font-size: 11px; margin-left: 4px; transition: transform .2s; }
.cdd__trigger > i:first-child { color: #444; font-size: 14px; }
.cdd.is-open .cdd__trigger i.bi-chevron-down { transform: rotate(180deg); }
.cdd__label { white-space: nowrap; }
.cdd__panel {
    position: absolute;
    /* Default: opens UPWARD (good for the fixed bottom FAB) */
    bottom: calc(100% + 14px);
    top: auto;
    left: -8px;
    min-width: 240px;
    max-width: min(320px, calc(100vw - 24px));
    max-height: min(380px, 60vh);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
    padding: 8px;
    display: none;
    z-index: 100;
    scrollbar-width: thin; scrollbar-color: #ccc transparent;
}
.cdd__panel::-webkit-scrollbar { width: 6px; }
.cdd__panel::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.cdd.is-open .cdd__panel { display: block; animation: cddOpenUp .18s ease-out; }
@keyframes cddOpenUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* In the hero section ONLY (top of page), open DOWNWARD.
   Note: don't target .hero__search here — the FAB also uses .hero__search
   and must always open upward. */
.hero .cdd__panel {
    bottom: auto;
    top: calc(100% + 14px);
}
.hero .cdd.is-open .cdd__panel { animation: cddOpenDown .18s ease-out; }
@keyframes cddOpenDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Explicit fallback for the FAB — guaranteed upward */
.search-fab .cdd__panel {
    bottom: calc(100% + 14px) !important;
    top: auto !important;
}

.cdd__group-label {
    font-size: 11px; color: #888; padding: 10px 14px 4px;
    letter-spacing: 0.06em; font-weight: 700;
    text-transform: uppercase;
}

/* Panel header — auto-rendered from data-title (set on .cdd in markup OR on
   the .cdd__panel after JS portals it on mobile). */
.cdd[data-title]:not([data-title=""]) .cdd__panel::before,
.cdd__panel[data-title]:not([data-title=""])::before {
    content: attr(data-title);
    display: block;
    padding: 10px 14px 12px;
    margin: -4px -2px 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    background: #fafafa;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    text-align: center;
}
/* When the panel itself carries data-title (portaled state), the parent
   .cdd selector wouldn't match — the second selector above covers it. */
.cdd__panel[data-title]:not([data-title=""])::before {
    content: attr(data-title);
}
.cdd__option {
    display: block; width: 100%;
    padding: 11px 14px;
    background: none; border: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    color: #333;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.cdd__option:hover  { background: #f5f5f5; color: #1a1a1a; }
.cdd__option:focus  { outline: none; background: #f0f0f0; }
.cdd__option.is-selected {
    background: var(--color-red); color: #fff; font-weight: 600;
}

@media (max-width: 560px) {
    .cdd { padding: 0 6px; }
    .cdd__trigger { font-size: 11px; min-width: 0; gap: 4px; padding: 10px 0; }
    .cdd__trigger > i:first-child { font-size: 12px; }
    .cdd__trigger .cdd__label { max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
    .cdd--year-c .cdd__trigger,
    .cdd--year-y .cdd__trigger { min-width: 0; }
}

/* Ultra-narrow widths (Z Fold 5 folded ≈344px, small Galaxy A series, etc.) —
   drop the leading icons inside the search-form triggers so labels don't
   ellipsis. Applies to BOTH the hero inline search and the bottom FAB
   (both use .hero__search). */
@media (max-width: 400px) {
    .hero__search .cdd { padding: 0 3px; }
    .hero__search .cdd__trigger { gap: 2px; font-size: 11px; }
    .hero__search .cdd__trigger > i:first-child { display: none; }
    .hero__search .cdd__trigger i.bi-chevron-down { font-size: 10px; margin-left: 2px; }
    .hero__search .cdd__label { max-width: none; }
    .hero__search-btn { width: 36px; height: 36px; }
}
@media (max-width: 360px) {
    .hero__search .cdd__trigger { font-size: 10px; }
    .hero__search .cdd__label { letter-spacing: -0.02em; }
}

/* ====== Mobile: dropdown becomes a centered modal with backdrop ====== */
/* Centered modal panel — applies on EVERY screen size (PC and mobile).
   Panel is JS-portaled to <body>, so it sits at the document root stacking
   context and the backdrop covers everything except the panel. */
.cdd.is-open .cdd__panel,
body > .cdd__panel {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    width: min(380px, calc(100vw - 32px)) !important;
    max-width: 380px !important;
    max-height: 72vh !important;
    z-index: 10001 !important;
    padding: 14px !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.45) !important;
    display: block !important;
    animation: cddModalIn .22s cubic-bezier(.2,.7,.2,1) !important;
}
@keyframes cddModalIn {
    from { opacity: 0; transform: translate(-50%, -45%) scale(.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Backdrop — always shown when a dropdown is open (PC and mobile) */
body.has-cdd-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
    animation: cddBackdropIn .18s ease both;
}
@keyframes cddBackdropIn { from { opacity: 0 } to { opacity: 1 } }
body.has-cdd-open { overflow: hidden; }

@media (max-width: 768px) {
    .cdd__option { font-size: 15px; padding: 13px 14px; }
    .cdd__group-label { font-size: 12px; padding: 10px 14px 4px; }
}

.hero__stamp {
    display: inline-block;
    padding: 8px 10px;
    border: 1.5px solid var(--color-red);
    color: var(--color-red);
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 10px;
}
.hero__stamp small { display: block; font-size: 9px; letter-spacing: 0.1em; margin-top: 2px; }

/* Hero scene (PNG-based door + road + heart) */
.hero__scene {
    position: relative;
    display: block;
    margin: 36px auto 0;
    width: 100%;
    max-width: 820px;
    /* moon_line.png is 2442x1229 ≈ 2:1 ratio */
    aspect-ratio: 2442 / 1229;
}
.hero__scene-line {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Reveal from TOP → BOTTOM like a pen tracing the line */
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    animation: sceneLineDraw 2.2s cubic-bezier(.5,0,.2,1) 0.4s forwards;
}
@keyframes sceneLineDraw {
    0%   { clip-path: inset(0 0 100% 0); opacity: 0; }
    5%   { opacity: 1; }
    100% { clip-path: inset(0 0 0% 0);   opacity: 1; }
}

/* Heart — purely percentage-based positioning so it tracks the arch
   identically on PC, tablet and mobile (no fixed-pixel drift).
   On 820px scene, 10px ≈ 1.22%; combined with the 0.4% arch offset → 48.38% */
.hero__scene-heart {
    position: absolute;
    left: 48.4%;
    top: 11%;
    width: 7%;
    transform: translateX(-50%) translateY(-14px) scale(0.55);
    transform-origin: 50% 78%;
    opacity: 0;
    will-change: transform, opacity;
    animation:
        heartDrop  0.7s cubic-bezier(.34,1.56,.64,1) 2.5s forwards,
        heartbeat  1.5s ease-in-out 3.3s infinite;
}
@keyframes heartDrop {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-26px) scale(0.55); }
    60%  { opacity: 1; transform: translateX(-50%) translateY(4px)   scale(1.10); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0)     scale(1); }
}
@keyframes heartbeat {
    0%, 100%       { transform: translateX(-50%) scale(1);    }
    14%            { transform: translateX(-50%) scale(1.14); }
    28%            { transform: translateX(-50%) scale(0.98); }
    42%            { transform: translateX(-50%) scale(1.08); }
    56%            { transform: translateX(-50%) scale(1);    }
}

@media (max-width: 640px) {
    .hero__search { flex-wrap: nowrap; padding: 4px; }
    .hero__field  { padding: 0 8px; }
    .hero__field select { font-size: 12px; padding-right: 18px; min-width: 50px; }
    .hero__scene  { max-width: 100%; }
    .hero__stars .star { font-size: 14px !important; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero__stars .sparkle,
    .hero__scene-line,
    .hero__scene-heart,
    .hero__stamp-img {
        animation: none !important;
        opacity: 1 !important;
    }
    .hero__scene-heart { transform: translateX(-50%) !important; }
    .hero__scene-line  { clip-path: inset(0 0 0 0) !important; transform: none !important; }
    .hero__stamp-img   { transform: translate(115%, 40%) rotate(-2deg) !important; }
}

/* ====================== Cards / Sections ====================== */
.section-title {
    font-family: var(--font-serif); font-weight: 800; letter-spacing: -.02em;
    font-size: 28px; margin: 0 0 8px;
}
.section-sub { color: #666; margin: 0 0 28px; font-size: 14px; }

.card {
    background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md);
    padding: 20px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 992px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid-sidebar, .grid-half { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
/* SAFETY NET — kill any inline grid that didn't get the responsive class */
@media (max-width: 768px) {
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Schedule card */
.schedule-card {
    border: 1px solid #eee; border-radius: var(--radius-md);
    overflow: hidden; background: #fff;
}
.schedule-card__head {
    padding: 14px 16px; background: #111; color: #fff;
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; flex-wrap: wrap;
}
.schedule-card__head .badge-event { background: var(--color-red); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.schedule-card__body { padding: 16px; }
.schedule-card__title { font-weight: 700; margin: 0 0 6px; word-break: keep-all; }
.schedule-card__meta { font-size: 13px; color: #555; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.schedule-card__meta i { color: var(--color-red); margin-right: 4px; }
.schedule-card__meta > span { white-space: nowrap; }
.schedule-card__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.schedule-card__actions .btn { white-space: nowrap; }

@media (max-width: 560px) {
    .schedule-card__head { font-size: 14px; padding: 12px 14px; }
    .schedule-card__body { padding: 14px; }
    .schedule-card__title { font-size: 15px; }
    .schedule-card__meta { font-size: 12px; gap: 6px 12px; }
    .schedule-card__actions { gap: 6px; }
    .schedule-card__actions .btn { padding: 8px 10px; font-size: 12px; }
    /* 참여하기 takes the full second row on small screens */
    .schedule-card__actions .btn-primary,
    .schedule-card__actions .flex-1 { flex: 1 0 100%; order: 99; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
       padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
       border: 1.5px solid transparent; cursor: pointer; transition: all .15s; }
.btn-primary { background: var(--color-red); color: #fff; border-color: var(--color-red); }
.btn-primary:hover { background: #c12c39; border-color: #c12c39; color: #fff; }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: var(--color-red); color: #fff; }

/* ====== Kakao button — official channel colors (yellow + brown) ======
   Use this class everywhere we link to the Kakao channel for consistency. */
.btn-kakao {
    background: #FEE500;
    color: #3C1E1E;
    border: 1px solid #FEE500;
    font-weight: 700;
}
.btn-kakao:hover { background: #f5d900; border-color: #f5d900; color: #3C1E1E; }
.btn-kakao:focus { color: #3C1E1E; }
.btn-kakao i { color: #3C1E1E; }

/* Kakao-styled card (customer center) */
.card-kakao {
    background: #FEE500 !important;
    border-color: #FEE500 !important;
    color: #3C1E1E !important;
}
.card-kakao:hover { background: #f5d900 !important; border-color: #f5d900 !important; }
.card-kakao__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #3C1E1E;
    color: #FEE500;
    font-size: 24px;
    margin: 0 auto 4px;
}
.btn-outline { background: #fff; color: #111; border-color: #111; }
.btn-outline:hover { background: #111; color: #fff; }
.btn-ghost { background: #fff; color: #555; border-color: #ddd; }
.btn-ghost:hover { border-color: #111; color: #111; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.chip { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #f1f1f1; color: #333; font-size: 12px; font-weight: 500; }
.chip--red { background: var(--color-red-soft); color: var(--color-red); }
.chip--dark { background: #111; color: #fff; }
.chip--year { padding: 5px 14px; font-weight: 700; letter-spacing: -0.02em; font-size: 12px; white-space: nowrap; }

/* Ticker */
.ticker {
    background: #111; color: #fff; border-radius: var(--radius-md); padding: 16px 18px;
    overflow: hidden;
}
.ticker__title { font-size: 12px; color: #aaa; margin-bottom: 8px; letter-spacing: .04em; }
.ticker__viewport { height: 28px; overflow: hidden; position: relative; }
.ticker__track { /* slide is driven by JS — no CSS animation */ }
.ticker__item { height: 28px; display: flex; align-items: center; font-size: 13px; gap: 8px; }
.ticker__item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-red); flex: 0 0 auto; }
.ticker__name { font-weight: 600; }
.ticker__msg  { color: rgba(255,255,255,0.85); }
.ticker--inline { background: #fff; color: #111; border: 1px solid #eee; }
.ticker--inline .ticker__title { color: #888; }

/* Calendar */
.calendar { background: #fff; border: 1px solid #eee; border-radius: var(--radius-md); padding: 18px; }
.calendar__head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.calendar__title { font-family: var(--font-serif); font-weight: 800; font-size: 22px; }
.calendar__nav a { display: inline-flex; width: 32px; height: 32px; align-items:center; justify-content:center; border-radius:50%; background:#f5f5f5; }
.calendar__nav a:hover { background:#111; color:#fff; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar__dow, .calendar__cell { aspect-ratio: 1 / 1; display:flex; align-items: flex-start; justify-content:flex-start; padding: 6px; border-radius: 8px; font-size: 13px; }
.calendar__dow { font-weight: 700; aspect-ratio: auto; padding: 6px 0; justify-content:center; }
.calendar__dow:first-child, .calendar__cell:nth-child(7n+1) { color: var(--color-red); }
.calendar__cell { background: #fafafa; border: 1px solid transparent; flex-direction: column; align-items: stretch; gap: 4px; cursor: default; }
.calendar__cell.is-other { color: #bbb; background: #fff; }
.calendar__cell.is-today { background: #fff; border-color: var(--color-red); }
/* 과거 날짜 — 흐리게 비활성 느낌 (이번달 안의 지난 날짜) */
.calendar__cell.is-past {
    color: #c8c8c8;
    background: #fafafa;
    opacity: 0.55;
    pointer-events: none;
}
.calendar__cell.is-past .day { color: #c8c8c8; font-weight: 500; }
.calendar__cell.has-event { background: #fff8f8; cursor: pointer; text-decoration: none; color: inherit; }
.calendar__cell.has-event:hover { background: #ffe9eb; }
/* Compact variant for search results page */
.calendar--compact { padding: 14px; }
.calendar--compact .calendar__title { font-size: 18px; }
.calendar--compact .calendar__cell { padding: 4px 6px; font-size: 12px; }
.calendar--compact .calendar__cell .pill { font-size: 9px; padding: 1px 5px; }
.calendar--compact .calendar__dow { font-size: 11px; }
/* Scroll padding so anchor jumps don't tuck under the sticky header */
html { scroll-padding-top: 80px; scroll-behavior: smooth; }
.calendar__cell .pill { background: var(--color-red); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; margin-top: auto; align-self:flex-start; }
.calendar__cell .day { font-weight: 700; }

/* Lineup */
.lineup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.lineup-card { border: 1.5px solid #111; border-radius: 16px; padding: 14px; background:#fff; }
.lineup-card__name { font-weight: 700; }
.lineup-card__meta { font-size:12px; color:#666; }

/* ===== Lineup panel — chip-style listing grouped by gender ===== */
.lineup-panel { font-size: 14px; }
.lineup-panel__head {
    display: flex; flex-direction: column; gap: 4px;
    padding-bottom: 12px; border-bottom: 1px solid #eee; margin-bottom: 14px;
}
.lineup-panel__date { font-weight: 800; font-size: 18px; color: #111; }
.lineup-panel__place { color: var(--color-red); font-size: 13px; }
.lineup-panel__place i { margin-right: 2px; }

.lineup-group {
    padding: 14px 0;
    border-top: 1px dashed #e5e5e5;
}
.lineup-group:first-of-type { border-top: 0; padding-top: 0; }
.lineup-group__title {
    font-weight: 700; color: #444; font-size: 13px;
    margin-bottom: 10px;
    display: inline-flex; align-items: center; gap: 6px;
}
.lineup-group__title i { color: #999; }

.lineup-row {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 8px;
}
.lineup-row--empty {
    color: #999; font-size: 13px; padding: 8px 0;
}
.lineup-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 999px;
    font-size: 12.5px;
    color: #333;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
}
.lineup-chip i { color: #b58a55; font-size: 12px; }
@media (max-width: 480px) {
    .lineup-chip { padding: 6px 10px; font-size: 12px; }
}

/* Live activity bar — slim pill with rotating messages, used on /schedule and /search */
.live-bar {
    display: flex; align-items: center; gap: 12px;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 8px 18px;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.live-bar__label {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--color-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.live-bar__viewport {
    flex: 1; min-width: 0;
    height: 28px;
    overflow: hidden;
    position: relative;
}
.live-bar__viewport .ticker__item {
    font-size: 13px;
    color: rgba(255,255,255,0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-bar__viewport .ticker__item .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-red);
    flex: 0 0 auto;
}
@media (max-width: 560px) {
    .live-bar { padding: 7px 12px; gap: 8px; }
    .live-bar__label { font-size: 10px; padding: 3px 9px; }
    .live-bar__viewport .ticker__item { font-size: 12px; }
}

/* Search results summary chips */
.search-results__summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.search-results__summary .chip { font-size: 12px; }
.search-results__summary i { color: var(--color-red); margin-right: 4px; }

/* Main YouTube video (top of schedule landing + search results) */
.main-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
    margin-bottom: 28px;
}
.main-video iframe {
    width: 100%; height: 100%;
    border: 0;
    display: block;
}
@media (max-width: 560px) {
    .main-video { border-radius: 12px; margin-bottom: 20px; }
}

/* Schedule landing — large, centered search-only experience */
.schedule-landing { padding: 56px 0 80px; }
.schedule-landing__inner {
    max-width: 720px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 32px;
    align-items: center;
}
.schedule-landing__head .section-title { font-size: clamp(24px, 4vw, 32px); margin-bottom: 6px; }
.schedule-landing__head .section-sub { color: #666; }
.schedule-landing__form { width: 100%; display: flex; justify-content: center; }
.schedule-landing__hint {
    font-size: 13px; color: #888; line-height: 1.7;
    padding: 16px 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #efefef;
    width: 100%;
}
.schedule-landing__hint i { color: var(--color-red); margin-right: 4px; }
@media (max-width: 560px) {
    .schedule-landing { padding: 32px 0 60px; }
    .schedule-landing__inner { gap: 22px; }
    .schedule-landing__hint { font-size: 12px; padding: 14px; }
}

/* Event banner — used on guide page (admin-replaceable background image) */
/* Guide page event banner — 100% width, natural aspect, clean thin border. */
.guide-event-banner {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e6e6e6;
    background: #fff;
    line-height: 0;
    transition: border-color .15s ease, box-shadow .18s ease, transform .18s ease;
}
.guide-event-banner:hover {
    border-color: #ccc;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    transform: translateY(-1px);
}
.guide-event-banner img,
.guide-event-banner picture,
.guide-event-banner picture img {
    width: 100%;
    height: auto;
    display: block;
}

.event-banner {
    position: relative;
    border-radius: var(--radius-md);
    padding: 56px 28px;
    color: #fff;
    text-align: center;
    background-color: #0a572a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.event-banner__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.event-banner__content { position: relative; z-index: 2; }
.event-banner__title {
    font-family: var(--font-serif);
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.event-banner__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.92);
    margin: 0 0 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
@media (max-width: 560px) {
    .event-banner { padding: 36px 20px; }
}

/* Reviews — Vertical news ticker (one line at a time, scrolls up) */
.review-ticker {
    background: #111; color: #fff;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.review-ticker__inner {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 0;
}
.review-ticker__label {
    flex: 0 0 auto;
    padding: 4px 10px;
    background: var(--color-red);
    color: #fff;
    border-radius: 4px;
    font-size: 11px; font-weight: 800;
    letter-spacing: 2px;
}
.review-ticker__viewport {
    flex: 1; height: 28px; overflow: hidden; position: relative;
    --ticker-items: 5;
    --ticker-height: 28px;
}
.review-ticker__track {
    margin: 0; padding: 0; list-style: none;
    animation: tickerScrollUp 18s steps(1, end) infinite;
}
.review-ticker__item {
    height: 28px;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.review-ticker__item .dot {
    flex: 0 0 auto;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--color-red);
}
.review-ticker__item strong { font-weight: 600; color: #fff; }
.review-ticker__item span:not(.dot):not(.review-ticker__sep) { color: rgba(255,255,255,0.85); overflow: hidden; text-overflow: ellipsis; }
.review-ticker__sep { color: rgba(255,255,255,0.3); }

/* 5-item ticker (default): each visible ~3.4s. Smoothly slides up between items. */
@keyframes tickerScrollUp {
    0%,   16%   { transform: translateY(0);     }
    20%,  36%   { transform: translateY(-28px); }
    40%,  56%   { transform: translateY(-56px); }
    60%,  76%   { transform: translateY(-84px); }
    80%,  96%   { transform: translateY(-112px); }
    100%        { transform: translateY(-140px); }
}
/* smooth transition during the 16-20%, 36-40% etc windows */
.review-ticker__track {
    transition: transform 0.5s ease;
}

/* ===== Pagination — 사용자 화면 가운데 정렬 + 여유 마진 ===== */
.pagination {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 4px;
    margin: 28px auto 14px;
    padding: 0;
    list-style: none;
}
.pagination .page-link,
.pagination li > * {
    color: #444; padding: 6px 12px; border: 1px solid #e6e6e6;
    background: #fff; border-radius: 6px; text-decoration: none;
    font-size: 13px; display: inline-block;
}
.pagination .page-item.active .page-link,
.pagination .active > * {
    background: var(--color-red); color: #fff !important; border-color: var(--color-red);
}
.pagination .page-item.disabled .page-link,
.pagination .disabled > * {
    color: #bbb; pointer-events: none; background: #fafafa;
}
nav[role="navigation"] { margin-top: 28px; text-align: center; }

/* Privacy notice block at the top of the profile form */
.profile-privacy-notice {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f4ff 100%);
    border: 1px solid #b6dcff;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    color: #14467a;
    font-size: 13.5px;
    line-height: 1.65;
}
.profile-privacy-notice strong { color: #0a3760; }
.profile-privacy-notice i { color: #1869b8; margin-right: 4px; font-size: 16px; }

/* ====== Profile form (60+ fields) — sectioned, responsive ====== */
.profile-form { font-size: 14px; }
.profile-fieldset {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}
.profile-fieldset > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 700;
    color: #1a1a1a;
    background: #fafafa;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-fieldset > summary::-webkit-details-marker { display: none; }
.profile-fieldset > summary::after {
    content: '▾'; margin-left: auto; color: #999; transition: transform .2s;
}
.profile-fieldset[open] > summary::after { transform: rotate(180deg); }
.profile-fieldset > summary i { color: var(--color-red); }
.profile-fieldset--admin > summary { background: #fff8e6; color: #6b4f00; }
.profile-fieldset--admin > summary i { color: #b88a00; }
.profile-fieldset .profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    padding: 14px 16px;
}
.profile-fieldset .profile-full { grid-column: 1 / -1; }
.profile-fieldset .form-row label { font-weight: 600; font-size: 13px; color: #444; }
.profile-fieldset .form-row input,
.profile-fieldset .form-row select,
.profile-fieldset .form-row textarea {
    width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; background: #fff;
}
.profile-fieldset .form-row textarea { min-height: 80px; resize: vertical; }
.profile-fieldset .form-row input:disabled { background: #f5f5f5; color: #999; }
.profile-fieldset .form-help { font-size: 11px; color: #999; }
.profile-checks {
    display: flex; flex-wrap: wrap; gap: 6px 10px;
    padding: 6px 0;
}
.profile-checks label {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border: 1px solid #ddd; border-radius: 999px;
    font-size: 12.5px; cursor: pointer; background: #fff;
}
.profile-checks label:has(input:checked) {
    background: var(--color-red); color: #fff; border-color: var(--color-red);
}
.profile-checks input { width: auto !important; margin: 0; }
.profile-form-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid #eee; }
@media (max-width: 600px) {
    .profile-fieldset .profile-grid { grid-template-columns: 1fr; }
    .profile-fieldset > summary { padding: 10px 12px; font-size: 13.5px; }
}

/* ====== Event Type icons (baseball / reunion / etc.) ====== */
.event-icon {
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.event-type-chip {
    display: inline-flex; align-items: center;
    margin-left: 4px;
    vertical-align: middle;
}
.calendar__event-icons {
    display: inline-flex;
    gap: 2px;
    position: absolute;
    top: 4px;
    right: 4px;
    line-height: 0;
}
.calendar__event-icons .event-icon { width: 14px; height: 14px; }
.calendar__cell.has-event { position: relative; }

/* ====== Grade / 등급 시스템 ====== */
.grade-section {
    background: linear-gradient(180deg, #fff 0%, #fbf7ee 100%);
    border: 1px solid #f0e6cc;
    border-radius: var(--radius-md);
    padding: 22px;
}
.grade-section__head { text-align: center; margin-bottom: 18px; }
.grade-section__title {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 22px;
    margin: 0;
    color: #1a1a1a;
}
.grade-section__title i { color: #d4a017; margin-right: 4px; }
.grade-section__subtitle { color: #888; font-size: 13px; margin: 4px 0 0; }

.grade-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
@media (max-width: 600px) { .grade-list { grid-template-columns: 1fr; } }

.grade-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: transform .15s ease, border-color .15s ease;
}
.grade-row:hover { transform: translateY(-1px); border-color: #d4a017; }
.grade-row__icon {
    display: inline-flex; align-items: center; flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18)) drop-shadow(0 0 1px rgba(0,0,0,0.1));
    transition: filter .25s ease, transform .25s ease;
}
.grade-row:hover .grade-row__icon {
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.28)) drop-shadow(0 0 2px rgba(255,255,255,0.5));
    transform: scale(1.06) rotate(-2deg);
}
.grade-row__icon svg { display: block; }
.grade-svg { overflow: visible; }
.grade-row__info { flex: 1; min-width: 0; }
.grade-row__name {
    font-weight: 800; font-size: 15px; color: #1a1a1a;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.grade-row__min {
    display: inline-block;
    font-size: 11px; font-weight: 600; color: #666;
    background: #f5f5f5; padding: 2px 7px; border-radius: 999px;
}
.grade-row__min--king { background: linear-gradient(135deg, #ffe27a 0%, #d4a017 100%); color: #5a3a08; }
.grade-row__reward { font-size: 12.5px; color: #666; margin-top: 2px; }

.grade-row--diamond { background: linear-gradient(135deg, #f6fbff 0%, #e9faff 100%); border-color: #b8e5f0; }
.grade-row--ruby    { background: linear-gradient(135deg, #fff6f8 0%, #fff0f3 100%); }
.grade-row--sapphire{ background: linear-gradient(135deg, #f3f8ff 0%, #ecf2ff 100%); }
.grade-row--emerald { background: linear-gradient(135deg, #f3fbf6 0%, #ebf6f0 100%); }
.grade-row--pearl   { background: linear-gradient(135deg, #fefdff 0%, #faf4fb 100%); }
.grade-row--gold    { background: linear-gradient(135deg, #fffaea 0%, #fff3cf 100%); }
.grade-row--silver  { background: linear-gradient(135deg, #fafbfc 0%, #eef0f3 100%); }
.grade-row--bronze  { background: linear-gradient(135deg, #fdf3ea 0%, #f7e2c8 100%); }

.grade-rules {
    margin-top: 16px;
    background: #fff;
    border: 1px dashed #e0d6b3;
    border-radius: 10px;
    padding: 14px 18px;
}
.grade-rules__head { font-weight: 700; font-size: 13.5px; color: #5a3a08; margin-bottom: 6px; }
.grade-rules__head i { color: #d4a017; margin-right: 4px; }
.grade-rules__list { margin: 0 0 8px; padding-left: 18px; font-size: 13px; color: #444; }
.grade-rules__list li { margin: 3px 0; }
.grade-rules__note { font-size: 11.5px; color: #888; margin: 6px 0 0; line-height: 1.6; }

/* Inline grade badge (lineup / profile) */
.grade-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px;
    background: #fff; border: 1px solid #eee;
    border-radius: 999px;
    font-size: 11.5px; font-weight: 700; color: #444;
    line-height: 1;
}
.grade-badge svg { width: 16px; height: 16px; display: block; }

/* Profile page grade summary block */
.profile-grade-card {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #fff 0%, #fbf7ee 100%);
    border: 1px solid #f0e6cc;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
}
.profile-grade-card__icon { flex-shrink: 0; }
.profile-grade-card__info { flex: 1; min-width: 0; }
.profile-grade-card__name { font-weight: 800; font-size: 18px; color: #1a1a1a; }
.profile-grade-card__points { font-size: 13px; color: #666; }
.profile-grade-card__progress {
    width: 100%; height: 6px; background: #f0e6cc; border-radius: 999px;
    overflow: hidden; margin-top: 8px;
}
.profile-grade-card__bar {
    height: 100%; background: linear-gradient(90deg, #ffe27a, #d4a017);
    border-radius: 999px;
}

/* ====== Review create modal ====== */
.modal-card--review {
    max-width: 720px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px 28px 24px;
}
.modal-card--review .modal-title { font-size: 22px; margin-bottom: 8px; }
.review-modal-form .form-row label { font-weight: 600; }
.review-modal-form textarea { resize: vertical; min-height: 120px; }

.review-photos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.review-photos-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}
@media (max-width: 600px) {
    .modal-card--review { padding: 24px 16px 18px; max-height: 96vh; border-radius: 14px; }
    .modal-card--review .grid--2 { grid-template-columns: 1fr; }
    .review-photos-preview img { width: 64px; height: 64px; }
}

/* Review banner — 100% width, natural aspect, clean thin border. */
.review-banner {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e6e6e6;
    background: #fff;
    line-height: 0;
    transition: border-color .15s ease, box-shadow .18s ease;
}
.review-banner:hover { border-color: #ccc; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.review-banner img,
.review-banner picture,
.review-banner picture img {
    width: 100%;
    height: auto;
    display: block;
}

/* Review grid — clean uniform cards */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 992px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }

.review-item {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.review-item:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    transform: translateY(-2px);
    border-color: #ddd;
}
.review-item__link { display: block; color: inherit; }
.review-item__media {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
}
.review-item__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.review-item__media--blank {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f8e8e9 0%, #e9d4d5 100%);
    color: #b75258;
    font-family: var(--font-serif);
    font-size: 72px; font-weight: 800;
}
.review-item__body { padding: 16px 18px 18px; }
.review-item__title {
    font-size: 16px; font-weight: 700; margin: 0 0 6px;
    color: #1a1a1a;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.review-item__content {
    font-size: 13px; color: #555; margin: 0 0 10px;
    line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-item__meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: #999;
}
.review-item__date { color: #b0b0b0; }

/* legacy aliases (kept for other pages that might still use them) */
.review-card { border: 1px solid #eee; border-radius: var(--radius-md); padding: 16px; background:#fff; display: flex; flex-direction: column; gap: 8px; }
.review-card__title { font-weight: 700; }
.review-card__meta { font-size: 12px; color: #666; }
.review-card__content { color: #333; }

/* Shop */
.product-card { background:#fff; border:1px solid #eee; border-radius: var(--radius-md); overflow:hidden; }
.product-card__media { background: #d8a2a4; aspect-ratio: 1/1; display:flex; align-items:center; justify-content:center; color:#fff; font-family: var(--font-serif); font-weight:800; font-size: 48px; }
.product-card__body { padding: 16px; }
.product-card__name { font-weight: 700; }
.product-card__price { font-size: 20px; font-weight: 800; margin-top: 6px; }
.product-card__badge { background: var(--color-red); color:#fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-left: 6px; vertical-align: middle; }

/* Forms */
.form-grid { display:grid; gap: 16px; }
.form-grid .col-2 { grid-template-columns: repeat(2, 1fr); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; color: #333; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
    border: 1px solid #d8d8d8; border-radius: 10px; padding: 12px 14px; font: inherit; background:#fff;
    transition: border-color .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline:none; border-color: #111; }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: 12px; color: #888; }

/* Bottom tabs (mobile) */
.bottom-tabs {
    position: fixed; left:0; right:0; bottom:0; z-index: 60;
    background: #fff; border-top: 1px solid #eee;
    display: grid; grid-template-columns: repeat(6, 1fr); padding: 4px 0;
}
.bottom-tabs a { display:flex; flex-direction:column; align-items:center; gap:2px; color: #777; font-size: 10px; padding: 6px 0; text-align: center; }
.bottom-tabs a i { font-size: 19px; }
.bottom-tabs a span { white-space: nowrap; }
.bottom-tabs a.is-active { color: var(--color-red); }
@media (max-width: 360px) {
    .bottom-tabs a { font-size: 9px; }
    .bottom-tabs a i { font-size: 17px; }
}

/* Search FAB — fixed bottom search bar.
   IMPORTANT: do NOT use `transform`, `filter`, `perspective`, or `will-change`
   on this wrapper — those create a new containing block, which would trap
   descendants' `position: fixed` (the mobile dropdown modal) inside the FAB
   rectangle instead of letting them cover the viewport.
   Horizontal centering via flexbox; show/hide animated via `bottom`. */
.search-fab {
    position: fixed;
    left: 0; right: 0;
    bottom: 80px;
    z-index: 55;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transition: bottom .35s cubic-bezier(.2,.7,.2,1), opacity .25s;
    opacity: 1;
}
.search-fab > * { pointer-events: auto; }
.search-fab .hero__search {
    box-shadow: 0 14px 28px rgba(0,0,0,.15);
    background: #fff;
    max-width: calc(100% - 16px);
}

/* Home page: hide initially (hero has its own search), slide in after scroll */
body.page-home .search-fab {
    bottom: -200px;
    opacity: 0;
}
body.page-home.is-scrolled .search-fab {
    bottom: 80px;
    opacity: 1;
}
/* /schedule landing already has the search form in the page center — no need
   for the duplicate fixed bar at the bottom. */
body.page-schedule-landing .search-fab { display: none !important; }
@media (min-width: 992px) {
    .search-fab { bottom: 24px; }
    body.page-home.is-scrolled .search-fab { bottom: 24px; }
}

/* ====== Kakao floating "TALK" button (PC + mobile, always fixed) ======
   Real-looking KakaoTalk channel icon (yellow rounded square + chat bubble).
   Sits at the bottom-right and follows the viewport.
   Stacked ABOVE the bottom search-fab so the two never overlap.
     Mobile: clears bottom-tabs (≈58px) + search-fab (bottom 80px, height ~55px)
     PC:     clears search-fab (bottom 24px, height ~55px) */
.kakao-fab {
    position: fixed;
    right: 14px;
    /* mobile: just above search-fab top edge (search-fab bottom:80 + height ~55 = top ~135) */
    bottom: calc(138px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.20), 0 2px 6px rgba(0,0,0,.10);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.kakao-fab svg {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 16px;
}
.kakao-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.24), 0 3px 8px rgba(0,0,0,.12);
}
.kakao-fab:active { transform: translateY(0); }

@media (min-width: 992px) {
    .kakao-fab {
        right: 24px;
        /* PC: just above search-fab top edge (bottom:24 + height ~55 = ~79) */
        bottom: 85px;
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }
    .kakao-fab svg { width: 60px; height: 60px; border-radius: 18px; }
}

/* On /schedule landing where search-fab is hidden, drop the kakao FAB back down
   so it doesn't float weirdly high. */
body.page-schedule-landing .kakao-fab {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 992px) {
    body.page-schedule-landing .kakao-fab { bottom: 28px; }
}
/* Same idea for home BEFORE scroll — search-fab is hidden off-screen. */
body.page-home:not(.is-scrolled) .kakao-fab {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 992px) {
    body.page-home:not(.is-scrolled) .kakao-fab { bottom: 28px; }
}
.kakao-fab { transition: transform .18s ease, box-shadow .18s ease, bottom .35s cubic-bezier(.2,.7,.2,1); }

/* Hide while a dropdown modal is open so it doesn't float above the backdrop. */
body.has-cdd-open .kakao-fab { opacity: 0; pointer-events: none; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 300; display:none; align-items:center; justify-content:center; padding: 16px; }
.modal-overlay.is-open { display: flex; }
.modal-card { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 720px; max-height: 92vh; overflow: auto; padding: 28px; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; border: 0; background: #f5f5f5; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.modal-title { font-family: var(--font-serif); font-weight: 800; font-size: 22px; margin: 0 0 8px; }
.modal-card--policy { max-width: 860px; }
.modal-card--alert {
    max-width: 420px;
    text-align: center;
    padding: 32px 28px 24px;
}
.alert-modal__icon {
    font-size: 44px;
    color: var(--color-red);
    margin-bottom: 8px;
    line-height: 1;
}
.alert-modal__msg {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin: 4px 0 22px;
    word-break: keep-all;
}
.modal-card--alert .modal-title { font-size: 18px; }
.policy-content {
    white-space: pre-wrap;
    line-height: 1.85;
    color: #444;
    font-size: 14px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    margin-top: 14px;
}

/* ====================== Footer ====================== */
.site-footer {
    background: #fafafa;
    border-top: 1px solid #ececec;
    padding: 56px 0 64px;
    margin-top: 100px;
    color: #4a4a4a;
}

/* Top grid — 4 columns: brand, nav, customer center, legal */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    gap: 32px 28px;
    padding-bottom: 36px;
    border-bottom: 1px solid #ececec;
}
.footer-col__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    margin: 0 0 14px;
    text-transform: none;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-list a { color: #6b6b6b; font-size: 13px; transition: color .15s; }
.footer-list a:hover { color: var(--color-red); }

/* Brand column */
.footer-col--brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; }
.footer-wordmark {
    display: block;
    height: 22px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
}
.footer-stamp {
    display: block;
    height: 32px;
    width: 32px;
    object-fit: contain;
}
.footer-tagline {
    color: #888; font-size: 12px; margin: 0;
    line-height: 1.7; max-width: 280px;
}
.footer-sns { display: flex; gap: 8px; margin-top: 4px; }
.footer-sns a {
    display: inline-flex; width: 32px; height: 32px;
    align-items: center; justify-content: center;
    border-radius: 50%; background: #fff; color: #555;
    border: 1px solid #e2e2e2;
    transition: all .15s;
}
.footer-sns a:hover {
    background: var(--color-red); color: #fff; border-color: var(--color-red);
}

/* Customer center column — emphasized phone number */
.footer-phone {
    font-family: var(--font-serif);
    font-size: 24px; font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.footer-hours {
    font-size: 11px; color: #999;
    margin: 0 0 14px;
}

/* Business info block (legal-required info, subtle) */
.footer-business {
    padding: 22px 0 20px;
    border-bottom: 1px solid #ececec;
}
/* Collapsible variant — header is the only thing shown until clicked */
.footer-business--toggle { padding: 0; border-bottom: 1px solid #ececec; }
.footer-business--toggle .footer-business__toggle {
    list-style: none;
    cursor: pointer;
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    user-select: none;
}
.footer-business--toggle .footer-business__toggle::-webkit-details-marker { display: none; }
.footer-business--toggle .footer-business__toggle i {
    transition: transform .2s ease;
    margin-left: 4px;
    font-size: 11px;
}
.footer-business--toggle[open] .footer-business__toggle i { transform: rotate(180deg); }
.footer-business--toggle .footer-business__list { padding: 4px 0 18px; }

/* ====== Minimal footer (default everything collapsed) ====== */
.site-footer--minimal {
    padding: 28px 0 110px;
    background: #fff;
    border-top: 1px solid #ececec;
}
.site-footer--minimal .container { max-width: 720px; }

.footer-toggle { text-align: center; }
.footer-toggle__head {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #444;
    font-size: 14px;
    font-weight: 700;
}
.footer-toggle__head::-webkit-details-marker { display: none; }
.footer-toggle__stamp { width: 22px; height: 22px; object-fit: contain; }
.footer-toggle__arrow {
    transition: transform .25s ease;
    font-size: 12px;
    color: #888;
}
.footer-toggle[open] .footer-toggle__arrow { transform: rotate(180deg); }

.footer-toggle__body {
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid #eee;
    animation: footerExpand .25s ease;
}
@keyframes footerExpand {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Business info — clean 2-column grid (label | value), label right-aligned */
.site-footer--minimal .footer-business__list {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 20px;
    row-gap: 8px;
    margin: 0 auto 18px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #555;
    max-width: 560px;
    text-align: left;
}
.site-footer--minimal .footer-business__list > div {
    display: contents; /* let dt/dd participate in the parent grid directly */
}
.site-footer--minimal .footer-business__list dt {
    margin: 0;
    color: #999;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}
.site-footer--minimal .footer-business__list dd {
    margin: 0;
    color: #333;
    font-weight: 500;
    word-break: keep-all;
}
.site-footer--minimal .footer-business__list a { color: inherit; text-decoration: none; }
.site-footer--minimal .footer-business__list a:hover { text-decoration: underline; }

.footer-toggle__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    margin-top: 10px;
    font-size: 13px;
}
.footer-toggle__links {
    gap: 8px 22px;
    padding-top: 14px;
    margin-top: 14px;
}
.footer-toggle__links a {
    color: #555;
    text-decoration: none;
}
.footer-toggle__links a:hover { color: #111; }

.footer-policies {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #555;
}
.footer-policies a { color: #444; text-decoration: none; margin: 0 4px; }
.footer-policies a:hover { color: #111; }
.footer-policies .dot { color: #ccc; margin: 0 2px; }

.site-footer--minimal .footer-copyright {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Clickable phone in footer — black for neutral footer tone */
.footer-phone-link {
    color: #111 !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
}
.footer-phone-link:hover { text-decoration: underline; }
.footer-email-link { color: #444 !important; }

/* Customer center: big phone CTA card — neutral black tone */
.cs-phone-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border: 1.5px solid #111;
    border-radius: 14px;
    margin: 16px 0 24px;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}
.cs-phone-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.12); color: inherit; }
.cs-phone-cta__icon {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #111; color: #fff;
    border-radius: 50%;
    font-size: 22px;
    flex-shrink: 0;
}
.cs-phone-cta__label { font-size: 13px; color: #777; }
.cs-phone-cta__number { font-size: 32px; font-weight: 800; color: #111; letter-spacing: 0.02em; line-height: 1.1; }
@media (max-width: 480px) {
    .cs-phone-cta { padding: 14px 16px; gap: 12px; }
    .cs-phone-cta__icon { width: 46px; height: 46px; font-size: 18px; }
    .cs-phone-cta__number { font-size: 26px; }
}
/* Mobile: bigger bottom safety so the fixed search-fab + bottom-tabs never
   sit on top of policy links / copyright. */
@media (max-width: 991.98px) {
    .site-footer--minimal {
        padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px));
    }
}
@media (max-width: 480px) {
    .footer-toggle__head { font-size: 13px; padding: 8px 12px; }
    .site-footer--minimal .footer-business__list {
        font-size: 12px;
        column-gap: 12px;
        row-gap: 6px;
        max-width: 100%;
    }
}
.footer-business__list {
    display: flex; flex-wrap: wrap;
    gap: 4px 28px;
    margin: 0; padding: 0;
    font-size: 12px;
    line-height: 1.9;
    color: #888;
}
.footer-business__list > div {
    display: inline-flex; align-items: baseline; gap: 6px;
}
.footer-business__list dt {
    margin: 0;
    color: #b0b0b0;
    font-weight: 500;
    font-size: 11px;
}
.footer-business__list dd {
    margin: 0;
    color: #555;
    font-weight: 500;
}
.footer-business__address { width: 100%; }
.footer-business__address dd { color: #777; }

.footer-copyright {
    font-size: 11px; color: #b0b0b0;
    padding-top: 18px;
    letter-spacing: 0.02em;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
    .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-footer { padding: 40px 0 60px; margin-top: 60px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
    .footer-col--brand { grid-column: 1; }
    .footer-business__list { gap: 2px 16px; }
}

/* Helpers */
.text-center { text-align: center; }
.text-muted { color: #777; }
.text-red { color: var(--color-red); }
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-5{margin-top:24px}.mt-6{margin-top:32px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-5{margin-bottom:24px}.mb-6{margin-bottom:32px}
.d-flex{display:flex}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}
.justify-between{justify-content:space-between}.align-center{align-items:center}
.flex-1{flex:1}
.w-100{width:100%}
.d-none{display:none}
@media (min-width: 992px) { .d-lg-none{display:none} .d-lg-flex{display:flex} .d-lg-block{display:block} }
@media (max-width: 991.98px) { .d-md-none{display:none} }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.alert-info { background: #e6f4ff; color: #003a75; }
.alert-success { background: #e6fff0; color: #1f6f3f; }
.alert-warning { background: #fff7e0; color: #8a6100; }
.alert-danger { background: #ffe6e6; color: #8a1f1f; }

/* Pagination — works with Laravel's Bootstrap-5 markup (.page-item / .page-link) */
nav[role="navigation"] {
    padding: 28px 0;
    display: flex; justify-content: center;
}
.pagination {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0; margin: 0;
}
.pagination .page-item { list-style: none; }
.pagination .page-link {
    display: inline-flex;
    align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 10px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    background: #fff;
    text-decoration: none;
    transition: all .15s;
}
.pagination .page-link:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
    background: #fafafa;
}
.pagination .page-item.active .page-link {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    font-weight: 700;
}
.pagination .page-item.disabled .page-link {
    color: #ccc;
    background: #fff;
    cursor: default;
    pointer-events: none;
    border-color: #f0f0f0;
}
/* 페이지네이션 카운트는 vendor view로 한국어화함 (resources/views/vendor/pagination/bootstrap-5.blade.php) */

/* 페이지네이션 — 전체 중앙정렬 (PC + 모바일) */
.pagination-nav {
    justify-content: center !important;
    margin: 24px 0;
}
.pagination-nav .pagination {
    margin: 0 auto;
}

/* 모바일 페이지네이션 — 크게 + 중앙 + 좌우 균등 */
.pagination-mobile {
    display: flex;
    gap: 14px;
    justify-content: center;
    width: 100%;
    max-width: 320px;
}
.pagination-mobile .page-item {
    flex: 1;
}
.pagination-mobile .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 24px;
    background: #fff;
    border: 1.5px solid var(--color-red, #d12c3a);
    color: var(--color-red, #d12c3a);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.pagination-mobile .page-link:hover,
.pagination-mobile .page-link:active {
    background: var(--color-red, #d12c3a);
    color: #fff;
}
.pagination-mobile .page-item.disabled .page-link {
    background: #f5f5f5;
    border-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
}
@media (max-width: 560px) {
    .pagination .page-link { min-width: 32px; height: 32px; font-size: 12px; padding: 0 8px; }
}
