/* ==========================================================================
   location.css — 찾아오시는 길 (가뿐한한의원)
   Depends on shared site tokens from header/footer include if present.
   Falls back to local tokens defined below so this page works standalone.
   ========================================================================== */

.gph-location {
    --loc-bg: #ffffff;
    --loc-bg-warm: #f6efe4;
    --loc-bg-warm-soft: #faf6ee;
    --loc-text: #1c1a17;
    --loc-text-muted: #7a746a;
    --loc-border: #e8e1d3;
    --loc-border-strong: #1c1a17;
    --loc-card: #ffffff;
    --loc-accent: #3d8bfd;
    --loc-radius-lg: 28px;
    --loc-radius-md: 18px;
    --loc-radius-pill: 999px;
    --loc-shadow: 0 12px 32px -18px rgba(28, 26, 23, 0.25);
    --loc-container: 1160px;
    --loc-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    font-family: var(--loc-font);
    color: var(--loc-text);
    background: var(--loc-bg);
    -webkit-font-smoothing: antialiased;
}

    .gph-location * {
        box-sizing: border-box;
    }

    .gph-location .container {
        width: 100%;
        max-width: var(--loc-container);
        margin: 0 auto;
        padding: 0 24px;
    }

    .gph-location a {
        color: inherit;
        text-decoration: none;
    }

    .gph-location button {
        font-family: inherit;
        cursor: pointer;
    }

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.loc-hero {
    background: var(--loc-bg-warm);
    padding: 64px 0 56px;
    overflow: hidden;
}

.loc-hero__inner {
    display: flex;
}

.loc-hero__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.loc-hero__text {
    max-width: 520px;
}

    .loc-hero__text::before {
        content: 'FIND US';
        display: inline-flex;
        align-items: center;
        gap: 12px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.14em;
        color: var(--loc-text-muted);
        margin-bottom: 18px;
    }

    .loc-hero__text::after {
        content: '';
    }

    .loc-hero__text h1 {
        font-size: clamp(32px, 4vw, 44px);
        font-weight: 700;
        line-height: 1.25;
        margin: 0 0 20px;
        letter-spacing: -0.01em;
    }

    .loc-hero__text p {
        font-size: 16px;
        line-height: 1.7;
        color: var(--loc-text-muted);
        margin: 0;
    }

.loc-hero__visual {
    flex: 0 0 auto;
    width: min(36vw, 400px);
}

    .loc-hero__visual svg {
        width: 100%;
        height: auto;
        color: #2b2823;
    }

/* --------------------------------------------------------------------
   Map card
   -------------------------------------------------------------------- */
.loc-map-section {
    padding: 56px 0 80px;
}

.loc-map-card {
    border: 1px solid var(--loc-border);
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    background: var(--loc-card);
    box-shadow: var(--loc-shadow);
}

.root_daum_roughmap .wrap_controllers {
    display: none;
}

.root_daum_roughmap .cont .section.lst {
    display: none;
}

.loc-map-image {
    width: 100%;
    height: 420px;
    background: var(--loc-bg-warm-soft);
}

.loc-map-embed {
    width: 100%;
    height: 100%;
}

    .loc-map-embed .root_daum_roughmap {
        width: 100% !important;
        height: 100% !important;
    }

.loc-map-bottom {
    border-top: 1px solid var(--loc-border);
    padding: 20px;
}

.loc-map-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.loc-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    border-radius: var(--loc-radius-pill);
    border: 1px solid var(--loc-border-strong);
    font-size: 15px;
    font-weight: 600;
    color: var(--loc-text);
    background: #fff;
    transition: background 0.2s ease, color 0.2s ease;
}

    .loc-map-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .loc-map-btn:hover {
        background: var(--loc-border-strong);
        color: #fff;
    }

    .loc-map-btn:focus-visible {
        outline: 2px solid var(--loc-accent);
        outline-offset: 2px;
    }

/* --------------------------------------------------------------------
   Guide grid (주소 / 주차 안내 / 버스 안내)
   -------------------------------------------------------------------- */
.loc-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--loc-border);
    border-radius: 0px 0px 5px 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loc-guide-card {
    border-right: 1px solid var(--loc-border);
    padding: 40px 24px;
    text-align: center;
    background: var(--loc-card);
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .loc-guide-card:last-child {
        border-right: none;
    }

    .loc-guide-card .loc-icon {
        width: 36px;
        height: 36px;
        color: var(--loc-text);
        margin-bottom: 14px;
    }

        .loc-guide-card .loc-icon svg {
            width: 100%;
            height: 100%;
        }

    .loc-guide-card h2 {
        font-size: 17px;
        font-weight: 700;
        margin: 0 0 10px;
    }

    .loc-guide-card p {
        font-size: 14px;
        line-height: 1.65;
        color: var(--loc-text-muted);
        margin: 0 0 16px;
    }

.loc-copy-btn {
    margin-top: auto;
    height: 38px;
    padding: 0 18px;
    border-radius: var(--loc-radius-pill);
    border: 1px solid var(--loc-border-strong);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--loc-text);
    transition: background 0.2s ease, color 0.2s ease;
}

    .loc-copy-btn:hover {
        background: var(--loc-border-strong);
        color: #fff;
    }

    .loc-copy-btn.is-copied {
        background: var(--loc-accent);
        border-color: var(--loc-accent);
        color: #fff;
    }

/* --------------------------------------------------------------------
   Info grid (진료시간 / 연락처)
   -------------------------------------------------------------------- */
.loc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 64px;
}

.loc-info-card {
    border: 1px solid var(--loc-border);
    border-radius: var(--loc-radius-md);
    padding: 32px;
    background: var(--loc-card);
}

/* 아이콘 + 제목을 한 줄로 나란히 */
.loc-info-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

    .loc-info-card__head .loc-icon {
        font-size: 22px;
        line-height: 1;
        margin-bottom: 0;
    }

    .loc-info-card__head h2 {
        font-size: 18px;
        font-weight: 700;
        margin: 0;
    }

.loc-time-list {
    margin: 0;
}

    .loc-time-list > div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px dashed var(--loc-border);
        font-size: 15px;
    }

        .loc-time-list > div:last-child {
            border-bottom: none;
        }

    .loc-time-list dt {
        color: var(--loc-text-muted);
    }

    .loc-time-list dd {
        margin: 0;
        font-weight: 600;
    }

.loc-phone {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.loc-kakao-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    width: 100%;
    height: 50px;
    border-radius: var(--loc-radius-pill);
    border: none;
    background: var(--loc-border-strong);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
}

    .loc-kakao-btn:hover {
        opacity: 0.85;
    }

/* --------------------------------------------------------------------
   Bottom CTA
   -------------------------------------------------------------------- */
.loc-bottom-cta {
    border-radius: var(--loc-radius-lg);
    background: var(--loc-bg-warm);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.loc-bottom-cta__illust {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .loc-bottom-cta__illust svg {
        width: 44px;
        height: 44px;
        color: var(--loc-text);
    }

.loc-bottom-cta__text h2 {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.5;
}

/* --------------------------------------------------------------------
   Responsive — tablet
   -------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .loc-hero__visual {
        display: none;
    }
}

/* --------------------------------------------------------------------
   Responsive — mobile
   -------------------------------------------------------------------- */
@media (max-width: 767px) {
    .loc-hero {
        padding: 40px 0 32px;
    }

    .loc-hero__text h1 {
        font-size: 26px;
    }

    .loc-hero__text p {
        font-size: 14px;
    }

    .loc-map-section {
        padding: 32px 0 48px;
    }

    .loc-map-card {
        border-radius: 20px;
    }

    .loc-map-image {
        height: 300px;
    }

    .loc-map-buttons {
        grid-template-columns: 1fr;
    }

    /* guide cards collapse into an accordion-style list */
    .loc-guide-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 32px;
        border: 1px solid var(--loc-border);
        border-radius: 0px 5px 0px 5px;
        overflow: hidden;
    }

    .loc-guide-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--loc-border);
        padding: 18px 40px 18px 16px;
        gap: 14px;
        position: relative;
    }

        .loc-guide-card:last-child {
            border-bottom: none;
        }

        .loc-guide-card .loc-icon {
            width: 26px;
            height: 26px;
            margin-bottom: 0;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .loc-guide-card .loc-guide-card__body {
            flex: 1;
        }

        .loc-guide-card h2 {
            font-size: 15px;
            margin: 0 0 4px;
        }

        .loc-guide-card p {
            font-size: 13px;
            margin: 0;
        }

        /* static chevron — matches the mockup, no expand/collapse */
        .loc-guide-card::after {
            content: '';
            position: absolute;
            right: 16px;
            top: 50%;
            width: 7px;
            height: 7px;
            border-right: 2px solid var(--loc-text-muted);
            border-bottom: 2px solid var(--loc-text-muted);
            transform: translateY(-50%) rotate(-45deg);
            flex-shrink: 0;
        }

        .loc-guide-card .loc-copy-btn {
            margin-top: 10px;
            height: 32px;
            padding: 0 14px;
            font-size: 12px;
        }

    .loc-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 40px;
    }

    .loc-info-card {
        padding: 22px;
    }

    .loc-phone {
        font-size: 24px;
    }

    .loc-kakao-btn {
        display: none;
    }

    .loc-bottom-cta {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
    }
}
