/**
 * QGIS Address Mapper - 스타일시트
 */

/* 지도 컨테이너 */
.qgis-map-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px 0;
}

/* 마커 팝업 스타일 */
.marker-popup {
    min-width: 200px;
}

.marker-popup h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.marker-popup p {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
}

.marker-popup strong {
    color: #333;
}

/* 오류 팝업 스타일 */
.error-popup {
    min-width: 150px;
}

.error-popup h4 {
    margin: 0 0 10px 0;
    color: #d63638;
    font-size: 14px;
}

.error-message {
    color: #d63638;
    font-weight: bold;
}

/* 로딩 스피너 */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 오류 아이콘 */
.error-icon {
    width: 20px;
    height: 20px;
    background-color: #d63638;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 관리자 페이지 스타일 */
.address-search-form {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.address-search-form h3 {
    margin-top: 0;
}

.search-result {
    background: white;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
}

.search-result h4 {
    margin-top: 0;
    color: #0073aa;
}

.search-result p {
    margin: 5px 0;
}

.search-result .error {
    color: #d63638;
    font-weight: bold;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .qgis-map-container {
        height: 300px !important;
    }
    
    .marker-popup {
        min-width: 150px;
    }
    
    .marker-popup h4 {
        font-size: 12px;
    }
    
    .marker-popup p {
        font-size: 11px;
    }
}

/* 지도 컨트롤 커스터마이징 */
.leaflet-control-zoom a {
    background-color: #0073aa;
    color: white;
}

.leaflet-control-zoom a:hover {
    background-color: #005a87;
}

/* 마커 클러스터 스타일 (향후 확장용) */
.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(240, 194, 12, 0.6);
}

.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(241, 128, 23, 0.6);
}

/* 숏코드 사용 예시 스타일 */
.qgis-shortcode-example {
    background: #f0f0f1;
    padding: 10px;
    border-left: 4px solid #0073aa;
    margin: 10px 0;
    font-family: monospace;
    font-size: 14px;
}

/* 로딩 상태 */
.qgis-map-loading {
    position: relative;
}

.qgis-map-loading::after {
    content: '지도를 불러오는 중...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}
