/**
 * 약국찾기 전용 스타일
 * body.page-pharmacy-finder 범위에서만 적용
 */

/* Gnuboard's fixed #hd must stay in the renewal page flow like publishing. */
.page-pharmacy-finder #hd {
    position: sticky;
    top: 0;
    z-index: 30;
}

/* Gnuboard heading rules must not change the publishing line breaks. */
.page-pharmacy-finder .hero-copy h1,
.page-pharmacy-finder .phm-title {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

/* 지도 최소 높이 */
.page-pharmacy-finder .phm-map {
    min-height: var(--phm-panel-h, 560px);
    border-radius: 12px;
    background: #f0f2f5;
}

/* 지도 에러 상태 */
.page-pharmacy-finder .phm-map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    padding: 24px;
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

/* 빈 상태 항목 */
.page-pharmacy-finder .phm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 8px;
    color: #888;
    text-align: center;
}

.page-pharmacy-finder .phm-empty strong {
    color: #555;
}

/* loading 상태 */
.page-pharmacy-finder .is-loading .phm-items,
.page-pharmacy-finder .is-loading .phm-map {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* GNB 약국찾기 현재 페이지 표시 */
.page-pharmacy-finder .gnb-mobile-pharmacy {
    color: #112b6d;
    font-weight: 700;
}

.page-pharmacy-finder .gnb-pharmacy {
    color: #ffffff;
    font-weight: 700;
}

/* 약국 목록 항목 버튼 */
.page-pharmacy-finder .phm-item-btn {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 14px 18px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    gap: 4px;
}

.page-pharmacy-finder .phm-item-btn:focus-visible {
    outline: 2px solid #112b6d;
    outline-offset: -2px;
    border-radius: 4px;
}

.page-pharmacy-finder .phm-item-btn:hover {
    background: rgba(17, 43, 109, 0.04);
}

/* Gnuboard 1px border 제거 */
.page-pharmacy-finder .gnb-primary-row {
    border-bottom: none;
}

@media (max-width: 420px) {
    .page-pharmacy-finder .phm-paging {
        box-sizing: border-box;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        gap: 4px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .page-pharmacy-finder .phm-page-list {
        flex: 0 1 auto;
        min-width: 0;
        justify-content: center;
        gap: 8px;
    }

    .page-pharmacy-finder .phm-page {
        padding-right: 8px;
        padding-left: 8px;
    }

    .page-pharmacy-finder .phm-page--nav {
        min-width: 44px;
    }
}
