/**
 * gojipsa.css — 고집사 공개 UI (바비톡 스타일 레퍼런스 기반)
 * 색상·간격·카드·탭·하단 GNB 패턴 위주
 *
 * 타이포: Pretendard Variable
 * (@font-face: font-weight 45 920, font-display: swap, format('woff2-variations'))
 * → Pretendard 공식 배포 CSS와 동일 스펙.
 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

html {
    font-size: 15px;
}

body {
    font-size: 15px;
}

/* 스크롤은 그대로, 스크롤바만 숨김 (공개 레이아웃) */
html:has(body.bt-layout) {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE·구 Edge */
}
html:has(body.bt-layout)::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
    width: 0;
    height: 0;
}

:root {
    /* 바비톡 계열 메인 핑크 */
    --bt-pink: #ff3478;
    --bt-pink-hover: #e62e6a;
    --bt-pink-dark: #d9265c;
    --bt-pink-soft: #fff5f8;
    --bt-pink-line: #ffd6e5;
    --bt-text: #111111;
    --bt-text2: #333333;
    --bt-muted: #888888;
    --bt-muted2: #aaaaaa;
    --bt-line: #e8e8e8;
    --bt-line2: #f0f0f0;
    --bt-bg: #f7f7f7;
    --bt-white: #ffffff;
    /* 바비톡형 배너: 카드 모서리·할인% 강조색 */
    --bt-card-radius: 12px;
    --bt-babi-discount: #5b4dff;
    --bt-babi-discount-dark: #4a3de0;
    --bt-babi-kakao: #fee500;
    --bt-header-h: 100px;
    --bt-tabbar-h: 56px;
    --bt-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    /* 공개 사이트 콘텐츠·헤더 최대 폭 */
    --bt-layout-max: 1024px;
    --bt-layout-gutter: 16px;
    /* 이벤트 상세 하단 고정 CTA (바비톡형) */
    --bt-cta-purple: #6b66ff;
    --bt-cta-grey: #f2f2f2;
    /* 홈 진료 칩: 앱형 파란 박스 (레퍼런스 배지 톤) */
    --bt-home-cat-chip-blue: #00a8e8;
    --bt-home-cat-chip-blue-dark: #0090c9;
    --bt-home-cat-chip-inactive-bg: #e6f6fd;
    --bt-home-cat-chip-inactive-border: #b8e6fb;
}

/* ---------- 공통 ---------- */
body.bt-layout {
    font-family: var(--bt-font);
    color: var(--bt-text);
    background: var(--bt-bg);
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 가변 폰트 굵기 해석 (바비톡·Pretendard Variable 권장) */
    font-optical-sizing: auto;
    /* 스크롤바 숨김 (스크롤은 유지) */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body.bt-layout::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (max-width: 767.98px) {
    body.bt-layout.bt-has-tabbar {
        padding-bottom: calc(var(--bt-tabbar-h) + env(safe-area-inset-bottom));
    }

    /*
     * 푸터를 .bt-main-sheet 안으로 옮긴 페이지(bt-footer-in-sheet):
     * 본문·푸터가 함께 스크롤되므로 body 하단 패딩은 제거하고,
     * 시트 하단 패딩만으로 fixed 탭바에 가리지 않게 함.
     */
    body.bt-layout.bt-has-tabbar.bt-footer-in-sheet {
        padding-bottom: 0;
    }

    body.bt-layout.bt-has-tabbar.bt-footer-in-sheet .bt-main-sheet {
        padding-bottom: calc(var(--bt-tabbar-h) + env(safe-area-inset-bottom, 0px));
    }
}

.bt-layout main {
    flex: 1;
    width: 100%;
    max-width: var(--bt-layout-max);
    margin-left: auto;
    margin-right: auto;
    background: var(--bt-white);
}

/* ---------- 공개 앱 셸: 바비톡형 — 둥근 메인 시트 안에서만 세로 스크롤 ---------- */
html:has(body.bt-app-shell) {
    height: 100%;
}

body.bt-layout.bt-app-shell {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
    overflow: hidden;
}

body.bt-layout.bt-app-shell > .bt-topbar,
body.bt-layout.bt-app-shell > .bt-mainnav,
body.bt-layout.bt-app-shell > .bt-cta-bar-wrap,
body.bt-layout.bt-app-shell > footer,
body.bt-layout.bt-app-shell > .bt-tabbar {
    flex-shrink: 0;
}

/* 이벤트 상세: CTA가 main 안 .bt-main-sheet 로 들어간 경우(직접 자식 아님) */
.bt-main-sheet > .bt-cta-bar-wrap--in-sheet {
    flex-shrink: 0;
}

body.bt-layout.bt-app-shell main.bt-app-main {
    flex: 1 1 0;
    min-height: 0;
    max-width: var(--bt-layout-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px var(--bt-layout-gutter) 8px;
    box-sizing: border-box;
    background: transparent;
}

/* 둥근 모서리는 바깥(overflow:hidden), 스크롤은 안쪽
 * 같은 요소에 border-radius + overflow-y:auto 만 두면 크롬 등에서 모서리가 사각으로 보이는 경우가 많음
 * (스크롤 컨테이너 레이어가 라운드 마스크와 어긋남 → 흰 배경 자식이 직사각형으로 모서리를 덮어 보임) */
.bt-main-sheet-outer {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: var(--bt-white);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    isolation: isolate;
}

.bt-main-sheet {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* 시트의 ‘둥근 테두리’는 .bt-main-sheet-outer 전용 — 여기에 radius/bg 주면 위 이슈 재발 */
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.bt-main-sheet::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ---------- 상단 로고 바 ---------- */
.bt-topbar {
    height: var(--bt-header-h);
    background: var(--bt-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.bt-topbar__inner {
    width: 100%;
    max-width: var(--bt-layout-max);
    padding: 0 var(--bt-layout-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bt-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--bt-text) !important;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.bt-logo i {
    color: var(--bt-pink);
    font-size: 1.35rem;
}

/* 상단 우측: 지역 버튼 ↔ 회원 메뉴 간격 */
.bt-topbar__right {
    gap: 12px;
    row-gap: 8px;
    max-width: 100%;
}

@media (min-width: 576px) {
    .bt-topbar__right {
        gap: 16px;
    }
}

.bt-topbar__region {
    margin-right: 0;
}

.bt-topbar__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    row-gap: 4px;
}

.bt-topbar__actions .nav-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bt-muted) !important;
    padding: 0.35rem 0.55rem !important;
    white-space: nowrap;
}

.bt-topbar__actions #navLogin {
    gap: 2px 8px;
}

.bt-topbar__actions .nav-link.text-bt-pink {
    color: var(--bt-pink) !important;
    font-weight: 700;
}

/* 메인 히어로 검색바가 스크롤로 가려졌을 때만 상단 우측에 노출 */
.bt-topbar-search-reveal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #f2f2f2;
    border: 1px solid var(--bt-line);
    color: var(--bt-text2) !important;
    text-decoration: none !important;
    flex-shrink: 0;
    margin-left: 6px;
    transition: background 0.15s ease, opacity 0.2s ease, transform 0.2s ease;
}

.bt-topbar-search-reveal:hover {
    background: #e8e8e8;
    color: var(--bt-text) !important;
}

.bt-topbar-search-reveal.d-none {
    display: none !important;
}

/* 표시될 때는 원형 버튼 레이아웃 유지 */
.bt-topbar-search-reveal:not(.d-none) {
    display: inline-flex !important;
}

/* ---------- 메인 GNB (홈 / 이벤트 / 검색 / 커뮤니티 스타일) ---------- */
.bt-mainnav {
    display: none !important;
    background: var(--bt-white);
    border-bottom: 1px solid var(--bt-line2);
}

.bt-mainnav__inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: var(--bt-layout-max);
    margin: 0 auto;
    padding: 0 var(--bt-layout-gutter);
}

.bt-mainnav a {
    flex: 1;
    max-width: 120px;
    text-align: center;
    padding: 12px 8px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bt-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.bt-mainnav a:hover {
    color: var(--bt-text2);
}

.bt-mainnav a.active {
    color: var(--bt-pink);
    border-bottom-color: var(--bt-pink);
}

/* ---------- 성형 / 쁘띠 — 2분할 대카테고리 ---------- */
.bt-split-cat {
    display: flex;
    background: var(--bt-white);
    border-bottom: 1px solid var(--bt-line);
}

.bt-split-cat a {
    flex: 1;
    text-align: center;
    padding: 16px 12px 14px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--bt-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    letter-spacing: -0.03em;
}

.bt-split-cat a:hover {
    color: var(--bt-text2);
}

.bt-split-cat a.active {
    color: var(--bt-pink);
    border-bottom-color: var(--bt-pink);
}

/* ---------- 서브 필터 (인기순·키워드) ---------- */
.bt-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bt-white);
    border-bottom: 1px solid var(--bt-line2);
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bt-filter-row::-webkit-scrollbar {
    display: none;
}

.bt-filter-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bt-text2);
    background: var(--bt-bg);
    border: 1px solid var(--bt-line);
    text-decoration: none;
    cursor: pointer;
}

.bt-filter-chip:hover {
    border-color: var(--bt-pink-line);
    color: var(--bt-pink);
}

.bt-filter-chip--on {
    background: var(--bt-pink-soft);
    border-color: var(--bt-pink-line);
    color: var(--bt-pink);
}

/* ---------- 히어로 + 검색 ---------- */
.bt-hero {
    background: var(--bt-white);
    padding: 20px 16px 18px;
}

.bt-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 6px;
    color: var(--bt-text);
}

.bt-hero-sub {
    font-size: 0.82rem;
    color: var(--bt-muted);
    margin: 0 0 16px;
    font-weight: 500;
}

/* 히어로 카피 없이 검색만 (바비톡 메인 검색 영역과 동일한 밀도) */
.bt-hero--search-only {
    padding: 24px 16px 18px;
}

/* 바비톡형: 검색창 바로 아래 인기 검색어 */
.bt-hero-popular {
    max-width: 80%;
    margin: 14px auto 0;
    padding: 0 2px;
}

/* 라벨 옆으로 검색어 칩 가로 나열 (줄 바꿈 시 다음 줄에 칩만 이어짐) */
.bt-popular-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.bt-popular-inline__label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--bt-muted);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.bt-popular-inline .bt-kw-track {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

/* 히어로 하단 칩: 조금 더 컴팩트 */
.bt-hero-popular.bt-popular-inline .bt-kw-chip {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* 보라 그라데이션 테두리 (내부는 흰 필드) */
.bt-search-wrap {
    display: flex;
    align-items: stretch;
    border-radius: 999px;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--bt-white), var(--bt-white)) padding-box,
        linear-gradient(125deg, #6366f1 0%, #7c3aed 38%, #9333ea 72%, #8b5cf6 100%) border-box;
    overflow: hidden;
    max-width: 80%;
    margin: 0 auto;
}

/* 클릭/포커스 시 바깥 핑크 링·이중 테두리 없음 (Bootstrap form-control 기본 focus-ring 제거) */
.bt-search-wrap:focus-within {
    box-shadow: none;
}

.bt-search-wrap input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 500;
}

.bt-search-wrap input:focus,
.bt-search-wrap input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.bt-search-wrap input::placeholder {
    color: var(--bt-muted2);
}

/* 메인 히어로 검색: 클릭 시 검색 페이지로만 이동(readonly) — 커서·배경은 일반 입력과 동일하게 */
.bt-hero--search-only .bt-search-wrap input[readonly] {
    cursor: pointer;
    background: transparent !important;
}

/* ---------- 메인: 검색 아래 슬라이드 배너 ---------- */
.bt-home-banner-wrap {
    background: var(--bt-white);
    padding: 4px 16px 16px;
    max-width: 100%;
}

.bt-home-banner {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.bt-home-banner .carousel-inner {
    border-radius: var(--bt-card-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.bt-home-banner__slide {
    position: relative;
    min-height: 118px;
    padding: 20px 52px 18px 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .bt-home-banner__slide {
        min-height: 132px;
        padding: 22px 56px 20px 24px;
    }
}

.bt-home-banner__slide--a {
    background: linear-gradient(125deg, #ff3478 0%, #e11d48 42%, #be185d 100%);
}

.bt-home-banner__slide--b {
    background: linear-gradient(125deg, #5b4dff 0%, #6d28d9 45%, #7c3aed 100%);
}

.bt-home-banner__slide--c {
    background: linear-gradient(125deg, #0d9488 0%, #0891b2 48%, #2563eb 100%);
}

/* API 연동 배너(배경 이미지 URL) */
.bt-home-banner__slide--dynamic {
    min-height: 118px;
    padding: 20px 52px 18px 20px;
    display: flex;
    align-items: center;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .bt-home-banner__slide--dynamic {
        min-height: 250px;
        padding: 22px 56px 20px 24px;
    }
}

.bt-home-banner__slide--dynamic.bt-home-banner--text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.22) 55%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.bt-home-banner__slide--dynamic.bt-home-banner--text .bt-home-banner__inner {
    position: relative;
    z-index: 1;
}

.bt-home-banner__slide:hover {
    color: #fff !important;
    filter: brightness(1.03);
}

.bt-home-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 92%;
}

.bt-home-banner__badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 8px;
}

.bt-home-banner__title {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 6px;
    letter-spacing: -0.04em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
    .bt-home-banner__title {
        font-size: 1.22rem;
    }
}

.bt-home-banner__sub {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.bt-home-banner .carousel-indicators {
    margin-bottom: 8px;
    gap: 6px;
}

.bt-home-banner .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.bt-home-banner .carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.15);
}

.bt-home-banner .carousel-control-prev,
.bt-home-banner .carousel-control-next {
    width: 10%;
    min-width: 36px;
    opacity: 0.85;
}

.bt-home-banner .carousel-control-prev-icon,
.bt-home-banner .carousel-control-next-icon {
    width: 1.75rem;
    height: 1.75rem;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

/* 바비톡형: 보라 그라데이션 버튼 + SVG 돋보기 */
.bt-search-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    min-width: 52px;
    min-height: 48px;
    padding: 0 !important;
    background: linear-gradient(135deg, #5b4dff 0%, #6d28d9 45%, #7c3aed 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.bt-search-btn:focus,
.bt-search-btn:active {
    box-shadow: none !important;
    outline: none !important;
}

.bt-search-btn .bt-search-icon {
    display: block;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    opacity: 0.98;
}

.bt-search-btn:hover {
    background: linear-gradient(135deg, #6b5aff 0%, #7c3aed 50%, #9333ea 100%) !important;
    color: #fff !important;
    filter: brightness(1.03);
}

.bt-search-btn:active {
    background: linear-gradient(135deg, #4f46e5 0%, #5b21b6 50%, #6d28d9 100%) !important;
    color: #fff !important;
    filter: brightness(0.96);
}

.bt-search-btn:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    z-index: 1;
}

@media (min-width: 768px) {
    .bt-search-btn {
        width: 56px;
        min-width: 56px;
        min-height: 52px;
    }

    .bt-search-btn .bt-search-icon {
        width: 23px;
        height: 23px;
    }
}

/* ---------- 콘텐츠 패널 ---------- */
.bt-panel {
    background: var(--bt-white);
    margin-top: 8px;
    padding: 18px 16px 22px;
}

.bt-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.bt-section-head h2 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.1rem;
    margin: 0;
    color: var(--bt-text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bt-link-more {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bt-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.bt-link-more:hover {
    color: var(--bt-pink);
}

/* ---------- 홈·인기 이벤트: 진료 카테고리 칩 (앱형 파란 박스) ---------- */
.bt-home-cat-chips {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.bt-home-cat-chips::-webkit-scrollbar {
    display: none;
}

.bt-home-cat-chip {
    flex-shrink: 0;
    margin: 0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    font-family: inherit;
    color: #0c4a6e;
    background: var(--bt-home-cat-chip-inactive-bg);
    border: 1px solid var(--bt-home-cat-chip-inactive-border);
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.bt-home-cat-chip:hover {
    background: #d4effb;
    border-color: #7dd3fc;
    color: #075985;
}

.bt-home-cat-chip.active {
    color: #fff;
    background: var(--bt-home-cat-chip-blue);
    border-color: var(--bt-home-cat-chip-blue-dark);
    box-shadow: 0 2px 10px rgba(0, 168, 232, 0.35);
}

.bt-home-cat-chip.active:hover {
    color: #fff;
    background: #1bb8f0;
    border-color: var(--bt-home-cat-chip-blue);
}

.bt-home-cat-chip:focus-visible {
    outline: 2px solid var(--bt-home-cat-chip-blue);
    outline-offset: 2px;
}

/* ---------- 이벤트 카드 ---------- */
.bt-event-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 4px 16px 8px;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .bt-event-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        margin: 0;
        padding: 0;
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .bt-event-track {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bt-event-card {
    flex: 0 0 68%;
    max-width: 240px;
    background: var(--bt-white);
    border-radius: var(--bt-card-radius);
    overflow: hidden;
    border: 1px solid var(--bt-line2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

/* 카드 본문(이미지~별점) — 상세로 이동 */
.bt-event-card__main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    color: inherit;
    text-decoration: none !important;
}

.bt-event-card__main:hover {
    color: inherit;
}

@media (min-width: 768px) {
    .bt-event-card {
        flex: none;
        max-width: none;
    }
}

.bt-event-card:hover {
    /*box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);*/
    color: inherit;
}

.bt-event-card__img {
    position: relative;
    aspect-ratio: 1 / 0.5;
    background: #eaeaea;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.bt-event-card__img > img,
.bt-event-card__img-ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bt-event-card__img-ph {
    background: linear-gradient(145deg, #e8e8e8 0%, #f5f5f5 100%);
}

/* 바비톡: 썸네일 하단 그라데이션 + 이미지 위 카피 */
.bt-event-card__img-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.4) 35%,
        rgba(0, 0, 0, 0.12) 58%,
        transparent 78%
    );
}

.bt-event-card__overlay {
    position: absolute;
    left: 10px;
    right: 52px;
    bottom: 10px;
    z-index: 2;
    pointer-events: none;
}

.bt-event-card__overlay-main {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.28;
    color: #fff;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.bt-event-card__overlay-sub {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

/* 바비톡: 우상단 할인율 원형 뱃지 (보라 톤) */
.bt-event-card__pct-circle {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--bt-babi-discount) 0%, var(--bt-babi-discount-dark) 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    box-shadow: 0 2px 10px rgba(91, 75, 255, 0.35);
}

.bt-event-card__pct-circle span {
    font-size: 0.55rem;
    font-weight: 700;
    opacity: 0.95;
}

/* 좌상단 상태 */
.bt-event-card__flag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.bt-event-card__flag--soon {
    background: #ffb300;
    color: #222;
}

.bt-event-card__body {
    padding: 12px 12px 10px;
    text-align: left;
}

/* 바비톡 순서: 1) 이벤트명 → 2) 설명 → 3) 업체 (각 1줄 말줄임) */
.bt-event-card__title {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    color: var(--bt-text);
    letter-spacing: -0.02em;
}

.bt-event-card__desc {
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1;
    color: #666666;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.bt-event-card__biz {
    font-size: 0.68rem;
    font-weight: 500;
    color: #999999;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

/* 바비톡형: 정가 한 줄 → 할인가·%·VAT 한 줄 */
.bt-event-card__price-block {
}

.bt-event-card__price-strike-row {
}

.bt-event-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.bt-event-card__price-old {
    font-size: 0.72rem;
    color: #bbbbbb;
    text-decoration: line-through;
    font-weight: 500;
}

.bt-event-card__price-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 6px;
    row-gap: 2px;
}

/* 바비톡: 할인가 검정 굵게 */
.bt-event-card__price-sale {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111111;
    letter-spacing: -0.04em;
}

/* 본문 옆 할인율 % (보라) */
.bt-event-card__price-pct {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--bt-babi-discount);
    letter-spacing: -0.03em;
}

/* 같은 줄 VAT (아주 작은 회색) */
.bt-event-card__price-vat-inline {
    font-size: 0.62rem;
    font-weight: 500;
    color: #aaaaaa;
    margin-left: 2px;
}

.bt-event-card__price-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bt-muted);
}

.bt-event-card__price-prefix {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--bt-muted);
    margin-right: 2px;
}

.bt-event-card__price-suffix {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bt-muted2);
    margin-left: 1px;
}

/* 카드: 별점·후기 (바비톡: 노란 별 + 진한 숫자 + 연한 괄호, 링크 아님) */
.bt-event-card__rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 5px;
    text-decoration: none;
}

.bt-event-card__rating-star {
    color: #facc15;
    font-size: 0.78rem;
    line-height: 1;
    filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.15));
}

.bt-event-card__rating-score {
    font-size: 0.78rem;
    font-weight: 800;
    color: #333333;
    letter-spacing: -0.02em;
}

.bt-event-card__rating-cnt {
    font-size: 0.68rem;
    font-weight: 500;
    color: #999999;
}

/* 카드: 고집사 별점 / 구글 별점 두 줄 */
.bt-event-card__ratings {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.bt-event-card__rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 5px;
}

.bt-event-card__rating-label {
    flex: 0 0 auto;
    min-width: 4.25rem;
    font-size: 0.62rem;
    font-weight: 800;
    color: #888888;
    letter-spacing: -0.02em;
}

/* 카드 하단: 카톡 필 버튼 (바비톡: 좌측 정렬·노란 알약) */
.bt-event-card__kakao-foot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: flex-start;
    margin: 0px 12px 12px;
    padding: 4px 9px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #191600 !important;
    text-decoration: none !important;
    background: var(--bt-babi-kakao);
    border-radius: 999px;
    line-height: 1.2;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    border: none;
	border-radius: 2px;
}

.bt-event-card__kakao-foot:hover {
    background: #f5dc00 !important;
    color: #191600 !important;
}

.bt-event-card__kakao-foot i {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ---------- 이벤트 카드 — 히어로(배경 이미지 + 하단 흰 시트) 검색 결과용 ---------- */
.bt-search-events-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .bt-search-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .bt-search-events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .bt-search-events-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bt-event-card--hero {
    flex: none;
    max-width: none;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

.bt-event-card--hero .bt-event-card__hero-top {
    position: relative;
    border-radius: var(--bt-card-radius) var(--bt-card-radius) 0 0;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.bt-event-card--hero .bt-event-card__hero-img-link {
    color: inherit;
    display: block;
}

.bt-event-card--hero .bt-event-card__hero-img-link:hover {
    color: inherit;
}

/* 풀블리드 배경 이미지 영역 */
.bt-event-card--hero .bt-event-card__img {
    aspect-ratio: 16 / 11;
    min-height: 200px;
    border-radius: var(--bt-card-radius) var(--bt-card-radius) 0 0;
}

/* 흰 시트와 겹치지 않게 오버레이 카피 위치 */
.bt-event-card--hero .bt-event-card__overlay {
    bottom: auto;
    top: 46%;
    left: 12px;
    right: 56px;
    transform: translateY(-10%);
}

@media (max-width: 400px) {
    .bt-event-card--hero .bt-event-card__overlay {
        top: 40%;
    }
}

.bt-event-card--hero .bt-event-card__img-shade {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.35) 38%,
        rgba(0, 0, 0, 0.08) 62%,
        transparent 82%
    );
}

/* 하단 흰 박스: 이미지 위로 살짝 겹침 */
.bt-event-card__sheet {
    margin: -40px 10px 0;
    padding: 12px 12px 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 3;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bt-event-card__sheet-main {
    display: block;
    color: inherit;
}

.bt-event-card__sheet-main:hover {
    color: inherit;
}

.bt-event-card--hero .bt-event-card__sheet .bt-event-card__title {
    margin-top: 0;
}

.bt-event-card--hero .bt-event-card__sheet .bt-event-card__kakao-foot {
    margin: 10px 0 0;
    width: 100%;
    justify-content: center;
    align-self: stretch;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.78rem;
}

/* ---------- 인기 검색어 ---------- */
.bt-kw-track {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-kw-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bt-bg);
    border: 1px solid var(--bt-line);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bt-text2);
    text-decoration: none;
}

.bt-kw-chip:hover {
    border-color: var(--bt-pink);
    color: var(--bt-pink);
}

/* ---------- 앱 유도 배너 ---------- */
.bt-app-banner {
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    border-top: 1px solid var(--bt-line);
    padding: 24px 16px;
    text-align: center;
    margin-top: 8px;
}

.bt-app-banner__title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--bt-text);
}

.bt-app-banner__sub {
    font-size: 0.78rem;
    color: var(--bt-muted);
    margin: 0 0 16px;
}

.bt-app-banner__qr {
    width: 88px;
    height: 88px;
    margin: 0 auto 12px;
    background: var(--bt-white);
    border: 1px dashed var(--bt-line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--bt-muted2);
    line-height: 1.3;
}

.bt-app-banner__stores {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bt-app-banner__stores .btn {
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 16px;
}

/* ---------- 푸터 (바비톡식 밀도) ---------- */
.bt-footer {
    width: 100%;
    max-width: var(--bt-layout-max);
    margin-left: auto;
    margin-right: auto;
    background: var(--bt-white);
    border-top: 1px solid var(--bt-line);
    padding: 28px var(--bt-layout-gutter) 32px;
    font-size: 0.72rem;
    color: var(--bt-muted);
    line-height: 1.65;
}

.bt-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 16px;
    font-weight: 700;
}

.bt-footer__links a {
    color: var(--bt-text2);
    text-decoration: none;
}

.bt-footer__links a:hover {
    color: var(--bt-pink);
}

.bt-footer__company {
    text-align: center;
    max-width: 480px;
    margin: 0 auto 12px;
}

.bt-footer__disclaimer {
    text-align: center;
    max-width: 520px;
    margin: 16px auto 0;
    font-size: 0.68rem;
    color: var(--bt-muted2);
}

.bt-footer__health {
    text-align: center;
    font-size: 0.65rem;
    color: var(--bt-muted2);
    margin-top: 8px;
}

/* Bootstrap 모달: 하단 탭바(1060)보다 위 + 시트(isolation) 밖에 두지 않으면 backdrop이 main 위를 덮음(home.jsp 주석 참고) */
body.bt-layout .modal-backdrop {
    z-index: 1070;
}
body.bt-layout .modal {
    z-index: 1080;
}

/* ---------- 모바일 하단 탭바 (홈·이벤트·검색·더보기) ---------- */
.bt-tabbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    background: var(--bt-white);
    border-top: 1px solid var(--bt-line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
}

@media (max-width: 767.98px) {
    .bt-tabbar {
        display: flex;
        justify-content: space-around;
        align-items: stretch;
    }
}

.bt-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--bt-muted);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 2px;
    min-width: 0;
}

.bt-tabbar a i {
    font-size: 1.25rem;
}

.bt-tabbar a.active {
    color: var(--bt-pink);
}

/* ========== 이벤트 상세 ========== */
.bt-detail-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bt-line2);
    height: var(--bt-header-h);
    display: flex;
    align-items: center;
}

.bt-detail-topbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--bt-layout-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--bt-layout-gutter);
    box-sizing: border-box;
}

.bt-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--bt-text2);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 6px 8px;
    margin-left: -6px;
}

.bt-back-btn:hover {
    color: var(--bt-pink);
}

/* 이벤트 상세: 바비톡형 상단 좌측 뒤로가기(아이콘만) */
.bt-detail-back-row {
    margin: -6px 0 2px -8px;
}

.bt-detail-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--bt-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, background 0.15s ease;
}

.bt-detail-back-btn:hover {
    color: var(--bt-text2);
    background: var(--bt-bg);
}

/*
.bt-detail-back-btn:active {
    color: var(--bt-text);
    background: var(--bt-line2);
}

.bt-detail-back-btn:focus-visible {
    outline: 2px solid var(--bt-pink);
    outline-offset: 2px;
}
*/
.bt-detail-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 100vw;
    background: #e5e5e5;
}

@media (min-width: 768px) {
    .bt-detail-hero {
        aspect-ratio: 16 / 9;
        max-height: 460px;
    }
}

.bt-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bt-detail-pct-float {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bt-pink);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(255, 52, 120, 0.45);
    z-index: 1;
}

.bt-detail-pct-float small {
    font-size: 0.55rem;
    font-weight: 700;
    opacity: 0.95;
}

/* 이벤트 상세: 히어로·시트 동일 열 (main max 1024px 안) — 좌우 여백은 거터만 */
.bt-detail-page {
    width: 100%;
    background: #fff;
    padding-left: var(--bt-layout-gutter);
    padding-right: var(--bt-layout-gutter);
    box-sizing: border-box;
}

.bt-detail-sheet {
    background: var(--bt-white);
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 2;
    padding: 18px 0 1.5rem;
}

@media (min-width: 768px) {
    .bt-detail-sheet {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 28px 0 40px;
    }
}

.bt-hospital-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 14px;
    border-bottom: 1px solid var(--bt-line2);
    margin-bottom: 14px;
}

.bt-hospital-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bt-pink-soft);
    color: var(--bt-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    border: 1px solid var(--bt-pink-line);
}

.bt-hospital-meta {
    flex: 1;
    min-width: 0;
}

.bt-hospital-name {
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0 0 2px;
    color: var(--bt-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bt-hospital-sub {
    font-size: 0.75rem;
    color: var(--bt-muted);
    margin: 0;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bt-detail-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 12px;
    color: var(--bt-text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.bt-price-panel {
    border: 2px solid var(--bt-pink);
    border-radius: 12px;
    background: var(--bt-pink-soft);
    padding: 14px 16px;
    margin-bottom: 14px;
}

.bt-price-panel__label {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--bt-pink);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bt-price-panel__row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.bt-price-panel__old {
    font-size: 0.88rem;
    color: var(--bt-muted);
    text-decoration: line-through;
}

.bt-price-panel__sale {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--bt-pink);
    letter-spacing: -0.03em;
}

.bt-price-panel__vat {
    font-size: 0.68rem;
    color: var(--bt-muted);
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bt-price-panel__pct {
    font-size: 0.72rem;
    font-weight: 900;
    background: var(--bt-pink);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
}

/* 상세: 가격 아래 별점·카톡 (세로 스택) */
.bt-detail-trust-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 12px;
    margin-bottom: 4px;
}

.bt-price-panel + .bt-detail-trust-actions {
    margin-top: 8px;
}

/* 상세: 가격 패널 아래 별점·후기 (레퍼런스 배너 톤) */
.bt-detail-ratings {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 8px;
}

.bt-detail-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 0;
}

.bt-detail-rating-row__label {
    flex: 0 0 auto;
    min-width: 4.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--bt-muted);
}

.bt-detail-rating-row__star {
    color: #facc15;
    font-size: 1rem;
    line-height: 1;
}

.bt-detail-rating-row__score {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--bt-text);
    letter-spacing: -0.02em;
}

.bt-detail-rating-row__cnt {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--bt-muted);
}

/* 카카오톡 상담 (브랜드 옐로) */
.bt-btn-kakao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #191600 !important;
    text-decoration: none !important;
    background: #fee500;
    border: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: background 0.15s, transform 0.12s;
}

.bt-btn-kakao:hover {
    background: #f5dc00 !important;
    color: #191600 !important;
    transform: translateY(-1px);
}

.bt-btn-kakao i {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .bt-btn-kakao {
        width: auto;
    }
}

/* 상세: 한 이벤트 안의 구성 이벤트(여러 줄) */
.bt-sub-event-card {
    background: #fff;
    border: 1px solid var(--bt-pink-line);
    border-radius: 10px;
    padding: 10px 12px;
}

.bt-sub-event-card__name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--bt-text);
    margin-bottom: 6px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bt-sub-event-card__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.bt-period-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bt-text2);
    background: var(--bt-bg);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--bt-line2);
}

.bt-tabs.nav-tabs {
    border-bottom: 2px solid var(--bt-line2);
}

.bt-tabs .nav-link {
    border: none !important;
    color: var(--bt-muted) !important;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 12px 14px;
    border-radius: 0 !important;
}

.bt-tabs .nav-link.active {
    color: var(--bt-pink) !important;
    border-bottom: 3px solid var(--bt-pink) !important;
    margin-bottom: -2px;
    background: transparent !important;
}

.bt-tab-pane-body {
    padding: 16px 0;
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--bt-text2);
}

.bt-benefit-box {
    background: var(--bt-pink-soft);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--bt-pink-line);
    font-weight: 500;
    white-space: pre-line;
    word-break: break-word;
}

.bt-detail-img-stack img {
    width: 100%;
    display: block;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--bt-line2);
}

a.btn-bt-primary,
button.btn-bt-primary {
    background: var(--bt-pink) !important;
    color: #fff !important;
    font-weight: 800;
    border: none !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
}

a.btn-bt-primary:hover,
button.btn-bt-primary:hover {
    background: var(--bt-pink-hover) !important;
    color: #fff !important;
}

/*
 * 바비톡형 하단 CTA: fixed 아님 — 스크롤 컨테이너(.bt-main-sheet) 안에서 sticky bottom.
 * 스크롤 중에는 시트 뷰포트 하단에 붙고, 맨 아래까지 내리면 문서 흐름 위치로 돌아가 푸터가 아래에 보임.
 */
.bt-cta-bar-wrap {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    left: calc(50% - 512px);
    z-index: 1050;
    width: 100%;
    max-width: 1024px;
    flex-shrink: 0;
    align-self: stretch;
    background: var(--bt-white);
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
}

/* 이벤트 상세: CTA가 시트 내부 스크롤에 붙음 — 좌표·폭 보정 */
.bt-cta-bar-wrap--in-sheet {
    left: auto;
    max-width: none;
    align-self: stretch;
    border-top: 1px solid var(--bt-line2);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
}

/* 스티키 바에 가리지 않도록 본문 하단 여백 (바로 다음 형제가 시트 내 CTA 일 때) */
.bt-main-sheet > .bt-detail-page:has(+ .bt-cta-bar-wrap--in-sheet) {
    padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
    .bt-main-sheet > .bt-detail-page:has(+ .bt-cta-bar-wrap--in-sheet) {
        padding-bottom: 5rem;
    }
}

/* 상세 시트 안 푸터(모바일 면책 등) */
.bt-main-sheet > .bt-footer {
    margin-top: 0.25rem;
}

.bt-main-sheet > p.bt-footer__disclaimer {
    margin-bottom: 0;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.bt-cta-bar {
    max-width: var(--bt-layout-max);
    margin: 0 auto;
    padding: 10px var(--bt-layout-gutter);
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.bt-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    border-radius: 12px;
    text-decoration: none !important;
    border: none;
    padding: 13px 10px;
    min-height: 48px;
    transition: background 0.15s, opacity 0.15s;
}

.bt-cta-btn--biz {
    flex: 0 0 23%;
    max-width: 5.5rem;
    background: var(--bt-cta-grey);
    color: #333333 !important;
}

.bt-cta-btn--biz:hover {
    background: #e8e8e8 !important;
    color: #111 !important;
}

.bt-cta-btn--kakao {
    flex: 1 1 0;
    min-width: 0;
    background: #fee500;
    color: #191600 !important;
    gap: 6px;
}

.bt-cta-btn--kakao:hover {
    background: #f5dc00 !important;
    color: #191600 !important;
}

.bt-cta-btn--kakao i {
    font-size: 1.05rem;
}

.bt-cta-btn--consult {
    flex: 1 1 0;
    min-width: 0;
    background: linear-gradient(135deg, #6b66ff 0%, #534bcc 100%);
    color: #ffffff !important;
}

.bt-cta-btn--consult:hover {
    background: linear-gradient(135deg, #5852e0 0%, #453ca8 100%) !important;
    color: #fff !important;
}

.bt-cta-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* 카톡 없을 때: 업체 + 상담 2분할 */
.bt-cta-bar--two .bt-cta-btn--biz {
    flex: 0 0 30%;
    max-width: none;
}

.bt-cta-bar--two .bt-cta-btn--consult {
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .bt-cta-btn {
        font-size: 0.92rem;
        padding: 14px 14px;
        border-radius: 12px;
    }
}

/* 레거시 클래스 호환 (기존 JSP 일부) */
.bt-header .navbar-brand {
    color: var(--bt-pink) !important;
}

.bt-hero-kicker {
    display: none;
}

.bt-section {
    padding: 0;
}

.bt-footer-disclaimer {
    font-size: 0.68rem;
    color: var(--bt-muted2);
    line-height: 1.55;
    max-width: 520px;
    margin: 12px auto 0;
}

/* ---------- 지역 변경 모달: 2열 피커 (마크업은 home / events-popular 공통) ---------- */
#modalNearbyRegion .modal-dialog {
    max-width: min(520px, calc(100vw - 1.5rem));
}

#modalNearbyRegion .modal-content {
    border-radius: 14px;
    overflow: hidden;
}

#modalNearbyRegion .modal-body {
    min-height: 0;
}

.bt-region-picker {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: min(52vh, 420px);
    max-height: min(52vh, 420px);
    border: 1px solid var(--bt-line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bt-white);
}

.bt-region-picker__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.bt-region-picker__col--cities {
    flex: 0 0 40%;
    max-width: 44%;
    border-right: 1px solid var(--bt-line);
    background: var(--bt-line2);
}

.bt-region-picker__col--districts {
    flex: 1 1 auto;
    background: var(--bt-white);
}

.bt-region-picker__scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 시·도: Bootstrap 파란 active 대신 브랜드 톤 */
#modalNearbyRegion .bt-region-picker__col--cities .list-group-item {
    border: none;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--bt-line);
    background: transparent;
    font-size: 0.9rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

#modalNearbyRegion .bt-region-picker__col--cities .list-group-item-action:hover,
#modalNearbyRegion .bt-region-picker__col--cities .list-group-item-action:focus {
    background: var(--bt-white);
    color: var(--bt-text);
}

#modalNearbyRegion .bt-region-picker__col--cities .list-group-item.active {
    background: var(--bt-white) !important;
    color: var(--bt-pink) !important;
    font-weight: 700;
    border-left: 3px solid var(--bt-pink);
    padding-left: calc(0.75rem - 3px);
}

#modalNearbyRegion .bt-region-picker__col--cities .list-group-item.active:hover,
#modalNearbyRegion .bt-region-picker__col--cities .list-group-item.active:focus {
    background: var(--bt-white) !important;
    color: var(--bt-pink) !important;
}

/* 우측 시·군·구 행 */
#modalNearbyRegion #nearbyDistrictList .list-group-item {
    border-radius: 0 !important;
}

#modalNearbyRegion #nearbyDistrictList .list-group-item.active {
    background: var(--bt-pink-soft) !important;
    color: var(--bt-text) !important;
    border-color: transparent;
}

#modalNearbyRegion #nearbyDistrictList .list-group-item-action:hover:not(.active) {
    background: var(--bt-line2);
}

.bt-region-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bt-muted);
    min-width: 1.5rem;
    text-align: right;
}

.bt-region-count--zero {
    color: var(--bt-muted2);
    font-weight: 500;
}

#modalNearbyRegion .modal-footer .btn-bt-primary.btn-sm {
    padding: 0.4rem 0.9rem;
    border-radius: 10px !important;
    font-size: 0.8125rem;
}
