/* Home Container */
.home-container {
	width: 100%;
	overflow-x: hidden;
	background-color: #f8f9fa;
}

/* General Section Styles */
section {
	padding: 60px 20px;
	box-sizing: border-box;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	color: #2c2c2c;
	margin-bottom: 10px;
	text-align: center;
}

.section-subtitle {
	text-align: center;
	color: #666;
	margin-bottom: 40px;
	font-size: 1.1rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* Hero Section */
.hero-section {
	background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(/assets/img/home/home3.webp) no-repeat center center;
	background-size: cover;
	height: 60vh;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding: 0 20px;
}

.hero-content {
	max-width: 800px;
	width: 100%;
}

#slogan {
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 10px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
	font-size: 1.5rem;
	margin-bottom: 30px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#searchbtn {
	background: #fff;
	border-radius: 50px;
	padding: 15px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 500px;
	margin: 0 auto;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	color: #71818a;
	font-size: 1.1rem;
}

#searchbtn:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

#searchbtn img {
	width: 24px;
	height: 24px;
	opacity: 0.6;
}

/* Categories Section */
.categories-section {
	background-color: #fff;
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 20px;
	margin-top: 40px;
	justify-content: start;
	align-items: center;
}

.category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
	padding: 0;
	/* Removed padding */
	transition: all 0.3s ease;
	text-align: center;
	height: 100%;
	width: 100%;
}

.category-card:hover {
	transform: translateY(-5px);
}

.category-icon {
	width: 100%;
	/* Full width */
	height: auto;
	/* Auto height */
	aspect-ratio: 1 / 1;
	/* Keep square aspect ratio if desired, or remove for natural height */
	background: transparent;
	/* Remove background */
	border-radius: 0;
	/* Remove radius */
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	overflow: hidden;
}

.category-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Fill the area */
	border-radius: 10px;
}

.category-name {
	font-weight: 600;
	color: #444;
	padding: 10px;
}

/* Places Grid & Cards */
.places-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.place-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.place-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.place-card a {
	color: inherit;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.place-img {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.place-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.place-card:hover .place-img img {
	transform: scale(1.05);
}

.badge-featured {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #e686cd;
	color: #fff;
	padding: 5px 10px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.place-info {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.place-info h3 {
	margin: 0 0 10px;
	font-size: 1.1rem;
	line-height: 1.4;
	color: #2c2c2c;
}

.place-location {
	font-size: 0.9rem;
	color: #888;
	margin-bottom: 10px;
}

.rating {
	margin-top: auto;
	display: flex;
	align-items: center;
	font-size: 0.9rem;
}

.stars {
	color: #f4c150;
	letter-spacing: 2px;
	margin-right: 5px;
}

.count {
	color: #aaa;
	font-size: 0.8rem;
}

/* Recommended Section (Horizontal Scroll/Tabs style) */
.recommended-section {
	background: #fff;
}

.category-group {
	margin-bottom: 50px;
}

.group-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.group-header h3 {
	margin: 0;
	font-size: 1.5rem;
	color: #444;
}

.tabs-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 30px;
}

.tab-btn {
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 10px 20px;
	font-size: 1rem;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tab-btn:hover {
	color: #81b2e5;
}

.tab-btn.active {
	color: #81b2e5;
	border-bottom-color: #81b2e5;
}

.view-all {
	color: #81b2e5;
	font-weight: 600;
	font-size: 0.9rem;
}

.places-scroll-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.no-location-prompt {
	text-align: center;
	padding: 60px;
	background: #f9f9f9;
	border-radius: 12px;
	cursor: pointer;
	border: 2px dashed #ddd;
	transition: all 0.3s ease;
}

.no-location-prompt:hover {
	background: #f0f7ff;
	border-color: #81b2e5;
}

.no-location-prompt img {
	width: 48px;
	opacity: 0.5;
	margin-bottom: 15px;
}

.no-location-prompt p {
	font-size: 1.2rem;
	color: #666;
	margin: 0;
}

/* Events Section */
.events-section {
	background-color: #f8f9fa;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.btn-outline {
	border: 2px solid #81b2e5;
	color: #81b2e5;
	padding: 8px 20px;
	border-radius: 20px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-outline:hover {
	background: #81b2e5;
	color: #fff;
}

.event-card .place-img {
	height: 160px;
}

/* Latest Section (Masonry-ish) */
.latest-section {
	background: #fff;
}

.masonry-grid {
	column-count: 3;
	/* Reduced from 4 to 3 for less density */
	column-gap: 30px;
	/* Increased gap */
}

.masonry-item {
	break-inside: avoid;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	margin-bottom: 30px;
	/* Increased margin */
	padding: 20px;
	/* Increased padding */
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.category-badge {
	display: inline-block;
	background: #f0f0f0;
	color: #666;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.mini-card {
	display: flex;
	margin-bottom: 15px;
	align-items: center;
	border-bottom: 1px solid #f5f5f5;
	padding-bottom: 10px;
}

.mini-card:last-of-type {
	border-bottom: none;
}

.mini-card a {
	display: flex;
	align-items: center;
	width: 100%;
	color: inherit;
}

.mini-img {
	width: 60px;
	/* Slightly larger */
	height: 60px;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
	margin-right: 15px;
}

.mini-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mini-info h4 {
	margin: 0 0 4px;
	font-size: 1rem;
	/* Slightly larger */
	font-weight: 600;
	line-height: 1.2;
}

.mini-info .city {
	font-size: 0.85rem;
	color: #999;
}

.view-all-sm {
	display: block;
	text-align: center;
	font-size: 0.9rem;
	color: #81b2e5;
	margin-top: 15px;
	font-weight: 600;
}

/* CTA Section */
.cta-section {
	padding: 80px 20px;
}

.cta-box {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	margin-bottom: 40px;
}

.register-cta {
	background: linear-gradient(135deg, #81b2e5 0%, #6a9bd0 100%);
	color: #fff;
}

.register-cta .cta-content {
	flex: 1;
	padding: 40px;
}

.register-cta h3 {
	font-size: 2rem;
	margin-top: 0;
	margin-bottom: 20px;
}

.register-cta ul {
	list-style: none;
	padding: 0;
	margin-bottom: 30px;
}

.register-cta li {
	margin-bottom: 10px;
	position: relative;
	padding-left: 25px;
}

.register-cta li:before {
	content: '✓';
	position: absolute;
	left: 0;
	font-weight: bold;
}

.btn-primary {
	background: #fff;
	color: #81b2e5;
	border: none;
	padding: 12px 30px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.2s;
}

.btn-primary:hover {
	transform: scale(1.05);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-image {
	flex: 1;
	height: 100%;
	min-height: 200px;
	max-height: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-cta .cta-image {
	flex: 1;
	height: 100%;
	min-height: 300px;
	max-height: unset;
}

.cta-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
	;
}

.app-cta {
	background: #2c2c2c;
	color: #fff;
}

.app-cta .cta-content {
	flex: 1;
	padding: 40px;
}

.app-cta h3 {
	font-size: 1.8rem;
	margin-top: 0;
	margin-bottom: 20px;
}

.app-cta p {
	margin-bottom: 30px;
	line-height: 1.6;
}

.btn-store img {
	height: 60px;
}

/* SEO Section */
.seo-section {
	background: #f8f9fa;
	padding-top: 40px;
	padding-bottom: 80px;
	border-top: 1px solid #eee;
	text-align: center;
	/* Centered text */
}

.seo-content {
	max-width: 800px;
	margin: 0 auto;
	color: #666;
	line-height: 1.8;
	padding: 0 20px;
	/* Added padding */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
	.masonry-grid {
		column-count: 3;
	}
}

@media (max-width: 768px) {
	.hero-section {
		height: 50vh;
	}

	#slogan {
		font-size: 2rem;
	}

	.hero-subtitle {
		font-size: 1.1rem;
	}

	.masonry-grid {
		column-count: 2;
	}

	.cta-box {
		flex-direction: column;
	}

	.cta-image {
		width: 100%;
		height: 200px;
		min-height: auto;
	}
}

@media (max-width: 480px) {
	.section-title {
		font-size: 1.5rem;
	}

	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.places-grid {
		grid-template-columns: 1fr;
	}

	.masonry-grid {
		column-count: 1;
	}

	.group-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.view-all {
		margin-top: 10px;
	}
}

/* Animations */
.fade-in-section {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	will-change: opacity, visibility;
}

.fade-in-section.is-visible {
	opacity: 1;
	transform: none;
}

/* Staggered animation for grid items */
.places-grid .place-card,
.categories-grid .category-card,
.masonry-item {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.places-grid.is-visible .place-card,
.categories-grid.is-visible .category-card,
.masonry-grid.is-visible .masonry-item {
	opacity: 1;
	transform: none;
}

/* Delays for staggered effect (up to 8 items) */
.places-grid.is-visible .place-card:nth-child(1),
.categories-grid.is-visible .category-card:nth-child(1) {
	transition-delay: 0.1s;
}

.places-grid.is-visible .place-card:nth-child(2),
.categories-grid.is-visible .category-card:nth-child(2) {
	transition-delay: 0.2s;
}

.places-grid.is-visible .place-card:nth-child(3),
.categories-grid.is-visible .category-card:nth-child(3) {
	transition-delay: 0.3s;
}

.places-grid.is-visible .place-card:nth-child(4),
.categories-grid.is-visible .category-card:nth-child(4) {
	transition-delay: 0.4s;
}

.places-grid.is-visible .place-card:nth-child(5),
.categories-grid.is-visible .category-card:nth-child(5) {
	transition-delay: 0.5s;
}

.places-grid.is-visible .place-card:nth-child(6),
.categories-grid.is-visible .category-card:nth-child(6) {
	transition-delay: 0.6s;
}

.places-grid.is-visible .place-card:nth-child(7),
.categories-grid.is-visible .category-card:nth-child(7) {
	transition-delay: 0.7s;
}

.places-grid.is-visible .place-card:nth-child(8),
.categories-grid.is-visible .category-card:nth-child(8) {
	transition-delay: 0.8s;
}