/* map-info-overlay.css - Updated for fixed top positioning - Force Update */

/* OpenLayers wrapper div 스타일 */
.custom-ol-overlay {
    top: 20px !important; /* 뷰포트 상단에서 20px 아래로 */
    left: 10px !important;
    z-index: 1000;
}

/* OpenLayers wrapper div가 활성화되었을 때 */
.custom-ol-overlay.active {
    pointer-events: auto; /* 활성화 시 클릭 가능하게 */
    opacity: 1; /* 활성화 시 보이게 */
}

/* 오버레이 컨텐츠 스타일 (inner div - `.map-info-overlay` 클래스를 가짐) */
.custom-ol-overlay .map-info-overlay {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 200px;
    max-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative; /* 화살표 포지셔닝을 위함 */
}

/* 오버레이 콘텐츠 내부 요소 스타일 */
.custom-ol-overlay .map-info-overlay h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-ol-overlay .map-info-overlay p {
    margin: 8px 0;
    font-size: 14px;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.custom-ol-overlay .map-info-overlay p::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #2196f3;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

/* 텍스트 오버플로우 처리를 위한 스타일 */
.custom-ol-overlay .map-info-overlay p span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-ol-overlay .map-info-overlay button {
    width: 100%;
    margin-top: 12px;
    padding: 8px 16px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-ol-overlay .map-info-overlay button:hover {
    background: #1976d2;
}

.custom-ol-overlay .map-info-overlay button:active {
    background: #1565c0;
}

/* 오버레이 화살표 */
.custom-ol-overlay .map-info-overlay::before {
    content: '';
    position: absolute;
    top: 100%; /* 오버레이 하단에 화살표 위치 */
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.95); /* 화살표 방향 아래로 */
}