/* ============================================================
   Life V2 Apply – 입주신청 검색 페이지
   Prefix: lv2a-  (충돌 방지)
   Uses CSS vars from life_v2_common.css (--lv2-*)
   ============================================================ */

/* --- Page wrapper --- */
.lv2a-page {
    padding-top: var(--lv2-header-h, 68px);
    min-height: 100vh;
}

/* ============================================================
   Search Section
   ============================================================ */
.lv2a-search-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
}

/* is-sticky 전환 시 높이 변화로 스크롤 앵커링이 보정되며 IO/스크롤이 뒤집히는 현상 완화 */
.lv2a-search-section {
    overflow-anchor: none;
    background: linear-gradient(90deg, #F7EFE2 0%, #F7F5E1 29.81%, #FBFAE2 59.04%, #FFDECE 100%);
    padding: 40px 20px 40px;
    position: sticky;
    top: var(--lv2-header-h, 68px);
    z-index: 200;
    transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.lv2a-search-section.is-sticky {
    padding-top: 16px;
    background: transparent;
}

.lv2a-search-section.is-sticky .lv2a-search-title {
    display: none;
}

.lv2a-search-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.lv2a-search-title {
    font-family: var(--lv2-font-kr);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--lv2-primary, #0A0A0A);
    margin-bottom: 24px;
}

/* --- Search Bar (pill) --- */
.lv2a-search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #FDFEFF;
    border-radius: 100px;
    padding: 12px;
    box-shadow: 0 2.8px 16.8px rgba(7,7,8,0.07), 0 4.2px 44.8px rgba(7,7,8,0.07);
}

.lv2a-search-fields {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.lv2a-search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 32px;
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    min-width: 0;
    transition: background 0.15s;
}

.lv2a-search-field:hover {
    background: rgba(0,0,0,0.03);
}

.lv2a-search-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 400;
    color: var(--lv2-secondary, #6B7280);
    white-space: nowrap;
}

.lv2a-search-label svg {
    flex-shrink: 0;
}

.lv2a-search-value {
    font-size: 18px;
    font-weight: 400;
    color: var(--lv2-primary, #0A0A0A);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv2a-search-divider {
    width: 1.4px;
    align-self: stretch;
    background: rgba(174,176,178,0.35);
    flex-shrink: 0;
}

/* --- Search Button --- */
.lv2a-search-btn {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #18191A;
    border: 1.25px solid rgba(174,176,178,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2.5px 15px rgba(7,7,8,0.07), 0 3.75px 40px rgba(7,7,8,0.07);
    transition: transform 0.15s, background 0.15s;
}

.lv2a-search-btn:hover {
    background: #333;
    transform: scale(1.04);
}

.lv2a-search-btn svg {
    width: 30px;
    height: 30px;
}

/* ============================================================
   Dropdowns
   ============================================================ */
.lv2a-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 500;
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* 목록형: 부모 .lv2a-search-field 너비에 맞춤 — Figma Search (2133:20497) */
.lv2a-dropdown:not(.lv2a-dropdown--calendar) {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 16px 0;
    border-radius: 16px;
    border: 1px solid rgba(112, 115, 124, 0.08);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.03);
}

.lv2a-dropdown.is-open {
    display: block;
}

.lv2a-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lv2a-dropdown-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 8px 16px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--lv2-primary, #0a0a0a);
    cursor: pointer;
    transition: background 0.12s ease;
}

.lv2a-dropdown-list li:hover {
    background: #f5f4e6;
}

.lv2a-dropdown-list li.is-active {
    font-weight: 700;
    color: var(--lv2-primary, #0a0a0a);
}

/* 선택 항목 우측 체크 (Figma mini/check) */
.lv2a-dropdown-list li.is-active::after {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10.25L8.75 14L15 6' stroke='%230A0A0A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- Calendar dropdown — Figma (2134:29833, 2133:20497), 전체 약 85% 스케일 --- */
.lv2a-dropdown--calendar {
    min-width: 332px;
    max-height: 425px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(112, 115, 124, 0.08);
    box-shadow: 0 8px 13px rgba(5, 13, 29, 0.18);
}

.lv2a-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

/* 생년월일: 연 9칸 → 월 12칸 → 일 */
.lv2a-calendar--birth {
    margin-bottom: 0;
}

.lv2a-cal-header--birth-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.lv2a-birth-cal-title-wrap {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.lv2a-birth-cal-title {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--lv2-primary, #0a0a0a);
}

.lv2a-birth-cal-title--nav {
    cursor: pointer;
}

.lv2a-birth-cal-title--nav:hover {
    opacity: 0.85;
}

.lv2a-birth-grid {
    display: grid;
    gap: 3px;
    width: 100%;
}

.lv2a-birth-grid--year {
    grid-template-columns: repeat(3, 1fr);
}

.lv2a-birth-grid--month {
    grid-template-columns: repeat(3, 1fr);
}

.lv2a-birth-cell {
    min-height: 44px;
    margin: 0;
    padding: 8px 4px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    background: #fff;
    color: #0A0A0A;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    box-sizing: border-box;
}

.lv2a-birth-cell:hover:not(.is-disabled):not(:disabled):not(.is-selected) {
    background: #f9fafb;
}

.lv2a-birth-cell.is-selected {
    background: #0A0A0A;
    color: #fff;
    font-weight: 700;
}

.lv2a-birth-cell.is-disabled,
.lv2a-birth-cell:disabled {
    color: #d1d5db;
    cursor: not-allowed;
    pointer-events: none;
    /* background: #f9fafb; */
}

.lv2a-cal-weekdays--birth {
    margin-bottom: 7px;
}

.lv2a-cal-grid--birth {
    margin-bottom: 0;
}

.lv2a-cal-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--lv2-primary, #0a0a0a);
}

.lv2a-cal-nav {
    box-sizing: border-box;
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dfe4ea;
    cursor: pointer;
    border-radius: 7px;
    color: var(--lv2-primary, #0a0a0a);
    padding: 0;
    transition: background 0.12s, border-color 0.12s;
}

.lv2a-cal-nav:hover:not(:disabled) {
    background: #f9fafb;
}

.lv2a-cal-nav:disabled,
.lv2a-cal-nav[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.lv2a-cal-nav:disabled:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.lv2a-cal-nav svg {
    width: 20px;
    height: 20px;
}

.lv2a-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    margin-bottom: 7px;
}

.lv2a-cal-weekdays span {
    font-size: 14px;
    font-weight: 500;
    color: var(--lv2-primary, #0a0a0a);
    padding: 8px 0;
    line-height: 1.5;
}

.lv2a-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.lv2a-cal-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 37px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--lv2-primary, #0a0a0a);
    cursor: pointer;
    border-radius: 7px;
    transition: background 0.12s, color 0.12s;
}

.lv2a-cal-day:hover:not(.is-disabled):not(.is-empty):not(.is-selected) {
    background: #f9fafb;
}

/* 오늘 표시 점 — Figma 2134:30138 (우측 상단 대각선 방향, left 31.43 / top 11 기준) */
.lv2a-cal-day.is-today:not(.is-selected)::before {
    content: '';
    position: absolute;
    top: 9px;
    right: 10px;
    left: auto;
    width: 3px;
    height: 3px;
    background: var(--lv2-primary, #0a0a0a);
    border-radius: 50%;
}

.lv2a-cal-day.is-selected {
    background: var(--lv2-primary, #0a0a0a);
    color: #fff;
    font-weight: 700;
}

.lv2a-cal-day.is-selected::before {
    display: none;
}

.lv2a-cal-day.is-disabled {
    color: #d1d5db;
    cursor: default;
}

.lv2a-cal-day.is-empty {
    cursor: default;
}

.lv2a-cal-actions {
    display: flex;
    gap: 7px;
    margin-top: 20px;
}

.lv2a-cal-btn {
    flex: 1;
    box-sizing: border-box;
    min-height: 41px;
    padding: 11px 24px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.lv2-page .lv2a-cal-btn--reset,
.lv2a-apply-page .lv2a-cal-btn--reset {
    background: #fff;
    color: var(--lv2-primary, #0a0a0a);
    border: 1px solid #dfe4ea;
}

.lv2-page .lv2a-cal-btn--reset:hover,
.lv2a-apply-page .lv2a-cal-btn--reset:hover {
    background: #f9fafb;
}

.lv2a-cal-btn--apply {
    background: var(--lv2-primary, #0a0a0a);
    color: #fff;
    border: 1px solid var(--lv2-primary, #0a0a0a);
}

.lv2a-cal-btn--apply:hover {
    background: #333;
    border-color: #333;
}

/* ============================================================
   Room List
   ============================================================ */
.lv2a-list-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.lv2a-list-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Room Card --- */
.lv2a-room-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Image carousel */
.lv2a-room-carousel {
    flex-shrink: 0;
    width: 360px;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 0.66px solid var(--lv2-stroke, #DFE4EA);
}

.lv2a-room-carousel .swiper {
    width: 100%;
    height: 100%;
}

.lv2a-room-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lv2a-carousel-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 86px;
    z-index: 10;
    pointer-events: none;
}

.lv2a-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.lv2a-carousel-nav:hover {
    background: rgba(255,255,255,0.8);
}

.lv2a-carousel-nav--prev {
    left: 10px;
}

.lv2a-carousel-nav--next {
    right: 10px;
}

.lv2a-carousel-zoom {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.lv2a-carousel-zoom:hover {
    background: rgba(0,0,0,0.8);
}

/* Info area */
.lv2a-room-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
}

.lv2a-room-top {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--lv2-stroke, #DFE4EA);
}

.lv2a-room-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lv2a-room-property {
    font-size: 16px;
    font-weight: 700;
    color: var(--lv2-brand-1, #4B3010);
    line-height: 1.5;
}

.lv2a-room-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--lv2-primary);
    line-height: 1.5;
}

.lv2a-room-attrs {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.lv2a-room-attr {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 400;
    color: var(--lv2-primary);
}

.lv2a-room-attr svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.lv2-page .lv2a-btn-floor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--lv2-stroke, #DFE4EA);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: var(--lv2-primary);
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
}

.lv2-page .lv2a-btn-floor:hover {
    background: #F9FAFB;
}

/* Apply button area */
.lv2a-room-apply {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding-left: 16px;
    flex-shrink: 0;
}

.lv2a-btn-apply {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 24px;
    font-weight: 700;
    color: var(--lv2-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.lv2a-btn-apply:hover {
    opacity: 0.7;
}

.lv2a-btn-apply svg {
    width: 24px;
    height: 24px;
}

.lv2a-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.lv2a-badge--now {
    background: #FEF3F3;
    color: #F56060;
}

.lv2a-badge--date {
    background: #FDE5D8;
    color: #374151;
}

/* Disabled state (입주마감) */
.lv2a-room-apply--disabled .lv2a-btn-apply {
    color: #D1D5DB;
    cursor: default;
}

.lv2a-room-apply--disabled .lv2a-btn-apply:hover {
    opacity: 1;
}

.lv2a-room-apply--disabled .lv2a-badge {
    background: none;
    color: #9CA3AF;
    padding: 4px 0;
}

/* Price area */
.lv2a-room-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
}

.lv2a-price-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lv2a-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--lv2-primary);
}

.lv2a-price-per {
    font-size: 18px;
    font-weight: 400;
    color: var(--lv2-primary);
}

.lv2a-price-divider {
    width: 1px;
    height: 16px;
    background: var(--lv2-stroke);
}

.lv2a-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--lv2-secondary);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 1px solid var(--lv2-secondary);
    padding: 0;
    transition: color 0.12s;
}

.lv2a-btn-detail:hover {
    color: var(--lv2-primary);
}

.lv2a-btn-detail svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.lv2a-btn-detail.is-open svg {
    transform: rotate(180deg);
}

.lv2a-price-sub {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.lv2a-price-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--lv2-secondary);
}

.lv2a-price-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--lv2-secondary);
}

/* ============================================================
   Loading & Empty
   ============================================================ */
.lv2a-loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.lv2a-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--lv2-stroke);
    border-top-color: var(--lv2-primary);
    border-radius: 50%;
    animation: lv2aSpin 0.7s linear infinite;
}

@keyframes lv2aSpin {
    to { transform: rotate(360deg); }
}

.lv2a-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--lv2-secondary);
}

/* ============================================================
   Price Modal (자세히보기)
   ============================================================ */
.lv2a-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}

.lv2a-modal-overlay.is-open {
    display: flex;
}

.lv2a-modal--price {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    max-width: 350px;
    width: calc(100% - 40px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.lv2a-modal--price .lv2a-modal-header {
    margin-bottom: 24px;
}

.lv2a-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.lv2a-modal-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--lv2-primary, #0a0a0a);
}

.lv2a-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--lv2-secondary);
    border-radius: 8px;
    transition: background 0.12s;
}

.lv2a-modal-close:hover {
    background: #F3F4F6;
}

.lv2a-modal-body {
    font-size: 16px;
    color: var(--lv2-primary, #0a0a0a);
}

/* 자세히보기 금액 — Figma 2176:53278 */
.lv2a-price-modal-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.lv2a-modal-body .lv2a-price-desc {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--lv2-primary, #0a0a0a);
}

.lv2a-price-empty {
    margin: 0;
    font-size: 14px;
    color: var(--lv2-secondary, #6b7280);
}

.lv2a-price-groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.lv2a-price-group {
    padding: 4px 0;
}

.lv2a-price-group--bordered {
    border-bottom: 1px solid #dfe4ea;
}

.lv2a-price-group__inner {
    display: flex;
    gap: 4px;
    align-items: flex-start;
}

.lv2a-price-period {
    flex-shrink: 0;
    width: 100px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--lv2-secondary, #6b7280);
}

.lv2a-price-group__values {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    min-width: 0;
}

.lv2a-price-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--lv2-primary, #0a0a0a);
}

.lv2a-price-line-deposit,
.lv2a-price-line-rent {
    white-space: nowrap;
}

/* ============================================================
   Room image zoom modal (평면도 모달과 동일 lv2-floorplan-modal 래퍼)
   ============================================================ */
.lv2a-gallery-modal .lv2-floorplan-modal__body {
    min-height: 0;
}

.lv2a-gallery-modal__stage {
    position: relative;
    width: 100%;
    min-height: 280px;
    max-height: min(72vh, 760px);
}

.lv2a-gallery-modal__swiper {
    width: 100%;
    max-height: min(72vh, 760px);
}

.lv2a-gallery-modal__swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.lv2a-gallery-modal__swiper .swiper-slide img {
    display: block;
    max-width: 100%;
    max-height: min(68vh, 700px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.lv2a-gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #dfe4ea;
    background: #fff;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background 0.15s ease-out, border-color 0.15s ease-out;
}

.lv2a-gallery-modal__nav:hover {
    background: #f9fafb;
    border-color: #cbd5e1;
}

.lv2a-gallery-modal__nav--prev {
    left: 10px;
}

.lv2a-gallery-modal__nav--next {
    right: 10px;
}

.lv2a-gallery-modal--single .lv2a-gallery-modal__nav {
    display: none;
}

.lv2a-gallery-modal__counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #0a0a0a;
    background: #fff;
    border: 1px solid #dfe4ea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

@media (max-width: 768px) {
    /* 이미지 비율에 맞춰 카드 크기 축소 (전체 화면 시트 아님) */
    .lv2a-gallery-modal.lv2-floorplan-modal {
        align-items: center;
        justify-content: center;
        padding: max(12px, env(safe-area-inset-top, 0px)) 16px max(12px, env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .lv2a-gallery-modal .lv2-floorplan-modal__dialog {
        width: 100%;
        max-width: min(100%, calc(100vw - 32px));
        height: auto;
        min-height: 0;
        max-height: min(90vh, 90dvh);
        margin: 0;
        border-radius: 16px;
        padding: 16px 16px 18px;
        gap: 12px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .lv2a-gallery-modal .lv2-floorplan-modal__header {
        flex-shrink: 0;
        padding: 0;
        background: transparent;
        border-bottom: none;
    }

    .lv2a-gallery-modal .lv2-floorplan-modal__body {
        flex: 0 1 auto;
        min-height: 0;
        overflow: visible;
    }

    .lv2a-gallery-modal__stage {
        width: 100%;
        min-height: 0;
        max-height: min(72vh, 620px);
    }

    .lv2a-gallery-modal__swiper {
        width: 100%;
        height: auto;
        max-height: min(72vh, 620px);
    }

    .lv2a-gallery-modal__swiper .swiper-wrapper {
        height: auto;
    }

    .lv2a-gallery-modal__swiper .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        box-sizing: border-box;
    }

    .lv2a-gallery-modal__swiper .swiper-slide img {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: min(64vh, 560px);
        object-fit: contain;
        object-position: center;
    }

    .lv2a-gallery-modal__nav {
        width: 40px;
        height: 40px;
    }

    .lv2a-gallery-modal__nav--prev {
        left: 4px;
    }

    .lv2a-gallery-modal__nav--next {
        right: 4px;
    }

    .lv2a-gallery-modal__counter {
        bottom: 10px;
    }
}

/* ============================================================
   Mobile Responsive (< 768px)
   ============================================================ */
@media (max-width: 768px) {
    .lv2a-search-section {
        padding: 24px 16px;
    }

    .lv2a-search-section.is-sticky {
        padding: 10px 16px;
        background: transparent;
    }

    .lv2a-search-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    /* Search bar mobile */
    .lv2a-search-bar {
        padding: 8px;
        gap: 0;
    }

    .lv2a-search-field {
        padding: 8px;
        gap: 0;
        flex-direction: column;
        justify-content: center;
    }

    .lv2a-search-label {
        display: none;
    }

    .lv2a-search-value {
        font-size: 14px;
    }

    .lv2a-search-btn {
        width: 40px;
        height: 40px;
    }

    .lv2a-search-btn svg {
        width: 22px;
        height: 22px;
    }

    /* Dropdown mobile */
    .lv2a-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 60vh;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    }

    .lv2a-dropdown--calendar {
        min-width: 100%;
        padding: 14px;
    }

    /* Room card mobile: stack vertically */
    .lv2a-room-card {
        flex-direction: column;
        gap: 0;
    }

    .lv2a-room-carousel {
        width: 100%;
        height: 240px;
        border-radius: 10px;
    }

    .lv2a-room-info {
        padding-top: 12px;
        gap: 8px;
    }

    .lv2a-room-top {
        padding-bottom: 12px;
    }

    .lv2a-room-name {
        font-size: 20px;
    }

    .lv2a-room-attrs {
        gap: 8px;
    }

    .lv2a-room-attr {
        font-size: 14px;
    }

    .lv2a-btn-floor {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .lv2a-btn-apply {
        font-size: 18px;
    }

    .lv2a-badge {
        font-size: 12px;
    }

    .lv2a-price-amount {
        font-size: 18px;
    }

    .lv2a-price-per {
        font-size: 16px;
    }

    .lv2a-list-section {
        padding: 20px 16px 60px;
    }

    .lv2a-list-container {
        gap: 32px;
    }
}

/* ============================================================
   Dropdown backdrop overlay (mobile only)
   Full-screen dim above header (.lv2-header z-index: 1000).
   Mobile: dropdown is moved to body (see life_v2_apply.js) with
   .lv2a-dropdown--portaled so it sits above this backdrop.
   Modal .lv2a-modal-overlay stays at z-index: 2000.
   ============================================================ */
.lv2a-dropdown-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1100;
}

.lv2a-dropdown-backdrop.is-open {
    display: block;
}

@media (max-width: 768px) {
    .lv2a-dropdown.lv2a-dropdown--portaled {
        z-index: 1200;
    }
}

@media (min-width: 769px) {
    .lv2a-dropdown-backdrop {
        display: none;
    }
}

/* ============================================================
   Apply Page (입주신청 위자드)
   Prefix: lv2a-apply-, lv2a-card, lv2a-btn-, lv2a-steps
   ============================================================ */

/* Full-bleed page wash (parent of .lv2a-apply-page) */
.lv2a-apply-shell {
    background: #F9FAFB;
}

/* --- Page wrapper --- */
.lv2a-apply-page {
    padding-top: var(--lv2-header-h, 68px);
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 80px;
}

.lv2a-apply-header {
    padding-top: 48px;
    padding-bottom: 32px;
}

.lv2a-apply-title {
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--lv2-primary, #0A0A0A);
    margin: 0 0 32px;
}

/* --- Steps indicator --- */
.lv2a-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0 30px;
}

.lv2a-steps-line {
    position: absolute;
    top: 16px;
    left: 42px;
    right: 42px;
    height: 2px;
    background: #DFE4EA;
    z-index: 0;
    margin: 0 30px;
}

.lv2a-steps-progress {
    display: block;
    height: 100%;
    background: #0A0A0A;
    width: 0%;
    transition: width 0.4s ease;
}

.lv2a-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
    min-width: 85px;
}

.lv2a-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #DFE4EA;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    color: #0A0A0A;
    line-height: 1;
}

.lv2a-step.is-active .lv2a-step-num {
    border: 2px solid #0A0A0A;
    font-weight: 700;
}

.lv2a-step.is-done .lv2a-step-num {
    background: #0A0A0A;
    border: 2px solid #0A0A0A;
    color: #fff;
    font-weight: 700;
}

.lv2a-step-label {
    font-size: 12px;
    font-weight: 400;
    color: #111928;
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
}

/* --- 2-column layout --- */
.lv2a-apply-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lv2a-apply-left {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lv2a-apply-right {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--lv2-header-h, 68px) + 20px);
}

/* --- Card --- */
.lv2a-card {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 16px;
    padding: 24px;
    /* box-shadow: 0 5px 12px rgba(0, 0, 0, 0.06); */
    margin-bottom: 16px;
}

.lv2a-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0A0A0A;
    line-height: 1.5;
    margin: 0 0 16px;
}

.lv2a-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lv2a-card-title-row .lv2a-card-title {
    margin-bottom: 0;
}

.lv2a-card-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #F3F4F6;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #6B7280;
    line-height: 1.5;
}

.lv2a-card-notice svg {
    flex-shrink: 0;
}

/* --- Form fields --- */
.lv2a-field-group {
    margin-bottom: 16px;
}

.lv2a-field-group:last-child {
    margin-bottom: 0;
}

.lv2a-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0A0A0A;
    line-height: 1.5;
    margin-bottom: 8px;
}

.lv2a-required {
    color: #F23030;
}

.lv2a-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #DFE4EA;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #0A0A0A;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
}

.lv2a-input::placeholder {
    color: #9CA3AF;
}

.lv2a-input:focus {
    border-color: #0A0A0A;
}

/* 입주 시작일 — 검색 페이지와 동일 달력, 아이콘 1개 · 트리거 전체 클릭 */
.lv2a-apply-date-wrap {
    position: relative;
}

.lv2a-apply-date-trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 16px;
    border: 1px solid #DFE4EA;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    transition: border-color 0.15s;
}

.lv2a-apply-date-trigger:hover {
    border-color: #CED4DA;
}

.lv2a-apply-date-trigger:focus {
    outline: none;
    border-color: #0A0A0A;
}

.lv2a-apply-date-value {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 400;
    color: #0A0A0A;
    text-align: left;
}

.lv2a-apply-date-value.is-placeholder {
    color: #9CA3AF;
}

.lv2a-apply-date-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.lv2a-mt8 {
    margin-top: 8px;
}

/* 외국인 선택 시 이메일 아래 안내 (Figma 2232:20905) */
.lv2a-foreigner-email-notice {
    margin: 8px 0 0;
    padding: 12px;
    border-radius: 8px;
    background: #fef2f2;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    color: #f23030;
}

.lv2a-foreigner-email-notice[hidden] {
    display: none !important;
}

/* 주소: 우편번호 + 도로명 + 검색 한 줄 */
.lv2a-address-combined {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #DFE4EA;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.15s;
}

.lv2a-address-combined:focus-within {
    border-color: #0A0A0A;
}

.lv2a-address-part {
    margin: 0;
    border: none;
    border-radius: 0;
    height: 48px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 400;
    color: #0A0A0A;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
}

.lv2a-address-part::placeholder {
    color: #9CA3AF;
}

.lv2a-address-part--postcode {
    flex: 0 0 104px;
    width: 104px;
    max-width: 28%;
    border-right: 1px solid #E5E7EB;
}

.lv2a-address-part--road {
    flex: 1;
    min-width: 0;
    background: #F9FAFB;
    color: #374151;
    cursor: pointer;
}

.lv2-page .lv2a-address-combo-search {
    flex-shrink: 0;
    width: 48px;
    margin: 0;
    padding: 0;
    border: none;
    border-left: 1px solid #E5E7EB;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s;
}

.lv2-page .lv2a-address-combo-search:hover {
    background: #F3F4F6;
}

/* 외국인: 우편번호 검색 없이 직접 입력 */
.lv2a-address-combined--foreign .lv2a-address-combo-search {
    display: none;
}

.lv2a-address-combined--foreign .lv2a-address-part--postcode {
    border-right: 1px solid #e5e7eb;
}

.lv2a-address-combined--foreign .lv2a-address-part--road {
    background: #fff;
    color: #0a0a0a;
    cursor: text;
}

.lv2a-input--readonly {
    background: #F9FAFB;
    color: #374151;
    cursor: default;
}

.lv2a-input--readonly:focus {
    border-color: #DFE4EA;
}

.lv2a-input-icon {
    position: relative;
}

.lv2a-input-icon .lv2a-input {
    padding-right: 44px;
}

.lv2a-input-icon-svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.lv2a-input-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.12s;
}

.lv2a-input-icon-btn:hover {
    background: #F3F4F6;
}

.lv2a-input-row {
    display: flex;
    gap: 8px;
}

.lv2a-input--short {
    width: 100px;
    flex-shrink: 0;
}

/* --- Select --- */
.lv2a-select-wrap {
    position: relative;
}

.lv2a-select {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border: 1px solid #DFE4EA;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #0A0A0A;
    background: #fff;
    appearance: none;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
}

.lv2a-select:focus {
    border-color: #0A0A0A;
}

.lv2a-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* --- Radio --- */
.lv2a-radio-group {
    display: flex;
    gap: 24px;
}

.lv2a-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #0A0A0A;
    cursor: pointer;
    line-height: 1.5;
}

.lv2a-radio input[type="radio"] {
    display: none;
}

.lv2a-radio-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #DFE4EA;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}

.lv2a-radio input[type="radio"]:checked + .lv2a-radio-mark {
    border-color: #0A0A0A;
    background: #0A0A0A;
}

.lv2a-radio input[type="radio"]:checked + .lv2a-radio-mark::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* --- Checkbox --- */
.lv2a-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #0A0A0A;
    line-height: 1.5;
}

.lv2a-checkbox input[type="checkbox"] {
    display: none;
}

.lv2a-checkbox-mark {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid #DFE4EA;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.lv2a-checkbox input[type="checkbox"]:checked + .lv2a-checkbox-mark {
    border-color: #0A0A0A;
    background: #0A0A0A;
    color: #fff;
}

/* --- Badge available --- */
.lv2a-badge-available {
    font-size: 14px;
    font-weight: 700;
    color: #F85700;
    line-height: 1.5;
}

/* --- Period display --- */
.lv2a-period-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
}

.lv2a-period-label {
    font-size: 14px;
    font-weight: 700;
    color: #0A0A0A;
}

.lv2a-period-value {
    font-size: 14px;
    font-weight: 700;
    color: #0A0A0A;
}

/* --- 총 금액 정보 카드 — Figma 2053:33020 --- */
.lv2a-card--total-price {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    /* box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1); */
}

.lv2a-card--total-price > .lv2a-card-title--total-price {
    margin-bottom: 0;
}

.lv2a-price-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    /* padding-bottom: 12px; */
}

.lv2a-price-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.lv2a-price-row-label {
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #0A0A0A;
}

.lv2a-price-row-value {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 2px;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    line-height: 1.5;
    text-align: right;
}

.lv2a-price-value-num {
    font-size: 16px;
    font-weight: 700;
    color: #0A0A0A;
}

.lv2a-price-value-sep {
    font-size: 16px;
    font-weight: 500;
    color: #6B7280;
}

.lv2a-price-value-unit {
    font-size: 16px;
    font-weight: 400;
    color: #0A0A0A;
}

.lv2a-price-note {
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #6B7280;
    margin: 0;
    width: 100%;
}

/* --- 금액 조정: 라벨 행 + 세그먼트 버튼 그룹 --- */
.lv2a-condition-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid #DFE4EA;
}

.lv2a-condition-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    line-height: 1.5;
    margin-bottom: 0;
    gap: 8px;
}

.lv2a-condition-title {
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: #0A0A0A;
}

.lv2a-condition-hint {
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 12px;
    font-weight: 400;
    color: #6B7280;
    text-align: right;
}

.lv2a-condition-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.lv2a-condition-segmented {
    display: flex;
    flex-direction: row;
    width: 100%;
    border: 1px solid #DFE4EA;
    border-radius: 6px;
    overflow: hidden;
    background: #F9FAFB;
}

.lv2a-condition-segmented .lv2a-condition-btn {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 12px 25px;
    border: none;
    border-radius: 0;
    border-right: 1px solid #DFE4EA;
    background: #fff;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #0A0A0A;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lv2a-condition-segmented .lv2a-condition-btn:last-child {
    border-right: none;
}

.lv2a-condition-segmented .lv2a-condition-btn:not(.is-disabled):not(.is-active):hover {
    background: #F3F4F6;
}

.lv2a-condition-segmented .lv2a-condition-btn.is-active {
    background: #0A0A0A;
    color: #fff;
}

.lv2a-condition-segmented .lv2a-condition-btn.is-disabled {
    color: #CED4DA;
    background: #F9FAFB;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 1;
}

/* --- 프로모션 — Figma 2137:22622 --- */
.lv2a-promotion-notice {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 6px 8px;
    background: #FFF0E9;
    border-radius: 4px;
    margin-top: 0;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    line-height: 1.5;
}

.lv2a-promotion-notice__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: block;
}

.lv2a-promotion-notice__text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 400;
    color: #F85700;
}

/* --- Agree box --- */
.lv2a-agree-box {
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 16px;
    margin-bottom: 16px;
}

.lv2a-agree-list {
    margin: 12px 0 0;
    padding-left: 20px;
    font-size: 12px;
    color: #6B7280;
    line-height: 1.8;
}

.lv2a-agree-list li {
    list-style: disc;
}

/* --- Buttons --- */
.lv2-page .lv2a-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    padding: 0 28px;
    border-radius: 8px;
    background: #0A0A0A;
    border: 1px solid #0A0A0A;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    box-sizing: border-box;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
}

.lv2-page .lv2a-btn-primary:hover {
    background: #333;
    color: #fff;
}

.lv2-page .lv2a-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    padding: 0 28px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #0A0A0A;
    color: #0A0A0A;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    box-sizing: border-box;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
}

.lv2-page .lv2a-btn-outline:hover {
    /* background: #F9FAFB; */
}

.lv2a-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

.lv2a-btn-row > * {
    flex: 1;
}

/* --- Room summary (right sidebar) — Figma Celib_v26 Booking 2053:33049 --- */
.lv2a-room-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 20px;
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
}

/* 히어로: 184px, 모서리 ~9.5px, 하단 그라데이션 + 타이틀/주소 오버레이 */
.lv2a-room-summary-hero {
    position: relative;
    width: 100%;
    height: 184px;
    flex-shrink: 0;
    border-radius: 9.5px;
    overflow: hidden;
}

.lv2a-room-summary-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 9.5px;
}

.lv2a-room-summary-hero__gradient {
    position: absolute;
    inset: 0;
    border-radius: 9.5px;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.lv2a-room-summary-hero__text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.lv2a-room-summary-hero__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -0.02em;
    color: #fff;
}

.lv2a-room-summary-hero__address {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.9);
}

/* 하단: 방 정보 + 방 타입 변경 */
.lv2a-room-summary-foot {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-shrink: 0;
}

.lv2a-room-summary-foot__left {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.lv2a-room-summary-foot__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.lv2a-room-summary-foot__icon-home {
    flex-shrink: 0;
    display: block;
}

.lv2a-room-summary-foot__label-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #4B5563;
}

.lv2a-room-summary-foot__detail {
    margin: 0;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #0A0A0A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv2a-room-summary .lv2a-btn-change-type {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-height: 0;
    height: auto;
    border-radius: 8px;
    border: 1px solid #DFE4EA;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #0A0A0A;
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
}

.lv2a-room-summary .lv2a-btn-change-type:hover {
    background: #F9FAFB;
}

.lv2a-room-summary-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    margin-top: 0;
    border-top: 1px solid #F3F4F6;
}

.lv2a-room-summary-extra-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6B7280;
    padding-top: 6px;
}

.lv2a-room-summary-period {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #DFE4EA;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0A0A0A;
}

.lv2a-room-summary-period .lv2a-period-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--Dark-Dark-2, #1F2A37);;
    background: var(--Dark-Dark-8, #E5E7EB);
    padding: 2px 8px;
    border-radius: 100px;
}

.lv2a-room-summary-cost {
    font-size: 16px;
    font-weight: 700;
    color: #0A0A0A;
}

/* --- Step 3: Complete --- */
.lv2a-complete-section {
    text-align: center;
    padding: 60px 0 40px;
    max-width: 650px;
    margin: 0 auto;
}

.lv2a-complete-icon {
    margin-bottom: 24px;
}

.lv2a-complete-title {
    font-size: 24px;
    font-weight: 700;
    color: #0A0A0A;
    line-height: 1.5;
    margin: 0 0 8px;
}

.lv2a-complete-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin: 0 0 32px;
}

.lv2a-steps--complete {
    margin: 0 auto 32px;
}

.lv2a-complete-card {
    text-align: left;
    margin-bottom: 16px;
}

.lv2a-complete-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #6B7280;
    gap: 8px;
}

.lv2a-complete-row span:nth-child(2) {
    font-size: 16px;
    font-weight: 700;
    color: #0A0A0A;
    text-align: right;
}

.lv2-page .lv2a-btn-copy {
    font-size: 14px;
    font-weight: 700;
    color: #6B7280;
    background: none;
    border: none;
    border-bottom: 1px solid #0A0A0A;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
}

.lv2a-complete-room {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lv2a-complete-room-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.lv2a-complete-room-info {
    flex: 1;
    min-width: 0;
}

.lv2a-complete-room-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.lv2a-complete-room-name {
    font-size: 18px;
    font-weight: 700;
    color: #0A0A0A;
}

.lv2a-complete-room-badge {
    font-size: 14px;
    font-weight: 700;
    color: #E04E00;
}

.lv2a-complete-room-detail {
    font-size: 14px;
    color: #6B7280;
}

.lv2a-complete-notice {
    font-size: 12px;
    color: #6B7280;
    margin: 12px 0 0;
    padding-left: 16px;
    position: relative;
}

.lv2a-complete-notice::before {
    content: '•';
    position: absolute;
    left: 4px;
}

.lv2a-complete-section .lv2a-btn-row {
    margin-top: 24px;
}

/* ============================================================
   Apply Page — Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    .lv2a-apply-page {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 60px;
    }

    .lv2a-apply-header {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .lv2a-apply-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .lv2a-steps {
        max-width: 100%;
        padding: 0;
    }

    .lv2a-steps-line {
        margin: 0;
    }

    .lv2a-step {
        min-width: 60px;
    }

    .lv2a-step-label {
        font-size: 11px;
    }

    .lv2a-apply-body {
        flex-direction: column;
        gap: 16px;
    }

    .lv2a-apply-right {
        width: 100%;
        position: static;
        order: -1;
    }

    .lv2a-room-summary {
        padding: 16px;
    }

    .lv2a-room-summary-hero {
        height: 200px;
    }

    .lv2a-room-summary-foot {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .lv2a-room-summary-foot__left {
        min-width: 0;
    }

    .lv2a-room-summary-foot__detail {
        white-space: normal;
    }

    .lv2a-room-summary .lv2a-btn-change-type {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lv2a-room-summary-period .lv2a-period-badge {
        font-size: 10px;
    }

    .lv2a-apply-left {
        gap: 16px;
        width: 100%;
    }

    .lv2a-card {
        padding: 16px;
    }

    .lv2a-card-title {
        font-size: 16px;
    }

    .lv2a-condition-segmented .lv2a-condition-btn {
        padding: 12px 10px;
        font-size: 14px;
    }

    .lv2a-complete-section {
        padding: 40px 0 20px;
    }

    .lv2a-complete-title {
        font-size: 20px;
    }

    .lv2a-complete-row span:nth-child(2) {
        font-size: 14px;
    }
}

/* ============================================================
   Contract management — auth (Figma Celib_v26, auth_v2)
   Prefix: lv2a-cmauth-
   ============================================================ */

.lv2a-cmauth-shell {
    background: #f9fafb;
}

.lv2a-cmauth-page {
    padding-top: var(--lv2-header-h, 68px);
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 120px;
}

.lv2a-cmauth-inner {
    max-width: 390px;
    margin: 0 auto;
}

.lv2a-cmauth-head {
    padding-top: 50px;
    margin-bottom: 24px;
}

.lv2a-cmauth-title {
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: #0a0a0a;
    margin: 0 0 4px;
}

.lv2a-cmauth-desc {
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #0a0a0a;
    margin: 0;
}

.lv2a-cmauth-desc-note {
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin: 8px 0 0;
}

.lv2a-cmauth-tabs {
    --Stroke: #dfe4ea;
    --Primary-Color: #0a0a0a;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 0 4px;
    box-sizing: border-box;
}

.lv2a-cmauth-tab {
    flex: 1 1 0;
    min-width: 80px;
    padding: 18px 40px;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    color: #0a0a0a;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--Stroke, #dfe4ea);
    cursor: pointer;
    box-sizing: border-box;
}

.lv2a-cmauth-tab.is-active {
    font-weight: 700;
    border-bottom: 2px solid var(--Primary-Color, #0a0a0a);
}

.lv2a-cmauth-tab:not(.is-active) {
    font-weight: 500;
    border-bottom: 2px solid var(--Stroke, #DFE4EA);
}

.lv2a-cmauth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lv2a-cmauth-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

.lv2a-cmauth-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lv2a-cmauth-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lv2a-cmauth-verify-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lv2a-cmauth-label {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #0a0a0a;
}

.lv2a-cmauth-required {
    color: #f23030;
}

.lv2a-cmauth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 16px;
    line-height: 1.5;
    color: #0a0a0a;
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    outline: none;
}

.lv2a-cmauth-input::placeholder {
    color: #9ca3af;
}

.lv2a-cmauth-input:focus {
    border-color: #0a0a0a;
}

.lv2a-cmauth-verify-inline {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
}

.lv2a-cmauth-verify-inline .lv2a-cmauth-input {
    flex: 1 1 auto;
    min-width: 0;
}

.lv2a-cmauth-btn-outline.lv2a-cmauth-btn-resend {
    flex: 0 0 auto;
    align-self: stretch;
    min-height: 48px;
    padding: 14px 28px;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #0a0a0a;
    background: #fff;
    border: 1px solid #0a0a0a;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.lv2a-cmauth-btn-outline.lv2a-cmauth-btn-resend:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lv2a-cmauth-error {
    display: none;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 12px;
    line-height: 1.5;
    color: #f23030;
}

.lv2a-cmauth-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.lv2a-cmauth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 28px;
    box-sizing: border-box;
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    background: #0a0a0a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.lv2a-cmauth-btn-primary:hover:not(:disabled) {
    background: #333;
}

.lv2a-cmauth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lv2a-cmauth-exit-wrap {
    text-align: center;
    padding-top: 8px;
}

.lv2a-cmauth-link-exit {
    font-family: var(--lv2-font-kr, 'Pretendard', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: underline;
}

.lv2a-cmauth-link-exit:hover {
    color: #0a0a0a;
}

@media (max-width: 768px) {
    .lv2a-cmauth-page {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: var(--lv2-header-h, 68px);
        padding-bottom: 140px;
    }

    .lv2a-cmauth-head {
        padding-top: 24px;
    }

    .lv2a-cmauth-desc {
        font-size: 14px;
    }

    .lv2a-cmauth-desc-note {
        font-size: 13px;
    }

    .lv2a-cmauth-tab {
        padding: 18px 16px;
    }

    .lv2a-cmauth-card {
        padding: 16px;
    }
}

/* ============================================================
   Contract management index_v2 (prefix: lv2a-cmidx-) — Figma Celib_v26
   ============================================================ */
.lv2a-cmidx-shell {
    font-family: var(--lv2-font-kr, 'Pretendard', 'Apple SD Gothic Neo', sans-serif);
    color: #0a0a0a;
    min-height: 100vh;
    padding-top: var(--lv2-header-h, 68px);
    padding-bottom: 48px;
    background: #f9fafb;
}

.lv2a-cmidx-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px 240px;
    box-sizing: border-box;
}

.lv2a-cmidx-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.lv2a-cmidx-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    color: #0a0a0a;
}

.lv2a-cmidx-sub {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #0a0a0a;
}

.lv2a-cmidx-sub strong {
    font-weight: 700;
}

.lv2a-cmidx-empty {
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.lv2a-cmidx-empty p {
    margin: 0 0 20px;
    color: #666;
}

.lv2a-cmidx-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.lv2a-cmidx-btn-primary:hover {
    color: #fff;
    opacity: 0.92;
}

.lv2a-cmidx-section {
    margin-bottom: 40px;
}

.lv2a-cmidx-section-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 16px;
    color: #0a0a0a;
}

.lv2a-cmidx-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lv2a-cmidx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(5, 13, 29, 0.08);
    border: 1px solid #dfe4ea;
    box-sizing: border-box;
}

.lv2a-cmidx-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
}

.lv2a-cmidx-card-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lv2a-cmidx-status-label {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #0a0a0a;
}

.lv2a-cmidx-status-label--orange {
    color: #e04e00;
}

.lv2a-cmidx-status-label--blue {
    color: var(--Blue-Blue-light, #5475E5);
}

.lv2a-cmidx-status-label--darkblue {
    color: var(--Blue-Blue-dark, #1C3FB7);
}

.lv2a-cmidx-status-label--brown {
    color: var(--Brand-Color-1, #4B3010);
}

.lv2a-cmidx-status-label--muted {
    color: #6b7280;
}

.lv2a-cmidx-badge-renewal {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #eef2ff;
    color: #3730a3;
    white-space: nowrap;
}

.lv2a-cmidx-badge-dday {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--Brand-Color-2, #F5F4E6);
    white-space: nowrap;
}

.lv2a-cmidx-card-detail-trigger {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 0 0 8px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #0a0a0a;
    cursor: pointer;
}

.lv2a-cmidx-chevron-svg {
    display: block;
    flex-shrink: 0;
}

.lv2a-cmidx-card-hero {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dfe4ea;
}

.lv2a-cmidx-card-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: #f3f4f6;
    flex-shrink: 0;
    overflow: hidden;
}

.lv2a-cmidx-card-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    display: block;
}

.lv2a-cmidx-card-hero-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
}

.lv2a-cmidx-card-room {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #0a0a0a;
}

.lv2a-cmidx-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.lv2a-cmidx-card-meta-type {
    color: #6b7280;
    font-weight: 400;
}

.lv2a-cmidx-card-meta-area {
    color: #0a0a0a;
    font-weight: 400;
}

.lv2a-cmidx-card-meta--single {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.lv2a-cmidx-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lv2a-cmidx-card-alert {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.lv2a-cmidx-alert-ico {
    flex-shrink: 0;
    margin-top: 1px;
}

.lv2a-cmidx-alert-ico--lg {
    margin-top: 0;
}

.lv2a-cmidx-card-alert-text {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: inherit;
}

.lv2a-cmidx-card-kv {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lv2a-cmidx-kv-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lv2a-cmidx-kv-row dt {
    flex: 0 0 70px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #6b7280;
}

.lv2a-cmidx-kv-row dd {
    flex: 1 1 auto;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #0a0a0a;
    min-width: 0;
}

.lv2a-cmidx-kv-strong {
    font-weight: 700;
}

.lv2a-cmidx-kv-won {
    font-weight: 400;
}

.lv2a-cmidx-dd-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.lv2a-cmidx-acct-bank {
    font-weight: 400;
}

.lv2a-cmidx-acct-num {
    font-weight: 700;
}

.lv2a-cmidx-acct-full {
    font-weight: 400;
}

.lv2a-cmidx-btn-copy {
    padding: 0;
    border: none;
    border-bottom: 1px solid #0a0a0a;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
}

.lv2a-cmidx-period-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.lv2a-cmidx-period-dates {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    line-height: 1.5;
    color: #0a0a0a;
}

.lv2a-cmidx-period-sep {
    color: #6b7280;
    font-weight: 400;
}

.lv2a-cmidx-period-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 100px;
    background: #dfe4ea;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(10, 10, 10, 0.82);
}

.lv2a-cmidx-card-actions {
    margin-top: 0;
    padding-top: 0;
}

/* 계약서 다운로드 (Figma node 2053:31411) */
.lv2a-cmidx-btn-outline.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #dfe4ea;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    cursor: pointer;
}

.lv2a-cmidx-btn-outline.btn-download:hover {
    background: #fafafa;
}

.lv2a-cmidx-btn-outline.btn-download:focus {
    outline: none;
}

.lv2a-cmidx-btn-outline.btn-download:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: 2px;
}

.lv2a-cmidx-btn-download-ico {
    flex-shrink: 0;
    display: block;
    width: 20px;
    height: 20px;
    color: inherit;
}

/* 만료·취소 접기 (Figma: 타이틀 18 Bold + chevron, 배경 없음) */
.lv2a-cmidx-ended {
    margin-top: 0;
    padding-top: 24px;
    margin-bottom: 0;
}

.lv2a-cmidx-ended-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    color: #0a0a0a;
}

.lv2a-cmidx-ended-toggle:focus {
    outline: none;
}

.lv2a-cmidx-ended-toggle-label {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
}

.lv2a-cmidx-ended-chevron-svg {
    flex-shrink: 0;
    display: block;
    color: #0a0a0a;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

.lv2a-cmidx-ended.is-open .lv2a-cmidx-ended-chevron-svg {
    transform: rotate(-90deg);
}

.lv2a-cmidx-ended-panel {
    padding-top: 16px;
}

.lv2a-cmidx-ended-panel[hidden] {
    display: none !important;
}

/* 하단 안내 배너 */
.lv2a-cmidx-banner {
    max-width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.lv2a-cmidx-banner p {
    margin: 0;
}

/* 퇴실·입주 안내 배너 공통 */
.lv2a-cmidx-banner--moveout {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #4b3010;
    background: #f5f4e6;
    color: inherit;
}

.lv2a-cmidx-banner-moveout-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    max-width: 100%;
    padding-right: min(42%, 280px);
    box-sizing: border-box;
}

.lv2a-cmidx-banner-moveout-inner--checkin {
    gap: 24px;
}

.lv2a-cmidx-banner-welcome {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    width: 100%;
    color: #4b3010;
}

.lv2a-cmidx-banner-welcome-headline {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
}

.lv2a-cmidx-banner-welcome-to,
.lv2a-cmidx-banner-welcome-brand {
    color: #4b3010;
}

.lv2a-cmidx-banner-welcome-lead {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: #4b3010;
}

.lv2a-cmidx-banner-checkin-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

.lv2a-cmidx-banner-manual-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    padding: 8px 16px;
    margin-top: 0;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    box-sizing: border-box;
}

.lv2a-cmidx-banner-manual-btn:hover,
.lv2a-cmidx-banner-manual-btn:focus {
    background: #f9fafb;
    color: #0a0a0a;
    text-decoration: none;
}

.lv2a-cmidx-banner-manual-ico {
    flex-shrink: 0;
    color: #0a0a0a;
}

.lv2a-cmidx-banner-manual-label {
    white-space: nowrap;
}

.lv2a-cmidx-banner-moveout-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    color: #0a0a0a;
}

.lv2a-cmidx-banner-moveout-list {
    margin: 0;
    padding: 0 0 0 21px;
    list-style: disc;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: #374151;
}

.lv2a-cmidx-banner-moveout-list li {
    margin: 0;
    padding: 0;
}

.lv2a-cmidx-banner-moveout-list li + li {
    margin-top: 8px;
}

.lv2a-cmidx-banner-moveout-watermark {
    position: absolute;
    bottom: -12px;
    right: -4px;
    z-index: 0;
    width: 264px;
    height: 110px;
    overflow: hidden;
    pointer-events: none;
}

.lv2a-cmidx-banner-moveout-watermark img {
    display: block;
    width: 100%;
    height: 150%;
    object-fit: contain;
    object-position: right bottom;
    filter: brightness(0) invert(1);
    opacity: 0.80;
}

@media (max-width: 768px) {
    .lv2a-cmidx-banner-moveout-inner {
        padding-right: 0;
    }

    .lv2a-cmidx-banner-welcome-headline {
        font-size: 18px;
    }

    .lv2a-cmidx-banner-welcome-lead {
        font-size: 15px;
    }

    .lv2a-cmidx-banner-manual-btn {
        width: 100%;
        max-width: 100%;
    }

    .lv2a-cmidx-banner-manual-label {
        white-space: normal;
        text-align: center;
    }

    .lv2a-cmidx-banner-moveout-watermark {
        width: 200px;
        height: 84px;
        bottom: -8px;
        right: -8px;
    }
}

.lv2a-cmidx-foot-actions {
    margin-top: 32px;
    text-align: center;
}

.lv2a-cmidx-btn-logout {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

/* 우측 슬라이드 패널 */
.lv2a-cmidx-panel {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
    visibility: hidden;
}

.lv2a-cmidx-panel.is-open {
    visibility: visible;
    pointer-events: auto;
}

.lv2a-cmidx-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.lv2a-cmidx-panel.is-open .lv2a-cmidx-panel-backdrop {
    opacity: 1;
}

.lv2a-cmidx-panel-sheet {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-left: 1px solid #dfe4ea;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.lv2a-cmidx-panel.is-open .lv2a-cmidx-panel-sheet {
    transform: translateX(0);
}

.lv2a-cmidx-panel-hd {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 16px;
    background: #ffffff;
    color: #0a0a0a;
}

.lv2a-cmidx-panel-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.lv2a-cmidx-panel-close {
    border: none;
    background: transparent;
    color: #0a0a0a;
    padding: 4px;
    line-height: 0;
    cursor: pointer;
    opacity: 0.9;
}

.lv2a-cmidx-panel-close:hover {
    opacity: 1;
}

.lv2a-cmidx-panel-body {
    flex: 1;
    overflow: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
}

.lv2a-cmidx-panel-loading,
.lv2a-cmidx-panel-error {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* 계약 상세 드로어 본문 (Figma) */
.lv2a-cmidx-drw {
    padding: 20px 20px 32px;
}

.lv2a-cmidx-drw-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
}

.lv2a-cmidx-drw-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: #f3f4f6;
    flex-shrink: 0;
    overflow: hidden;
}

.lv2a-cmidx-drw-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    display: block;
}

.lv2a-cmidx-drw-hero-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lv2a-cmidx-drw-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.lv2a-cmidx-drw-room {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #0a0a0a;
}

.lv2a-cmidx-drw-badge-wrap {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.lv2a-cmidx-drw-badge {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.lv2a-cmidx-drw-badge--orange {
    color: #e04e00;
}

.lv2a-cmidx-drw-badge--blue {
    color: #5475E5;
}

.lv2a-cmidx-drw-badge--darkblue {
    color: #1C3FB7;
}

.lv2a-cmidx-drw-badge--brown {
    color: #4b3010;
}

.lv2a-cmidx-drw-badge--muted {
    color: #6b7280;
}

.lv2a-cmidx-drw-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.lv2a-cmidx-drw-meta-type {
    color: #6b7280;
    font-weight: 400;
}

.lv2a-cmidx-drw-meta-area {
    color: #0a0a0a;
    font-weight: 400;
}

.lv2a-cmidx-drw-meta--single {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.lv2a-cmidx-drw-alert {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
}

.lv2a-cmidx-drw-alert-text {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.lv2a-cmidx-drw-kv {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lv2a-cmidx-drw-kv-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lv2a-cmidx-drw-kv-row dt {
    flex: 0 0 100px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #6b7280;
}

.lv2a-cmidx-drw-kv-row dd {
    flex: 1 1 auto;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #0a0a0a;
    min-width: 0;
}

.lv2a-cmidx-drw-kv-row dd strong {
    font-weight: 700;
}

.lv2a-cmidx-drw-dd-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px 8px;
}

.lv2a-cmidx-drw-period {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lv2a-cmidx-drw-period-label {
    flex: 0 0 70px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #6b7280;
}

.lv2a-cmidx-drw-period-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lv2a-cmidx-drw-period-dates {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #0a0a0a;
}

.lv2a-cmidx-drw-period-sep {
    color: #9ca3af;
}

.lv2a-cmidx-drw-month-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.lv2a-cmidx-drw-section {
    margin-top: 28px;
}

.lv2a-cmidx-drw-section-title {
    margin: 0 0 0 0;
    padding-bottom: 12px;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    color: #0a0a0a;
    border-bottom: 1px solid #dfe4ea;
}

.lv2a-cmidx-drw-dl {
    margin: 0;
}

.lv2a-cmidx-drw-dl-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    align-items: start;
}

.lv2a-cmidx-drw-dl-row:last-child {
    border-bottom: none;
}

.lv2a-cmidx-drw-dl-row dt {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #6b7280;
}

.lv2a-cmidx-drw-dl-row dd {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #0a0a0a;
    word-break: break-word;
}

.lv2a-cmidx-drw-amt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.lv2a-cmidx-drw-amt-label {
    font-size: 14px;
    font-weight: 400;
    color: #0a0a0a;
}

.lv2a-cmidx-drw-amt-val {
    font-size: 14px;
    font-weight: 400;
    color: #0a0a0a;
    text-align: right;
}

.lv2a-cmidx-drw-amt-val strong {
    font-weight: 700;
}

.lv2a-cmidx-drw-amt-note {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    text-align: right;
}

.lv2a-cmidx-drw-breakdown {
    margin: 8px 0 0;
    padding: 16px;
    border-radius: 8px;
    background: #f3f4f6;
}

.lv2a-cmidx-drw-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.lv2a-cmidx-drw-amt-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #dfe4ea;
}

.lv2a-cmidx-drw-amt-total-label {
    font-size: 16px;
    font-weight: 500;
    color: #0a0a0a;
}

.lv2a-cmidx-drw-amt-total-val {
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
}

/* 계약 상세 하단 캡션 (Figma node 2143:49312) */
.lv2a-cmidx-drw-caption {
    margin: 20px 0 0;
    width: 100%;
}

.lv2a-cmidx-drw-caption-list {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: #6b7280;
}

.lv2a-cmidx-drw-caption-list li {
    margin: 0;
    padding: 0;
}

.lv2a-cmidx-drw-caption-text {
    display: inline-block;
    width: 100%;
    vertical-align: top;
}