/* ============================================================
   Life V2 - Common Styles (Header, Footer, Variables, Reset)
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --lv2-white: #FFFFFF;
    --lv2-brand-1: #4B3010;
    --lv2-brand-1-dark: #382611;
    --lv2-brand-2: #F5F4E6;
    --lv2-primary: #0A0A0A;
    --lv2-secondary: #6B7280;
    --lv2-stroke: #DFE4EA;
    --lv2-accent: #F85700;
    --lv2-bg-gray: #E6E6E6;

    --lv2-font-kr: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lv2-font-en: 'Outfit', sans-serif;

    --lv2-radius-sm: 8px;
    --lv2-radius-md: 12px;
    --lv2-radius-lg: 16px;
    --lv2-radius-xl: 18px;
    --lv2-radius-full: 100px;

    --lv2-header-h: 68px;
    --lv2-max-w: 1280px;
    --lv2-max-w-sm: 1000px;
    --lv2-max-w-lg: 1350px;
}

/* --- Reset (scoped) --- */
body {
    margin: 0;
}

.lv2-page *,
.lv2-page *::before,
.lv2-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lv2-page {
    font-family: var(--lv2-font-kr);
    color: var(--lv2-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background: var(--lv2-white);
}

.lv2-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lv2-page a {
    text-decoration: none;
    color: inherit;
}

.lv2-page button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================================
   Header
   Figma: Mo(top0), Mo-scroll(top>0), default(PC top0), scroll(PC top>0)
   ============================================================ */

/* --- Mo (모바일 top 0): 반투명 배경, 흰색 로고/햄버거, 투어 예약 숨김 --- */
.lv2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--lv2-header-h);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(10, 10, 10, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
}

/* --- Mo-scroll (모바일 top > 0): 흰 배경, 검정 로고/햄버거, 투어 예약 표시 --- */
/* --- default (PC top 0): rgba(255,255,255,0.2), 흰색 로고/네비 --- */
/* --- scroll (PC top > 0): 흰 배경, 검정 로고/네비, 투어 예약 표시 --- */
.lv2-header.is-scrolled {
    background: var(--lv2-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
}

.lv2-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--lv2-max-w);
    margin: 0 auto;
    padding: 0 16px;
}

.lv2-header__logo {
    display: flex;
    align-items: center;
    height: 30px;
    cursor: pointer;
    position: relative;
}

/* 모바일에서는 로고 높이를 절반 정도로 축소 */
@media (max-width: 768px) {
    .lv2-header__logo {
        height: 22px;
    }
}

.lv2-header__logo img {
    height: 100%;
    width: auto;
}

/* 로고 스왑
   - 기본: 검정(dark) 로고
   - is-hero-visible: 흰색(light) 로고 (Landing Hero 위)
   - is-scrolled: 항상 검정(dark) 로고
*/
.lv2-header__logo-img--light {
    display: none;
}

.lv2-header__logo-img--dark {
    display: block;
}

/* Landing 페이지 Hero 위 상태 (default / Mo) */
.lv2-header.is-hero-visible .lv2-header__logo-img--light {
    display: block;
}

.lv2-header.is-hero-visible .lv2-header__logo-img--dark {
    display: none;
}

/* 스크롤 상태 (scroll / Mo-scroll) - 항상 검정 로고 */
.lv2-header.is-scrolled .lv2-header__logo-img--light {
    display: none;
}

.lv2-header.is-scrolled .lv2-header__logo-img--dark {
    display: block;
}

/* Mobile right: 투어 예약 + 햄버거 */
.lv2-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 투어 예약 버튼 - Mo-scroll/scroll에서만 표시 (애니메이션 포함) */
.lv2-header__tour-btn {
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    background: var(--lv2-primary);
    color: var(--lv2-white) !important;
    font-family: var(--lv2-font-kr);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--lv2-radius-sm);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.lv2-header__tour-btn:hover,
.lv2-header__tour-btn:focus {
    opacity: 0.9;
    color: var(--lv2-white) !important;
}

.lv2-header.is-scrolled .lv2-header__tour-btn {
    opacity: 1;
    transform: translateX(0);
}

/* Desktop Nav - 오른쪽 정렬 */
.lv2-header__nav {
    display: none;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.lv2-header__nav-link {
    font-family: var(--lv2-font-kr);
    font-size: 16px;
    font-weight: 700;
    color: var(--lv2-primary);
    transition: opacity 0.2s;
    white-space: nowrap;
}

.lv2-header__nav-link:hover {
    opacity: 0.7;
}

/* default (PC top 0): 흰색 네비 */
.lv2-header.is-hero-visible .lv2-header__nav-link {
    color: var(--lv2-white);
}

/* scroll (PC top > 0): 검정 네비 */
.lv2-header.is-scrolled .lv2-header__nav-link {
    color: var(--lv2-primary);
}

.lv2-header__nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lv2-header__nav-dropdown .lv2-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lv2-white);
    border-radius: var(--lv2-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 12px 0 8px;
    min-width: 160px;
    margin-top: 0;
}

.lv2-header__nav-dropdown:hover .lv2-dropdown-menu {
    display: block;
}

/* 드롭다운 chevron (아래 방향 ∨, hover 시 위로 회전) */
.lv2-header__nav-dropdown::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    flex-shrink: 0;
    mask: url("https://d1o1f0h6tnvilz.cloudfront.net/life_v2/icon-chevron-down.svg") no-repeat center / contain;
    -webkit-mask: url("https://d1o1f0h6tnvilz.cloudfront.net/life_v2/icon-chevron-down.svg") no-repeat center / contain;
    background-color: var(--lv2-primary);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.lv2-header__nav-dropdown:hover::after {
    transform: rotate(180deg);
}

/* default (PC top 0 - Hero 위): 흰색 화살표 */
.lv2-header.is-hero-visible .lv2-header__nav-dropdown::after {
    background-color: var(--lv2-white);
}

/* scroll (PC top > 0): 검정 화살표 */
.lv2-header.is-scrolled .lv2-header__nav-dropdown::after {
    background-color: var(--lv2-primary);
}

.lv2-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--lv2-primary);
    transition: background 0.2s;
}

.lv2-dropdown-menu a:hover {
    background: var(--lv2-brand-2);
}

/* PC 투어 예약 - scroll에서만 표시 (nav 내부) */
.lv2-header__tour-btn--desktop {
    display: none;
}

.lv2-header__tour-btn--mobile {
    display: none;
}

/* Mobile Hamburger */
.lv2-header__hamburger {
    display: flex;
    background: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}

.lv2-header__hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 19px;
}

.lv2-header__hamburger-lines span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--lv2-primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* Mo (top 0): 흰색 햄버거 */
.lv2-header.is-hero-visible .lv2-header__hamburger-lines span {
    background: var(--lv2-white);
}

/* Mo-scroll (top > 0): 검정 햄버거 */
.lv2-header.is-scrolled .lv2-header__hamburger-lines span {
    background: var(--lv2-primary);
}

/* Mobile Menu Overlay */
.lv2-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--lv2-white);
    z-index: 1001;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.lv2-mobile-menu.is-open {
    right: 0;
}

.lv2-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: var(--lv2-header-h);
    padding: 0 16px;
    border-bottom: 1px solid var(--lv2-stroke);
}

.lv2-mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: var(--lv2-primary);
}

.lv2-mobile-menu__nav {
    padding: 24px 20px;
}

.lv2-mobile-menu__link {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    background: transparent;
    color: var(--lv2-primary);
}

.lv2-mobile-menu__sub-link {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--lv2-secondary);
}

/* Life V2 모바일 메뉴 - 섹션/2뎁스 구조 */
.lv2-mobile-menu__section {
    margin-bottom: 24px;
}

.lv2-mobile-menu__section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.lv2-mobile-menu__list {
    margin-left: 12px; /* 2뎁스 살짝 들여쓰기 */
}

.lv2-mobile-menu__location-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.lv2-mobile-menu__location-meta {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--lv2-secondary);
}

/* 지점(LOCATIONS) 항목은 별도 배경 없이 텍스트만 */
.lv2-mobile-menu__link.lv2-mobile-menu__location {
    background: transparent;
}

.lv2-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lv2-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   Footer
   ============================================================ */
.lv2-footer {
    background: var(--lv2-primary);
    color: var(--lv2-white);
    overflow: hidden;
}

.lv2-footer__inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 24px;
}

.lv2-footer__left {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-top: 24px;
}

.lv2-footer__logo {
    display: block;
}

.lv2-footer__logo img {
    width: 262px;
    height: auto;
    object-fit: contain;
}

.lv2-footer__policy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--lv2-white);
}

.lv2-footer__policy a {
    color: var(--lv2-white);
    transition: opacity 0.2s;
    white-space: nowrap;
}

.lv2-footer__policy a:hover {
    opacity: 0.7;
}

.lv2-footer__policy span {
    color: rgba(255, 255, 255, 0.5);
}

.lv2-footer__company {
    font-size: 13px;
    line-height: 1.7;
    color: var(--lv2-white);
}

.lv2-footer__company p {
    margin: 0;
}
.lv2-footer__right {
    display: flex;
    gap: 80px;
}

.lv2-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lv2-footer__nav-link {
    font-size: 16px;
    color: var(--lv2-white);
    line-height: 1.6;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.lv2-footer__nav-link:hover {
    opacity: 0.7;
}

.lv2-footer__nav-text {
    position: relative;
    display: inline-block;
}

.lv2-footer__nav-link.is-active .lv2-footer__nav-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--lv2-accent);
}

.lv2-footer__social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lv2-footer__social-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--lv2-white);
    line-height: 1.5;
}

.lv2-footer__social-icons {
    display: flex;
    gap: 12px;
}

.lv2-footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lv2-white);
    border: none;
    transition: opacity 0.2s;
}

.lv2-footer__social-icon svg {
    width: 20px;
    height: 20px;
}

.lv2-footer__social-icon:hover {
    opacity: 0.7;
}

.lv2-footer__social-icon--blog {
    border: none;
    background: var(--lv2-white);
    color: var(--lv2-primary) !important;
    font-family: var(--lv2-font-en);
    font-size: 12px;
    font-weight: 700;
}

/* ============================================================
   Common Utilities
   ============================================================ */
.lv2-section-caption {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 160px;
}

.lv2-section-caption__text {
    font-family: var(--lv2-font-en);
    font-size: 16px;
    font-weight: 400;
    color: var(--lv2-white);
    white-space: nowrap;
}

.lv2-section-caption__text--primary {
    font-family: var(--lv2-font-en);
    font-size: 16px;
    font-weight: 400;
    color: var(--lv2-primary);
    white-space: nowrap;
}

.lv2-section-caption__line {
    flex: 1;
    height: 1px;
    background: var(--lv2-white);
}

.lv2-section-caption__line--primary {
    flex: 1;
    height: 1px;
    background: var(--lv2-primary);
}

.lv2-section-heading {
    font-family: var(--lv2-font-kr);
    font-weight: 700;
    color: var(--lv2-white) !important;
    text-align: center;
    line-height: 1.5;
}

.lv2-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 190px;
    background: var(--lv2-brand-1);
    color: var(--lv2-white) !important;
    font-family: var(--lv2-font-kr);
    font-size: 20px;
    font-weight: 700;
    border-radius: var(--lv2-radius-sm);
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
}

.lv2-btn-primary:hover,
.lv2-btn-primary:focus {
    opacity: 0.9;
    transform: translateY(-1px);
    color: var(--lv2-white) !important;
}

.lv2-btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 190px;
    background: #F85700;
    color: var(--lv2-white) !important;
    font-family: var(--lv2-font-kr);
    font-size: 20px;
    font-weight: 700;
    border-radius: var(--lv2-radius-sm);
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
}

.lv2-btn-accent:hover,
.lv2-btn-accent:focus {
    opacity: 0.9;
    transform: translateY(-1px);
    color: var(--lv2-white) !important;
}

.lv2-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 190px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--lv2-primary);
    font-family: var(--lv2-font-kr);
    font-size: 20px;
    font-weight: 700;
    border: 1px solid var(--lv2-primary);
    border-radius: var(--lv2-radius-sm);
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
}

.lv2-btn-secondary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Hero 영역 전용 버튼 컬러 커스터마이징 */
.lv2-hero-btn--primary {
    background: var(--lv2-brand-1) !important;
    color: var(--lv2-white) !important;
    border-color: transparent;
}

.lv2-hero-btn--secondary {
    background: var(--lv2-brand-2) !important;
    color: var(--lv2-primary) !important;
    border-color: transparent;
}

/* ============================================================
   Responsive - Mobile explicit (< 768px) - Mo / Mo-scroll
   ============================================================ */
@media (max-width: 767px) {
    /* Mo: bg rgba(255,255,255,0.3) */
    .lv2-header {
        background: rgba(255, 255, 255, 0.3);
    }

    .lv2-header__nav,
    .lv2-header__tour-btn--desktop {
        display: none !important;
    }

    .lv2-header__tour-btn--mobile {
        display: none;
    }

    .lv2-header.is-scrolled .lv2-header__tour-btn--mobile {
        display: inline-flex;
    }

    .lv2-header__hamburger {
        display: flex !important;
    }

    /* Footer - Mobile */
    .lv2-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 12px;
        gap: 40px;
    }

    .lv2-footer__left {
        width: 100%;
        padding: 24px 24px 0;
    }

    .lv2-footer__right {
        flex-direction: column;
        gap: 32px;
        width: 100%;
        padding: 0 43px;
    }

    .lv2-footer__nav-link.is-active {
        width: auto;
    }
}

/* ============================================================
   Responsive - Desktop (768px+) - default / scroll
   ============================================================ */
@media (min-width: 768px) {
    /* default (PC top 0): bg rgba(255,255,255,0.2) */
    .lv2-header {
        background: rgba(255, 255, 255, 0.2);
    }

    .lv2-header.is-scrolled {
        background: var(--lv2-white);
    }

    .lv2-header__inner {
        padding: 0 40px;
    }

    .lv2-header__nav {
        display: flex;
        margin-left: auto;
    }

    .lv2-header__right {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .lv2-header__tour-btn--mobile {
        display: none !important;
    }

    .lv2-header__tour-btn--desktop {
        display: none;
    }

    .lv2-header.is-scrolled .lv2-header__tour-btn--desktop {
        display: inline-flex;
    }

    .lv2-header__hamburger {
        display: none;
    }

}

/* ============================================================
   Floating 입주 신청 CTA
   ============================================================ */
   .lv2-floating-cta {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 22px;
    border-radius: 10px;
    background: var(--lv2-accent);
    color: var(--lv2-white)!important;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    transform: translateY(40px);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.35s ease-out,
        transform 0.35s ease-out,
        box-shadow 0.18s ease-out,
        background-color 0.18s ease-out,
        transform 0.18s ease-out;
}

.lv2-floating-cta__label {
    white-space: nowrap;
}

.lv2-floating-cta__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-image: url('https://d1o1f0h6tnvilz.cloudfront.net/life_v2/apply-btn-icon.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lv2-floating-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lv2-floating-cta:hover {
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.55);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .lv2-floating-cta {
        right: 16px;
        bottom: 16px;
        justify-content: center;
        padding-inline: 18px;
    }
}

/* ============================================================
   Room Floorplan Modal
   ============================================================ */
.lv2-floorplan-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.lv2-floorplan-modal.is-open {
    display: flex;
}

.lv2-floorplan-modal__dialog {
    position: relative;
    max-width: 1180px;
    width: 100%;
    max-height: 90vh;
    margin: 0 20px;
    border-radius: 16px;
    background: #0b1120;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.8);
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lv2-floorplan-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lv2-floorplan-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
}

.lv2-floorplan-modal__close {
    border: none;
    background: transparent;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}

.lv2-floorplan-modal__close:hover {
    background: rgba(148, 163, 184, 0.16);
    color: #e5e7eb;
    transform: translateY(-1px);
}

.lv2-floorplan-modal__body {
    flex: 1;
    min-height: 0;
}

.lv2-floorplan-modal__images {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 4px 2px;
}

.lv2-floorplan-modal__images::-webkit-scrollbar {
    height: 8px;
}

.lv2-floorplan-modal__images::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.8);
    border-radius: 999px;
}

.lv2-floorplan-modal__images::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
}

.lv2-floorplan-modal__item {
    flex: 0 0 auto;
    max-width: 420px;
}

.lv2-floorplan-modal__item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.6);
    background: #020617;
}

@media (max-width: 768px) {
    .lv2-floorplan-modal__dialog {
        max-height: 92vh;
        margin: 0 12px;
        padding: 16px 16px 18px;
    }

    .lv2-floorplan-modal__title {
        font-size: 16px;
    }

    .lv2-floorplan-modal__body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .lv2-floorplan-modal__images {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .lv2-floorplan-modal__images::-webkit-scrollbar {
        width: 6px;
        height: auto;
    }

    .lv2-floorplan-modal__item {
        max-width: 100%;
    }
}

/* ============================================================
   Life V2 공지 팝업 배너 (loadBanners / dynamic-banners-container)
   ============================================================ */

/* body.scrollLock 시 스크롤 잠금 */
body.scrollLock {
    overflow: hidden;
}

/* 동적 배너 컨테이너: 전체 페이지 상단에 위치 (모바일: 전체 영역) */
#dynamic-banners-container {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none; /* 배너 자체에서만 클릭 처리 */
}

/* 개별 팝업 배너 (모바일: 중앙 정렬) */
.popup-banner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    max-width: 420px;
    width: 90%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.5);
    pointer-events: auto;
}

.popup-banner.sec {
    /* 모바일: 2개 이상일 때 첫 배너보다 오른쪽 아래로 겹치되, 화면 밖으로 나가지 않도록 오프셋 축소 */
    transform: translate(calc(-50% + 10px), calc(-50% + 24px));
    z-index: 2002;
}

.popup-banner.on {
    display: block;
}

/* PC: 왼쪽 상단 고정, 2개 이상 시 가로로 20px 간격 나열 */
@media (min-width: 769px) {
    #dynamic-banners-container {
        inset: auto;
        top: 50px;
        left: 100px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 20px;
        align-items: flex-start;
    }

    .popup-banner {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        flex: 0 0 auto;
        max-width: 420px;
        width: 420px;
    }

    .popup-banner.sec {
        transform: none;
    }
}

.banner-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.banner-btn-wrap {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border-top: 1px solid #e5e7eb;
}

.banner-btn-wrap button {
    flex: 1;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

.banner-btn-wrap .pop-btn-close-cookie {
    border-right: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
}

.banner-btn-wrap .pop-btn-close {
    background: #111827;
    color: #ffffff;
    font-weight: 600;
}

.banner-btn-wrap button:hover {
    opacity: 0.9;
}

/* 모바일에서 너비 및 여백 보정 */
@media (max-width: 768px) {
    .popup-banner {
        max-width: 320px;
        width: calc(100% - 48px);
    }
}
