/* 집easy-매물지도 CSS */

/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 전체 화면 설정 */
html, body {
    height: 100%;
    overflow: hidden;
}

/* 지도 컨테이너 */
#map {
    width: 100%;
    height: 100vh;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* GPS 버튼 스타일 */
.gps-button {
    position: fixed;
    top: 450px;
    right: 10px;
    z-index: 1000;
    display: none;
}

.gps-icon {
    background: rgba(255, 255, 255, 1); 
    color: #333;
    border: none;
    padding: 8px;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* GPS 버튼 로딩 상태 */
.gps-icon.loading {
    color: #007bff;
    animation: gps-pulse 1.5s ease-in-out infinite;
}

.gps-icon.loading svg {
    animation: gps-rotate 2s linear infinite;
}

/* GPS 로딩 애니메이션 */
@keyframes gps-pulse {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(0,0,0,0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
        transform: scale(1.05);
    }
}

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

.gps-icon:hover {
    background: #f8f9fa;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.gps-icon:active {
    transform: scale(0.95);
}

.gps-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 모바일에서만 GPS 버튼 표시 */
@media (max-width: 768px) {
    .gps-button {
        display: block;
    }
}
