/* 참고 이미지형 오시는 길 섹션 */
.location {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, var(--content-max-width));
    padding: 4.8em 1.4em !important;
}

.location-reference-header {
    width: 100%;
    max-width: var(--block-max-width);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.location-reference-header,
.location-map-card,
.location-reference-buttons,
.location-guide-list {
    flex: 0 0 auto;
    width: min(100%, var(--block-max-width));
    margin-left: auto;
    margin-right: auto;
}

.location-reference-header h2 {
    margin: 0.7em 0 1.9em;
    color: #3f302d;
    font-size: 1.45rem;
    font-weight: 400;
}

.location-reference-header strong {
    display: block;
    color: #493c38;
    font-size: 1rem;
    font-weight: 400;
}

.location-floor {
    margin-top: 0.45em;
    color: #a05f62;
    font-size: 0.82rem;
}

.location-address {
    margin-top: 1em;
    color: #9b918c;
    font-size: 0.75rem;
}

.location-map-card {
    width: 100%;
    max-width: var(--block-max-width);
    height: 175px;
    margin: 1.5em auto 0;
    overflow: hidden;
    background: #eee3d4;
    border: 1px solid rgba(155, 92, 95, 0.12);
    border-radius: 11px;
}

.kakao-venue-map {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.location-map-card { position: relative; }
.kakao-map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: #fff9df;
    color: #493c38;
    text-align: center;
    text-decoration: none;
    font-size: 0.8rem;
    z-index: 1;
}
.kakao-map-fallback b { color: #715c20; }
.kakao-map-fallback span { font-size: 0.75rem; }
.kakao-map-fallback[hidden], .kakao-venue-map[hidden] { display: none; }

.location-reference-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75em;
    width: 100%;
    max-width: var(--block-max-width);
    margin: 1.1em auto 0;
}

.location-reference-buttons button {
    min-height: 43px;
    border: 0;
    border-radius: 23px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.location-reference-buttons button:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}

.location-reference-buttons .naver-map-button {
    background: #03c75a;
    color: #fff;
}

.location-reference-buttons .kakao-map-button {
    background: #fee500;
    color: #3c1e1e;
}

.location-reference-buttons .tmap-button {
    background: #4e6ee8;
    color: #fff;
}

.location-guide-list {
    display: flex;
    flex-direction: column;
    gap: 0.85em;
    width: 100%;
    max-width: var(--block-max-width);
    margin: 2em auto 0;
}

.location-guide-card {
    width: 100%;
    padding: 1.25em 1.4em;
    background: #f3ece4;
    border-radius: 11px;
    text-align: center;
}

.location-guide-card h3 {
    margin-bottom: 0.8em;
    color: #9b5c5f;
    font-size: calc(0.85rem + 2px);
    font-weight: 400;
}

.location-guide-card p {
    color: #5f5551;
    font-size: calc(0.75rem + 2px);
    line-height: 1.9;
}

@media (max-width: 480px) {
    .location {
        padding: 4em 1.2em !important;
    }

    .location-map-card {
        height: 170px;
    }

    .location-reference-header,
    .location-map-card,
    .location-reference-buttons,
    .location-guide-list {
        width: 100%;
        max-width: var(--block-max-width);
    }
}

