/* Minimal Design System - Naver Real Estate Style */

/* Custom Font for Map Logo */
@font-face {
    font-family: 'Tablet Gothic Compressed';
    src: url('../../font/Tablet Gothic Compressed W02Bd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Pretendard Variable for Tab Navigation */
@font-face {
    font-family: 'Pretendard Variable';
    src: url('../../font/PretendardVariable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --sidebar-width: 390px;
    --header-height: 108px;
    --filter-height: 52px;
    --border-color: #e5e8eb;
    --text-primary: #222222;
    --text-secondary: #404040;
    --text-tertiary: #888888;
    --text-muted: #999999;
    --background-white: #ffffff;
    --background-gray: #f9f9f9;
    --background-hover: #f4f6f8;
    --primary-color: #0066FF;
    --accent-blue: #0068c3;
    --border-radius: 2px;
    --transition: all 0.2s ease;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    --box-shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--background-white);
    overflow: hidden;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

/* Header */
.header {
    height: var(--header-height);
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
}

/* Top Navigation */
.top-nav {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo h1 {
    font-size: 29px;
    font-weight: 700;
    font-family: 'Tablet Gothic Compressed', sans-serif;
    letter-spacing: 0.5px;
}

/* Syncle 로고 오로라 효과 - Syncle 부분만 */
.logo-syncle {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo:hover .logo-syncle {
    background: linear-gradient(90deg, #8A2BE2, #FF1493, #00BFFF, #00FF7F, #FFD700, #FF6347, #8A2BE2);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-flow 3s ease-in-out infinite;
}

@keyframes aurora-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ================================
   Search Styles - 노션 스타일 (header.css와 동일)
   ================================ */
.search-container {
    flex-shrink: 0;
    position: relative;
}

/* 노션 스타일 검색 박스 - 배경 강조형 */
.search-box {
    width: 420px;
    height: 44px;
    position: relative;
    background: #F7F6F3;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

/* 호버 상태 */
.search-box:hover {
    background: rgba(55, 53, 47, 0.08);
}

/* 포커스 상태 - 노션 스타일 인셋 보더 */
.search-box:focus-within {
    background: #FFFFFF;
    box-shadow: inset 0 0 0 1px #2383E2;
}

/* 노션 스타일 검색 입력 */
.search-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 12px;
    color: #37352F;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.search-input::placeholder {
    color: #9B9A97;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.search-input:focus {
    outline: none;
}

/* Success and Error states for search */
.search-box.success {
    box-shadow: inset 0 0 0 1px #00b938 !important;
}

.search-box.error {
    box-shadow: inset 0 0 0 1px #ff6b6b !important;
}

/* 노션 hoverable 스타일 검색 아이콘 */
.search-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
    color: #787774;
    transition: color 0.15s ease, background 0.15s ease;
}

.search-icon:hover {
    color: #37352F;
    background: rgba(55, 53, 47, 0.08);
}

.search-icon svg {
    width: 18px;
    height: 18px;
}

.search-icon svg path {
    fill: currentColor;
}

/* 로딩 스피너 */
.search-icon .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(120, 119, 116, 0.3);
    border-top-color: #787774;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.search-icon.loading .spinner {
    display: block;
}

.search-icon.loading svg {
    display: none;
}

.search-icon.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

/* 모바일에서 검색창 숨김 */
@media (max-width: 768px) {
    .search-container {
        display: none;
    }
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.user-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 모바일 헤더 내놓기 버튼 */
.header-register-btn {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: #191919;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-register-btn:hover {
    background: #333;
}

.header-register-btn:active {
    transform: scale(0.95);
}

@media (max-width: 1024px) {
    .header-register-btn {
        display: flex;
    }
}

.user-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.user-menu a:hover {
    color: var(--primary-color);
}

/* 내 공간 등록하기 버튼 스타일 */
.register-space-button {
    /* CSS Variables */
    --spread: 45deg;
    --shimmer-color: #ffffff;
    --radius: 6px;
    --speed: 6s;
    --cut: 0.05em;
    --bg: #000;

    /* Base Styles */
    height: 36px;
    padding: 0 20px;
    z-index: 0;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    overflow: visible;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg);
    border-radius: var(--radius);
    transform: translateZ(0);
    transition: transform 0.3s ease-in-out;
    position: relative;
    margin-right: 8px;
}

.register-space-button:active {
    transform: translateY(1px);
}

/* Spark container */
.register-space-button .spark-container {
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
    overflow: visible;
    z-index: -30;
    filter: blur(2px);
}

/* Spark */
.register-space-button .spark {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Spark before */
.register-space-button .spark-before {
    position: absolute;
    top: -50%;
    bottom: -50%;
    left: -50%;
    right: -50%;
    width: auto;
    rotate: 0;
    background: conic-gradient(
        from calc(270deg - (var(--spread) * 0.5)),
        transparent 0,
        var(--shimmer-color) var(--spread),
        transparent var(--spread),
        transparent 360deg
    );
    animation: spin-around var(--speed) linear infinite;
    translate: 0 0;
}

@keyframes spin-around {
    0% {
        rotate: 0deg;
    }
    100% {
        rotate: 360deg;
    }
}

/* Button content */
.register-space-button .button-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.register-space-button .text-blue {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 18px;
    font-family: 'Pretendard Variable', sans-serif;
}

.register-space-button .text-gray {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.3px;
    line-height: 18px;
    font-family: 'Pretendard Variable', sans-serif;
}

/* Highlight */
.register-space-button .highlight {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    padding: 4px 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: inset 0 -8px 10px rgba(255, 255, 255, 0.12);
    transform: translateZ(0);
    transition: all 0.3s ease-in-out;
}

.register-space-button:hover .highlight {
    box-shadow: inset 0 -6px 10px rgba(255, 255, 255, 0.24);
}

.register-space-button:active .highlight {
    box-shadow: inset 0 -10px 10px rgba(255, 255, 255, 0.24);
}

/* Backdrop */
.register-space-button .backdrop {
    position: absolute;
    z-index: -20;
    background: #000;
    border-radius: var(--radius);
    inset: var(--cut);
}

/* User Profile Styles */
.profile-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.profile-container:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background: linear-gradient(135deg, #667085 0%, #475467 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 50%;
}

.user-avatar span {
    display: flex;
}

.user-info {
    display: none; /* 기본적으로 숨김 - 필요시 표시 */
    flex-direction: column;
}

.user-name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.user-role {
    color: var(--text-tertiary);
    font-size: 11px;
    margin-top: 2px;
}

.dropdown-icon {
    font-size: 10px;
    color: var(--text-secondary);
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.profile-container.active .dropdown-icon {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px); /* 아래로 나오도록 설정 */
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    border: 1px solid var(--border-color);
}

.user-dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.user-dropdown-menu .menu-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
    position: relative;
}

.user-dropdown-menu .menu-item:hover {
    background: var(--background-gray);
}

.user-dropdown-menu .menu-item span {
    font-weight: 500;
}

.user-dropdown-menu .menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.user-dropdown-menu .logout-item {
    color: var(--text-tertiary);
}

.user-dropdown-menu .logout-item:hover {
    color: #ff6b6b;
}

/* Tab Navigation */
.tab-nav {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 2px;
}

.tab-item {
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.tab-item:hover {
    color: #000;
}

.tab-item.active {
    color: #000;
    font-weight: 600;
    position: relative;
}


.tab-separator {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 8px;
}

/* Tab dropdown styles */
.tab-dropdown {
    position: relative;
    overflow: visible;
}

/* 드롭다운 화살표만 스타일 적용 (좌측 아이콘 제외) */
.tab-dropdown .fa-chevron-down {
    font-size: 10px;
    margin-left: 4px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

/* 드롭다운 열릴 때 화살표만 회전 */
.tab-dropdown.open .fa-chevron-down {
    transform: rotate(180deg);
}

.tab-dropdown:hover {
    color: #000;
}

.tab-dropdown.active {
    color: #000;
    font-weight: 600;
}

/* Filter Bar */
.filter-bar {
    height: var(--filter-height);
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
}

.filter-button {
    height: 32px;
    padding: 0 16px;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: visible;
}

.filter-button:hover {
    background: #f7f7f7;
    border-color: #e0e0e0;
}

.filter-button.active {
    background: #000;
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
    z-index: 0;
}

.filter-button.active span {
    position: relative;
    z-index: 2;
}

/* Shimmer container for active filter buttons */
.filter-button.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
        from calc(270deg - 22.5deg),
        transparent 0,
        #ffffff 45deg,
        transparent 45deg,
        transparent 360deg
    );
    border-radius: 16px;
    animation: filter-shimmer 6s linear infinite;
    z-index: -2;
}

@keyframes filter-shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Inner backdrop for active filter */
.filter-button.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    border-radius: 14px;
    z-index: -1;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown-button {
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-dropdown-button i {
    font-size: 10px;
    transition: var(--transition);
}

.filter-dropdown.open .filter-dropdown-button i {
    transform: rotate(180deg);
}

.filter-separator {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 8px;
}

.filter-reset {
    margin-left: auto;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--background-white);
    transition: var(--transition);
}

.filter-reset:hover {
    background: var(--background-hover);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    position: relative;
    height: calc(100vh - var(--header-height) - var(--filter-height));
}

/* Sidebar - Property List */
.sidebar {
    width: var(--sidebar-width);
    background: var(--background-white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 100;
    transition: var(--transition);
}

/* Property Detail Panel */
.property-detail-panel {
    width: 520px;  /* 380px에서 520px로 증가 (약 37% 확대) */
    background: var(--background-white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: absolute;
    left: var(--sidebar-width);
    top: 0;
    bottom: 0;
    z-index: 99;
    transform: translateX(-520px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.property-detail-panel.active {
    transform: translateX(0);
}

/* Detail Panel Header */
.detail-panel-header {
    height: 48px;
    padding: 0 16px 0 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.detail-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-panel-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: var(--transition);
    margin-right: -4px;  /* Move button slightly to the right */
}

.detail-panel-close:hover {
    color: var(--text-primary);
}

/* Detail Content */
.detail-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Image Gallery */
.detail-image-gallery {
    width: 100%;
    height: 380px;  /* 280px에서 380px로 증가 */
    background: var(--background-gray);
    position: relative;
    overflow: hidden;
}

.detail-image-main {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}

.detail-image-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.detail-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-image-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
}

.detail-image-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.detail-image-btn:hover {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* 모바일/태블릿에서 네비게이션 버튼 숨기기 */
@media (max-width: 1024px) {
    .detail-image-controls {
        display: none;
    }
}

.detail-image-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Property Information */
.detail-property-info {
    padding: 20px;
    border-bottom: 3px solid var(--border-color);
}

.detail-property-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Price Display Styles from product-detail.html */
.price-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0;
}

.price-current {
    color: #18181B;
    font-size: 24px;
    font-family: 'Pretendard Variable', sans-serif;
    font-weight: 700;
}

.price-original {
    color: #71717A;
    font-size: 18px;
    font-family: 'Pretendard Variable', sans-serif;
    font-weight: 700;
    text-decoration: line-through;
}

.price-current .price-period {
    color: #71717A;
    font-size: 14px !important;
    font-family: 'Pretendard Variable', sans-serif;
    font-weight: 400;
    margin-left: 0.25rem;
    display: inline-block;
    vertical-align: baseline;
}

.discount-badge {
    margin-bottom: 0.5rem;
}

/* 가격 옆 할인율 표시 스타일 */
.discount-percent {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    color: #ff4444;
    font-size: 18px;
    font-weight: 700;
    margin-right: 12px;
    vertical-align: baseline;
    animation: discount-pulse 2s ease-in-out infinite;
}

.discount-percent .arrow-down {
    font-size: 16px;
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes discount-pulse {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(2px);
    }
}

.price-container {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
}

/* MagicUI Animated Shiny Text */
.animated-shiny-text-wrapper {
    z-index: 10;
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
}

.animated-shiny-text-container {
    position: relative;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f5f5f5;
    transition: all 0.3s ease-in;
    cursor: pointer;
    display: inline-flex;
}

.animated-shiny-text-container:hover {
    background-color: #e5e5e5;
    border-color: rgba(0, 0, 0, 0.1);
}

.animated-shiny-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 1rem;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease-out;
    position: relative;
}

.animated-shiny-text .emoji {
    margin-right: 0.25rem;
    font-size: 14px;
}

.animated-shiny-text .shiny-text {
    background: linear-gradient(
        105deg,
        #939393 0%,
        #939393 45%,
        #000000 50%,
        #939393 55%,
        #939393 100%
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shiny-text 6s ease-in-out infinite;
}

@keyframes shiny-text {
    0% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.animated-shiny-text-container:hover .animated-shiny-text .shiny-text {
    -webkit-text-fill-color: #525252;
    transition: -webkit-text-fill-color 0.3s ease;
}

.animated-shiny-text .arrow-icon {
    margin-left: 0.25rem;
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
}

.animated-shiny-text-container:hover .arrow-icon {
    transform: translateX(2px);
}

/* Company Section Styles from product-detail.html */
.detail-company-section {
    padding: 20px;
    background: var(--background-white);
    border-bottom: 3px solid var(--border-color);
}

.company-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0;
}

.company-logo {
    width: 40px;
    height: 40px;
    background: #F2F2F2;
    border-radius: 50%;
    flex-shrink: 0;
}

.company-info {
    flex: 1;
}

.company-info h3 {
    color: black;
    font-size: 15.25px;
    font-family: 'Pretendard Variable', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company-info h3 a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.company-info h3 a:hover {
    opacity: 0.8;
}

.company-arrow {
    width: 14px;
    height: 14px;
    margin-left: 0.25em;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.company-info h3 a:hover .company-arrow {
    transform: translateX(3px);
}


.company-intro {
    color: #808080;
    font-size: 11.25px;
    font-family: 'Pretendard Variable', sans-serif;
    font-weight: 600;
}

/* MagicUI Sparkles Text */
.sparkles-text-container {
    position: relative;
    display: inline-block;
}

.sparkles-text {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.sparkle {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    opacity: 0;
    animation: sparkle-animation 2s ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #A07CFE 0%, #FE8FB5 100%);
    border-radius: 100%;
}

.sparkle::after {
    transform: rotate(90deg);
}

@keyframes sparkle-animation {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* Sparkle positions and delays */
.sparkle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 0.4s;
}

.sparkle:nth-child(3) {
    top: 30%;
    left: 35%;
    animation-delay: 0.8s;
}

.sparkle:nth-child(4) {
    top: 70%;
    left: 50%;
    animation-delay: 1.2s;
}

.sparkle:nth-child(5) {
    top: 10%;
    left: 60%;
    animation-delay: 1.6s;
}

.sparkle:nth-child(6) {
    top: 50%;
    left: 70%;
    animation-delay: 0.2s;
}

.sparkle:nth-child(7) {
    top: 80%;
    left: 80%;
    animation-delay: 0.6s;
}

.sparkle:nth-child(8) {
    top: 25%;
    left: 85%;
    animation-delay: 1s;
}

.sparkle:nth-child(9) {
    top: 65%;
    left: 90%;
    animation-delay: 1.4s;
}

.sparkle:nth-child(10) {
    top: 40%;
    left: 95%;
    animation-delay: 1.8s;
}

/* Message button using register-button style */
.register-button.message-btn {
    width: 100%;
    margin-bottom: 0;
    margin-top: 1rem;
}

/* Register button styles */
.register-button {
    /* CSS Variables */
    --spread: 45deg;
    --shimmer-color: #ffffff;
    --radius: 100px;
    --speed: 6s;
    --cut: 0.05em;
    --bg: #000;

    /* Base Styles */
    width: 100%;
    height: 40px;
    z-index: 0;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg);
    border-radius: var(--radius);
    transform: translateZ(0);
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.register-button:active {
    transform: translateY(1px);
}

/* Spark container */
.register-button .spark-container {
    position: absolute;
    inset: 0;
    overflow: visible;
    z-index: -30;
    filter: blur(3px);
}

/* Spark */
.register-button .spark {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    border-radius: 0;
    mask: none;
}

/* Spark before */
.register-button .spark-before {
    position: absolute;
    inset: -100%;
    width: auto;
    rotate: 0;
    background: conic-gradient(
        from calc(270deg - (var(--spread) * 0.5)),
        transparent 0,
        var(--shimmer-color) var(--spread),
        transparent var(--spread),
        transparent 360deg
    );
    animation: spin-around var(--speed) linear infinite;
    translate: 0 0;
}

/* Button content */
.register-button .button-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.register-button .text-blue {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 18px;
    font-family: 'Pretendard Variable', sans-serif;
}

/* Highlight */
.register-button .highlight {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    padding: 4px 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: inset 0 -8px 10px rgba(255, 255, 255, 0.12);
    transform: translateZ(0);
    transition: all 0.3s ease-in-out;
}

.register-button:hover .highlight {
    box-shadow: inset 0 -6px 10px rgba(255, 255, 255, 0.24);
}

.register-button:active .highlight {
    box-shadow: inset 0 -10px 10px rgba(255, 255, 255, 0.24);
}

/* Backdrop */
.register-button .backdrop {
    position: absolute;
    z-index: -20;
    background: var(--bg);
    border-radius: var(--radius);
    inset: var(--cut);
}

/* Property Details Grid */
.detail-property-specs {
    padding: 20px;
    background: var(--background-white);
    border-bottom: 3px solid var(--border-color);
}

.detail-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;  /* 12px에서 16px로 */
}

.detail-spec-item {
    display: flex;
    flex-direction: column;
    gap: 6px;  /* 4px에서 6px로 */
}

.detail-spec-label {
    font-size: 13px;  /* 12px에서 13px로 */
    color: var(--text-tertiary);
}

.detail-spec-value {
    font-size: 15px;  /* 14px에서 15px로 */
    font-weight: 600;
    color: var(--text-primary);
}

/* Property Description */
.detail-property-description {
    padding: 20px;
    border-bottom: 3px solid var(--border-color);
}

.detail-section-title {
    font-size: 18px;  /* 16px에서 18px로 */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.detail-description-text {
    font-size: 15px;  /* 14px에서 15px로 */
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;  /* 줄바꿈 유지 */
    word-break: break-word;  /* 긴 단어 줄바꿈 */
}

/* 설명 내 HTML 요소 스타일 */
.detail-description-text p {
    margin: 0 0 12px 0;
}

.detail-description-text p:last-child {
    margin-bottom: 0;
}

.detail-description-text ul,
.detail-description-text ol {
    margin: 12px 0;
    padding-left: 20px;
}

.detail-description-text li {
    margin: 4px 0;
}

.detail-description-text strong {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-description-text em {
    font-style: italic;
}

.detail-description-text a {
    color: var(--accent-blue);
    text-decoration: none;
}

.detail-description-text a:hover {
    text-decoration: underline;
}

/* Property Features */
.detail-property-features {
    padding: 20px;
    border-bottom: 3px solid var(--border-color);
}

.detail-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-feature-tag {
    padding: 6px 12px;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Map Preview */
.detail-map-preview {
    height: 200px;
    background: var(--background-gray);
    position: relative;
    cursor: pointer;
}

.detail-map {
    width: 100%;
    height: 100%;
}

.detail-map-overlay {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

/* Contact Section */
.detail-contact-section {
    padding: 20px;
    background: var(--background-white);
    position: sticky;
    bottom: 0;
    border-top: 1px solid var(--border-color);
    z-index: 999;
}

.detail-contact-buttons {
    display: flex;
    gap: 8px;
}

.detail-contact-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Icon-only button style */
.detail-contact-btn.icon-only {
    flex: 1;
    padding: 0;
    min-width: 44px;
}

.detail-contact-btn.icon-only i {
    font-size: 18px;
}

/* Reserve button with rainbow hover effect */
.detail-contact-btn.reserve-btn {
    flex: 8;
    background: #000;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    padding: 0;
}

.detail-contact-btn.reserve-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #9400d3,
        #ff0000
    );
    background-size: 400% 100%;
    border-radius: 8px;
    opacity: 0;
    z-index: -2;
    animation: rainbow-shift 3s linear infinite;
    transition: opacity 0.3s ease;
}

.detail-contact-btn.reserve-btn::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: #000;
    border-radius: 7px;
    z-index: -1;
}

.detail-contact-btn.reserve-btn span {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    line-height: 1;
}

.detail-contact-btn.reserve-btn:hover::before {
    opacity: 1;
}

.detail-contact-btn.reserve-btn:hover {
    background: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-contact-btn.reserve-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.detail-contact-primary {
    background: var(--primary-color);
    color: white;
}

.detail-contact-primary:hover {
    background: #00b938;
}

.detail-contact-secondary {
    background: var(--background-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Heart button hover effect - filled with red */
.detail-contact-btn.heart-btn:hover i {
    color: #ff6b6b;
    font-weight: 900; /* Simulate filled heart */
}

/* Phone button hover effect - green */
.detail-contact-btn.phone-btn:hover i {
    color: #00b938;
}

/* Chat button hover effect - blue */
.detail-contact-btn.chat-btn:hover i {
    color: #3b82f6;
}

/* Phone tooltip - desktop only */
.phone-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #000000;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Pretendard Variable', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.phone-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #000000;
}

.detail-contact-btn.phone-btn {
    position: relative;
}

@media (min-width: 1024px) {
    .detail-contact-btn.phone-btn:hover .phone-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-12px);
    }
}

.sidebar-header {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--background-white);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.sidebar-header:active {
    cursor: grabbing;
}

.cluster-filter-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #F0F7FF;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
}

.cluster-filter-info span {
    font-weight: 600;
    color: #1E88E5;
}

.clear-filter-btn {
    padding: 4px 10px;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.clear-filter-btn:hover {
    background: #F5F5F5;
    border-color: #BDBDBD;
}

.sort-and-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sort-options {
    display: flex;
    gap: 2px;
}

.sort-button {
    padding: 6px 12px;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.sort-button:hover {
    color: var(--text-secondary);
}

.sort-button.active {
    color: var(--text-primary);
    font-weight: 600;
}

.property-count {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Property List */
.property-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.property-card {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 12px;
    position: relative;
}

.property-card:hover {
    background: var(--background-hover);
}

.property-card.active {
    background: #f0f8ff;
}

.property-image {
    width: 140px;
    height: 105px;
    background: var(--background-gray);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.property-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.property-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-distance {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.property-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.property-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.property-price-unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 2px;
}

.property-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.property-tag {
    padding: 2px 6px;
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.property-engagement {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.property-engagement i {
    color: #ff6b6b;
    font-size: 14px;
}

/* Property Detail Link */
.property-detail-link {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.property-detail-link:hover {
    color: var(--text-secondary);
}

.property-detail-link i {
    font-size: 8px;
    transition: var(--transition);
}

.property-detail-link:hover i {
    transform: translateX(2px);
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    background: #f8f8f8;
    transition: margin-left 0.3s ease;
}

/* Adjust map when detail panel is active - only on desktop */
@media (min-width: 1025px) {
    .main-content.detail-active .map-container {
        margin-left: 520px;
    }
}

#map {
    width: 100%;
    height: 100%;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-control-group {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-control-button {
    width: 40px;
    height: 40px;
    background: var(--background-white);
    border: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

/* Increase touch target size on mobile */
@media (max-width: 768px) {
    .map-control-button {
        width: 48px;
        height: 48px;
    }

    .map-control-group {
        border-radius: 4px;
    }
}

.map-control-button:last-child {
    border-bottom: none;
}

.map-control-button:hover {
    background: var(--background-hover);
}

.map-control-button.active {
    background: var(--primary-color);
    color: white;
}

/* Map Cluster Styles */
.map-cluster {
    background: rgba(35, 131, 226, 0.85);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-cluster:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Type-specific cluster colors */
.map-cluster.rental {
    background: rgba(35, 131, 226, 0.85);
}

.map-cluster.meeting {
    background: rgba(144, 101, 176, 0.85);
}

.map-cluster.warehouse {
    background: rgba(217, 115, 13, 0.85);
}

/* Progressive sizing based on count */
.map-cluster.size-1 {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.map-cluster.size-10 {
    width: 44px;
    height: 44px;
    font-size: 14px;
}

.map-cluster.size-20 {
    width: 48px;
    height: 48px;
    font-size: 15px;
}

.map-cluster.size-30 {
    width: 56px;
    height: 56px;
    font-size: 16px;
}

.map-cluster.size-40 {
    width: 64px;
    height: 64px;
    font-size: 17px;
}

.map-cluster.size-50 {
    width: 72px;
    height: 72px;
    font-size: 18px;
}

.map-cluster.size-100 {
    width: 80px;
    height: 80px;
    font-size: 19px;
}

/* Map Marker */
.map-marker {
    background: white;
    border: 2px solid #2383E2;
    color: #2383E2;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.map-marker.active {
    background: #2383E2;
    color: white;
}

/* Scrollbar Styling */
.property-list::-webkit-scrollbar {
    width: 6px;
}

.property-list::-webkit-scrollbar-track {
    background: var(--background-gray);
}

.property-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.property-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading State */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-tertiary);
}

.loading-spinner i {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state styles */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-tertiary);
}

.empty-state.visible {
    display: flex;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state-subtext {
    font-size: 14px;
    color: var(--text-muted);
}

/* Error message */
.error-message {
    display: none;
    padding: 16px 20px;
    background: #fff5f5;
    border-left: 4px solid #ff6b6b;
    color: #c53030;
    font-size: 14px;
    margin: 16px;
    border-radius: 4px;
}

.error-message.visible {
    display: block;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 320px;
    z-index: 1000;
    margin-top: 8px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* Range Slider Container */
.range-slider-container {
    padding: 20px 0;
}

.range-values {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.range-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.range-input-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.range-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.range-input:focus {
    outline: none;
    border-color: #000;
}

/* Dual Handle Range Slider */
.range-slider {
    position: relative;
    height: 40px;
    margin: 0 10px 20px 10px;
}

.range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e8eb;
    border-radius: 2px;
    transform: translateY(-50%);
}

.range-track-active {
    position: absolute;
    height: 4px;
    background: #000;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.range-handle {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.range-handle:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.range-handle:active {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 10px;
}

.range-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Dropdown Actions */
.dropdown-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.dropdown-btn {
    flex: 1;
    height: 38px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.dropdown-btn-reset {
    background: var(--background-gray);
    color: var(--text-secondary);
}

.dropdown-btn-reset:hover {
    background: #e5e8eb;
}

.dropdown-btn-apply {
    background: #000;
    color: white;
}

.dropdown-btn-apply:hover {
    background: #333;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .property-detail-panel {
        width: 480px;  /* 중간 크기 화면에서는 480px */
        transform: translateX(-480px);
    }

    .property-detail-panel.active {
        transform: translateX(0);
    }

    .main-content.detail-active .map-container {
        margin-left: 480px;
    }
}

@media (max-width: 1400px) {
    .property-detail-panel {
        width: 420px;  /* 조금 작은 화면에서는 420px */
        transform: translateX(-420px);
    }

    .property-detail-panel.active {
        transform: translateX(0);
    }

    .main-content.detail-active .map-container {
        margin-left: 420px;
    }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 340px;
    }

    .property-detail-panel {
        position: absolute;
        left: var(--sidebar-width);
        width: 380px;  /* 태블릿에서는 380px */
        height: 100%;
        z-index: 98;
        transform: translateX(-380px);
    }

    .property-detail-panel.active {
        transform: translateX(0);
    }

    /* 태블릿에서는 지도가 detail panel에 영향받지 않음 */
    .main-content.detail-active .map-container {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }

    .logo h1 {
        font-size: 29px;
        letter-spacing: 0.5px;
    }

    .logo {
        margin-right: 12px;
    }

    .search-container {
        flex: 1;
        max-width: none;
    }

    .register-space-button {
        display: none;
    }

    /* 탭 네비게이션 가로 스크롤 */
    .tab-nav {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        padding: 0 16px;
    }

    .tab-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }

    .tab-item,
    .tab-dropdown {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* 초기화 버튼 숨김 */
    .filter-reset {
        display: none;
    }

    /* 필터 바 가로 스크롤 */
    .filter-bar {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        padding: 0 16px;
    }

    .filter-bar::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }

    .filter-button {
        flex-shrink: 0;
    }

    /* 드롭다운 메뉴 모바일 스타일 */
    .dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: unset;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
        margin-top: 0;
        z-index: 2000;
    }

    .tab-dropdown {
        position: static;
    }

    /* 바텀시트 오버레이 */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* 바텀시트 스타일 */
    .sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 20vh; /* 기본 20% 높이 */
        background: white;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .sidebar.mini {
        transform: translateY(calc(100% - 70px)); /* 손잡이 영역만 표시 */
        height: 70px; /* 손잡이 높이만큼만 설정 */
    }

    .sidebar.expanded {
        transform: translateY(0);
        height: 50vh;
    }

    .sidebar.full {
        transform: translateY(0);
        height: 90vh;
    }

    /* 드래그 핸들 */
    .sidebar-handle {
        width: 40px;
        height: 4px;
        background: #D1D5DB;
        border-radius: 2px;
        margin: 12px auto 8px auto;
        flex-shrink: 0;
        cursor: grab;
    }

    .sidebar-handle:active {
        cursor: grabbing;
    }

    /* Sidebar 헤더 수정 */
    .sidebar-header {
        flex-shrink: 0;
        padding: 12px 20px;
    }

    /* Property List 스크롤 영역 */
    .property-list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .property-detail-panel {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 1002;
        transform: translateY(100%);
        margin-left: 0;
    }

    .property-detail-panel.active {
        transform: translateY(0);
        margin-left: 0;
    }

    /* Mobile optimizations for detail panel */
    .detail-panel-header {
        height: 56px;
        padding: 0 20px;
    }

    .detail-image-gallery {
        height: 360px;  /* 모바일에서도 큰 이미지 */
    }

    .detail-property-info {
        padding: 24px 20px;
    }

    .detail-property-specs {
        padding: 20px;
    }

    .detail-property-description {
        padding: 24px 20px;
    }

    .detail-property-features {
        padding: 24px 20px;
    }

    .detail-contact-section {
        padding: 20px;
    }
}

@media (min-width: 769px) {
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid #00b938;
}

.toast.error {
    border-left: 4px solid #ff6b6b;
}

.toast.info {
    border-left: 4px solid #4a9eff;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: #00b938; }
.toast.error .toast-icon { color: #ff6b6b; }
.toast.info .toast-icon { color: #4a9eff; }

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    white-space: pre-line;
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Search History Dropdown Styles */
.search-history-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f3f4f6;
}

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

.history-item:hover {
    background: #f9fafb;
}

.history-header {
    padding: 8px 16px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-history {
    color: #ef4444;
    cursor: pointer;
    font-size: 11px;
}

.clear-history:hover {
    text-decoration: underline;
}

/* ========================================
   노션 스타일 오버라이드 - Map Page
   ======================================== */

/* CSS 변수 노션 스타일로 통합 */
:root {
    /* 노션 스타일 색상으로 매핑 */
    --text-primary: #37352F;
    --text-secondary: #787774;
    --text-tertiary: #9B9A97;
    --text-muted: #9B9A97;
    --border-color: rgba(55, 53, 47, 0.09);
    --background-white: #FFFFFF;
    --background-gray: #F7F6F3;
    --background-hover: rgba(55, 53, 47, 0.08);
    --border-radius: 6px;
    --transition: all 0.2s ease;
}

/* ========================================
   헤더 & 탭 네비게이션 - 노션 스타일
   ======================================== */

/* 탭 네비게이션 노션 스타일 */
.tab-nav {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 20px;
    gap: 2px;
}

.tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0 16px;
    height: 36px;
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

/* 첫 번째 탭 아이템 좌측 정렬 (로고와 맞춤) */
.tab-item:first-child {
    margin-left: -16px;
}

.tab-item:hover {
    background: var(--background-hover);
    color: var(--text-primary);
}

.tab-item.active {
    color: var(--text-primary);
    font-weight: 600;
    background: transparent;
}

/* 탭 아이콘 스타일 */
.tab-item .tab-icon {
    font-size: 14px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    flex-shrink: 0;
}

.tab-item.active .tab-icon {
    opacity: 1;
}

/* 탭 드롭다운 화살표 */
.tab-item.tab-dropdown .fa-chevron-down {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.6;
}

/* ========================================
   서브카테고리 필터 바 - 노션 스타일 (product.html 기반)
   ======================================== */

.subcategory-filter-bar {
    width: 100%;
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.subcategory-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    animation: fadeInSubcategory 0.3s ease;
}

@keyframes fadeInSubcategory {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 서브카테고리 필터 버튼 - pill 스타일 */
.subcategory-filter {
    padding: 8px 16px;
    background: var(--background-white);
    border: 1px solid rgba(55, 53, 47, 0.16);
    border-radius: 20px;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subcategory-filter:hover {
    border-color: var(--text-primary);
    background: var(--background-gray);
    color: var(--text-primary);
}

.subcategory-filter.active {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

.subcategory-filter i {
    font-size: 12px;
    opacity: 0.8;
}

.subcategory-filter.active i {
    opacity: 1;
}

/* 전체 보기 버튼 */
.subcategory-filter.all-filter {
    background: var(--background-gray);
}

.subcategory-filter.all-filter.active {
    background: var(--text-primary);
    color: #ffffff;
}

/* ========================================
   모바일 서브카테고리 접기/펼치기
   ======================================== */

/* 접기 버튼 - 데스크톱에서 숨김 */
.subcategory-collapse-btn {
    display: none;
}

/* 접힌 상태 바 - 데스크톱에서 숨김 */
.subcategory-collapsed-bar {
    display: none !important;
}

/* 모바일에서만 표시 */
@media (max-width: 768px) {
    /* 서브카테고리 필터 바 - 모바일 */
    .subcategory-filter-bar {
        padding: 10px 16px;
        padding-right: 50px; /* 접기 버튼 공간 */
        position: relative;
        max-height: none;
        transition: all 0.3s ease;
    }

    /* 서브카테고리 필터 컨테이너 */
    .subcategory-filters {
        gap: 6px;
    }

    /* 서브카테고리 버튼 - 모바일 */
    .subcategory-filter {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 접기 버튼 */
    .subcategory-collapse-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        background: var(--background-gray);
        border: 1px solid var(--border-color);
        border-radius: 50%;
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 10;
    }

    .subcategory-collapse-btn:hover {
        background: var(--background-hover);
        color: var(--text-primary);
    }

    .subcategory-collapse-btn i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    /* 접힌 상태일 때 화살표 방향 변경 */
    .subcategory-filter-bar.collapsed .subcategory-collapse-btn i {
        transform: rotate(180deg);
    }

    /* 접힌 상태 바 */
    .subcategory-collapsed-bar {
        display: none;
        width: 100%;
        background: var(--background-white);
        border-bottom: 1px solid var(--border-color);
        padding: 10px 16px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .subcategory-collapsed-bar.show {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    .subcategory-collapsed-bar:hover {
        background: var(--background-hover);
    }

    .collapsed-filter-text {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-primary);
    }

    .collapsed-filter-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 6px;
        background: var(--text-primary);
        color: #ffffff;
        border-radius: 9px;
        font-size: 11px;
        font-weight: 600;
    }

    .subcategory-collapsed-bar i {
        margin-left: auto;
        font-size: 12px;
        color: var(--text-secondary);
        transition: transform 0.3s ease;
    }

    /* 서브카테고리 바 접힌 상태 */
    .subcategory-filter-bar.collapsed {
        display: none !important;
    }
}

/* 드롭다운 탭 스타일 */
.tab-dropdown {
    background: transparent;
}

.tab-dropdown:hover {
    background: var(--background-hover);
}

.tab-dropdown.active,
.tab-dropdown.open {
    background: rgba(55, 53, 47, 0.08);
    color: var(--text-primary);
}

/* ========================================
   사이드바 헤더 - 노션 스타일
   ======================================== */

.sidebar-header {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
}

/* 노션 스타일 섹션 타이틀 - 사이드바 */
.sidebar-header .notion-section-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sidebar-header .notion-section-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header .notion-section-icon-wrapper i {
    font-size: 14px;
    color: #ffffff;
}

.sidebar-header .notion-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sidebar-header .notion-section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 정렬 버튼 노션 스타일 */
.sort-options {
    display: flex;
    gap: 4px;
}

.sort-button {
    padding: 6px 12px;
    background: var(--background-gray);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sort-button:hover {
    background: rgba(55, 53, 47, 0.08);
    color: var(--text-primary);
}

.sort-button.active {
    background: var(--text-primary);
    color: #ffffff;
}

/* 매물 개수 */
.property-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.property-count span {
    font-weight: 600;
    color: var(--text-primary);
}

/* 클러스터 필터 정보 */
.cluster-filter-info {
    background: rgba(35, 131, 226, 0.08);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.cluster-filter-info span {
    font-weight: 600;
    color: #2383E2;
}

.clear-filter-btn {
    background: var(--background-white);
    border: 1px solid rgba(55, 53, 47, 0.16);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.clear-filter-btn:hover {
    background: var(--background-gray);
    border-color: rgba(55, 53, 47, 0.3);
}

/* ========================================
   매물 카드 - 노션 스타일
   ======================================== */

.property-card {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--background-white);
}

.property-card:hover {
    background: var(--background-hover);
}

.property-card.active {
    background: rgba(35, 131, 226, 0.06);
}

/* 매물 이미지 */
.property-image {
    border-radius: 8px;
    overflow: hidden;
}

/* 매물 뱃지 - 노션 태그 스타일 */
.property-badge {
    background: rgba(55, 53, 47, 0.8);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* 매물 타이틀 */
.property-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* 매물 서브타이틀 */
.property-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 매물 가격 */
.property-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.property-price-unit {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* 매물 태그 */
.property-tag {
    padding: 3px 8px;
    background: var(--background-gray);
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* 상세보기 링크 */
.property-detail-link {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: color 0.15s ease;
}

.property-detail-link:hover {
    color: #2383E2;
}

/* ========================================
   상세 패널 - 노션 스타일
   ======================================== */

/* 상세 패널 헤더 */
.detail-panel-header {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
}

.detail-panel-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.detail-panel-close {
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.15s ease;
}

.detail-panel-close:hover {
    background: var(--background-hover);
    color: var(--text-primary);
}

/* 상세 패널 정보 영역 */
.detail-property-info {
    border-bottom: 1px solid var(--border-color);
}

.detail-property-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.4;
}

/* 가격 표시 */
.price-current {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.price-original {
    font-size: 16px;
    color: var(--text-tertiary);
}

.discount-percent {
    color: #E03E3E;
    font-weight: 600;
}

/* 회사 섹션 */
.detail-company-section {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
}

.company-logo {
    background: var(--background-gray);
    border-radius: 50%;
}

.company-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.company-intro {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 스펙 그리드 */
.detail-property-specs {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
}

.detail-spec-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.detail-spec-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 섹션 타이틀 - 노션 스타일 */
.detail-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.detail-section-title .section-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-gray);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* 설명 텍스트 */
.detail-description-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 편의시설 태그 */
.detail-feature-tag {
    padding: 6px 12px;
    background: var(--background-gray);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* 지도 미리보기 오버레이 */
.detail-map-overlay {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 연락처 버튼 영역 */
.detail-contact-section {
    background: var(--background-white);
    border-top: 1px solid var(--border-color);
}

/* 보조 버튼 */
.detail-contact-secondary {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.detail-contact-secondary:hover {
    background: var(--background-hover);
    border-color: rgba(55, 53, 47, 0.2);
}

/* 예약 버튼 - 노션 스타일 */
.detail-contact-btn.reserve-btn {
    background: var(--text-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.detail-contact-btn.reserve-btn::before,
.detail-contact-btn.reserve-btn::after {
    display: none;
}

.detail-contact-btn.reserve-btn:hover {
    opacity: 0.85;
    transform: none;
    box-shadow: none;
}

/* ========================================
   드롭다운 메뉴 - 노션 스타일
   ======================================== */

.dropdown-menu {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* 범위 입력 */
.range-input-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.range-input {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s ease;
}

.range-input:focus {
    outline: none;
    border-color: var(--text-primary);
}

/* 범위 슬라이더 */
.range-track {
    background: var(--background-gray);
}

.range-track-active {
    background: var(--text-primary);
}

.range-handle {
    background: var(--background-white);
    border: 2px solid var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 드롭다운 버튼 */
.dropdown-btn-reset {
    background: var(--background-gray);
    color: var(--text-secondary);
    border: none;
    border-radius: 6px;
    font-weight: 500;
}

.dropdown-btn-reset:hover {
    background: rgba(55, 53, 47, 0.12);
    color: var(--text-primary);
}

.dropdown-btn-apply {
    background: var(--text-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
}

.dropdown-btn-apply:hover {
    opacity: 0.85;
}

/* ========================================
   지도 컨트롤 - 노션 스타일
   ======================================== */

.map-control-group {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.map-control-button {
    background: var(--background-white);
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.map-control-button:last-child {
    border-bottom: none;
}

.map-control-button:hover {
    background: var(--background-hover);
    color: var(--text-primary);
}

.map-control-button.active {
    background: var(--text-primary);
    color: #ffffff;
}

/* ========================================
   토스트 알림 - 노션 스타일
   ======================================== */

.toast {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.toast.success {
    border-left: 4px solid #0F7B6C;
}

.toast.error {
    border-left: 4px solid #E03E3E;
}

.toast.info {
    border-left: 4px solid #2383E2;
}

.toast-message {
    font-size: 14px;
    color: var(--text-primary);
}

/* ========================================
   스크롤바 - 노션 스타일
   ======================================== */

.property-list::-webkit-scrollbar {
    width: 8px;
}

.property-list::-webkit-scrollbar-track {
    background: transparent;
}

.property-list::-webkit-scrollbar-thumb {
    background: rgba(55, 53, 47, 0.16);
    border-radius: 4px;
}

.property-list::-webkit-scrollbar-thumb:hover {
    background: rgba(55, 53, 47, 0.3);
}

/* ========================================
   검색 히스토리 드롭다운 - 노션 스타일
   ======================================== */

.search-history-dropdown {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.history-header {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.history-item {
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.history-item:hover {
    background: var(--background-hover);
}

.clear-history {
    color: #E03E3E;
    font-size: 11px;
    font-weight: 500;
}

/* ========================================
   로딩 스피너 - 노션 스타일
   ======================================== */

.loading-spinner {
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 20px;
}

/* ========================================
   빈 상태 - 노션 스타일
   ======================================== */

.empty-state {
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 40px;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.empty-state-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.empty-state-subtext {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========================================
   지점 핀 마커 스타일
   ======================================== */

/* 지점 핀 마커 컨테이너 */
.branch-pin-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.branch-pin-marker:hover {
    transform: scale(1.1);
    z-index: 1000 !important;
}

/* 핀 마커 본체 - 원형 + 아래 포인터 */
.branch-pin {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    position: relative;
}

/* 아래 삼각형 포인터 */
.branch-pin::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #1a1a1a;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

/* 핀 내부 로고/아이콘 영역 */
.branch-pin-inner {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.branch-pin-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.branch-pin-inner i {
    font-size: 16px;
    color: #ffffff;
}

/* 지점명 라벨 - 기본 숨김 */
.branch-pin-label {
    display: none;
}

/* 선택된 상태 */
.branch-pin-marker.selected .branch-pin {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.branch-pin-marker.selected .branch-pin::after {
    border-top-color: #333333;
}

/* ========================================
   지점 인포윈도우 스타일
   ======================================== */

.branch-infowindow {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 320px;
    overflow: hidden;
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 인포윈도우 닫기 버튼 */
.branch-infowindow-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.branch-infowindow-close:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.branch-infowindow-close i {
    font-size: 12px;
    color: #787774;
}

/* 인포윈도우 헤더 (이미지 영역) */
.branch-infowindow-header {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    overflow: hidden;
}

.branch-infowindow-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-infowindow-header .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-infowindow-header .no-image i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.7);
}

/* 인포윈도우 본문 */
.branch-infowindow-body {
    padding: 16px;
}

.branch-infowindow-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.branch-infowindow-logo {
    width: 36px;
    height: 36px;
    background: #f7f6f3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.branch-infowindow-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-infowindow-logo i {
    font-size: 18px;
    color: #37352F;
}

.branch-infowindow-name {
    font-size: 16px;
    font-weight: 700;
    color: #37352F;
    line-height: 1.3;
    flex: 1;
}

.branch-infowindow-desc {
    font-size: 13px;
    color: #787774;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.branch-infowindow-location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #9b9a97;
    margin-bottom: 12px;
}

.branch-infowindow-location i {
    margin-top: 2px;
    color: #37352F;
}

.branch-infowindow-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid rgba(55, 53, 47, 0.09);
    margin-bottom: 12px;
}

.branch-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.branch-stat-item i {
    font-size: 13px;
    color: #38f094;
}

.branch-stat-item span {
    font-size: 13px;
    font-weight: 600;
    color: #37352F;
}

.branch-stat-item .label {
    font-weight: 400;
    color: #787774;
}

/* 인포윈도우 액션 버튼 */
.branch-infowindow-actions {
    display: flex;
    gap: 8px;
}

.branch-infowindow-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.branch-infowindow-btn.primary {
    background: #37352F;
    color: #ffffff;
}

.branch-infowindow-btn.primary:hover {
    background: #2d2c2a;
}

.branch-infowindow-btn.secondary {
    background: #f7f6f3;
    color: #37352F;
}

.branch-infowindow-btn.secondary:hover {
    background: #ebeae7;
}

/* 인포윈도우 화살표 (아래쪽) */
.branch-infowindow::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #ffffff;
}

/* ========================================
   사이드바 지점 필터 헤더
   ======================================== */

.branch-filter-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(55, 53, 47, 0.06) 0%, rgba(55, 53, 47, 0.08) 100%);
    border-bottom: 1px solid rgba(55, 53, 47, 0.12);
}

.branch-filter-header.active {
    display: flex;
}

.branch-filter-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-filter-icon {
    width: 32px;
    height: 32px;
    background: #37352F;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-filter-icon i {
    font-size: 14px;
    color: #ffffff;
}

.branch-filter-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.branch-filter-name {
    font-size: 14px;
    font-weight: 600;
    color: #37352F;
}

.branch-filter-count {
    font-size: 12px;
    color: #787774;
}

.branch-filter-clear {
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid rgba(55, 53, 47, 0.16);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #787774;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.branch-filter-clear:hover {
    background: #f7f6f3;
    color: #37352F;
    border-color: rgba(55, 53, 47, 0.3);
}

.branch-filter-clear i {
    font-size: 10px;
}

/* ========================================
   모바일 지점 인포윈도우
   ======================================== */

@media (max-width: 768px) {
    .branch-infowindow {
        min-width: 260px;
        max-width: 280px;
    }

    .branch-infowindow-header {
        height: 100px;
    }

    .branch-infowindow-body {
        padding: 12px;
    }

    .branch-infowindow-name {
        font-size: 15px;
    }

    .branch-infowindow-actions {
        flex-direction: column;
    }

    .branch-infowindow-btn {
        padding: 12px;
    }

    .branch-pin {
        width: 34px;
        height: 34px;
    }

    .branch-pin::after {
        border-left-width: 6px;
        border-right-width: 6px;
        border-top-width: 8px;
        bottom: -7px;
    }

    .branch-pin-inner {
        width: 32px;
        height: 32px;
    }
}

/* ================================
   공간 등록 FAB 버튼
   ================================ */
.register-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    height: 48px;
    padding: 0 20px;
    background: #191919;
    color: white;
    border: none;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 999;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.register-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: white;
}

.register-fab:active {
    transform: scale(0.95);
}

.register-fab .fab-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-fab .fab-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
}

.register-fab .fab-text {
    white-space: nowrap;
}

/* FAB 활성화 상태 */
.register-fab.active {
    background: #333;
    transform: rotate(45deg);
}

.register-fab.active .fab-text {
    display: none;
}

.register-fab.active .fab-icon {
    margin: 0;
}

/* ================================
   공간 등록 팝업
   ================================ */
.register-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.register-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.register-popup {
    position: fixed;
    bottom: 88px;
    right: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 280px;
}

.register-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.register-popup-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: #191D23;
    transition: background 0.2s ease;
    cursor: pointer;
}

.register-popup-item:hover {
    background: #f5f5f5;
}

.register-popup-item:first-child {
    border-bottom: 1px solid #eee;
}

.register-popup-item .popup-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    flex-shrink: 0;
}

.register-popup-item .popup-content {
    flex: 1;
}

.register-popup-item .popup-title {
    font-size: 15px;
    font-weight: 600;
    color: #191D23;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.register-popup-item .popup-badge {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

.register-popup-item .popup-desc {
    font-size: 13px;
    color: #666;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .register-fab {
        bottom: 16px;
        right: 16px;
        height: 44px;
        padding: 0 16px;
    }

    .register-popup {
        bottom: 76px;
        right: 16px;
        left: 16px;
        min-width: auto;
    }
}
