/* ============ 지도 관련 스타일 ============ */

/* 지도 컨테이너 */
#map {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* 지도 오버레이 컨트롤 */
.map-controls {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.map-controls > * {
    pointer-events: auto;
}

/* 상단 필터 바 */
.filter-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: var(--background-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-bar input,
.filter-bar select {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--background-white);
    transition: all var(--transition-fast);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.filter-bar .btn {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: var(--radius-md);
}

/* 우하단 정보 패널 */
.info-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--background-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    min-width: 200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-title {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.info-stats {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-stats div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.info-stats span {
    font-weight: 500;
    color: var(--text-primary);
}

/* 매물 마커 정보창 */
.property-info {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg); /* 상하: md, 좌우: lg */
    box-shadow: var(--shadow-heavy);
    max-width: 300px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

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

.property-address {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-details {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
    font-size: 13px;
}

.property-details div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.property-price {
    color: var(--danger-color);
    font-weight: 600;
    font-size: 14px;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

/* 지도 하단 매물목록 버튼 */
.list-toggle-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.list-toggle-btn:hover {
    background: var(--primary-hover);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.list-toggle-btn:active {
    transform: translateX(-50%) translateY(0);
}

/* 지도 로딩 오버레이 */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.map-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: var(--radius-round);
    animation: spin 1s linear infinite;
}

.map-loading-text {
    margin-top: var(--spacing-md);
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 지도 에러 메시지 */
.map-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--danger-color);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    z-index: 10000;
    text-align: center;
    box-shadow: var(--shadow-heavy);
    max-width: 300px;
}

.map-error h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 18px;
}

.map-error p {
    margin-bottom: var(--spacing-md);
    font-size: 14px;
    line-height: 1.4;
}

.map-error button {
    background: white;
    color: var(--danger-color);
    border: none;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.map-error button:hover {
    background: #f5f5f5;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .filter-bar {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: var(--spacing-sm);
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar input,
    .filter-bar select {
        margin-bottom: var(--spacing-xs);
    }
    
    .info-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .list-toggle-btn {
        bottom: 10px;
        padding: 10px var(--spacing-lg);
        font-size: 14px;
    }
    
    .property-info {
        max-width: 400px;
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .filter-bar {
        gap: var(--spacing-xs);
    }
    
    .filter-bar input,
    .filter-bar select {
        font-size: 13px;
        padding: var(--spacing-xs) 10px;
    }
    
    .info-panel {
        padding: var(--spacing-sm);
    }
    
    .info-title {
        font-size: 14px;
    }
    
    .info-stats {
        font-size: 13px;
    }
}





