@charset "UTF-8";

/* site/kr/com/content/menu_2011.jsp */
/* 공통 #contents 상·하 여백을 줄여 지도 주변에 최소 간격만 유지 */
#wrap-container > #contents {
    padding-top: 0;
    padding-bottom: 0;
}

/* 지도 영역: 퍼블리싱의 격자 배경 제거(실제 지도가 채움) */
.location-map {
    background: #e7edf4;
}

/* OpenLayers 내부 레이어(z-index 100~325)를 #najuMap 스택 컨텍스트에 가둬
   좌측 결과패널(z-index:1)/범례(z-index:5)가 지도 위에 보이도록 함 */
#najuMap {
    z-index: 0;
}

#najuMap img {
    max-width: none;
}

/* OpenLayers 타일 깨짐 방지 */
.map-legend .map-legend-color {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 0.1875rem;
    margin-right: 0.375rem;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, .15);
}

/* 우측 상세패널이 닫히면(map-control 기본 right:560px) 확대축소 버튼을 우측으로 */
.location-map-layout.is-detail-collapsed .map-control {
    right: 1.875rem;
}

/* 입주기업 데이터가 없는 단지의 비활성 버튼 */
.location-more:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* 좌측 검색결과 패널 테두리 제거 */
.location-result-panel {
    border: none;
}

/* 검색 결과가 많아져도 좌측 패널이 지도 영역을 벗어나지 않도록 목록만 스크롤 */
@media screen and (min-width: 80em) {
    .location-result-panel {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .location-result-panel .location-top-search {
        flex: 0 0 auto;
    }

    .location-result-panel .location-filter-wrap {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .location-result-panel .location-filter-box,
    .location-result-panel .location-filter-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .location-result-panel .location-filter-box {
        height: 100%;
    }

    .location-result-panel .location-filter-body {
        flex: 1 1 auto;
    }

    .location-result-panel .location-filter-content,
    .location-result-panel .location-result-head {
        flex: 0 0 auto;
    }

    .location-result-panel .location-result-list {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        max-height: none;
        overflow-y: auto;
    }

    .location-result-panel .location-filter-wrap.is-collapsed {
        flex: 0 0 auto;
    }
}

/* 유치업종은 최대 2줄까지만 표시 */
.location-invite-upj {
    display: -webkit-box;
    overflow: hidden;
    max-height: 3em;
    line-height: 1.5;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ---------- 업종코드(KSIC) 검색 ---------- */
.upj-finder {
    margin-bottom: 1.25rem;
}

.upj-finder-title {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--brand-gray-900, #111);
}

.upj-search {
    position: relative;
}

.upj-search .form-control {
    width: 100%;
}

.upj-suggest {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 17rem;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--brand-gray-200, #ddd);
    border-radius: var(--radius-md, 0.5rem);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 21, 63, 0.14);
    overflow-y: auto;
}

.upj-suggest-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm, 0.375rem);
    cursor: pointer;
    line-height: 1.4;
}

.upj-suggest-item.is-active,
.upj-suggest-item:hover {
    background: var(--brand-gray-100, #f1f3f5);
}

.upj-suggest-item.is-empty {
    opacity: 0.55;
}

.upj-suggest-code {
    flex: none;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--brand-primary-900, #1b3a6b);
}

.upj-suggest-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.upj-suggest-meta {
    flex: none;
    font-size: 0.8125rem;
    color: var(--brand-gray-600, #6b7280);
    white-space: nowrap;
}

.upj-help {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--brand-gray-600, #6b7280);
}

.upj-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0.625rem 0 0;
    padding: 0;
    list-style: none;
}

.upj-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 100%;
    padding: 0.25rem 0.25rem 0.25rem 0.625rem;
    border: 1px solid #a8c8df;
    border-radius: 999px;
    background: #edf5fb;
    font-size: 0.875rem;
    line-height: 1.4;
}

.upj-chip-code {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--brand-primary-900, #1b3a6b);
}

.upj-chip-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.upj-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(27, 58, 107, 0.1);
    color: inherit;
    cursor: pointer;
}

.upj-chip-remove:hover {
    background: rgba(27, 58, 107, 0.2);
}

.upj-category-title {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--brand-gray-900, #111);
}

/* 검색결과 카드에 표시하는 '어떤 유치업종이 맞았는지' */
.location-upj-matched {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.upj-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: #e7f3ec;
    color: #1b6b43;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.upj-tag.is-partial {
    background: #fdf3e0;
    color: #8a5a10;
}

.upj-tag em {
    font-style: normal;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 업종 항목은 2행으로 배치 */
#mapFilterPanelIndustry .chk-area {
    display: grid;
    grid-template-rows: repeat(2, minmax(var(--choice-size), auto));
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-content: start;
    gap: 1.25rem;
}

/* 면적규모는 행별 너비가 서로 영향을 주지 않도록 독립 배치 */
#mapFilterPanelSize .chk-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

#mapFilterPanelSize .size-filter-row {
    display: flex;
    gap: 1.25rem;
    width: max-content;
}

#mapFilterPanelIndustry .chk-area,
#mapFilterPanelSize .chk-area {
    max-width: 100%;
    padding: 0 0 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
}

#mapFilterPanelIndustry .form-check,
#mapFilterPanelIndustry .form-check label,
#mapFilterPanelSize .form-check,
#mapFilterPanelSize .form-check label {
    white-space: nowrap;
}

/* 상세 내용만 스크롤하고 상세보기 버튼은 패널 하단 안쪽에 유지 */
@media screen and (min-width: 80em) {
    #locationDetailDynamic {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    #locationDetailDynamic .location-detail-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-right: 0.25rem;
    }

    #locationDetailDynamic .location-more {
        flex: 0 0 auto;
        margin-top: var(--space-4);
    }
}

/* Compact filters participate in the page flow instead of scrolling in two axes. */
@media (max-width: 79.9375em) {
    #mapFilterPanelIndustry .chk-area,
    #mapFilterPanelSize .chk-area {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        overflow: visible;
    }
    #mapFilterPanelSize .size-filter-row { width: 100%; flex-wrap: wrap; }
    #mapFilterPanelIndustry .form-check,
    #mapFilterPanelSize .form-check { min-width: 0; max-width: 100%; }
    #mapFilterPanelIndustry .form-check label,
    #mapFilterPanelSize .form-check label { white-space: normal; overflow-wrap: anywhere; }
}

/* 검색결과 카드: 단지명이 길면 배지가 찌그러지지 않고 다음 줄로 내려가도록 */
.location-result .location-name {
    flex-wrap: wrap;
    align-items: center;
}

.location-result .location-name .badge {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 우측 상세패널: 투자유치 연락처 및 지원메뉴 바로가기 */
.location-invest {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--brand-gray-200);
    border-radius: 12px;
    font-size: var(--fz-body-sm);
}

.location-invest-tit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-gray-800);
    font-weight: 700;
}

.location-invest-tit a {
    color: var(--brand-primary);
    font-size: 1rem;
}

.location-invest-org {
    margin-top: 2px;
    color: var(--brand-gray-600);
    font-size: var(--fz-body-xsm);
}

.location-invest-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.location-invest-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 2.5rem;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--brand-gray-100);
    color: var(--brand-gray-900);
    font-size: var(--fz-body-xsm);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    word-break: keep-all;
}

.location-invest-links a:hover,
.location-invest-links a:focus-visible {
    background: #eef6ff;
    color: var(--brand-primary);
}
