/* Final CSS: Fixed Body BG, Hero Text w/ Shadow (No Overlay) */
:root {
	--primary-dark-blue: #0a192f;
	--accent-green: #81C784;
	--text-light: #e0e0e0;
	--text-white: #ffffff;
	--subtle-gray: #3a4a63;
	--highlight-blue: #1c3a5e;
    --text-dark: #333333; 
    /* NEW: Define text shadow using dark blue */
    --hero-text-shadow: 1px 1px 3px var(--primary-dark-blue); 
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	height: 100%;
	font-family: 'Lato', 'Noto Sans KR', sans-serif;
	line-height: 1.6;
	background-image: url('uploads/hero-background.jpg');
	background-color: var(--primary-dark-blue); 
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	background-attachment: fixed; 
	color: var(--text-dark); /* Default dark text for body */
	overflow-x: hidden;
}

.page-container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
}

/* Header - Kept as user provided */
.site-header {
	padding: 12px 15px;
	position: sticky;
	top: 0;
	background: linear-gradient(to right, var(--accent-green), var(--highlight-blue));
	z-index: 10;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	position: sticky;
	overflow: hidden;
	min-height: 60px; 
	display: flex;
	align-items: center;
}

.logo-container {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

.logo {
	height: 40px;
	width: auto;
	filter: brightness(0) invert(1);
	display: block;
	margin-right: 15px; 
}

/* Main Content Area */
.main-content {
	flex-grow: 1;
	padding-top: 10px;
}

/* Hero Section */
.hero {
	text-align: center;
	padding: 30px 20px 30px; /* Keep original padding */
	/* --- CHANGE: Removed background overlay --- */
	background-color: transparent; 
    /* Remove margin/border-radius associated with the overlay */
    margin: 0; 
    border-radius: 0;
}

.main-headline {
	font-family: 'Montserrat', sans-serif;
	letter-spacing: 1px;
	margin-bottom: 10px;
	line-height: 1.2;
	font-weight: 700;
}

.main-headline .stone {
	font-size: 3rem;
	/* --- CHANGE: Back to light text --- */
	color: var(--text-white); 
	opacity: 0.9;
    /* --- CHANGE: Added text shadow --- */
    text-shadow: var(--hero-text-shadow); 
}

.main-headline .go {
	font-size: 3.3rem;
	color: var(--accent-green); /* Keep accent green */
	margin-left: 5px;
	opacity: 0;
	animation: subtleGoFadeScale 0.8s ease-out 0.5s forwards;
    /* --- CHANGE: Added text shadow --- */
    text-shadow: var(--hero-text-shadow); 
}

.sub-headline {
	font-size: 1rem;
	font-weight: 400;
	/* --- CHANGE: Back to light text --- */
	color: var(--text-light); 
	opacity: 0;
	animation: fadeInSimple 0.8s ease-out 1.5s forwards;
	max-width: 90%;
	margin: 0 auto;
    /* --- CHANGE: Added text shadow --- */
    text-shadow: var(--hero-text-shadow); 
}

/* Destinations Section - Kept as user provided */
.destinations-container {
	padding: 25px 15px 40px;
}

.destinations {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	max-width: 600px;
	margin: 0 auto;
}

.destination-item {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	text-decoration: none;
	border: 2px solid transparent;
	background-color: var(--subtle-gray);
	transition: border-color 0.3s ease, transform 0.15s ease;
	opacity: 0;
	animation: popInBubbles 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
	animation-delay: calc(var(--animation-order) * 0.08s + 1.2s);
}

/* Assign animation order - Kept */
.destination-item:nth-child(1) { --animation-order: 1; }
.destination-item:nth-child(2) { --animation-order: 2; }
.destination-item:nth-child(3) { --animation-order: 3; }
.destination-item:nth-child(4) { --animation-order: 4; }
.destination-item:nth-child(5) { --animation-order: 5; }
.destination-item:nth-child(6) { --animation-order: 6; }
.destination-item:nth-child(7) { --animation-order: 7; }
.destination-item:nth-child(8) { --animation-order: 8; }
.destination-item:nth-child(9) { --animation-order: 9; }
.destination-item:nth-child(10) { --animation-order: 10; }
.destination-item:nth-child(11) { --animation-order: 11; }


.destination-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, opacity 0.4s ease;
	opacity: 0.7;
}

.destination-item .city-name {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--text-white);
	background-color: rgba(10, 25, 47, 0.7);
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
	text-align: center;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.destination-item:hover {
	border-color: var(--accent-green);
}

.destination-item:hover img {
	transform: scale(1.05);
	opacity: 0.9;
}

.destination-item:hover .city-name {
	background-color: var(--accent-green);
	color: var(--primary-dark-blue); /* Kept as user provided */
}

.destination-item:active {
	transform: scale(0.97);
	border-color: var(--accent-green);
	transition-duration: 0.1s;
}

/* Footer - Kept as user provided */
.site-footer {
	background-color: var(--primary-dark-blue);
	color: rgba(255, 255, 255, 0.6);
	text-align: center;
	padding: 10px 15px; 
	font-size: 0.5rem;  
	border-top: 1px solid var(--subtle-gray);
	margin-top: 40px;
}
.site-footer p { margin-bottom: 8px; }
.site-footer p:last-child { margin-bottom: 0; }

/* Base Animations - Kept */
@keyframes fadeInSimple {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes subtleGoFadeScale {
	0% { opacity: 0; transform: scale(0.8); }
	100% { opacity: 1; transform: scale(1); }
}

@keyframes popInBubbles {
	0% { opacity: 0; transform: scale(0.5); }
	100% { opacity: 1; transform: scale(1); }
}

/* Running Figure Animation - Kept */
.running-figure {
	position: absolute;
	bottom: 2px;
	left: 125px; 
	width: 44px; 
	height: 38px; 
	z-index: 0;
	background-image: url(uploads/running-frame-1.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	filter: brightness(0) invert(1); 
	animation:
		runStep 0.3s steps(1, end) infinite,
		moveAcross 8s linear infinite; 
}

@keyframes runStep {
	0% { background-image: url(uploads/running-frame-1.png); }
	50% { background-image: url(uploads/running-frame-2.png); }
	100% { background-image: url(uploads/running-frame-1.png); }
}

@keyframes moveAcross {
	0% { transform: translateX(0px); }
	100% { transform: translateX(calc(100vw - 60px)); }
}


/* Responsive Adjustments - Kept */
@media (min-width: 600px) {
	.main-headline .stone { font-size: 4rem; }
	.main-headline .go { font-size: 4.3rem; }
	.sub-headline { font-size: 1.1rem; }
	.hero { padding: 40px 20px 40px; } /* Restore original padding for hero */
	.destinations-container { padding: 30px 20px 50px; }
	.destinations { max-width: 600px; gap: 25px; }
	.destination-item .city-name { font-size: 0.9rem; }
	.running-figure { height: 41px; width: 48px; left: 65px; animation-duration: 0.28s, 10.5s; }
	@keyframes moveAcross {
		0% { transform: translateX(0px); }
		100% { transform: translateX(calc(100vw - 65px)); }
	}
}

@media (min-width: 900px) {
	.main-headline .stone { font-size: 5.5rem; }
	.main-headline .go { font-size: 5.8rem; }
	.sub-headline { font-size: 1.2rem; }
	.hero { padding: 50px 20px 50px; } /* Restore original padding for hero */
	.destinations-container { padding: 40px 20px 60px; }
	.destinations { grid-template-columns: repeat(3, 1fr); max-width: 800px; gap: 35px; }
	.destination-item .city-name { font-size: 1rem; padding: 5px 15px; bottom: 15px; }
	.destination-item:hover { transform: translateY(-5px); border-color: var(--accent-green); }
	.running-figure { height: 44px; width: 51px; left: 70px; animation-duration: 0.25s, 10s; }
	 @keyframes moveAcross {
		 0% { transform: translateX(0px); }
		 100% { transform: translateX(calc(100vw - 70px)); }
	 }
}

/* 비활성화된 도시 스타일 (수정됨: opacity 제거) */
.disabled-destination {
  /* opacity: 0.6; */ /* <- 이 줄을 제거하거나 주석 처리 */
  cursor: not-allowed;
  filter: grayscale(80%);
}

/* 비활성화된 도시 위에 마우스를 올려도 hover 효과 제거 */
.disabled-destination:hover {
  border-color: transparent;
  transform: none;
}

.disabled-destination:hover img {
  transform: none;
  /* 애니메이션 후 최종 opacity는 1이므로, hover 시에도 유지되도록 함 */
  /* filter만으로 비활성 느낌을 주므로 별도 opacity 조정 불필요 */
   opacity: 1; /* <- 기존 0.6에서 변경 또는 이 규칙 전체 제거도 가능 */
   filter: grayscale(80%); /* hover 시에도 filter 유지 */
}

.disabled-destination:hover .city-name {
  background-color: rgba(10, 25, 47, 0.7);
  color: var(--text-white);
}

/* 비활성화된 도시 클릭 시 active 효과 제거 */
.disabled-destination:active {
    transform: none;
}