/* 지도 관련 CSS 스타일 */

/* 공통 지도 컨테이너 스타일 */
.map-container {
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-container > div {
    width: 100% !important;
    height: 100% !important;
}

/* 카카오맵 스타일 */
.map-container img.map {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: cover;
}

.map-container a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 카카오맵 특정 스타일 */
.map-container[data-map-type="kakao"] {
    background-color: #f8f9fa;
}

.map-container[data-map-type="kakao"] img {
    border-radius: 4px;
}

/* 네이버 지도 스타일 */
.map-container[data-map-type="naver"] {
    background-color: #ffffff;
}

.map-container[data-map-type="naver"] iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.map-container[data-map-type="naver"] embed {
    width: 100% !important;
    height: 100% !important;
}

/* 지도 로딩 상태 스타일 */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    color: #666;
    font-size: 14px;
}

.map-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 지도 오류 상태 스타일 */
.map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f8d7da;
    color: #721c24;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* 반응형 지도 스타일 */
@media (max-width: 768px) {
    .map-container {
        min-height: 200px;
    }
    
    .map-container img.map {
        max-height: 150px;
    }
}

/* 지도 호버 효과 */
.map-container:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 지도 클릭 가능한 링크 스타일 */
.map-container a:hover {
    opacity: 0.9;
} 