/* ============================================
   오시는 길 페이지 - Toss Style Design
   ============================================ */

/* 컨테이너 */
.location-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--edu-spacing-12) var(--edu-spacing-6) 80px;
}

/* 헤더 */
.location-header {
	text-align: center;
	margin-bottom: var(--edu-spacing-12);
}

.location-title {
	font-size: var(--edu-text-3xl);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--edu-neutral-900);
	margin: 0 0 8px 0;
}

.location-subtitle {
	font-size: var(--edu-text-base);
	color: var(--edu-neutral-600);
	margin: 0;
}

/* 그리드 레이아웃 */
.location-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--edu-spacing-6);
	margin-bottom: var(--edu-spacing-6);
}

.location-grid:last-child {
	margin-bottom: 0;
}

/* 카드 */
.location-card {
	background: #fff;
	border-radius: 8px;
	border: 1px solid var(--edu-neutral-200);
	padding: var(--edu-spacing-8);
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* 지도 */
.location-map {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--edu-neutral-200);
	height: 100%;
	min-height: 400px;
}

.location-map iframe {
	display: block;
}

/* 카드 타이틀 */
.card-title {
	font-size: var(--edu-text-xl);
	font-weight: 700;
	color: var(--edu-neutral-900);
	margin: 0 0 var(--edu-spacing-4) 0;
	letter-spacing: -0.01em;
}

/* 지하철 정보 */
.subway-info {
	display: flex;
	align-items: center;
	gap: var(--edu-spacing-2);
	margin-bottom: var(--edu-spacing-4);
}

.subway-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0 10px;
	background: #00A4E3;
	color: #fff;
	font-size: var(--edu-text-sm);
	font-weight: 600;
	border-radius: 8px;
}

.station-name {
	font-size: var(--edu-text-base);
	font-weight: 600;
	color: var(--edu-neutral-900);
}

/* 교통안내 스텝 */
.transit-steps {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--edu-spacing-4) 0;
	counter-reset: step-counter;
}

.transit-steps li {
	position: relative;
	padding: var(--edu-spacing-3) 0 var(--edu-spacing-3) 32px;
	font-size: var(--edu-text-base);
	color: var(--edu-neutral-700);
	line-height: 1.5;
	counter-increment: step-counter;
}

.transit-steps li:before {
	content: counter(step-counter);
	position: absolute;
	left: 0;
	top: 12px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--edu-neutral-100);
	color: var(--edu-neutral-600);
	font-size: var(--edu-text-xs);
	font-weight: 600;
	border-radius: 50%;
}

/* 소요 시간 뱃지 */
.time-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--edu-spacing-1) var(--edu-spacing-3);
	background: var(--edu-neutral-100);
	color: var(--edu-neutral-700);
	font-size: var(--edu-text-sm);
	font-weight: 500;
	border-radius: 8px;
	margin-bottom: var(--edu-spacing-6);
}

/* 주차 안내 */
.parking-notice {
	margin-top: auto;
	padding: var(--edu-spacing-4);
	background: var(--edu-neutral-50);
	border-radius: 8px;
}

.parking-notice__header {
	display: flex;
	align-items: center;
	gap: var(--edu-spacing-1);
	margin-bottom: var(--edu-spacing-1);
}

.parking-notice__header svg {
	color: var(--edu-neutral-600);
	flex-shrink: 0;
}

.parking-notice__header strong {
	font-size: var(--edu-text-sm);
	font-weight: 600;
	color: var(--edu-neutral-900);
}

.parking-notice__text {
	font-size: var(--edu-text-sm);
	color: var(--edu-neutral-600);
	line-height: 1.5;
	margin: 0;
	padding-left: 22px;
}

/* 정보 행 */
.info-row {
	padding: var(--edu-spacing-4) 0;
	border-bottom: 1px solid var(--edu-neutral-100);
}

.info-row:first-child {
	padding-top: 0;
}

.info-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.info-label {
	font-size: var(--edu-text-sm);
	color: var(--edu-neutral-500);
	margin-bottom: var(--edu-spacing-1);
	font-weight: 500;
}

.info-value {
	font-size: var(--edu-text-base);
	color: var(--edu-neutral-900);
	line-height: 1.6;
	display: flex;
	align-items: flex-start;
	gap: var(--edu-spacing-2);
	flex-wrap: wrap;
}

/* 복사 버튼 */
.btn-copy {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px var(--edu-spacing-2);
	background: var(--edu-neutral-100);
	border: none;
	border-radius: 8px;
	font-size: var(--edu-text-xs);
	font-weight: 500;
	color: var(--edu-neutral-700);
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 2px;
}

.btn-copy:hover {
	background: var(--edu-neutral-200);
}

.btn-copy svg {
	flex-shrink: 0;
}

/* 건물 이미지 */
.location-image {
	border-radius: 8px;
	overflow: hidden;
	height: 100%;
	min-height: 300px;
}

.location-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 복사 토스트 */
.copy-toast {
	position: fixed;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: var(--edu-neutral-900);
	color: #fff;
	font-size: var(--edu-text-sm);
	font-weight: 500;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transition: transform 0.15s ease, opacity 0.15s ease;
	pointer-events: none;
	z-index: 1000;
}

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

.copy-toast svg {
	flex-shrink: 0;
}

/* 태블릿 */
@media (max-width: 1024px) {
	.location-page {
		padding: 40px 20px 60px;
	}

	.location-title {
		font-size: 30px;
	}

	.location-card {
		padding: 28px;
	}
}

/* 모바일 */
@media (max-width: 768px) {
	.location-page {
		padding: 32px 16px 48px;
	}

	/* 모바일에서는 페이지 내부 헤더 숨김 (상단 고정 헤더에 타이틀 표시) */
	.location-header {
		display: none;
	}

	.location-title {
		font-size: 26px;
	}

	.location-subtitle {
		font-size: 16px;
	}

	/* 1열 레이아웃으로 변경 */
	.location-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 16px;
	}

	.location-card {
		padding: 24px;
	}

	.location-map {
		min-height: 300px;
	}

	.location-image {
		min-height: 240px;
	}

	.card-title {
		font-size: 20px;
	}

	.transit-steps li {
		padding-left: 28px;
		font-size: 18px;
	}

	.transit-steps li:before {
		width: 18px;
		height: 18px;
		font-size: 15px;
	}

	.info-value {
		font-size: 18px;
	}

	.copy-toast {
		bottom: 60px;
		max-width: calc(100% - 32px);
	}
}

/* 인쇄 스타일 */
@media print {
	.location-page {
		padding: 0;
	}

	.btn-copy {
		display: none;
	}

	.location-grid {
		page-break-inside: avoid;
	}
}
