@charset "utf-8";

body{
	background-color: #f5f7fa;
}
.footer{
	background-color: #fff !important;
}

/* User Tier Banner - 상단 고정 회원 등급 표시 */
.user-tier-banner {
	background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
	color: white;
	padding: 1rem;
	text-align: center;
	position: sticky;
	top: 115px;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tier-info {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.tier-badge {
	background: rgba(255,255,255,0.2);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-weight: bold;
}

.tier-upgrade-btn {
	background: #ffd700;
	color: #333;
	padding: 0.5rem 1.5rem;
	border: none;
	border-radius: 20px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s;
}

.tier-upgrade-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

/* Header - Mobile First */
.page-header {
	background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
	color: white;
	padding: 2rem 1rem;
	position: relative;
	overflow: hidden;
}

.page-header::before {
	content: '';
	position: absolute;
	top: 0;
	right: -100px;
	width: 300px;
	height: 300px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
}

.header-content {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.district-name {
	font-size: 1.75rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.district-meta {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1.5rem;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Demographic Stats Grid - Enhanced */
.demographic-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
	background: rgba(255,255,255,0.1);
	padding: 1.5rem;
	border-radius: 12px;
	backdrop-filter: blur(10px);
}

.demographic-item {
	background: rgba(255,255,255,0.15);
	padding: 1rem;
	border-radius: 8px;
	transition: all 0.3s;
}

.demographic-item:hover {
	background: rgba(255,255,255,0.2);
	transform: translateY(-2px);
}

.demographic-label {
	font-size: 0.85rem;
	opacity: 0.9;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.demographic-value {
	font-weight: 700;
	font-size: 1.5rem;
	text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* CSI Tooltip */
.csi-info {
	position: relative;
	display: inline-block;
	cursor: help;
}

.csi-info .question-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: rgba(255,255,255,0.5);
	border-radius: 50%;
	font-size: 0.85rem;
	margin-left: 0.5rem;
	font-weight: bold;
	border: 2px solid rgba(255,255,255,0.8);
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	transition: all 0.3s;
}

.csi-info:hover .question-icon {
	background: rgba(255,255,255,0.8);
	transform: scale(1.1);
}

.csi-tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: white;
	color: #333;
	padding: 0.75rem;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	width: 250px;
	font-size: 0.8rem;
	line-height: 1.4;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	margin-bottom: 0.5rem;
}

.csi-info:hover .csi-tooltip {
	opacity: 1;
	visibility: visible;
}

.csi-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: white;
}

/* Star Rating */
.star-rating {
	display: inline-flex;
	gap: 0.2rem;
	align-items: center;
	margin-left: 0.5rem;
}

.star {
	color: #ffd700;
	font-size: 1.2rem;
}

.star.empty {
	color: #ddd;
}

.rating-text {
	margin-left: 0.5rem;
	font-size: 0.9rem;
	color: rgba(255,255,255,0.9);
}

/* Quick Stats Bar - Mobile First */
.quick-stats {
	background-color: white;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	margin-top: -1.5rem;
	position: relative;
	z-index: 10;
	padding: 1.5rem 1rem;
}

.stats-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stat-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
}

.stat-label {
	color: #666;
	font-size: 0.9rem;
	margin-right: 1rem;
}

/* Info Bar */
.info-bar {
	background-color: #f8f9fa;
	border-bottom: 1px solid #e0e0e0;
	padding: 1rem;
}

.info-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.85rem;
}

.info-container .info-item {
	color: #666;
}

.info-container strong {
	color: #333;
	font-weight: 600;
}

.info-link {
	color: #1a73e8;
	text-decoration: none;
	font-weight: 500;
}

.info-link:hover {
	text-decoration: underline;
}

/* Main Container */
.main-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}

/* Quick Navigation - Mobile */
.quick-nav {
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	padding: 0.75rem;
	margin-bottom: 1.5rem;
	position: sticky;
	top: 175px; /* User tier banner 높이 고려 */
	z-index: 100;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.nav-links {
	display: flex;
	gap: 0.5rem;
	min-width: max-content;
}

.nav-link {
	color: #666;
	text-decoration: none;
	font-size: 0.85rem;
	white-space: nowrap;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	transition: all 0.3s;
	background-color: #f8f9fa;
}

.nav-link:hover, .nav-link.active {
	background-color: #e3f2fd;
	color: #1a73e8;
}

/* Content Sections */
.content-section {
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.section-title {
	font-size: 1.25rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e0e0e0;
}

/* Tier Selector for Demo */
.tier-selector-demo {
	background-color: #fff3cd;
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	border: 2px dashed #ffc107;
}

.tier-selector-demo h3 {
	color: #856404;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}

.tier-selector-demo p {
	font-size: 0.85rem;
	color: #856404;
	margin-bottom: 1rem;
}

.tier-selector {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.tier-selector select {
	padding: 0.5rem 1rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: white;
	cursor: pointer;
	font-size: 0.9rem;
}

/* School Type Selector */
.school-type-selector {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
	background-color: #f8f9fa;
	padding: 0.25rem;
	border-radius: 8px;
}

.type-btn {
	flex: 1;
	padding: 0.75rem;
	border: none;
	background-color: transparent;
	border-radius: 6px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.3s;
	color: #666;
}

.type-btn.active {
	background-color: white;
	color: #1a73e8;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* School Filter */
.school-filter {
	margin-bottom: 1rem;
}

.filter-input {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.9rem;
}

/* School List Table Style */
.school-list-table {
	width: 100%;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.school-list-header {
	display: grid;
	grid-template-columns: 2fr 0.5fr 0.7fr 0.5fr 1fr 0.5fr;
	gap: 1rem;
	padding: 1rem 1.5rem;
	background: #f8f9fa;
	border-bottom: 2px solid #e0e0e0;
	font-size: 0.85rem;
	font-weight: 600;
	color: #666;
}

.school-list-item {
	display: grid;
	grid-template-columns: 2fr 0.5fr 0.7fr 0.5fr 1fr 0.5fr;
	gap: 1rem;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #e0e0e0;
	align-items: center;
	transition: all 0.3s;
	cursor: pointer;
}

.school-list-item:hover {
	background: #f8f9fa;
}

.school-list-name {
	font-weight: 600;
	color: #1a73e8;
}

.school-list-rank {
	text-align: center;
	font-weight: 500;
	color: #333;
}

.school-list-type {
	text-align: center;
	font-size: 0.85rem;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-weight: 500;
}

.type-public {
	background: #e3f2fd;
	color: #1565c0;
}

.type-private {
	background: #f3e5f5;
	color: #6a1b9a;
}

.school-list-favorite {
	text-align: center;
	font-size: 1.2rem;
	cursor: pointer;
	transition: all 0.3s;
}

.school-list-favorite:hover {
	transform: scale(1.2);
}

.school-list-favorite.active {
	color: #ffd700;
}

.school-list-academic {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: center;
}

.academic-lock {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #999;
	font-size: 0.85rem;
}

.academic-score {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.school-list-detail {
	text-align: center;
}

.detail-btn {
	background: none;
	border: 1px solid #ddd;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
	color: #666;
	font-size: 1.2rem;
	margin: 0 auto;
}

.detail-btn:hover {
	background: #1a73e8;
	color: white;
	border-color: #1a73e8;
}

.detail-btn.active {
	background: #1a73e8;
	color: white;
	border-color: #1a73e8;
	transform: rotate(45deg);
}

/* Expanded Detail View */
.school-detail-expanded {
	background: #f8f9fa;
	border-bottom: 1px solid #e0e0e0;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}

.school-detail-expanded.open {
	max-height: 500px;
}

.school-detail-content {
	padding: 1.5rem;
}

/* Tier-specific Promotions */
.tier-promotion {
	background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 2rem;
	text-align: center;
	box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.promotion-title {
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
	color: #e65100;
}

.promotion-text {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 1rem;
}

.promotion-features {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
}

.check-icon {
	color: #4caf50;
}

/* Housing Cost Card - Enhanced */
.housing-cost-card {
	background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
	border-radius: 12px;
	padding: 1.5rem;
	margin-top: 1rem;
	box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
	position: relative;
	border: 2px solid #ffc107;
}

.housing-cost-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.housing-cost-title {
	font-size: 1.2rem;
	font-weight: bold;
	color: #f57c00;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.housing-cost-badge {
	background: #ff6f00;
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: bold;
}

.housing-cost-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
}

.housing-item {
	background: white;
	padding: 1rem;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.housing-type {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 0.5rem;
}

.housing-price {
	font-size: 1.25rem;
	font-weight: bold;
	color: #f57c00;
}

/* Lock overlay for housing cost */
.housing-lock-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255,255,255,0.95);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	backdrop-filter: blur(5px);
}

/* Programs Section - Comment Style */
.programs-comment {
	background: #f8f9fa;
	border-left: 4px solid #1a73e8;
	padding: 1.5rem;
	margin-top: 1rem;
	border-radius: 0 8px 8px 0;
}

.programs-comment h3 {
	font-size: 1.1rem;
	color: #1a73e8;
	margin-bottom: 1rem;
}

.programs-comment p {
	line-height: 1.8;
	color: #555;
}

.programs-comment ul {
	margin-top: 1rem;
	margin-left: 1.5rem;
	line-height: 1.8;
}

.programs-comment li {
	margin-bottom: 0.5rem;
	color: #666;
}

.programs-comment strong {
	color: #333;
}

/* Facility Cards - Redesigned */
.facility-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.facility-card {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.25rem;
	text-align: center;
	transition: all 0.3s;
}

.facility-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border-color: #1a73e8;
}

.facility-icon {
	font-size: 2rem;
	margin-bottom: 0.75rem;
}

.facility-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #333;
}

.facility-info {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 0.5rem;
}

.facility-link {
	color: #1a73e8;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
}

.facility-link:hover {
	text-decoration: underline;
}

/* Medical & Shopping Info Cards */
.info-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.info-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s;
}

.info-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.info-card-header {
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 600;
}

.info-card-header.medical {
	background: #e8f5e9;
	color: #2e7d32;
}

.info-card-header.shopping {
	background: #fff3e0;
	color: #f57c00;
}

.info-card-content {
	padding: 1.5rem;
}

.info-card-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.info-card-item:last-child {
	border-bottom: none;
}

.info-card-label {
	font-size: 0.9rem;
	color: #666;
}

.info-card-value {
	font-weight: 600;
	color: #333;
}

/* Livability Grid - Mobile First */
.livability-grid {
	display: flex;
	flex-direction:column;
	gap: 1rem;
	margin-top: 1rem;
}

.livability-card {
	background-color: #f8f9fa;
	border-radius: 8px;
	padding: 1.25rem;
	text-align: center;
}

.livability-icon {
	width: 50px;
	height: 50px;
	background-color: #e3f2fd;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin: 0 auto 0.75rem;
}

.livability-title {
	font-weight: 500;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.livability-score {
	font-size: 1.5rem;
	font-weight: bold;
	color: #1a73e8;
	margin: 0.5rem 0;
}

.livability-details {
	font-size: 0.8rem;
	color: #666;
	text-align: left;
	margin-top: 0.75rem;
	line-height: 1.4;
}

/* Fee Table - Mobile Optimized */
.fee-table-container {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 1rem;
}

.fee-table {
	width: 100%;
	min-width: 500px;
	border-collapse: collapse;
}

.fee-table th {
	background-color: #f8f9fa;
	padding: 0.75rem 0.5rem;
	text-align: left;
	font-weight: 500;
	border: 1px solid #e0e0e0;
	font-size: 0.85rem;
}

.fee-table td {
	padding: 0.75rem 0.5rem;
	border: 1px solid #e0e0e0;
	font-size: 0.85rem;
}

.fee-amount {
	font-weight: 500;
	color: #1a73e8;
}

/* Hidden by default */
.hidden {
	display: none;
}

/* Sidebar - Mobile (Bottom) */
.sidebar {
	margin-top: 2rem;
}

.sidebar-card {
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.contact-info {
	margin-top: 1rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
}

.contact-icon {
	width: 36px;
	height: 36px;
	background-color: #f0f7ff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1.1rem;
}

/* CTA Buttons */
.cta-button {
	width: 100%;
	padding: 1rem;
	border: none;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
	margin-bottom: 0.75rem;
}

.cta-button.primary {
	background-color: #1a73e8;
	color: white;
}

.cta-button.primary:hover {
	background-color: #1557b0;
}

.cta-button.secondary {
	background-color: white;
	color: #1a73e8;
	border: 2px solid #1a73e8;
}

.cta-button.secondary:hover {
	background-color: #f0f7ff;
}

/* Gallery - Mobile */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin-top: 1rem;
}

.gallery-item {
	position: relative;
	aspect-ratio: 16/9;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
	color: white;
	padding: 0.5rem;
	font-size: 0.75rem;
}

@media (max-width:1280px){
	.user-tier-banner{
		top:62px;
	}
	.quick-nav{
		top:125px;
	}
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
	.page-header {
		padding: 3rem 2rem;
	}
	
	.district-name {
		font-size: 2.5rem;
	}
	
	.district-meta {
		flex-direction: row;
		gap: 2rem;
	}
	
	.demographic-stats {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
	
	.quick-stats {
		padding: 2rem;
	}
	
	.info-container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
	
	.main-container {
		padding: 2rem;
		display: grid;
		grid-template-columns: 1fr 300px;
		gap: 2rem;
	}
	
	.quick-nav {
		padding: 1rem;
	}
	
	.nav-links {
		gap: 1rem;
	}
	
	.nav-link {
		font-size: 0.95rem;
		padding: 0.5rem 1rem;
	}
	
	.content-section {
		padding: 2rem;
	}
	
	.section-title {
		font-size: 1.5rem;
		margin-bottom: 1.5rem;
		padding-bottom: 0.75rem;
	}
	
	.livability-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
	
	.gallery-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 1rem;
	}
	
	.sidebar {
		margin-top: 0;
	}
}

@media (min-width: 1024px) {
	.livability-grid {
		grid-template-columns: repeat(4, 1fr);
	}
} 