[v-cloak] { display: none; }

/* ── 토큰 (Genesis Design System) ── */
:root {
    --h: 56px;
    --tab: 60px;

    /* Genesis 인디고 - 인터랙티브 요소 전용 */
    --color-primary: #6366F1;
    --color-primary-hover: #4F46E5;
    --color-primary-dark: #4338CA;
    --color-primary-tint: #EEF2FF;
    --color-primary-tint-strong: #E0E7FF;

    /* Genesis 보조 컬러 */
    --color-secondary: #20970B;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    /* Genesis 중립 */
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --border: #E8E8EC;
    --text: #0A0A0A;
    --muted: #6B6B6B;
    --neutral: #9C9C9C;

    /* 하위 호환용 별칭 (기존 코드가 var(--blue)을 참조) */
    --blue: var(--color-primary);
    --blue-light: #818CF8;

    /* Genesis 라운드: 카드 12px / 버튼·인풋 6px */
    --radius: 12px;
    --radius-control: 6px;

    --drawer-w: 280px;
}

/* ── 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; height: 100%; }
body {
    overflow-x: hidden;
    background: var(--bg);
    /* Genesis Body: DM Sans 15px / 한글은 Apple SD Gothic Neo · Noto Sans KR로 폴백 */
    font-family: 'DM Sans', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    font-size: 15px;
    color: var(--text);
    padding-top: var(--h);
    padding-bottom: var(--tab);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Genesis 헤딩: General Sans (Bold) */
h1, h2, h3, h4, h5, h6,
.hero h1,
.section-head h2,
.login-banner h2 {
    font-family: 'General Sans', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    letter-spacing: -0.01em;
}

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ════════════════════════════
   헤더
════════════════════════════ */
.g-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 16px;
    z-index: 1000;
}
.g-header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.g-header .logo-mark {
    width: 32px;
    height: 32px;
    background: var(--blue);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.g-header .logo-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.3px;
}
.g-header .logo-sub {
    font-size: 10px;
    color: var(--muted);
    display: block;
    line-height: 1;
    margin-top: 1px;
}
.g-header .h-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.g-header .h-username {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}
@media (max-width: 400px) { .g-header .h-username { display: none; } }
.g-header .btn-logout {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    cursor: pointer;
    white-space: nowrap;
}
.g-header .btn-login {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.g-header .btn-login:hover { background: var(--color-primary-hover); }
/* 햄버거 버튼 디자인 */
.g-header .btn-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    color: var(--blue);
    font-size: 30px;
    cursor: pointer;
    z-index: 1010;
}
.g-header .btn-hamburger i {
    display: inline-block;
    line-height: 1;
}

/* ════════════════════════════
   드로어 오버레이
════════════════════════════ */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.45);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}
.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ════════════════════════════
   드로어 패널
════════════════════════════ */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--drawer-w);
    height: 100%;
    background: var(--surface);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.4,0,.2,1), visibility .28s;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}
.drawer.open { 
    transform: translateX(0); 
    visibility: visible;
}

/* 드로어 헤더 */
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.drawer-head .d-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.drawer-head .d-logo-mark {
    width: 30px;
    height: 30px;
    background: var(--blue);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
}
.drawer-head .d-logo-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
}
.btn-drawer-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    border: none;
    border-radius: var(--radius-control);
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
}

/* 드로어 프로필 영역 */
.drawer-profile {
    margin: 16px 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid var(--border);
}
/* 비로그인 */
.drawer-profile.guest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.drawer-profile.guest .guest-msg strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.drawer-profile.guest .guest-msg span {
    font-size: 12px;
    color: var(--muted);
}
.drawer-profile.guest .btn-go-login {
    flex-shrink: 0;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-control);
    padding: 8px 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.drawer-profile.guest .btn-go-login:hover { background: var(--color-primary-hover); }
/* 로그인 상태 */
.drawer-profile.user {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.d-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}
.d-user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.d-user-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}
.d-role-badges {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}
.d-role-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: #EEF2FF;
    color: var(--blue);
}
.d-role-badge.agent {
    background: #ECFDF5;
    color: #10B981;
}

/* 드로어 메뉴 */
.drawer-menu {
    padding: 8px 12px;
    flex: 1;
}
.drawer-menu-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 8px 8px 6px;
}
.drawer-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s;
    margin-bottom: 2px;
}
.drawer-menu a:hover,
.drawer-menu a.on {
    background: #EEF2FF;
    color: var(--blue);
}
.drawer-menu a .menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    background: #f1f5f9;
    transition: background .15s;
}
.drawer-menu a:hover .menu-icon,
.drawer-menu a.on .menu-icon { background: #E0E7FF; }
.drawer-menu a .menu-arrow {
    margin-left: auto;
    font-size: 13px;
    color: #cbd5e1;
}

/* 드로어 하단 로그아웃 */
.drawer-footer {
    padding: 12px 20px 28px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.btn-drawer-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    color: #e11d48;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-drawer-logout:hover { background: #ffe4e6; }

/* ════════════════════════════
   하단 탭바
════════════════════════════ */
.g-tab {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--tab);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 1000;
}
.g-tab a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    transition: color .15s;
    position: relative;
}
.g-tab a i { font-size: 20px; line-height: 1; }
.g-tab a.on { color: var(--blue); }
.g-tab a.on::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--blue);
    border-radius: 0 0 3px 3px;
}

/* ════════════════════════════
   홈 페이지 (index.html)
════════════════════════════ */
.home {
    width: 100%;
    background: var(--bg);
}

.hero {
    background: linear-gradient(160deg, #4F46E5 0%, #6366F1 50%, #818CF8 100%);
    padding: 32px 20px 52px;
    color: #fff;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.hero p {
    font-size: 14px;
    opacity: .8;
    margin-bottom: 24px;
    line-height: 1.6;
}
.hero-stats {
    display: flex;
    gap: 24px;
}
.hero-stat dt {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}
.hero-stat dd {
    font-size: 11px;
    opacity: .7;
    margin: 3px 0 0;
}

.search-card {
    margin: -24px 16px 0;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
    padding: 14px 14px 14px;
    position: relative;
    z-index: 2;
}
.search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: var(--radius-control);
    padding: 10px 14px;
}
.search-row > i {
    color: var(--color-primary);
    font-size: 18px;
    flex-shrink: 0;
    -webkit-text-stroke: 0.4px var(--color-primary);
}
.search-row input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    outline: none;
}
.search-row input::placeholder { color: #94a3b8; }
.search-row .btn-search {
    background: var(--blue);
    border: none;
    border-radius: var(--radius-control);
    color: #fff;
    height: 36px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    cursor: pointer;
    white-space: nowrap;
}
.search-row .btn-search:hover { background: var(--color-primary-hover); }
.search-row .btn-search i { font-size: 14px; }

.quick-filters {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.quick-filters::-webkit-scrollbar { display: none; }
.qf-chip {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    font-family: inherit;
    line-height: 1.5;
}
.qf-chip.on, .qf-chip:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.section {
    padding: 28px 16px 0;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.section-head h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.section-head a {
    font-size: 12px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px 14px;
    background: var(--surface);
    border-radius: 16px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    text-align: center;
    color: inherit;
    text-decoration: none;
}
.cat-item:hover {
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    transform: translateY(-2px);
}
.cat-item.blue:hover  { box-shadow: 0 4px 16px rgba(99,102,241,.18); }
.cat-item.green:hover { box-shadow: 0 4px 16px rgba(16,185,129,.18); }
.cat-item.orange:hover{ box-shadow: 0 4px 16px rgba(234,88,12,.18); }
.cat-item.purple:hover{ box-shadow: 0 4px 16px rgba(147,51,234,.18); }

.cat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    position: relative;
}
.cat-icon-wrap.blue   { background: #EEF2FF; color: #6366F1; }
.cat-icon-wrap.green  { background: #ECFDF5; color: #10B981; }
.cat-icon-wrap.orange { background: #fff7ed; color: #ea580c; }
.cat-icon-wrap.purple { background: #faf5ff; color: #9333ea; }

.cat-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.cat-desc {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.3;
    margin-top: 1px;
}

.listing-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.listing-scroll::-webkit-scrollbar { display: none; }

.l-card {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    width: 160px;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
@media (min-width: 480px) { .l-card { width: 180px; } }
.l-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }

.l-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}
.l-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.l-card:hover .l-thumb img { transform: scale(1.05); }
.l-badge {
    position: absolute;
    top: 8px; left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    color: #fff;
}
.l-badge.sale   { background: #6366F1; }
.l-badge.lease  { background: #10B981; }
.l-badge.rent   { background: #ea580c; }

.l-body { padding: 10px 10px 12px; }
.l-type { font-size: 10px; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.l-price { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.l-addr {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.l-meta {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}
.l-meta span { font-size: 10px; color: #94a3b8; }

.listing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 600px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .listing-grid { grid-template-columns: repeat(4, 1fr); } }

.listing-list {
    max-width: 800px;
    margin: 0 auto;
}

.lg-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.lg-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.lg-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}
.lg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.lg-card:hover .lg-thumb img { transform: scale(1.05); }
.lg-body { padding: 10px 12px 14px; }
.lg-type { font-size: 10px; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.lg-price { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.lg-addr {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lg-meta { display: flex; gap: 4px; margin-top: 5px; }
.lg-meta span { font-size: 11px; color: #94a3b8; }

.cta-wrap {
    padding: 28px 16px 0;
}
.cta-card {
    background: linear-gradient(135deg, #4F46E5, #818CF8);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cta-card .cta-txt strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.cta-card .cta-txt span {
    font-size: 12px;
    color: rgba(255,255,255,.75);
}
.cta-card .btn-cta {
    flex-shrink: 0;
    background: #fff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-control);
    padding: 9px 18px;
    text-decoration: none;
    white-space: nowrap;
}

.page-bottom { height: 28px; }

/* ════════════════════════════
   매물 목록 페이지 (list.html)
   ════════════════════════════ */
.list-search-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.list-type-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.list-type-chips::-webkit-scrollbar { display: none; }
.list-type-chip {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    font-family: inherit;
    line-height: 1.5;
}
.list-type-chip:hover { color: var(--text); border-color: #C7D2FE; }
.list-type-chip.on {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: var(--radius-control);
    padding: 0 12px;
    width: 100%;
}

.search-input-group i {
    color: #adb5bd;
    font-size: 1.1rem;
}

.search-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 0.95rem;
    outline: none;
}

.search-input-group button {
    border: none;
    background: transparent;
    color: #818CF8;
    font-weight: 600;
    padding: 0 4px;
}

.list-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #fafbfc;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 108px;
    z-index: 90;
    height: 45px;
}

.result-count {
    font-size: 13px;
    color: var(--muted);
}

.result-count strong {
    color: var(--text);
    font-weight: 700;
}

.list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-map-view {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    padding: 6px 12px;
    background: var(--color-primary-tint);
    border: 1px solid var(--color-primary-tint-strong);
    border-radius: var(--radius-control);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-map-view:hover {
    background: var(--color-primary-tint-strong);
    color: var(--color-primary-dark);
}

.list-sort {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: var(--radius-control);
    user-select: none;
    transition: background 0.2s;
}

.list-sort:hover {
    background: #E8E8EC;
}

.list-sort i {
    font-size: 10px;
    transition: transform 0.2s;
}

.list-sort i.rotate {
    transform: rotate(180deg);
}

.sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 140px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    overflow: hidden;
}

.sort-item {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.sort-item:last-child {
    border-bottom: none;
}

.sort-item:hover {
    background: #f8fafc;
}

.sort-item.active {
    color: var(--blue);
    font-weight: 600;
    background: #EEF2FF;
}

.no-result {
    text-align: center;
    padding: 60px 20px;
    color: #adb5bd;
    width: 100%;
}

.no-result i {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.no-result p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-reset {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-control);
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-reset:hover { background: var(--color-primary-hover); }

/* 매물 목록 리스트 레이아웃 */
.listing-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.ll-card {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: box-shadow .2s;
    text-decoration: none;
    color: inherit;
}

.ll-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.ll-thumb {
    width: 140px;
    min-width: 140px;
    height: 140px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.ll-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ll-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ll-type { 
    font-size: 12px; 
    font-weight: 600; 
    color: var(--blue); 
    margin-bottom: 4px; 
}

.ll-price { 
    font-size: 18px; 
    font-weight: 800; 
    color: var(--text); 
    margin-bottom: 4px; 
}

.ll-addr {
    font-size: 13px;
    color: #6B6B6B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.ll-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    width: 100%;
}

/* ── 내 등록 매물 전용 스타일 ── */
.my-villa-card {
    position: relative;
    padding-right: 0;
}
.my-villa-actions {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.btn-edit-villa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--blue);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-edit-villa i {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 1px;
}
.btn-edit-villa span {
    font-size: 10px;
    font-weight: 700;
}
.btn-edit-villa:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.btn-edit-villa:active {
    transform: scale(0.95);
}

/* ── 이미지 업로드 UI ── */
.image-upload-wrapper {
    width: 100%;
}

.image-upload-box {
    width: 100%;
    min-height: 120px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 20px;
}

.image-upload-box:hover {
    border-color: var(--blue);
    background: #f0f7ff;
}

.image-upload-box i {
    font-size: 32px;
    color: var(--muted);
    margin-bottom: 8px;
    transition: all 0.2s;
}

.image-upload-box:hover i {
    color: var(--blue);
    transform: translateY(-3px);
}

.image-upload-box .upload-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.image-upload-box:hover .upload-text {
    color: var(--blue);
}

.image-upload-box .upload-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
    min-height: 20px;
}

.preview-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: all 0.2s;
}

.preview-remove:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: scale(1.1);
}

/* ── 주소 검색 레이아웃 ── */
#address-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(2px);
}
#address-layer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    height: 480px;
    background: #fff;
    z-index: 2001;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
}
#address-layer-close {
    cursor: pointer;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 10;
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
#address-layer-close:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
}

/* ════════════════════════════
   로그인 페이지 (login.html)
════════════════════════════ */
.login-page {
    width: 100%;
    min-height: calc(100vh - 124px);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f4f6fb;
}

.login-banner {
    width: 100%;
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
    padding: 2rem 1rem 3rem;
    text-align: center;
    color: #fff;
}
.login-banner .banner-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}
.login-banner h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.login-banner p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0;
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    padding: 1.75rem 1.25rem 2rem;
    flex: 1;
}
@media (min-width: 560px) {
    .login-card {
        border-radius: 20px;
        margin-top: 2rem;
        padding: 2rem 2.5rem 2.5rem;
        box-shadow: 0 8px 40px rgba(99,102,241,0.10);
        flex: unset;
        margin-bottom: 2rem;
        border: 1px solid #dee2e6;
    }
}

.field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}
.input-wrap { position: relative; }
.input-wrap .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1rem;
    pointer-events: none;
    z-index: 5;
}
.input-wrap .form-control {
    width: 100%;
    padding-left: 2.6rem;
    border-radius: var(--radius-control);
    border: 1.5px solid var(--border);
    height: 48px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap .form-control:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    outline: none;
}

.btn-submit-login {
    width: 100%;
    height: 52px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-control);
    background: var(--color-primary);
    border: none;
    color: #fff;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-submit-login:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.25); }
.btn-submit-login:active { transform: translateY(0); }

.or-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #adb5bd;
    font-size: 0.82rem;
    margin: 1.25rem 0;
}
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.btn-join-outline {
    width: 100%;
    height: 48px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-control);
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-join-outline:hover {
    border-color: #6366F1;
    color: #6366F1;
}

/* ════════════════════════════
   회원가입 페이지 (join.html)
════════════════════════════ */
.join-page {
    width: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.join-card {
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    padding: 28px 20px 32px;
    flex: 1;
}
@media (min-width: 580px) {
    .join-card {
        border-radius: 20px;
        margin-top: 32px;
        margin-bottom: 32px;
        padding: 32px 36px 36px;
        box-shadow: 0 8px 40px rgba(99,102,241,.10);
        flex: unset;
        border: 1px solid var(--border);
    }
}

.type-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
}
.type-check { display: none; }
.type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 14px;
    border: 2px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}
.type-label .type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--muted);
    transition: all .2s;
}
.type-label .type-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}
.type-label .type-desc {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.4;
}
.type-check:checked + .type-label {
    border-color: var(--blue);
    background: #EEF2FF;
}
.type-check:checked + .type-label .type-icon {
    background: #E0E7FF;
    color: var(--blue);
}
.type-check:checked + .type-label .type-name {
    color: var(--blue);
}

.form-section {
    margin-bottom: 20px;
}
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.field-row {
    margin-bottom: 14px;
}
/* 공통 field-label 사용 (login-card와 join-card 중복 고려) */
.join-card .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.join-card .field-label .req { color: #EF4444; font-size: 14px; line-height: 1; }

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}
.input-box .i-icon {
    position: absolute;
    left: 13px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}
.input-box input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-control);
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.input-box input::placeholder { color: #cbd5e1; }
.input-box input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}
.input-box input.error { border-color: #EF4444; }
.input-box input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.10); }

.btn-pw-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: grid;
    place-items: center;
    z-index: 1;
}
.btn-pw-toggle:hover { color: var(--muted); }

.field-error {
    font-size: 11px;
    color: #EF4444;
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 4px;
}
.field-error.show { display: flex; }

.agent-section {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .35s ease, opacity .3s ease;
}
.agent-section.show {
    max-height: 200px;
    opacity: 1;
}

.btn-submit {
    width: 100%;
    height: 50px;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-control);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
    margin-top: 24px;
}
.btn-submit:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.25); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { background: var(--neutral); cursor: not-allowed; transform: none; box-shadow: none; }

.join-login-link {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.join-login-link a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}
.join-login-link a:hover { text-decoration: underline; }

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-top: 20px;
}
.terms-row input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
}
.terms-row label {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    cursor: pointer;
}
.terms-row label a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

/* ════════════════════════════
   매물 등록 페이지 (villa/add.html)
════════════════════════════ */
.va-page {
    width: 100%;
    min-height: calc(100vh - var(--h) - var(--tab));
    background:
        radial-gradient(900px 380px at 0% -10%, rgba(99,102,241,.08), transparent 60%),
        radial-gradient(700px 320px at 100% 0%, rgba(129,140,248,.07), transparent 60%),
        var(--bg);
    padding: 24px 16px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.va-shell {
    width: 100%;
    max-width: 760px;
}

.va-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 22px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 55%, #A5B4FC 100%);
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 10px 28px rgba(99,102,241,.22);
    position: relative;
    overflow: hidden;
}
.va-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(160px 100px at 90% 20%, rgba(255,255,255,.18), transparent 60%),
        radial-gradient(180px 120px at 10% 110%, rgba(255,255,255,.12), transparent 60%);
    pointer-events: none;
}
.va-hero-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
}
.va-hero-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
}
.va-hero-sub {
    margin-top: 4px;
    font-size: 13px;
    opacity: .92;
}

.va-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15,23,42,.04);
    overflow: hidden;
}

.va-section {
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--border);
}
.va-section:last-of-type { border-bottom: none; }
.va-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.va-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--color-primary-tint);
    color: var(--color-primary);
    font-size: 17px;
    flex-shrink: 0;
}
.va-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.01em;
}
.va-section-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.va-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 560px) {
    .va-grid.cols-2 { grid-template-columns: 1fr 1fr; }
    .va-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
    .va-field.span-2 { grid-column: span 2; }
}

.va-field { display: flex; flex-direction: column; }
.va-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.va-label .req { color: var(--color-error); font-size: 13px; line-height: 1; }

.va-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.va-input-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,.10);
}
.va-input-box.has-error { border-color: var(--color-error); }
.va-input-box.has-error:focus-within { box-shadow: 0 0 0 4px rgba(239,68,68,.10); }
.va-input-box .va-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color .18s;
}
.va-input-box:focus-within .va-icon { color: var(--color-primary); }
.va-input-box input,
.va-input-box select,
.va-input-box textarea {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    outline: none;
    appearance: none;
}
.va-input-box input::placeholder,
.va-input-box textarea::placeholder { color: #cbd5e1; }
.va-input-box.with-action input { padding-right: 92px; }
.va-input-box .va-input-action {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 12px;
    background: var(--color-primary-tint);
    border: none;
    border-radius: 8px;
    color: var(--color-primary-dark);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background .18s, color .18s;
}
.va-input-box .va-input-action:hover {
    background: var(--color-primary);
    color: #fff;
}
.va-input-box.readonly input { cursor: pointer; background: #FAFAFB; }

.va-textarea-box {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color .18s, box-shadow .18s;
    padding: 12px 14px;
}
.va-textarea-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,.10);
}
.va-textarea-box textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: vertical;
    min-height: 110px;
    font-size: 14px;
    color: var(--text);
    background: transparent;
    font-family: inherit;
    line-height: 1.55;
}
.va-textarea-box textarea::placeholder { color: #cbd5e1; }

.va-error {
    font-size: 12px;
    color: var(--color-error);
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
}
.va-error.show { display: inline-flex; }
.va-error::before {
    content: '\F33A';
    font-family: 'bootstrap-icons';
    font-size: 13px;
}

/* 세그먼트 버튼 (거래유형, 층 타입) */
.va-segment-group {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    background: #F4F4F7;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.va-segment {
    appearance: none;
    border: none;
    background: transparent;
    height: 40px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background .18s, color .18s, transform .12s, box-shadow .18s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.va-segment:hover { color: var(--text); }
.va-segment.active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 1px 3px rgba(15,23,42,.08), 0 0 0 1px rgba(99,102,241,.18);
}
.va-segment.error-mark {
    box-shadow: 0 0 0 1.5px var(--color-error) inset;
}

/* 토글 카드 (거실, 베란다) */
.va-toggle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.va-toggle-card {
    cursor: pointer;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 14px 14px;
    background: var(--surface);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all .18s;
    user-select: none;
}
.va-toggle-card .va-toggle-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #F1F5F9;
    color: var(--muted);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all .18s;
}
.va-toggle-card .va-toggle-text { flex: 1; min-width: 0; }
.va-toggle-card .va-toggle-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.va-toggle-card .va-toggle-state {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}
.va-toggle-card .va-toggle-pill {
    width: 36px;
    height: 22px;
    background: #E2E8F0;
    border-radius: 999px;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}
.va-toggle-card .va-toggle-pill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    transition: transform .2s;
}
.va-toggle-card:hover { border-color: #C7D2FE; }
.va-toggle-card.active {
    border-color: var(--color-primary);
    background: var(--color-primary-tint);
}
.va-toggle-card.active .va-toggle-icon {
    background: var(--color-primary);
    color: #fff;
}
.va-toggle-card.active .va-toggle-state { color: var(--color-primary-dark); font-weight: 600; }
.va-toggle-card.active .va-toggle-pill { background: var(--color-primary); }
.va-toggle-card.active .va-toggle-pill::after { transform: translateX(14px); }

/* 이미지 업로드 */
.va-upload-zone {
    border: 2px dashed #D1D5DB;
    border-radius: 16px;
    background: linear-gradient(180deg, #FAFAFB 0%, #F4F4F7 100%);
    padding: 32px 18px;
    text-align: center;
    cursor: pointer;
    transition: all .18s;
}
.va-upload-zone:hover,
.va-upload-zone.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-tint);
}
.va-upload-zone .va-upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--color-primary);
    transition: transform .2s;
}
.va-upload-zone:hover .va-upload-icon,
.va-upload-zone.dragover .va-upload-icon { transform: translateY(-2px); }
.va-upload-zone .va-upload-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.va-upload-zone .va-upload-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.va-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.va-preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #F8FAFC;
}
.va-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.va-preview-item .va-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: rgba(15,23,42,.65);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .15s, transform .15s;
    font-size: 12px;
}
.va-preview-item .va-preview-remove:hover {
    background: var(--color-error);
    transform: scale(1.08);
}

/* 액션 바 */
.va-action-bar {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}
.va-btn {
    flex: 1;
    height: 52px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .18s, transform .12s, box-shadow .18s, color .18s, border-color .18s;
}
.va-btn-cancel {
    flex: 0 0 120px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--muted);
}
.va-btn-cancel:hover { border-color: #94A3B8; color: var(--text); }
.va-btn-submit {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(99,102,241,.28);
}
.va-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(99,102,241,.34); }
.va-btn-submit:active { transform: translateY(0); }
.va-btn-submit:disabled {
    background: var(--neutral);
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: .8;
}

@media (max-width: 480px) {
    .va-page { padding: 16px 12px 100px; }
    .va-hero { padding: 18px; }
    .va-hero-title { font-size: 18px; }
    .va-section { padding: 18px 16px 14px; }
    .va-btn-cancel { flex: 0 0 96px; }
    .va-toggle-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════
   공통 푸터 (g-footer)
════════════════════════════ */
.g-footer {
    background: #F8F9FB;
    border-top: 1px solid var(--border);
    padding: 28px 16px calc(var(--tab) + 32px);
    margin-top: 40px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}
.g-footer-inner {
    max-width: 960px;
    margin: 0 auto;
}
.g-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.g-footer-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
}
.g-footer-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.g-footer-tag { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.g-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}
.g-footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.g-footer-links a.strong { color: var(--text); font-weight: 600; }
.g-footer-links a:hover { color: var(--blue); }
.g-footer-sep {
    display: inline-block;
    width: 1px;
    height: 11px;
    background: #D0D5DD;
}
.g-footer-company {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}
.g-footer-company strong { color: var(--text); font-weight: 600; }
.g-footer-copyright {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--neutral);
}

/* ════════════════════════════
   약관·개인정보처리방침 페이지
════════════════════════════ */
.policy-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 16px 32px;
}
.policy-hero {
    margin-bottom: 16px;
    padding: 22px 22px;
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 10px 28px rgba(99,102,241,.22);
}
.policy-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.policy-hero h1 {
    margin: 10px 0 4px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.policy-sub { font-size: 12.5px; opacity: .92; margin: 0; }

.policy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 26px 22px;
    color: var(--text);
    box-shadow: 0 4px 16px rgba(15,23,42,.04);
}
.policy-card h2 {
    margin: 22px 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1d2939;
    padding-left: 10px;
    border-left: 3px solid var(--color-primary);
    line-height: 1.4;
}
.policy-card h2:first-child { margin-top: 0; }
.policy-card p,
.policy-card li {
    font-size: 13.5px;
    line-height: 1.75;
    color: #475467;
}
.policy-card p { margin: 4px 0 6px; }
.policy-card ol,
.policy-card ul {
    margin: 4px 0 10px;
    padding-left: 22px;
}
.policy-card ol ol,
.policy-card ol ul,
.policy-card ul ul,
.policy-card ul ol {
    margin: 2px 0 4px;
}
.policy-card strong { color: #1d2939; }
.policy-card a { color: var(--blue); text-decoration: none; font-weight: 600; }
.policy-card a:hover { text-decoration: underline; }

.policy-intro {
    padding: 14px 16px;
    background: var(--color-primary-tint);
    border-radius: 12px;
    color: #1d2939 !important;
    margin: 0 0 16px;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 10px;
    font-size: 13px;
}
.policy-table th,
.policy-table td {
    border: 1px solid var(--border);
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
    color: #475467;
}
.policy-table th {
    background: #F4F6FA;
    color: #1d2939;
    font-weight: 700;
}

.policy-effective {
    margin-top: 22px;
    padding: 12px 16px;
    background: #F4F6FA;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.policy-effective i { color: var(--blue); font-size: 16px; }

/* ════════════════════════════
   매물 상세 페이지 (villa/detail.html)
════════════════════════════ */
.detail-page {
    background: #f8f9fa;
    min-height: calc(100vh - 56px - 60px);
    padding-bottom: 40px;
}

/* 이미지 슬라이드 (Swiper) */
.image-slider {
    width: 100%;
    height: 300px;
    background: #eee;
    position: relative;
}
.detail-page .swiper {
    width: 100%;
    height: 100%;
}
.detail-page .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-count {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 10;
}
.detail-page .swiper-button-next,
.detail-page .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.detail-page .swiper-button-next:after,
.detail-page .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}
.detail-page .swiper-pagination-bullet-active {
    background: var(--blue) !important;
}

.detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px;
}

.detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

.d-header {
    margin-bottom: 20px;
}
.d-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}
.d-type.매매 { background: #eef4ff; color: var(--blue); }
.d-type.전세 { background: #ecfdf3; color: #027a48; }
.d-type.월세 { background: #fff7ed; color: #c2410c; }

.d-price {
    font-size: 24px;
    font-weight: 700;
    color: #1d2939;
    margin-bottom: 4px;
}
.d-title {
    font-size: 18px;
    color: #475467;
    margin-bottom: 12px;
}
.d-addr {
    font-size: 14px;
    color: #667085;
    display: flex;
    align-items: center;
    gap: 4px;
}
.d-addr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.d-addr-clickable {
    cursor: pointer;
    transition: color .15s;
    text-decoration: underline;
    text-decoration-color: rgba(102, 112, 133, 0.3);
    text-underline-offset: 3px;
}
.d-addr-clickable:hover { color: var(--blue); text-decoration-color: var(--blue); }
.btn-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--blue);
    background: #fff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-map-toggle:hover { background: var(--blue); color: #fff; }
.btn-map-toggle .bi-chevron-down { transition: transform .2s; }
.btn-map-toggle.open .bi-chevron-down { transform: rotate(180deg); }

.d-map-wrap {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f2f4f7;
    background: #f8f9fa;
    display: none;
}
.d-map-wrap.open { display: block; }
.d-map {
    width: 100%;
    height: 320px;
    background: #eef0f3;
}
.d-map-error {
    padding: 32px 16px;
    text-align: center;
    color: #98a2b3;
    font-size: 13.5px;
}
.d-map-error i { font-size: 22px; color: #cbd5e1; display: block; margin-bottom: 6px; }
.d-map-footer {
    padding: 8px 14px;
    border-top: 1px solid #f2f4f7;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.d-map-footer a {
    font-size: 12.5px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.d-map-footer a:hover { text-decoration: underline; }

/* ── 판매 요청 카드 ── */
.sr-section-icon {
    display: inline-flex;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--color-primary-tint);
    color: var(--blue);
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    vertical-align: middle;
}
.sr-msg-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sr-msg-box textarea {
    width: 100%;
    min-height: 90px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.sr-msg-box textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}
.sr-btn-submit {
    align-self: flex-end;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s, transform .12s;
}
.sr-btn-submit:hover { background: var(--color-primary-hover); }
.sr-btn-submit:disabled { background: var(--neutral); cursor: not-allowed; }

.sr-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}
.sr-status .sr-status-icon { font-size: 22px; }
.sr-status.pending {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FED7AA;
}
.sr-status.approved {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}
.sr-status.rejected {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.sr-list { display: flex; flex-direction: column; gap: 12px; }
.sr-item {
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 16px;
    background: #FAFBFC;
    transition: border-color .15s;
}
.sr-item.is-approved { border-color: #A7F3D0; background: #ECFDF5; }
.sr-item.is-rejected { opacity: .65; }
.sr-item-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.sr-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-primary-tint);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}
.sr-agent-meta { flex: 1; min-width: 0; }
.sr-agent-name { font-size: 15px; font-weight: 700; color: #1d2939; }
.sr-agent-sub { font-size: 12.5px; color: #667085; margin-top: 2px; }
.sr-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.sr-badge.pending  { background: #FFF7ED; color: #C2410C; }
.sr-badge.approved { background: #ECFDF5; color: #047857; }
.sr-badge.rejected { background: #FEF2F2; color: #B91C1C; }

.sr-message {
    font-size: 13.5px;
    color: #475467;
    line-height: 1.55;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #F2F4F7;
    border-radius: 10px;
    margin: 6px 0 12px;
    white-space: pre-wrap;
}
.sr-actions { display: flex; gap: 8px; }
.sr-btn {
    flex: 1;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s, color .15s, border-color .15s;
}
.sr-btn-approve {
    background: var(--blue);
    color: #fff;
}
.sr-btn-approve:hover { background: var(--color-primary-hover); }
.sr-btn-reject {
    background: #fff;
    color: #B91C1C;
    border-color: #FECACA;
}
.sr-btn-reject:hover { background: #FEF2F2; }
.sr-empty {
    padding: 28px 12px;
    text-align: center;
    color: #98a2b3;
    font-size: 13.5px;
}
.sr-empty i { display: block; font-size: 28px; margin-bottom: 6px; color: #cbd5e1; }

.d-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #f2f4f7;
}
.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-label {
    font-size: 13px;
    color: #98a2b3;
}
.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #344054;
}

.d-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2939;
    margin-bottom: 16px;
}
.d-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #475467;
    white-space: pre-wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 48px;
    height: 48px;
    background: #f2f4f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #98a2b3;
}
.author-meta {
    flex: 1;
}
.author-name {
    font-size: 15px;
    font-weight: 600;
    color: #344054;
}
.author-date {
    font-size: 13px;
    color: #98a2b3;
}

.bottom-actions {
    position: fixed;
    bottom: 60px; /* 탭바 위 */
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #f2f4f7;
    display: flex;
    gap: 12px;
    z-index: 100;
}
.btn-call {
    flex: 1;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-interest {
    width: 50px;
    height: 50px;
    border: 1px solid #d0d5dd;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    font-size: 20px;
}

/* 즐겨찾기 토글 버튼 (부동산 중개인 전용) */
.btn-favorite {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    border: 1.5px solid var(--blue);
    background: #fff;
    color: var(--blue);
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.btn-favorite:hover { background: var(--color-primary-tint); }
.btn-favorite.is-on {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(239,68,68,.25);
}
.btn-favorite.is-on:hover { transform: translateY(-1px); }
.btn-favorite:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-favorite i { font-size: 18px; }
@keyframes fav-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.btn-favorite.is-on i { animation: fav-pop .35s ease; }

/* 신고 버튼 (일반/중개인 공통) */
.btn-report {
    width: 110px; height: 50px;
    border-radius: 12px;
    border: 1px solid #FECACA;
    background: #fff;
    color: #B91C1C;
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.btn-report:hover { background: #FEF2F2; }
.btn-report[data-reported="true"] {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FCA5A5;
    cursor: not-allowed;
}
.btn-report-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    border: 1px solid #FECACA;
    background: #fff;
    color: #B91C1C;
    font-size: 18px;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}
.btn-report-icon:hover { background: #FEF2F2; }
.btn-report-icon[data-reported="true"] {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FCA5A5;
    cursor: not-allowed;
}

/* 신고 모달 */
.report-modal {
    position: fixed; inset: 0;
    display: none;
    z-index: 2050;
    align-items: center;
    justify-content: center;
}
.report-modal.open { display: flex; }
.report-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.report-dialog {
    position: relative;
    z-index: 1;
    width: 92%; max-width: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    max-height: 90vh;
    display: flex; flex-direction: column;
}
.report-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #F2F4F7;
    position: relative;
}
.report-head-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #FEF2F2;
    color: #DC2626;
    display: grid; place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.report-title { font-size: 16px; font-weight: 700; color: #1D2939; }
.report-sub { font-size: 12.5px; color: #667085; margin-top: 2px; }
.report-close {
    position: absolute; right: 12px; top: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none; background: #F4F6FA;
    color: #667085;
    display: grid; place-items: center;
    cursor: pointer;
}
.report-close:hover { background: #E5E7EB; color: #1D2939; }

.report-body { padding: 18px 20px; overflow-y: auto; }
.report-field + .report-field { margin-top: 16px; }
.report-label {
    display: block;
    font-size: 13px; font-weight: 600; color: #374151;
    margin-bottom: 8px;
}
.report-label .req { color: #EF4444; }
.report-label .hint { color: #667085; font-weight: 400; margin-left: 4px; font-size: 11.5px; }

.report-reasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 480px) { .report-reasons { grid-template-columns: 1fr; } }
.report-reason {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px; font-weight: 500;
    color: #475467;
    cursor: pointer;
    display: inline-flex; align-items: center;
    gap: 8px;
    transition: all .15s;
    user-select: none;
}
.report-reason i { color: #94A3B8; transition: color .15s; }
.report-reason input { display: none; }
.report-reason:hover { border-color: #FCA5A5; }
.report-reason:has(input:checked) {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
    font-weight: 600;
}
.report-reason:has(input:checked) i { color: #EF4444; }

#reportDetail {
    width: 100%;
    min-height: 110px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    line-height: 1.55;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}
#reportDetail:focus {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,.10);
}

.report-foot {
    padding: 14px 20px 18px;
    border-top: 1px solid #F2F4F7;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.btn-rep-cancel, .btn-rep-submit {
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex; align-items: center;
    gap: 6px;
    border: none;
}
.btn-rep-cancel { background: #fff; border: 1px solid var(--border); color: #475467; }
.btn-rep-cancel:hover { border-color: #94A3B8; color: #1D2939; }
.btn-rep-submit { background: #DC2626; color: #fff; box-shadow: 0 4px 12px rgba(220,38,38,.25); }
.btn-rep-submit:hover { background: #B91C1C; }
.btn-rep-submit:disabled { background: #9CA3AF; cursor: not-allowed; box-shadow: none; }

/* 외부 평가 요청 모달 (#evalModal) */
#evalModal .report-head-icon { background: #E0F2FE; color: #0284C7; }
#evalEmail,
#evalMessage {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    line-height: 1.55;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
#evalMessage { min-height: 96px; resize: vertical; }
#evalEmail::placeholder,
#evalMessage::placeholder { color: #98A2B3; }
#evalEmail:focus,
#evalMessage:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 4px rgba(14,165,233,.10);
}
#evalModal .btn-rep-submit { background: #0EA5E9; box-shadow: 0 4px 12px rgba(14,165,233,.25); }
#evalModal .btn-rep-submit:hover { background: #0284C7; }
#evalModal .btn-rep-submit:disabled { background: #9CA3AF; box-shadow: none; }

/* ════════════════════════════
   외부 평가 페이지 (villa/evaluation.html)
════════════════════════════ */
.eval-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(14,165,233,.22);
}
.eval-banner-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: rgba(255,255,255,.2);
    display: grid; place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}
.eval-banner-title { font-size: 16px; font-weight: 700; }
.eval-banner-sub { font-size: 13px; line-height: 1.55; opacity: .95; margin-top: 3px; }
.eval-banner-sub strong { font-weight: 700; }

.eval-avg {
    display: flex; flex-direction: column; align-items: center;
    padding: 16px;
    margin-bottom: 18px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 14px;
}
.eval-avg-num { font-size: 36px; font-weight: 800; color: #0284C7; line-height: 1; }
.eval-avg-num small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.eval-avg-label { font-size: 12.5px; color: #0369A1; font-weight: 600; margin-top: 4px; }

.eval-item { padding: 14px 0; border-top: 1px solid #F2F4F7; }
.eval-item:first-of-type { border-top: none; padding-top: 4px; }
.eval-item-head { display: flex; align-items: center; justify-content: space-between; }
.eval-item-label { font-size: 15px; font-weight: 700; color: #1D2939; display: inline-flex; align-items: center; gap: 8px; }
.eval-item-label i { color: #0EA5E9; }
.eval-item-score { font-size: 20px; font-weight: 800; color: #0284C7; }
.eval-item-score small { font-size: 12px; font-weight: 700; margin-left: 1px; }
.eval-item-desc { font-size: 12.5px; color: #98A2B3; margin: 3px 0 10px; }

.eval-range {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 7px; border-radius: 6px;
    background: #E2E8F0; outline: none; cursor: pointer;
}
.eval-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: #0EA5E9; border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(14,165,233,.5); cursor: pointer;
}
.eval-range::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: #0EA5E9; border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(14,165,233,.5); cursor: pointer;
}

.eval-comment { margin-top: 18px; }
.eval-comment textarea {
    width: 100%;
    min-height: 96px;
    padding: 11px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px; color: var(--text);
    font-family: inherit; line-height: 1.55;
    box-sizing: border-box; outline: none; resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}
.eval-comment textarea:focus { border-color: #0EA5E9; box-shadow: 0 0 0 4px rgba(14,165,233,.10); }

.eval-submit { margin-top: 18px; }

/* 평가 완료 상태 */
.eval-done-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700; color: #059669;
    margin-bottom: 14px;
}
.eval-done-head i { font-size: 18px; }
.eval-result-list { margin-top: 14px; }
.eval-result-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.eval-result-name { width: 92px; flex-shrink: 0; font-size: 13px; font-weight: 600; color: #475467; }
.eval-result-bar { flex: 1; height: 8px; border-radius: 6px; background: #EEF2F6; overflow: hidden; }
.eval-result-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg,#0EA5E9,#38BDF8); }
.eval-result-score { width: 42px; flex-shrink: 0; text-align: right; font-size: 13px; font-weight: 700; color: #0284C7; }

/* 상세 페이지 외부 평가 결과 — 개별 평가 블록 */
.eval-detail-item { padding: 14px 0; border-top: 1px dashed #E5E9F0; }
.eval-detail-item:first-of-type { border-top: none; padding-top: 2px; }
.eval-detail-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.eval-detail-who {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 700; color: #1D2939;
}
.eval-detail-who i { color: #0EA5E9; }
.eval-detail-meta { display: inline-flex; align-items: center; gap: 10px; }
.eval-detail-avg {
    font-size: 13px; font-weight: 800; color: #0284C7;
    background: #F0F9FF; border: 1px solid #BAE6FD;
    padding: 2px 9px; border-radius: 999px;
}
.eval-detail-date { font-size: 12px; color: #98A2B3; }

/* ════════════════════════════
   문의하기 페이지 (inquiry/form.html)
════════════════════════════ */
.inq-page {
    background:
        radial-gradient(900px 380px at 0% -10%, rgba(99,102,241,.08), transparent 60%),
        radial-gradient(700px 320px at 100% 0%, rgba(129,140,248,.07), transparent 60%),
        var(--bg);
    padding: 24px 16px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - var(--h) - var(--tab));
}
.inq-shell { width: 100%; max-width: 720px; }
.inq-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 10px 28px rgba(99,102,241,.22);
}
.inq-hero-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    display: grid; place-items: center;
    font-size: 26px;
    flex-shrink: 0;
}
.inq-hero h1 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.inq-hero p { margin: 4px 0 0; font-size: 13px; opacity: .92; }

.inq-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15,23,42,.04);
    overflow: hidden;
}
.inq-section { padding: 22px 22px 18px; border-bottom: 1px solid var(--border); }
.inq-section:last-of-type { border-bottom: none; }
.inq-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.inq-section-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--color-primary-tint);
    color: var(--color-primary);
    display: grid; place-items: center;
    font-size: 17px; flex-shrink: 0;
}
.inq-section-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.inq-section-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.inq-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .inq-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.inq-field { display: flex; flex-direction: column; min-width: 0; }
.inq-label {
    font-size: 12.5px; font-weight: 600; color: #374151;
    margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.inq-label .req { color: var(--color-error); font-size: 13px; line-height: 1; }
.inq-label .hint { color: var(--muted); font-weight: 400; margin-left: 4px; }

.inq-input-box {
    position: relative;
    display: flex; align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: border-color .18s, box-shadow .18s;
}
.inq-input-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,.10);
}
.inq-input-box.has-error { border-color: var(--color-error); }
.inq-input-box .inq-icon {
    position: absolute; left: 14px;
    color: #94a3b8; font-size: 15px;
    pointer-events: none; transition: color .18s;
}
.inq-input-box:focus-within .inq-icon { color: var(--color-primary); }
.inq-input-box input {
    width: 100%; height: 48px;
    padding: 0 14px 0 42px;
    border: none; border-radius: 10px;
    background: transparent; outline: none;
    font-size: 14px; color: var(--text);
}
.inq-input-box input::placeholder { color: #cbd5e1; }

.inq-textarea-box {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 12px 14px;
    transition: border-color .18s, box-shadow .18s;
}
.inq-textarea-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,.10);
}
.inq-textarea-box.has-error { border-color: var(--color-error); }
.inq-textarea-box textarea {
    width: 100%; border: none; outline: none;
    resize: vertical; min-height: 160px;
    font-size: 14px; color: var(--text);
    background: transparent; font-family: inherit; line-height: 1.6;
}
.inq-textarea-box textarea::placeholder { color: #cbd5e1; }

.inq-error {
    font-size: 12px; color: var(--color-error);
    margin-top: 6px; display: none;
    align-items: center; gap: 4px;
}
.inq-error.show { display: inline-flex; }
.inq-error::before {
    content: '\F33A';
    font-family: 'bootstrap-icons';
    font-size: 13px;
}

.inq-action-bar {
    display: flex; gap: 10px;
    padding: 18px 22px;
    background: #FAFBFC;
    border-top: 1px solid var(--border);
}
.inq-btn {
    flex: 1; height: 52px;
    border-radius: 12px;
    font-size: 14.5px; font-weight: 700;
    border: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer;
    transition: background .18s, transform .12s, box-shadow .18s;
}
.inq-btn-cancel {
    flex: 0 0 120px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--muted);
    text-decoration: none;
}
.inq-btn-cancel:hover { border-color: #94A3B8; color: var(--text); }
.inq-btn-submit {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(99,102,241,.28);
}
.inq-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(99,102,241,.34); }
.inq-btn-submit:disabled { background: var(--neutral); cursor: not-allowed; box-shadow: none; transform: none; }

.inq-success {
    text-align: center;
    padding: 56px 24px 64px;
}
.inq-success-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #ECFDF5;
    color: #10B981;
    display: grid; place-items: center;
    margin: 0 auto 16px;
    font-size: 36px;
}
.inq-success h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; }
.inq-success p { font-size: 14px; color: var(--muted); margin: 8px 0 22px; line-height: 1.6; }

/* ════════════════════════════
   즐겨찾기한 매물 페이지 (users/favorites.html)
════════════════════════════ */
.fav-page {
    padding: 20px 16px 80px;
    max-width: 720px;
    margin: 0 auto;
}
.fav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fav-header h1 {
    font-size: 18px;
    font-weight: 700;
    color: #1d2939;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fav-header h1 i { color: #EF4444; }
.fav-count { font-size: 13px; color: #667085; }
.fav-count strong { color: #1d2939; }

.fav-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #667085;
    text-decoration: none;
    margin-bottom: 8px;
}
.fav-back:hover { color: var(--blue); }

.fav-list { display: flex; flex-direction: column; gap: 10px; }

.fav-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.fav-card:hover {
    border-color: #FECACA;
    box-shadow: 0 4px 16px rgba(239,68,68,.08);
    transform: translateY(-1px);
    color: inherit;
}

.fav-thumb {
    width: 92px; height: 92px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    position: relative;
}
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-thumb .fav-heart {
    position: absolute;
    top: 6px; left: 6px;
    width: 24px; height: 24px;
    background: rgba(239,68,68,.95);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.fav-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fav-type {
    font-size: 11.5px;
    font-weight: 700;
    color: #6366F1;
    background: #EEF2FF;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-block;
    align-self: flex-start;
}
.fav-title {
    font-size: 15px; font-weight: 700; color: #1D2939;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fav-price { font-size: 14px; font-weight: 700; color: var(--blue); }
.fav-addr {
    font-size: 12.5px; color: #667085;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fav-meta { font-size: 11.5px; color: #98A2B3; margin-top: 2px; }
.fav-meta i { margin-right: 2px; }

.fav-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 1px solid #FECACA;
    background: #fff;
    color: #EF4444;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, transform .15s;
    font-size: 13px;
}
.fav-remove:hover {
    background: #FEF2F2;
    transform: scale(1.08);
}

.fav-empty {
    text-align: center;
    padding: 60px 20px;
    color: #98A2B3;
    background: #fff;
    border: 1px dashed #E5E7EB;
    border-radius: 16px;
}
.fav-empty i { font-size: 36px; color: #FCA5A5; display: block; margin-bottom: 10px; }
.fav-empty .btn-find {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 20px;
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}
.fav-empty .btn-find:hover { background: var(--color-primary-hover); color: #fff; }

/* ════════════════════════════
   마이페이지 (users/mypage.html)
════════════════════════════ */
.mypage-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}
.profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    text-align: center;
}
.profile-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 10px;
}
.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.profile-email {
    color: #666;
    margin-bottom: 15px;
}
.menu-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.menu-item:last-child {
    border-bottom: none;
}
.menu-item:hover, .menu-item:active {
    background: #f9f9f9;
    color: #333;
}
.menu-list .menu-icon {
    margin-right: 15px;
    color: #555;
    font-size: 1.2rem;
}
.menu-list .menu-arrow {
    color: #ccc;
}

/* ════════════════════════════
   내 정보 수정 페이지 (users/mypage-edit.html)
════════════════════════════ */
.edit-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}
.edit-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.edit-card .form-label {
    font-weight: 600;
    margin-bottom: 8px;
}
.edit-card .btn-submit {
    width: 100%;
    height: auto;
    padding: 12px;
    border-radius: 8px;
    background: var(--primary-color, #0d6efd);
    color: #fff;
    font-weight: bold;
    border: none;
    margin-top: 20px;
}
.edit-card .btn-submit:hover {
    background: var(--primary-dark-color, #0b5ed7);
}

/* ════════════════════════════
   내가 보낸 판매 요청 페이지 (users/sale-requests-sent.html)
════════════════════════════ */
.srs-page {
    padding: 20px 16px 80px;
    max-width: 720px;
    margin: 0 auto;
}
.srs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.srs-header h1 {
    font-size: 18px;
    font-weight: 700;
    color: #1d2939;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.srs-header h1 i { color: var(--blue); }
.srs-count {
    font-size: 13px;
    color: #667085;
}
.srs-count strong { color: #1d2939; }

.srs-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.srs-stat {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
}
.srs-stat .label { font-size: 11px; color: #98A2B3; }
.srs-stat .value { font-size: 22px; font-weight: 700; margin-top: 2px; letter-spacing: -.01em; }
.srs-stat.pending .value  { color: #C2410C; }
.srs-stat.approved .value { color: #047857; }
.srs-stat.rejected .value { color: #B91C1C; }

.srs-list { display: flex; flex-direction: column; gap: 10px; }

.srs-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    text-decoration: none;
    color: inherit;
}
.srs-card:hover {
    border-color: #C7D2FE;
    box-shadow: 0 4px 16px rgba(99,102,241,.08);
    transform: translateY(-1px);
    color: inherit;
}
.srs-card.approved { border-color: #A7F3D0; background: linear-gradient(135deg, #ECFDF5 0%, #fff 60%); }
.srs-card.rejected { opacity: .75; }

.srs-thumb {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}
.srs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.srs-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.srs-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.srs-type {
    font-size: 11.5px;
    font-weight: 700;
    color: #6366F1;
    background: #EEF2FF;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-block;
}
.srs-status-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.srs-status-badge.pending  { background: #FFF7ED; color: #C2410C; }
.srs-status-badge.approved { background: #ECFDF5; color: #047857; }
.srs-status-badge.rejected { background: #FEF2F2; color: #B91C1C; }

.srs-title {
    font-size: 15px;
    font-weight: 700;
    color: #1D2939;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.srs-price { font-size: 14px; font-weight: 700; color: var(--blue); }
.srs-addr {
    font-size: 12.5px;
    color: #667085;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.srs-meta {
    font-size: 11.5px;
    color: #98A2B3;
    margin-top: 2px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.srs-message {
    margin-top: 8px;
    font-size: 12.5px;
    color: #475467;
    background: #F9FAFB;
    border: 1px solid #F2F4F7;
    padding: 8px 10px;
    border-radius: 8px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.srs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #98A2B3;
    background: #fff;
    border: 1px dashed #E5E7EB;
    border-radius: 16px;
}
.srs-empty i { font-size: 36px; color: #cbd5e1; display: block; margin-bottom: 10px; }
.srs-empty .btn-find {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 20px;
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}
.srs-empty .btn-find:hover { background: var(--color-primary-hover); color: #fff; }

.srs-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #667085;
    text-decoration: none;
    margin-bottom: 8px;
}
.srs-back:hover { color: var(--blue); }

/* ════════════════════════════
   지도 페이지 (villa/map.html)
════════════════════════════ */
.map-container {
    position: fixed;
    top: 56px; /* 헤더 높이 */
    left: 0;
    right: 0;
    bottom: 60px; /* 하단 탭바 높이 */
    background: #eee;
    display: flex;
    flex-direction: column;
    z-index: 10;
}
#map {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 400px;
}
.map-search-bar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 100;
}
.map-search-input {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 4px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
}
.map-search-input input {
    flex: 1;
    border: none;
    padding: 10px 8px;
    font-size: 16px;
    outline: none;
}
.map-search-input i { color: #667085; }

.btn-list-view {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}
.btn-list-view:hover {
    background: #2b57de;
    color: #fff;
}

/* 카카오 지도 커스텀 마커 오버레이 */
.custom-overlay {
    background: var(--blue);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, background-color 0.2s;
}
.custom-overlay::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 6px solid var(--blue);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}
.custom-overlay:hover {
    background: #2b57de;
    z-index: 1000;
    transform: scale(1.05);
}
.custom-overlay:hover::after {
    border-top-color: #2b57de;
}