/* 위치도 지도 캡쳐 페이지 */
.map-capture-container {
    width: 100%;
    height: 100vh;
    background-color: #0f172a;
    /* slate-900 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 헤더 */
.map-capture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    /* px-8 py-6 */
    background-color: #1e293b;
    /* slate-800 */
    border-bottom: 1px solid #334155;
    /* slate-700 */
}

.map-capture-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* gap-3 */
}

.map-capture-icon {
    font-size: 2rem;
    /* text-3xl */
    color: #3b82f6;
    /* blue-500 */
}

.map-capture-title {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    color: #f1f5f9;
    /* slate-100 */
    margin: 0;
}

.map-capture-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    /* w-10 */
    height: 2.5rem;
    /* h-10 */
    background-color: #334155;
    /* slate-700 */
    color: #cbd5e1;
    /* slate-300 */
    border: none;
    border-radius: 0.5rem;
    /* rounded-lg */
    cursor: pointer;
    transition: all 0.2s;
}

.map-capture-close-btn:hover {
    background-color: #475569;
    /* slate-600 */
    color: #f1f5f9;
    /* slate-100 */
}

/* 지도 컨테이너 */
.map-capture-map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #1e293b;
    /* slate-800 */
    cursor: grab;
}

.map-capture-map-container:active {
    cursor: grabbing;
}

/* Leaflet 지도 요소: 낮은 z-index로 설정 */
.map-capture-map-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1 !important;
}

/* Leaflet 컨테이너 stacking context 격리 */
.map-capture-map-element.leaflet-container {
    z-index: 1 !important;
}

/* ===== 중앙 고정 핀 오버레이 (DOM 직접 추가) ===== */

.map-center-pin-overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -100%) !important;
    pointer-events: none !important;
    z-index: 1000 !important;
}

.map-center-pin-overlay .center-pin-icon {
    font-size: 3rem;
    color: #ef4444;
    font-weight: 700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* 줌 버튼 컨트롤 */
.leaflet-zoom-buttons-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.leaflet-zoom-buttons-control .zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #1e293b;
    color: #f1f5f9;
    border: 2px solid #334155;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.leaflet-zoom-buttons-control .zoom-btn:hover {
    background-color: #334155;
    border-color: #3b82f6;
    color: #3b82f6;
}

.leaflet-zoom-buttons-control .zoom-btn.active {
    background-color: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    color: #60a5fa;
}

.leaflet-zoom-buttons-control .zoom-btn .material-symbols-outlined {
    font-size: 1.5rem;
}

.leaflet-zoom-buttons-control .zoom-level-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    background-color: #0f172a;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.leaflet-zoom-buttons-control .center-meter-btn {
    margin-top: 0.5rem;
}

/* 좌표 컨트롤 */
.leaflet-coordinates-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid #334155 !important;
    border-radius: 0.5rem !important;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-coordinates-control .material-symbols-outlined {
    font-size: 1.25rem;
    color: #3b82f6;
}

/* Leaflet Control Container - 커스텀 컨트롤 표시 */
.map-capture-map-element .leaflet-control-container {
    display: block !important;
}

/* Leaflet 기본 줌 컨트롤 숨김 (중복 방지) */
.map-capture-map-element .leaflet-control-zoom {
    display: none !important;
}

/* 우측 상단 줌 컨트롤 영역 */
.map-capture-map-element .leaflet-top.leaflet-right {
    top: 1rem;
    right: 1rem;
}

/* 좌측 하단 좌표 컨트롤 영역 */
.map-capture-map-element .leaflet-bottom.leaflet-left {
    bottom: 1rem;
    left: 1rem;
}

/* 지도 */
.map-capture-map {
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
    user-select: none;
}

.map-capture-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    /* slate-500 */
}

.map-capture-placeholder .material-symbols-outlined {
    font-size: 6rem;
    /* text-8xl */
    margin-bottom: 1rem;
    color: #475569;
    /* slate-600 */
}

.map-capture-placeholder p {
    font-size: 1.25rem;
    /* text-xl */
    margin: 0.25rem 0;
}

.map-capture-placeholder-note {
    font-size: 0.875rem;
    /* text-sm */
    color: #64748b;
    /* slate-500 */
}

/* 중앙 고정 핀 마커 */
.map-capture-fixed-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
}

.map-capture-fixed-pin .material-symbols-outlined {
    font-size: 3rem;
    color: #ef4444;
    font-weight: 700;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.map-capture-fixed-pin-shadow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 12px;
    height: 6px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

/* 줌 컨트롤 */
.map-capture-zoom-controls {
    position: absolute;
    top: 1.5rem;
    /* top-6 */
    right: 1.5rem;
    /* right-6 */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* gap-2 */
    pointer-events: auto;
}

.map-capture-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    /* w-12 */
    height: 3rem;
    /* h-12 */
    background-color: #1e293b;
    /* slate-800 */
    color: #f1f5f9;
    /* slate-100 */
    border: 2px solid #334155;
    /* slate-700 */
    border-radius: 0.5rem;
    /* rounded-lg */
    cursor: pointer;
    transition: all 0.2s;
}

.map-capture-zoom-btn:hover {
    background-color: #334155;
    /* slate-700 */
    border-color: #3b82f6;
    /* blue-500 */
    color: #3b82f6;
    /* blue-500 */
}

.map-capture-zoom-btn .material-symbols-outlined {
    font-size: 1.5rem;
    /* text-2xl */
}

.map-capture-zoom-level {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    /* w-12 */
    height: 2rem;
    /* h-8 */
    background-color: #0f172a;
    /* slate-900 */
    color: #cbd5e1;
    /* slate-300 */
    border: 1px solid #334155;
    /* slate-700 */
    border-radius: 0.375rem;
    /* rounded-md */
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 600;
}

.map-capture-reset-btn {
    margin-top: 0.5rem;
    /* mt-2 */
}

/* 좌표 정보 */
.map-capture-coordinates {
    position: absolute;
    bottom: 1.5rem;
    /* bottom-6 */
    left: 1.5rem;
    /* left-6 */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
    padding: 0.75rem 1rem;
    /* px-4 py-3 */
    background-color: rgba(30, 41, 59, 0.9);
    /* slate-800/90 */
    border: 1px solid #334155;
    /* slate-700 */
    border-radius: 0.5rem;
    /* rounded-lg */
    color: #cbd5e1;
    /* slate-300 */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
}

.map-capture-coordinates .material-symbols-outlined {
    font-size: 1.25rem;
    /* text-xl */
    color: #3b82f6;
    /* blue-500 */
}

/* 하단 푸터 */
.map-capture-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    /* px-8 py-6 */
    background-color: #1e293b;
    /* slate-800 */
    border-top: 1px solid #334155;
    /* slate-700 */
}

.map-capture-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
    color: #94a3b8;
    /* slate-400 */
    font-size: 0.875rem;
    /* text-sm */
}

.map-capture-info .material-symbols-outlined {
    font-size: 1.25rem;
    /* text-xl */
    color: #3b82f6;
    /* blue-500 */
}

.map-capture-actions {
    display: flex;
    gap: 0.75rem;
    /* gap-3 */
}

.map-capture-cancel-btn,
.map-capture-capture-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
    padding: 0.75rem 1.5rem;
    /* px-6 py-3 */
    border: none;
    border-radius: 0.5rem;
    /* rounded-lg */
    font-size: 1rem;
    /* text-base */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.map-capture-cancel-btn {
    background-color: #334155;
    /* slate-700 */
    color: #cbd5e1;
    /* slate-300 */
}

.map-capture-cancel-btn:hover {
    background-color: #475569;
    /* slate-600 */
    color: #f1f5f9;
    /* slate-100 */
}

.map-capture-capture-btn {
    background-color: #3b82f6;
    /* blue-500 */
    color: white;
}

.map-capture-capture-btn:hover {
    background-color: #2563eb;
    /* blue-600 */
}

.map-capture-cancel-btn .material-symbols-outlined,
.map-capture-capture-btn .material-symbols-outlined {
    font-size: 1.25rem;
    /* text-xl */
}
