:root {
    --hub-nav-primary: #315f9d;
    --hub-nav-primary-dark: #1f477d;
    --hub-nav-primary-soft: #eef4fb;

    --hub-nav-text: #202936;
    --hub-nav-text-sub: #687383;
    --hub-nav-border: #dfe5ec;
    --hub-nav-background: #ffffff;

    --hub-nav-max-width: 1320px;
    --hub-nav-height: 2.5rem;
}
.leaflet-control-attribution a{
    font-size: .8rem !important;
    font-family: 'Pretendard Variable';
}.body {
    position: relative;
    z-index: 0;
}
.hub-subnav {
    position: sticky;
    width: 100%;
    min-width: 0;
    z-index: 5000;

    overflow: visible;

    border-top: 1px solid var(--hub-nav-border);
    border-bottom: 1px solid var(--hub-nav-border);

    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 14px rgba(25, 38, 52, 0.05);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hub-subnav-inner {
    width: min(
        var(--hub-nav-max-width),
        calc(100% - 48px)
    );
    overflow: visible;
    margin: 0 auto;
    z-index: 2000;
}

.hub-subnav-scroll {
    display: flex;
    align-items: stretch;

    min-width: 0;
    height: var(--hub-nav-height);

    overflow: visible;
}

.hub-subnav-scroll::-webkit-scrollbar {
    display: none;
}

.hub-subnav-item {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
}

.hub-subnav-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: max-content;
    height: 100%;
    padding: 0 22px;

    border: 0;
    border-radius: 0;

    color: var(--hub-nav-text);
    background: transparent;

    font: inherit;
    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.16s ease,
        background-color 0.16s ease;
}

.hub-subnav-button::after {
    position: absolute;
    right: 20px;
    bottom: 0;
    left: 20px;

    height: 3px;

    border-radius: 3px 3px 0 0;

    background: transparent;

    content: "";

    transition: background-color 0.16s ease;
}

.hub-subnav-button:hover {
    color: var(--hub-nav-primary-dark);
    background: #f7f9fb;
}

.hub-subnav-item.is-active-category
.hub-subnav-button {
    color: var(--hub-nav-primary-dark);
}

.hub-subnav-item.is-active-category
.hub-subnav-button::after {
    background: var(--hub-nav-primary);
}

.hub-subnav-item.is-open
.hub-subnav-button {
    color: var(--hub-nav-primary-dark);
    background: var(--hub-nav-primary-soft);
}

.hub-subnav-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;

    margin-top: -4px;

    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;

    transform: rotate(45deg);
    transform-origin: center;

    transition:
        margin-top 0.18s ease,
        transform 0.18s ease;
}

.hub-subnav-item.is-open
.hub-subnav-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

/* PC 드롭다운 */
#map{
    z-index: 1;
}
.hub-subnav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5100;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    width: max-content;
    min-width: 250px;
    max-width: min(360px, calc(100vw - 32px));

    padding: 8px;

    border: 1px solid var(--hub-nav-border);
    border-radius: 0 0 12px 12px;

    background: var(--hub-nav-background);
    box-shadow: 0 16px 34px rgba(24, 38, 54, 0.14);

    transform: translateY(-5px);

    transition:
        visibility 0.18s ease,
        opacity 0.18s ease,
        transform 0.18s ease;
}

.hub-subnav-item.is-open
.hub-subnav-dropdown {
    visibility: visible;
    opacity: 1;

    transform: translateY(0);
    pointer-events: auto;
}

.hub-subnav-list {
    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;

    list-style: none;
}

.hub-subnav-list-item {
    margin: 0;
}

.hub-subnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 10px 12px;
    border-radius: 7px;

    color: var(--hub-nav-text);
    text-decoration: none;

    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}

.hub-subnav-link:hover {
    color: var(--hub-nav-primary-dark);
    background: #f3f6f9;
}

.hub-subnav-link.is-current {
    color: var(--hub-nav-primary-dark);
    background: var(--hub-nav-primary-soft);
    font-weight: 700;
}

.hub-subnav-link-text {
    min-width: 0;

    overflow-wrap: anywhere;

    font-size: 0.9rem;
    line-height: 1.45;
}

.hub-subnav-link-arrow {
    flex: 0 0 auto;

    color: var(--hub-nav-text-sub);
    font-size: 0.9rem;

    transition: transform 0.15s ease;
}

.hub-subnav-link:hover
.hub-subnav-link-arrow {
    transform: translateX(3px);
}

/*
 * 모바일용 드롭다운 패널.
 * PC에서는 사용하지 않습니다.
 */

.hub-subnav-mobile-dropdown {
    display: none;
}

/* 로딩 및 오류 */

.hub-subnav-status {
    display: flex;
    align-items: center;

    height: var(--hub-nav-height);
    padding: 0 20px;

    color: var(--hub-nav-text-sub);
    font-size: 0.86rem;
    white-space: nowrap;
}
.hub-subnav-home-wrap {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;

    margin-right: 10px;
    padding-right: 10px;

    border-right: 1px solid var(--hub-nav-border);
}

.hub-subnav-home {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: max-content;
    height: 100%;
    padding: 0 16px;

    color: var(--hub-nav-primary-dark);
    text-decoration: none;
    white-space: nowrap;

    transition:
        color 0.16s ease,
        background-color 0.16s ease;
}

.hub-subnav-home:hover {
    color: var(--hub-nav-primary);
    background: #f7f9fb;
}

.hub-subnav-home-label {
    font-size: 0.94rem;
    font-weight: 750;
    letter-spacing: -0.015em;
}

.hub-subnav-home-arrow {
    color: var(--hub-nav-text-sub);
    font-size: 0.9rem;

    transition: transform 0.16s ease;
}

.hub-subnav-home:hover
.hub-subnav-home-arrow {
    transform: translateX(-3px);
}
.hub-detail {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 80px;
}

.hub-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;

    padding-bottom: 28px;

    border-bottom: 1px solid #dfe5ec;
}

.hub-detail-heading {
    min-width: 0;
}

.hub-detail-category {
    margin: 0 0 8px;

    color: #315f9d;

    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: 0.06em;
}

.hub-detail-title {
    margin: 0;

    color: #202936;

    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.035em;
}

.hub-detail-description {
    max-width: 720px;
    margin: 12px 0 0;

    color: #687383;

    font-size: 0.96rem;
    line-height: 1.7;
}

.hub-detail-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 18px;
}

/* 공통 버튼 */

.hub-detail-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 40px;
    padding: 0 15px;

    border: 1px solid #315f9d;
    border-radius: 7px;

    color: #ffffff;
    background: #315f9d;

    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.16s ease,
        border-color 0.16s ease,
        background-color 0.16s ease,
        transform 0.16s ease;
}

.hub-action-button:hover {
    border-color: #1f477d;
    background: #1f477d;
}

.hub-action-button:active {
    transform: translateY(1px);
}

.hub-action-button:focus-visible {
    outline: 3px solid rgba(49, 95, 157, 0.22);
    outline-offset: 2px;
}

.hub-action-button-secondary {
    color: #315f9d;
    background: #ffffff;
}

.hub-action-button-secondary:hover {
    color: #1f477d;
    border-color: #1f477d;
    background: #eef4fb;
}

.hub-action-button:disabled {
    color: #8b96a2;
    border-color: #d4dae1;
    background: #eef1f4;

    cursor: not-allowed;
    opacity: 0.75;
}

/* 새로고침 아이콘 */

.hub-action-icon-refresh {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;

    border: 1.8px solid currentColor;
    border-left-color: transparent;
    border-radius: 50%;

    position: relative;
}

.hub-action-icon-refresh::after {
    position: absolute;
    top: -2px;
    left: -1px;

    width: 5px;
    height: 5px;

    border-top: 1.8px solid currentColor;
    border-left: 1.8px solid currentColor;

    content: "";
    transform: rotate(-15deg);
}

.hub-action-button.is-loading
.hub-action-icon-refresh {
    animation: hub-refresh-rotate 0.8s linear infinite;
}

@keyframes hub-refresh-rotate {
    to {
        transform: rotate(360deg);
    }
}

.hub-action-arrow {
    font-size: 0.82rem;
}

/* 공통 섹션 제목 */

.hub-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.hub-section-heading {
    min-width: 0;
}

.hub-section-label {
    margin: 0 0 7px;

    color: #687383;

    font-size: 0.74rem;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: 0.07em;
}

.hub-section-title {
    margin: 0;

    color: #202936;

    font-size: 1.3rem;
    font-weight: 720;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.hub-section-description {
    margin: 9px 0 0;

    color: #687383;

    font-size: 0.88rem;
    line-height: 1.65;
}

.hub-section-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

/* 공통 로딩 */

.hub-common-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 180px;
    padding: 24px;

    color: #687383;

    font-size: 0.88rem;
}

.hub-common-spinner {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;

    border: 2px solid #d7dee6;
    border-top-color: #315f9d;
    border-radius: 50%;

    animation: hub-common-spin 0.8s linear infinite;
}

@keyframes hub-common-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 공통 오류·데이터 없음 */

.hub-common-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 180px;
    padding: 28px;

    border: 1px solid #dfe5ec;
    border-radius: 10px;

    background: #f7f9fb;

    text-align: center;
}

.hub-common-message strong {
    color: #2b3745;

    font-size: 0.94rem;
}

.hub-common-message p {
    max-width: 520px;
    margin: 0;

    color: #687383;

    font-size: 0.84rem;
    line-height: 1.65;
}

.hub-common-message.is-error {
    border-color: #eccaca;
    background: #fff5f5;
}

.hub-common-message.is-error strong {
    color: #a83737;
}

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;

    border: 0 !important;
}
@media (max-width: 920px) {
    .hub-detail-header {
        flex-direction: column;
        gap: 22px;
    }

    .hub-detail-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 760px) {
    .hub-subnav-inner {
        width: 100%;
    }

    .hub-subnav-scroll {
        overflow-x: auto;
        overflow-y: hidden;

        padding: 0 12px;

        scrollbar-width: none;
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        scroll-padding-inline: 12px;
        -webkit-overflow-scrolling: touch;
    }
    
    .hub-subnav-scroll::-webkit-scrollbar {
        display: none;
    }

    .hub-subnav-button {
        padding: 0 16px;

        font-size: 0.88rem;
    }

    .hub-subnav-button::after {
        right: 14px;
        left: 14px;
    }

    .hub-subnav-dropdown {
        display: none;
    }

    .hub-subnav-mobile-dropdown {
        display: block;

        max-height: min(56vh, 440px);
        overflow-y: auto;

        border-top: 1px solid var(--hub-nav-border);

        background: var(--hub-nav-background);
        box-shadow: 0 12px 24px rgba(24, 38, 54, 0.12);
    }

    .hub-subnav-mobile-dropdown[hidden] {
        display: none;
    }

    .hub-subnav-mobile-inner {
        padding: 10px 12px 14px;
    }

    .hub-subnav-mobile-title {
        margin: 0;
        padding: 9px 10px 8px;

        color: var(--hub-nav-text-sub);

        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.05em;
    }

    .hub-subnav-mobile-dropdown
    .hub-subnav-link {
        min-height: 30px;
        padding: 11px 12px;
    }
    .hub-subnav-home-wrap {
        margin-right: 5px;
        padding-right: 5px;
    }

    .hub-subnav-home {
        padding: 0 13px;
    }

    .hub-subnav-home-label {
        font-size: 0.88rem;
    }
    .hub-detail {
        width: calc(100% - 28px);
        padding: 28px 0 60px;
    }

    .hub-detail-header {
        gap: 20px;
        padding-bottom: 22px;
    }

    .hub-detail-category {
        font-size: 0.72rem;
    }

    .hub-detail-title {
        font-size: 1.75rem;
    }

    .hub-detail-description {
        margin-top: 9px;

        font-size: 0.88rem;
    }

    .hub-detail-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }


    .hub-detail-buttons {
        width: 100%;
    }

    .hub-action-button {
        flex: 1 1 auto;
        min-height: 42px;
    }

    .hub-section-header {
        flex-direction: column;
        gap: 16px;
    }

    .hub-section-controls {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .hub-subnav-scroll {
        padding: 0 8px;
    }

    .hub-subnav-button {
        padding: 0 13px;
    }

    .hub-subnav-button::after {
        right: 11px;
        left: 11px;
    }
    
    .hub-detail {
        width: calc(100% - 20px);
    }

    .hub-detail-buttons {
        flex-direction: column;
    }

    .hub-action-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-subnav-scroll {
        scroll-behavior: auto;
    }

    .hub-subnav-button,
    .hub-subnav-chevron,
    .hub-subnav-dropdown,
    .hub-subnav-link,
    .hub-subnav-link-arrow {
        transition: none;
    }
    .hub-action-button,
    .hub-action-icon-refresh,
    .hub-common-spinner {
        transition: none;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}