@charset "utf-8";

/* 위치 — 요약 행 + 지도 보기 모달
   정본 규격: .claude/skills/style/item-detail-page.md */

.item-map__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    background: #fafbfc;
}

.item-map__info { min-width: 0; }

.item-map__name {
    margin: 0;
    color: var(--tp-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.item-map__addr {
    margin: 4px 0 0;
    color: var(--tp-gray);
    font-size: 13px;
    line-height: 1.5;
}

.item-map__btn {
    flex: 0 0 auto;
    min-width: 104px;
    padding: 12px 20px;
    border: 1px solid var(--tp-blue);
    border-radius: 8px;
    background: #fff;
    color: var(--tp-blue);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.item-map__btn:hover { background: var(--tp-blue-tint); }
.item-map__btn:focus-visible { outline: 2px solid var(--tp-blue); outline-offset: 3px; }

/* ===== 모달 ===== */

.item-map__modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 30, 55, .5);
}

.item-map__modal--open { display: flex; }

.item-map__dialog {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    border-radius: 16px;
    background: #fff;
}

.item-map__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--tp-line);
    /* 앱 웹뷰 — 전체 화면에 가깝게 열리므로 상단 세이프존 확보 */
    padding-top: calc(var(--safeAreaTop2, 0px) + 16px);
    padding-top: calc(var(--safeAreaTop1, 0px) + 16px);
}

.item-map__head-title {
    margin: 0;
    color: var(--tp-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.item-map__x {
    flex: 0 0 auto;
    border: 0;
    background: none;
    color: var(--tp-gray);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.item-map__x:focus-visible { outline: 2px solid var(--tp-blue); outline-offset: 2px; }

.item-map__body {
    overflow-y: auto;
    padding-bottom: calc(var(--safeAreaBottom2, 0px));
    padding-bottom: calc(var(--safeAreaBottom1, 0px));
}

.item-map__img { display: block; width: 100%; }

.item-map__frame {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
}

@media (max-width: 780px) {
    .item-map__row { gap: 12px; padding: 14px 16px; }
    .item-map__btn { width: 100%; }
    .item-map__modal { padding: 0; }
    .item-map__dialog { max-width: none; max-height: 100vh; height: 100%; border-radius: 0; }
    .item-map__body { flex: 1; }
    .item-map__frame { height: 100%; min-height: 320px; }
}
