/* ===== 히어로 페이지 (메인페이지용) ===== */
.hero-page {
	min-height: 100vh;
}

.hero {
	height: 70vh;
	background: url('/img/main/main.png') center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	position: relative;
}

.hero-text h1 {
	font-size: 48px;
	font-weight: 800;
	margin-bottom: 16px;
	text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-text p {
	font-size: 20px;
	font-weight: 500;
	opacity: 0.9;
}

/* ===== 공통 섹션 스타일 ===== */
.brand-slogan,
.company-intro,
.core-services,
.location-contact {
	padding: 80px 20px;
	text-align: center;
}

.brand-slogan {
	background: var(--bg-white);
}

.company-intro {
	background: var(--bg-light);
}

.core-services {
	background: var(--bg-white);
}

.location-contact {
	background: var(--bg-light);
}

/* 공통 라벨 스타일 */
.slogan-label,
.intro-label,
.service-label,
.location-label {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 1.2px;
	margin-bottom: 20px;
	color: var(--primary-green);
	opacity: 0.9;
}

/* 공통 타이틀 스타일 */
.slogan-title,
.intro-title,
.service-title,
.location-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 40px;
	color: var(--text-dark);
	line-height: 1.4;
}

.service-title {
	margin-bottom: 60px;
}

.intro-title {
	margin-bottom: 32px;
}

.slogan-title {
	margin-bottom: 24px;
}

/* ===== 브랜드 슬로건 섹션 ===== */
.slogan-desc {
	font-size: 18px;
	line-height: 1.8;
	margin: 0 auto;
	max-width: 600px;
	color: var(--text-medium);
}

.slogan-desc .highlight {
	color: var(--primary-green);
	font-weight: 600;
}

/* ===== 회사 소개 섹션 ===== */
.intro-content {
	max-width: 800px;
	margin: 0 auto;
}

.intro-desc {
	font-size: 18px;
	line-height: 1.8;
	color: var(--text-medium);
}

.intro-desc strong {
	color: var(--primary-green);
	font-weight: 700;
}

/* ===== 핵심 서비스 섹션 ===== */
.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
}

.service-item {
	background: var(--bg-white);
	padding: 40px 30px;
	border-radius: 16px;
	transition: all 0.3s ease;
	border: 2px solid var(--border-light);
	box-shadow: 0 4px 12px rgba(70, 163, 86, 0.05);
}

.service-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(70, 163, 86, 0.15);
	border-color: var(--primary-green);
}

.service-icon {
	font-size: 48px;
	margin-bottom: 20px;
}

.service-item h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--text-dark);
}

.service-item p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-medium);
}

/* ===== 찾아오시는 길 섹션 ===== */
.location-content {
	max-width: 1200px;
	margin: 0 auto;
}

/* 지도 컨테이너 및 컨트롤 */
.map-wrapper {
	position: relative;
	width: 100%;
	max-width: 1000px;
	height: 500px;
	margin: 0 auto;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(70, 163, 86, 0.12);
	border: 2px solid var(--border-light);
}

.map-container {
	width: 100%;
	height: 100%;
}

.map-controls {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 100;
}

.map-btn {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(70, 163, 86, 0.2);
	border-radius: 8px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text-dark);
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	min-width: 90px;
	justify-content: center;
}

.map-btn:hover {
	background: var(--primary-green);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(70, 163, 86, 0.3);
}

.map-btn-icon {
	font-size: 14px;
}

.map-type-controls {
	display: flex;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	border: 1px solid rgba(70, 163, 86, 0.2);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
}

.map-type-btn {
	background: transparent;
	border: none;
	padding: 10px 14px;
	color: var(--text-dark);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	flex: 1;
	min-width: 44px;
}

.map-type-btn:first-child {
	border-right: 1px solid rgba(70, 163, 86, 0.2);
}

.map-type-btn:hover {
	background: rgba(70, 163, 86, 0.1);
}

.map-type-btn.active {
	background: var(--primary-green);
	color: white;
}

/* ===== 카카오맵 인포윈도우 스타일 오버라이드 ===== */
div[style*="background"] .custom-infowindow,
*[style*="background-color"] .custom-infowindow,
*[style*="border"] .custom-infowindow {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.custom-infowindow {
	background: var(--bg-white) !important;
	border-radius: 12px;
	padding: 0;
	min-width: 200px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
	border: 1px solid var(--border-light) !important;
	overflow: hidden;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
	position: relative;
	z-index: 999;
	top: -10px;
}

.custom-infowindow::before,
.custom-infowindow::after {
	display: none !important;
}

.info-header {
	background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
	border: 1px solid black;
	border-bottom: none;
	border-radius: 12px 12px 0 0;
	color: white;
	padding: 12px 16px;
	text-align: center;
}

.info-header strong {
	font-size: 16px;
	font-weight: 700;
	display: block;
}

.info-address {
	padding: 14px 16px;
	color: var(--text-medium);
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	border: 1px solid black;
	border-top: none;
	border-bottom: 1px solid var(--border-light);
	background: white;
}

.info-actions {
	padding: 12px;
	display: flex;
	gap: 8px;
	border: 1px solid black;
	border-top: none;
	border-radius: 0 0 12px 12px;
	background: white;
}

.info-btn {
	background: rgba(70, 163, 86, 0.1);
	border: 1px solid rgba(70, 163, 86, 0.3);
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 500;
	color: var(--primary-green);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	flex: 1;
	justify-content: center;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

.info-btn:hover {
	background: var(--primary-green);
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(70, 163, 86, 0.3);
}

.info-btn span {
	font-size: 10px;
}

/* 전체화면 모드 */
.map-wrapper.fullscreen-active {
	border-radius: 0;
	border: none;
}

.map-wrapper.fullscreen-active .map-controls {
	top: 20px;
	right: 20px;
}

/* ===== 메인페이지 반응형 스타일 ===== */

/* 태블릿 */
@media (max-width: 768px) {
	.hero-text h1 {
		font-size: 36px;
	}
	
	.hero-text p {
		font-size: 18px;
	}
	
	.slogan-title,
	.intro-title,
	.service-title,
	.location-title {
		font-size: 28px;
	}
	
	.slogan-desc,
	.intro-desc {
		font-size: 16px;
	}
	
	.brand-slogan,
	.company-intro,
	.core-services,
	.location-contact {
		padding: 60px 20px;
	}
	
	.service-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 30px;
	}
	
	.service-item {
		padding: 30px 20px;
	}
	
	.map-wrapper {
		height: 400px;
		border-radius: 12px;
	}
	
	.map-controls {
		top: 12px;
		right: 12px;
		gap: 6px;
	}
	
	.map-btn {
		padding: 8px 12px;
		font-size: 12px;
		min-width: 80px;
	}
	
	.map-type-btn {
		padding: 8px 12px;
		font-size: 12px;
	}
	
	.custom-infowindow {
		min-width: 100px;
	}
	
	.info-header strong {
		font-size: 15px;
	}
	
	.info-address {
		font-size: 13px;
		padding: 12px 14px;
	}
	
	.info-actions {
		padding: 10px;
		gap: 6px;
	}
	
	.info-btn {
		padding: 5px 8px;
		font-size: 11px;
	}
}

/* 모바일 */
@media (max-width: 480px) {
	.hero {
		height: 60vh;
	}
	
	.hero-text h1 {
		font-size: 28px;
	}
	
	.hero-text p {
		font-size: 16px;
	}
	
	.slogan-title,
	.intro-title,
	.service-title,
	.location-title {
		font-size: 24px;
	}
	
	.brand-slogan,
	.company-intro,
	.core-services,
	.location-contact {
		padding: 40px 16px;
	}
	
	.service-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.location-title {
		margin-bottom: 30px;
	}
	
	.map-wrapper {
		height: 350px;
		border-radius: 8px;
	}
	
	.map-controls {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px;
		top: 8px;
		right: 8px;
		left: 8px;
	}
	
	.map-btn {
		padding: 6px 10px;
		font-size: 11px;
		min-width: 70px;
		flex: 1;
	}
	
	.map-type-controls {
		flex: 1;
		min-width: 100px;
	}
	
	.map-type-btn {
		padding: 6px 10px;
		font-size: 11px;
	}
	
	.custom-infowindow {
		min-width: 100px;
	}
	
	.info-header strong {
		font-size: 14px;
	}
	
	.info-address {
		font-size: 12px;
		padding: 10px 12px;
	}
	
	.info-actions {
		flex-direction: column;
		padding: 8px;
		gap: 4px;
	}
	
	.info-btn {
		padding: 6px 8px;
		font-size: 10px;
	}
}

/* 매우 작은 모바일 */
@media (max-width: 360px) {
	.map-wrapper {
		height: 300px;
	}
	
	.map-controls {
		gap: 3px;
	}
	
	.map-btn {
		font-size: 10px;
		padding: 5px 8px;
	}
	
	.map-type-btn {
		font-size: 10px;
		padding: 5px 8px;
	}
	
	.custom-infowindow {
		min-width: 100px;
	}
}