/* NOTE========== 기본 POI 디자인 ==========NOTE */
.poi-container.billboard-popup-anchor {
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    transform: none !important; 
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none;
}

.poi-container.billboard-popup-anchor .poi-detail-panel {
    pointer-events: auto;
}

.poi-container {
    position: relative;
    cursor: pointer;
    transform: translate(-25%, -50%);
	font-family: inherit;
	font-size: 14px;
}

.poi-container .poi-label.incheon1 .ico-subway:hover,
.poi-container.poi-station .ico-subway:hover {
    color: #557fbe;
    transform: scale(1.4);
}


.modal-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;

	padding: 16px 20px;
	background: #000;

	border-radius: 10px 10px 0 0;
}

.modal-title {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.modal-header .f-close{
	height: 24px;
	width: 24px;            /* 필요 시 */
	font-size: 24px;
	line-height: 24px;      /* 폰트 baseline 흔들림 방지 */

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 0;
	border: 0;
	background: transparent;
}

.poi-container.popup * .modal-conts,
/* TMS POI 모달(.modal-dialog)에도 동일 패딩 적용 */
.modal-dialog .modal-conts {
    padding: 16px;
    max-height: 50vh;
    overflow: auto;
}

/* 모달 전역 폰트/닫기 버튼 크기 통일 */
.modal-dialog {
    font-size: 14px;
}

.modal-dialog .f-close {
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 24px;
}

.poi-container.popup .poi-thumbnail {
    display: block;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
}


.modal-table {
    background: #000000;
    border: 1px solid rgba(42, 42, 42, 0.8);
    border-radius: 8px;
    padding: 16px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-table .tbl td {
  padding: 6px 0; /* 위아래 12px */
}

/* label: 줄바꿈 없이 가능한 만큼 가로로 */
.modal-table td.data-label{
  white-space: nowrap;
  color: rgb(153, 153, 153);
}

/* value: 줄바꿈 허용 */
.modal-table td.data-value{
  white-space: normal;
  overflow-wrap: anywhere;   /* 긴 URL/문자열도 줄바꿈 */
  word-break: break-word;    /* 호환용 */
}

/* infoModal 상세 테이블 (airCommand.jsp - info-table) */
#infoModal .info-table td.data-label {
  /* white-space: nowrap;
  width: 40%;
  min-width: 100px; */
  padding: 0px 16px 0px 0;
  /* color: rgb(153, 153, 153); */
}

/* #infoModal .info-table td.data-value {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
} */

.poi-marker {
	display: flex;
	justify-content: center;
	align-items: center;
}

.poi-label {
    position: relative;
    background: transparent;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow:
            -1px -1px 2px rgba(0, 0, 0, 0.8),
            1px -1px 2px rgba(0, 0, 0, 0.8),
            -1px 1px 2px rgba(0, 0, 0, 0.8),
            1px 1px 2px rgba(0, 0, 0, 0.8),
            0 0 4px rgba(0, 0, 0, 0.9);
    transition: transform 0.2s ease, text-shadow 0.2s ease;
    letter-spacing: 0.3px;
}

.poi-label::before{
    position: absolute;
    text-shadow: none;
    top: -15px;
    font-size: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    min-width: 17px;
}

.poi-container:hover .poi-label {
    transform: scale(1.08);
    text-shadow:
            -1px -1px 3px rgba(0, 0, 0, 0.9),
            1px -1px 3px rgba(0, 0, 0, 0.9),
            -1px 1px 3px rgba(0, 0, 0, 0.9),
            1px 1px 3px rgba(0, 0, 0, 0.9),
            0 0 6px rgba(0, 0, 0, 1);
}

.poi-detail-panel {
	position: absolute;
	bottom: -120px;
	left: 50%;
	transform: translateX(-50%);
    width: 38rem;
	/* background: rgba(20, 20, 20, 0.95); */
	color: white;
	border-radius: 10px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
	/* padding: 16px; */
    gap: 8px;
	z-index: 6;

	background: rgba(42, 42, 42, 0.8);
}

.panel-header {
	font-weight: bold;
	font-size: 14px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 4px;
}

.panel-info-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
	margin-bottom: 6px;
	line-height: 1.4;
}

.panel-info-label {
	color: #aaa;
	flex-shrink: 0;
	min-width: 60px;
}

.panel-info-value {
	color: #fff;
	text-align: right;
	word-break: break-word;
}

.panel-close-btn {
	position: absolute;
	top: 6px;
	right: 8px;
	cursor: pointer;
	font-size: 12px;
	color: #aaa;
}

.panel-close-btn:hover {
	color: white;
}
/* NOTE========== //기본 POI 디자인 ==========NOTE */





/* NOTE========== 인천1호선 POI 디자인 ==========NOTE */
.poi-label.incheon1{
    text-shadow: -1px -1px 2px #6496df, 1px -1px 2px #6496df, -1px 1px 2px #6496df, 1px 1px 2px #6496df, 0 0 4px #6496df;
}

.poi-label.incheon1::before{
    content: '인천1';
    color: #6496df;
    border: 1px solid #6496df;
}

/* poi-station: [인천1 / 역사명] | [아이콘] 가로 정렬, 아이콘은 세로 중앙 */
.poi-container.poi-station {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    cursor: default;
}

.poi-station-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}

.poi-container.poi-station .poi-label.incheon1 {
    font-size: 12px;
    white-space: nowrap;
}

.poi-container.poi-station .poi-label.incheon1::before {
    content: none;
}

.poi-station-badge {
    font-size: 10px;
    color: #6496df;
    border: 1px solid #6496df;
    background-color: #fff;
    border-radius: 10px;
    padding: 0 4px;
    width: fit-content;
    align-self: center;
    text-align: center;
    line-height: 1.4;
}

.poi-container .poi-label.incheon1 .ico-subway,
.poi-container.poi-station .ico-subway {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #6496df;
    transition: transform 0.15s ease, color 0.15s ease;
}

.poi-container.poi-station:hover .poi-label {
    transform: none;
    text-shadow: -1px -1px 2px #6496df, 1px -1px 2px #6496df, -1px 1px 2px #6496df, 1px 1px 2px #6496df, 0 0 4px #6496df;
}

/* 출구 POI 디자인 */
.poi-exit-ico {
    font: 10px Pretendard GOV;
    background-color: #fef662;
    border: 1px solid #725e15;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

/* NOTE========== //인천1호선 POI 디자인 ==========NOTE */





/* NOTE========== 명예도로 POI 디자인 ==========NOTE */
.poi-honor-container {
	position: relative;
	background-color: #fff;
	padding: 2px;
	border-radius: 5px;
	border: 1px solid #000;
	font-size: 1.1rem;
}

.poi-honor-content {
	position: relative;
	background-color: #232e67;
	color: #fff;
	padding: 5px;
	border-radius: 3px;
	cursor: default;
}

.poi-honor-container:after {
	content: '';
	position: absolute;
	width: 4px;
	height: 10px;
	left: 50%;
	bottom: -10px;
	background-color: #fff;
	border: 1px solid #000;
	border-top: none;
	box-sizing: border-box;
}

.poi-honor-flag {
	width: 25px;
	height: 25px;
	position: relative;
}

.poi-honor-flag.start {
	color: #00a2e1;
	left: -13px;
}

.poi-honor-flag.end {
	color: #cd4a00;
	left: 13px;
}

.poi-honor-flag p {
	position: absolute;
	width: 100%;
	height: 100%;
	color: #fff;
	top: 3px;
	font-size: 1rem;
	display: flex;
	justify-content: center;
}

.poi-honor-flag::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 2px;
	height: 30px;
	background-color: #cfb16a;
	border-left: 1px solid #9b6800;
}

.poi-honor-container::before {
	content: '';
	position: absolute;
	width: 32px;
	height: 33px;
	box-sizing: border-box;
	background: white;
	right: -14px;
	top: 3px;
	border-radius: 8px;
	transform: rotate(45deg);
	border: 1px solid;
	border-left: none;
	border-bottom: none;
}

.poi-honor-content::before {
	content: '';
	position: absolute;
	background-color: #232e67;
	width: 28px;
	height: 29px;
	top: 3px;
	right: -12px;
	border-radius: 8px;
	transform: rotate(45deg);
}

.poi-honor-label {
	position: relative;
	margin-right: 8px;
}

.poi-honor-eng-label {
	padding: 0;
	margin: 0;
	line-height: 8px;
	font-size: 8px;
	color: rgba(255, 255, 255, .7);
}

.poi-honor-container i.icon.ico_info {
	position: absolute;
	cursor: pointer;
	right: -8px;
	top: 10px;
}
/* NOTE========== //명예도로 POI 디자인 ==========NOTE */





/* NOTE========== Icon POI 디자인 ==========NOTE */
.icon-poi-wrap {
    font-size: 12px;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    cursor: pointer;
}


.icon-poi-label {
    max-width: 160px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    -webkit-text-stroke: 1px #000;
    paint-order: stroke fill;
    line-height: 1.35;
    white-space: normal;
    word-break: keep-all;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
/* NOTE========== //Icon POI 디자인 ==========NOTE */





/* NOTE========== CCTV POI 디자인 ==========NOTE */

.asdie-modal-dialog .modal-content .modal-conts .list-result .item-result .item-tit:not(:has(
	 ~ *)) {
	border-bottom: none !important;
	padding-bottom: 0 !important;
}

.MapPrime3D-divGraphic .label {
	color: #ffc931;
	position: absolute;
	border-radius: 4px;
	display: inline-block;
	font-size: 12px;
	line-height: 1.4;
	text-shadow: -1.5px -1.5px 1.5px #000, 1.5px -1.5px 1.5px #000, -1.5px
		1.5px 1.5px #000, 1.5px 1.5px 1.5px #000;
	cursor: pointer;
	top: 35px;
    text-align: center;
	white-space: nowrap;
}

.MapPrime3D-divGraphic .mapprime3d-divCameraPoint-img {
	color: #ffc931;
}

.MapPrime3D-divGraphic.active .label {
	color: #00daff;
}

.MapPrime3D-divGraphic.active .mapprime3d-divCameraPoint-img {
	animation: none;
	color: #00daff;
}

.MapPrime3D-divGraphic .mapprime3d-divCameraPoint-line {
	height: 30px;
}

.MapPrime3D-divGraphic.active .mapprime3d-divCameraPoint-line {
	border-left-color: #00daff;
}

.MapPrime3D-divGraphic.active .mapprime3d-divCameraPoint-point {
	background-color: #00daff;
}

.mapprime-panel.cctv .mapprime-black-panel-pointer {
	background-color: #00daff;
}

.mapprime-panel.cctv .mapprime-black-panel-pointer::before {
	content: none;
}

.mapprime-panel.cctv .mapprime-black-panel-pointer::after {
	background-color: #00daff;
}
.MapPrime3D-divGraphic:hover {
    z-index: 1 !important;
}

.MapPrime3D-divGraphic.is-active {
    z-index: 2 !important;
}

/* popup을 가진 POI는 toolbox와 동일 레이어 */
.MapPrime3D-divGraphic:has(.poi-container.popup) {
    z-index: 5 !important;
}

/* POI 내부 팝업만 toolbox 초과 */
.poi-container.popup .poi-detail-panel {
    z-index: 7;
}

/* 명예도로: 도로명판 항상 z-index 3, 기점/종점은 hover 시만 4 */
.MapPrime3D-divGraphic:has(.poi-honor-container) {
    z-index: 3 !important;
}

.MapPrime3D-divGraphic:has(.poi-honor-flag):hover {
    z-index: 4 !important;
}
/* NOTE========== //CCTV POI 디자인 ==========NOTE */
