/* ==========================================================================
   NANZI RENTAL STUDIO LOCATION MODULE (STRICT ENCAPSULATION & PX UNITS)
   ========================================================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.nanzi-btn.nanzi-btn-primary,
.nanzi-btn.nanzi-btn-primary:link,
.nanzi-btn.nanzi-btn-primary:visited,
.nanzi-btn.nanzi-btn-primary:hover,
.nanzi-btn.nanzi-btn-primary:active,
.nanzi-btn.nanzi-btn-primary:focus,
.nanzi-btn.nanzi-btn-primary span,
.nanzi-btn.nanzi-btn-primary svg {
    color: #ffffff !important;
}

.nanzi-map-section,
.nanzi-map-section *,
.nanzi-map-section *::before,
.nanzi-map-section *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.3px;
}

.nanzi-map-section {
    width: 100%;
    background-color: #ffffff;
    overflow-x: hidden;
    padding: 20px 0px 0px 0px;
    color: #191919;
}

.nanzi-map-container {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 0px;
    overflow: hidden;
}

/* 메인 2단 그리드 레이아웃 (좌측 지도 / 우측 스튜디오 정보) */
.nanzi-map-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 50px;
}

/* 좌측 카카오맵 영역 (그림자 제거) */
.nanzi-map-view-wrap {
    flex: 1 1 60%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    background-color: #f5f5f3;
    min-height: 580px;
}

.nanzi-kakao-canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    min-height: 580px;
    display: block;
    overflow: hidden !important;
}

/* 지도 좌측 하단 플로팅 배지 (그림자 제거) */
.nanzi-map-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #222222;
}

.nanzi-map-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #8c7a6b;
    display: inline-block;
}

/* 우측 정보 패널 */
.nanzi-map-info-wrap {
    flex: 1 1 40%;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 0;
}

.nanzi-studio-name-box {
    margin-bottom: 28px;
}

.nanzi-studio-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #874e50;
    background-color: #f4f4f4;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
	 letter-spacing: 0.1em;
}

.nanzi-studio-name {
    font-size: 28px;
    font-weight: 700;
    color: #141414;
    line-height: 1.35;
}

/* 정보 리스트 (PC 폰트 크기 확대 적용) */
.nanzi-info-list {
    list-style: none;
    border-top: 1px solid #eeeeee;
}

.nanzi-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #eeeeee;
}

.nanzi-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: #f8f7f5;
    border: 1px solid #ece9e4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #5c5046;
    margin-top: 2px;
}

.nanzi-info-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.nanzi-info-content {
    flex: 1;
    min-width: 0;
}

.nanzi-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #888888;
    margin-bottom: 5px;
    display: block;
	letter-spacing: 0.1em;
}

.nanzi-info-text {
    font-size: 17px;
    font-weight: 500;
    color: #1e1e1e;
    line-height: 1.55;
    word-break: keep-all;
}

.nanzi-info-subtext {
    font-size: 14px;
    color: #777777;
    margin-top: 4px;
    line-height: 1.55;
    word-break: keep-all;
}

/* 링크 및 복사 버튼 */
.nanzi-inline-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #555555;
    background-color: #f2f2f2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.nanzi-inline-action:hover {
    background-color: #e4e4e4;
    color: #111111;
}

.nanzi-text-link {
    color: #1e1e1e;
    text-decoration: none;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 1px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nanzi-text-link:hover {
    color: #8c7a6b;
    border-color: #8c7a6b;
}

/* 렌탈스튜디오 추가 안내사항 박스 (PC 폰트 크기 확대 적용) */
.nanzi-guide-box {
    margin-top: 26px;
    background-color: #faf9f7;
    border: 1px solid #edeae4;
    border-radius: 12px;
    padding: 22px 24px;
}

.nanzi-guide-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c2621;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.nanzi-guide-title svg {
    width: 18px;
    height: 18px;
}

.nanzi-guide-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nanzi-guide-list li {
    position: relative;
    padding-left: 14px;
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
    word-break: keep-all;
}

.nanzi-guide-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #8c7a6b;
}

/* 하단 CTA 액션 버튼 그룹 (그림자 제거) */
.nanzi-btn-group {
    margin-top: 28px;
    display: flex;
    gap: 12px;
}

.nanzi-btn {
    flex: 1;
    height: 54px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

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

.nanzi-btn-primary {
    background-color: #874e50;
    color: #ffffff !important;
}

.nanzi-btn-primary:hover {
    background-color: #8b2a2d;
}

.nanzi-btn-outline {
    background-color: #ffffff;
    color: #874e50 !important;
    border-color: #d6d6d6;
}

.nanzi-btn-outline:hover {
    background-color: #f8f8f8;
    border-color: #874e50;
}

/* 복사 완료 토스트 메시지 */
.nanzi-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(25, 25, 25, 0.92);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.nanzi-toast.nanzi-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (태블릿 & 모바일 최적화)
   ========================================================================== */

/* 태블릿 가로/세로 (아이패드, 갤럭시탭 등 1024px 이하) */
@media screen and (max-width: 1024px) {
    .nanzi-map-section {
        padding: 20px 0px 25px 0px;
    }
    .nanzi-map-container {
        padding: 0 0px;
    }
    .nanzi-map-grid {
        flex-direction: column;
        gap: 32px;
        width: 100%;
    }
    .nanzi-map-view-wrap,
    .nanzi-kakao-canvas {
        min-height: 420px;
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .nanzi-map-info-wrap {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        flex: none;
        padding: 0;
    }
    .nanzi-studio-name {
        font-size: 24px;
    }
    .nanzi-info-item {
        padding: 18px 0;
    }
    .nanzi-info-icon {
        width: 38px;
        height: 38px;
    }
    .nanzi-info-icon svg {
        width: 18px;
        height: 18px;
    }
    .nanzi-info-label {
        font-size: 12px;
    }
    .nanzi-info-text {
        font-size: 15px;
        word-break: break-word;
    }
    .nanzi-info-subtext {
        font-size: 13px;
        word-break: break-word;
    }
    .nanzi-inline-action {
        font-size: 12px;
        padding: 3px 9px;
    }
    .nanzi-guide-box {
        padding: 20px;
    }
    .nanzi-guide-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .nanzi-guide-title svg {
        width: 16px;
        height: 16px;
    }
    .nanzi-guide-list {
        gap: 8px;
    }
    .nanzi-guide-list li {
        font-size: 13px;
        padding-left: 12px;
    }
    .nanzi-guide-list li::before {
        top: 8px;
        width: 4px;
        height: 4px;
    }
}

/* 모바일 환경 (767px 이하 - 좌우 여백 15px 엄격 적용) */
@media screen and (max-width: 767px) {
    .nanzi-map-section {
        padding: 20px 0px 25px 0px;
    }
    .nanzi-map-container {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
    .nanzi-map-grid {
        gap: 24px;
    }
    .nanzi-map-view-wrap,
    .nanzi-kakao-canvas {
        min-height: 300px;
        border-radius: 12px;
    }
    .nanzi-map-badge {
        bottom: 12px;
        left: 12px;
        padding: 7px 12px;
        font-size: 12px;
    }
    .nanzi-studio-name-box {
        margin-bottom: 20px;
    }
    .nanzi-studio-name {
        font-size: 21px;
    }
    .nanzi-info-item {
        padding: 15px 0;
        gap: 12px;
    }
    .nanzi-info-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    .nanzi-info-icon svg {
        width: 16px;
        height: 16px;
    }
    .nanzi-info-label {
        font-size: 11px;
    }
    .nanzi-info-text {
        font-size: 14px;
    }
    .nanzi-info-subtext {
        font-size: 12px;
    }
    .nanzi-guide-box {
        padding: 16px;
        margin-top: 20px;
    }
    .nanzi-guide-title {
        font-size: 13px;
    }
    .nanzi-guide-list li {
        font-size: 12px;
    }
    .nanzi-btn-group {
        margin-top: 22px;
        gap: 10px;
    }
    .nanzi-btn {
        height: 48px;
        font-size: 14px;
        gap: 6px;
    }
    .nanzi-btn svg {
        width: 16px;
        height: 16px;
    }
}



/* 커스텀 지도/스카이뷰 버튼 컨트롤 박스 스타일 */
.nanzi-custom-mapctrl {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    gap: 4px;
    background: #ffffff;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
}

.nanzi-ctrl-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #444444;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nanzi-ctrl-btn:hover {
    background: #f0f0f0;
    color: #111111;
}

.nanzi-ctrl-btn.nanzi-active {
    background: #222222;
    color: #ffffff;
}

