﻿@charset "utf-8";

/* ============================================================
   msub12 — 부산 지도·여행형
   ============================================================ */

:root {
	--bm-sea: #b8d8ec;
	--bm-land: #ede8de;
	--bm-mountain: #d6ccba;
	--bm-land-stroke: #9a8a70;
	--bm-contour: rgba(120, 100, 70, 0.18);
	--bm-river: rgba(140, 185, 210, 0.45);
	--bm-road: rgba(150, 130, 100, 0.32);
	--bm-area-text: rgba(80, 65, 45, 0.48);
	--bm-sea-text: rgba(55, 95, 125, 0.55);
	--bm-pin-default: #8a7a60;
	--bm-pin-active: var(--color-primary);
	--bm-compass-bg: rgba(238, 232, 220, 0.75);
	--bm-compass-n: #c0392b;
	--bm-compass-s: #9a8a70;
	--bm-section-bg: #f0f4f8;
}

body.dark {
	--bm-sea: #0b1e30;
	--bm-land: #26201a;
	--bm-mountain: #1c1812;
	--bm-land-stroke: #5a4e38;
	--bm-contour: rgba(200, 175, 130, 0.1);
	--bm-river: rgba(20, 50, 75, 0.6);
	--bm-road: rgba(180, 160, 120, 0.18);
	--bm-area-text: rgba(200, 180, 140, 0.38);
	--bm-sea-text: rgba(100, 160, 200, 0.42);
	--bm-pin-default: #7a6a52;
	--bm-pin-active: var(--color-primary);
	--bm-compass-bg: rgba(38, 32, 26, 0.75);
	--bm-compass-n: #e05252;
	--bm-compass-s: #7a6a52;
	--bm-section-bg: #111827;
}

/* ============================================================
   진행 바
   ============================================================ */
.bm-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: var(--color-primary);
	z-index: 9999;
	transition: width 0.1s linear;
}

/* ============================================================
   히어로
   ============================================================ */
.bm-hero {
	position: relative;
	height: 100vh;
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.bm-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	clip-path: inset(0 100% 0 0);
	will-change: clip-path, transform;
}

.bm-hero-dim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.58) 100%);
	z-index: 1;
}

.bm-hero-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #fff;
	padding: 0 24px;
}

.bm-hero-eye {
	font-size: clamp(14px, calc(13px + 0.5vw), 18px);
	text-transform: uppercase;
	opacity: 0;
	margin-bottom: 16px;
	color: rgba(255, 255, 255, 0.72);
}

.bm-hero-tit {
	font-size: clamp(32px, calc(22px + 2.5vw), 58px);
	font-weight: 700;
	opacity: 0;
	margin-bottom: 20px;
	color: #fff;
}

.bm-hero-sub {
	font-size: clamp(18px, calc(16px + 0.5vw), 24px);
	opacity: 0;
	color: rgba(255, 255, 255, 0.85);
}

.bm-hero-scroll {
	position: absolute;
	bottom: 36px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	opacity: 0;
}

.bm-hero-scroll__mouse {
	width: 24px;
	height: 38px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 12px;
	display: flex;
	justify-content: center;
	padding-top: 6px;
}

.bm-hero-scroll__wheel {
	width: 4px;
	height: 8px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 2px;
	animation: bmScrollWheel 1.8s infinite;
}

.bm-hero-scroll__text {
	font-size: clamp(11px, calc(10px + 0.2vw), 13px);
	color: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
}

@keyframes bmScrollWheel {
	0% {
		transform: translateY(0);
		opacity: 1;
	}
	100% {
		transform: translateY(10px);
		opacity: 0;
	}
}

/* ============================================================
   인트로
   ============================================================ */
.bm-intro {
	padding: clamp(56px, 8vw, 112px) 0;
	background: var(--color-bg-main);
}

.bm-intro-inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 60px);
}

.bm-intro-inner p {
	font-size: clamp(18px, calc(16px + 0.4vw), 22px);
	line-height: 1.3;
	color: var(--color-text-sub);
	word-break: keep-all;
}

/* ============================================================
   지도 섹션
   ============================================================ */
.bm-section {
	background: var(--bm-section-bg);
	padding: clamp(48px, 6vw, 96px) 0;
}

.bm-section-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 60px);
	display: grid;
	grid-template-columns: 55fr 45fr;
	gap: clamp(24px, 3vw, 52px);
	align-items: start;
}

/* ============================================================
   지도 좌측
   ============================================================ */
.bm-map {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bm-map-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.bm-map-region {
	font-size: clamp(18px, calc(16px + 0.4vw), 22px);
	font-weight: 700;
	color: var(--color-text-main);
}

.bm-map-eng {
	font-size: clamp(14px, calc(13px + 0.5vw), 18px);
	color: var(--color-text-muted);
}

.bm-map-canvas {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.bm-map-svg {
	width: 100%;
	height: auto;
	display: block;
}

/* SVG 요소 스타일 */
.bm-land {
	fill: var(--bm-land);
}

.bm-river {
	fill: var(--bm-river);
}

.bm-coastline {
	fill: var(--bm-land-stroke);
}

.bm-contour {
	fill: none;
	stroke: var(--bm-contour);
	stroke-width: 0.9;
}

.bm-road {
	fill: none;
	stroke: var(--bm-road);
	stroke-width: 2.5;
	stroke-dasharray: 6 4;
	stroke-linecap: round;
}

.bm-area-label {
	font-size: 11px;
	fill: var(--bm-area-text);
}

.bm-sea-label {
	font-size: 11px;
	fill: var(--bm-sea-text);
}

.bm-compass-bg {
	fill: var(--bm-compass-bg);
	stroke: var(--bm-land-stroke);
	stroke-width: 0.8;
}

.bm-compass-n {
	fill: var(--bm-compass-n);
}
.bm-compass-s {
	fill: var(--bm-compass-s);
}

.bm-compass-text {
	font-size: 8px;
	fill: var(--bm-compass-n);
	font-weight: 700;
}

/* 핀 마커 */
.bm-pin {
	cursor: pointer;
}

.bm-pin-ripple {
	fill: none;
	stroke: var(--bm-pin-default);
	stroke-width: 1.5;
	transform-box: fill-box;
	transform-origin: center;
	animation: bmPinRipple 2.4s ease-out infinite;
}

.bm-pin[data-spot="1"] .bm-pin-ripple {
	animation-delay: 0.48s;
}
.bm-pin[data-spot="2"] .bm-pin-ripple {
	animation-delay: 0.96s;
}
.bm-pin[data-spot="3"] .bm-pin-ripple {
	animation-delay: 1.44s;
}
.bm-pin[data-spot="4"] .bm-pin-ripple {
	animation-delay: 1.92s;
}

.bm-pin-dot {
	fill: var(--bm-pin-default);
	transition: fill 0.25s;
}

.bm-pin-label {
	font-size: 10.5px;
	fill: var(--bm-pin-default);
	transition: fill 0.25s;
	pointer-events: none;
	font-weight: 600;
}

.bm-pin:hover .bm-pin-ripple,
.bm-pin.is-active .bm-pin-ripple {
	stroke: var(--bm-pin-active);
}

.bm-pin:hover .bm-pin-dot,
.bm-pin.is-active .bm-pin-dot {
	fill: var(--bm-pin-active);
}

.bm-pin:hover .bm-pin-label,
.bm-pin.is-active .bm-pin-label {
	fill: var(--bm-pin-active);
}

@keyframes bmPinRipple {
	0% {
		transform: scale(1);
		opacity: 0.75;
	}
	100% {
		transform: scale(2.8);
		opacity: 0;
	}
}

.bm-map-guide {
	font-size: clamp(14px, calc(13px + 0.5vw), 18px);
	color: var(--color-text-muted);
	text-align: center;
}

/* ============================================================
   패널 우측
   ============================================================ */
.bm-panel {
	position: sticky;
	top: 120px;
	background: var(--color-bg-main);
	border-radius: 16px;
	box-shadow: var(--shadow-md);
	overflow: hidden;
	min-height: 500px;
}

/* 기본 패널 */
.bm-panel-default {
	padding: clamp(28px, 4vw, 48px);
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-height: 500px;
}

.bm-panel-deco {
	display: flex;
	align-items: baseline;
	gap: 14px;
}

.bm-panel-deco-kr {
	font-size: clamp(36px, calc(28px + 1.2vw), 50px);
	font-weight: 800;
	color: var(--color-text-main);
}

.bm-panel-deco-cn {
	font-size: clamp(18px, calc(14px + 0.5vw), 24px);
	font-weight: 300;
	color: var(--color-text-muted);
}

.bm-panel-lead {
	font-size: clamp(14px, calc(13px + 0.5vw), 18px);
	color: var(--color-text-sub);
	word-break: keep-all;
}

.bm-spot-list {
	list-style: none;
	border-top: 1px solid var(--color-border);
	margin-top: auto;
}

.bm-spot-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--color-border);
	cursor: pointer;
	transition: color 0.2s;
}

.bm-spot-item__num {
	font-size: clamp(14px, calc(13px + 0.5vw), 18px);
	color: var(--color-text-muted);
	min-width: 26px;
}

.bm-spot-item__name {
	font-size: clamp(18px, calc(16px + 0.3vw), 20px);
	color: var(--color-text-main);
	flex: 1;
	transition: color 0.2s;
}

.bm-spot-item__arr {
	font-size: clamp(14px, calc(13px + 0.5vw), 18px);
	color: var(--color-text-muted);
	transition:
		color 0.2s,
		transform 0.2s;
	display: inline-block;
}

.bm-spot-item:hover .bm-spot-item__name,
.bm-spot-item:hover .bm-spot-item__num {
	color: var(--color-primary);
}

.bm-spot-item:hover .bm-spot-item__arr {
	color: var(--color-primary);
	transform: translateX(4px);
}

/* 장소 상세 패널 */
.bm-panel-spot {
	display: flex;
	flex-direction: column;
}

.bm-panel-spot.is-hidden {
	display: none;
}

.bm-panel-back {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 14px 20px;
	background: none;
	border: none;
	border-bottom: 1px solid var(--color-border);
	cursor: pointer;
	font-size: clamp(14px, calc(13px + 0.5vw), 18px);
	color: var(--color-text-sub);
	transition: color 0.2s;
	width: 100%;
	text-align: left;
}

.bm-panel-back:hover {
	color: var(--color-primary);
}

.bm-panel-img-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.bm-panel-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.bm-panel-img-wrap:hover .bm-panel-img {
	transform: scale(1.04);
}

.bm-panel-img-overlay {
	position: absolute;
	bottom: 14px;
	left: 14px;
	display: flex;
	gap: 8px;
	align-items: center;
}

.bm-panel-cat {
	font-size: 14px;
	background: var(--color-primary);
	color: #fff;
	padding: 3px 12px;
	border-radius: 20px;
	text-transform: uppercase;
}

.bm-panel-idx {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

.bm-panel-body {
	padding: clamp(20px, 3vw, 32px);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bm-panel-title {
	font-size: clamp(20px, calc(17px + 0.5vw), 26px);
	font-weight: 700;
	color: var(--color-text-main);
}

.bm-panel-subtitle {
	font-size: clamp(14px, calc(13px + 0.5vw), 18px);
	color: var(--color-text-muted);
}

.bm-panel-desc {
	font-size: clamp(14px, calc(13px + 0.5vw), 18px);
	color: var(--color-text-sub);
	word-break: keep-all;
}

.bm-panel-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: none;
	margin-top: 6px;
	transition: gap 0.2s;
}

.bm-panel-link:hover {
	gap: 12px;
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 999px) {
	.bm-section-inner {
		grid-template-columns: 1fr;
	}

	.bm-panel {
		position: static;
		min-height: auto;
	}
}

@media (max-width: 768px) {
	.bm-panel-default {
		min-height: auto;
		padding: 24px 20px;
	}

	.bm-panel-body {
		padding: 18px 20px;
	}
}

@media (max-width: 499px) {
	.bm-section {
		padding: 36px 0;
	}

	.bm-map-canvas {
		border-radius: 10px;
	}

	.bm-panel {
		border-radius: 10px;
	}

	.bm-pin-label {
		display: none;
	}
}
