:root {
	--bg-dark: #121826;
	--bg-card: #1f2937;
	--primary-blue: #2563eb;
	--primary-blue-hover: #1d4ed8;
	--text-main: #ffffff;
	--text-muted: #9ca3af;
	--border-color: #374151;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Inter', sans-serif;
	background-color: #0b0f19;
	color: var(--text-main);
	-webkit-font-smoothing: antialiased;
	display: flex;
	justify-content: center;
}

.app-container {
	width: 100%;
	max-width: 480px;
	background-color: var(--bg-dark);
	min-height: 100vh;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
	position: relative;
	padding-bottom: 90px;
}

/* Header */
.top-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.2rem 1.25rem;
	position: sticky;
	top: 0;
	z-index: 50;
}

.logo-area {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.logo {
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-login {
	background-color: rgba(37, 99, 235, 0.9);
	color: white;
	border: none;
	border-radius: 0.5rem;
	padding: 0.45rem 1rem;
	font-weight: 500;
	font-size: 0.85rem;
	cursor: pointer;
	backdrop-filter: blur(5px);
}

/* Hero Section with proper background image from Step 21 */
.hero-section {
	position: relative;
	display: flex;
	flex-direction: column;
	padding-bottom: 2rem;
	min-height: 100svh;
}

.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('/hero.png');
	background-size: cover;
	background-position: center 15%;
	z-index: 1;
}

.hero-bg .overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(18, 24, 38, 0.55) 0%, rgba(18, 24, 38, 0.15) 35%, rgba(18, 24, 38, 0.15) 55%, rgba(18, 24, 38, 0.7) 80%, var(--bg-dark) 100%);
}

/* Title vertically centered within hero */
@keyframes pulse-glow {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);
	}

	70% {
		box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

.hero-cta {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	padding: 0.8rem 2rem;
	border-radius: 100px;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	animation: pulse-glow 2.5s infinite running;
}

.hero-cta:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px) scale(1.02);
	animation-play-state: paused;
}

/* Chat pinned to bottom of hero */
.hero-chat-bottom {
	position: relative;
	z-index: 2;
	padding: 0 1.25rem 1.5rem;
	margin-top: auto;
}



/* Feed Grid */
.popular-section {
	padding: 1rem 1.25rem;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.section-header h2 {
	font-size: 1.2rem;
	font-weight: 600;
}

.view-all {
	color: var(--primary-blue);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
}

/* Feed Filters Horizontal Scroll */
.feed-filters {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 15px;
	margin-bottom: 10px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.feed-filters::-webkit-scrollbar {
	display: none;
}

.feed-filter {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #cbd5e1;
	padding: 8px 18px;
	border-radius: 20px;
	white-space: nowrap;
	cursor: pointer;
	font-weight: 500;
	font-size: 0.9rem;
	transition: all 0.2s;
}

.feed-filter.active {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.feed-grid {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.feed-card {
	background-color: var(--bg-card);
	border-radius: 1rem;
	overflow: hidden;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img-gallery {
	position: relative;
	width: 100%;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	/* Firefox */
}

.card-img-gallery::-webkit-scrollbar {
	display: none;
}

.card-img-gallery>.card-img {
	height: 250px;
	flex: 0 0 100%;
	scroll-snap-align: start;
	background-size: cover;
	background-position: center;
	position: relative;
}

.card-img-gallery .badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 5;
}

.badge {
	background-color: var(--primary-blue);
	color: white;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.35rem 0.6rem;
	border-radius: 0.25rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-body {
	padding: 1.25rem;
}

.card-body h3 {
	font-size: 1.1rem;
	margin-bottom: 0.35rem;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-body .desc {
	font-size: 0.9rem;
	color: #cbd5e1;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 7;
	line-clamp: 7;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-features-box {
	background: rgba(255, 255, 255, 0.04);
	border-radius: 0.75rem;
	padding: 1rem;
	margin-top: 0.75rem;
}

.badge-red {
	background-color: rgba(239, 68, 68, 0.15);
	color: #ef4444;
	font-size: 0.65rem;
	font-weight: 700;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.card-footer .price {
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
}

.rooms-badge {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--text-muted);
	padding: 0.2rem 0.6rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	max-width: 55%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
	text-align: right;
}

/* FAQ Accordion */
.faq-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.faq-item {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	overflow: hidden;
}

.faq-item summary {
	padding: 1rem 1.25rem;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	list-style: none;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: '+';
	font-size: 1.25rem;
	color: #60a5fa;
	transition: transform 0.2s;
}

.faq-item[open] summary::after {
	content: '-';
}

.faq-content {
	padding: 0 1.25rem 1.25rem;
	color: #cbd5e1;
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Floating Action Button (FAB) Stack */
.fab-stack {
	position: fixed;
	bottom: 24px;
	right: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	z-index: 1000;
}

.fab-btn {
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s, box-shadow 0.2s;
	text-decoration: none;
}

.fab-btn.fab-whatsapp {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #128C7E, #25D366);
}

.fab-btn.fab-telegram {
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #0088cc, #00a2ff);
}

.fab-btn:hover {
	transform: scale(1.1);
}

.fab-btn.fab-whatsapp:hover {
	box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* =========================================================================
   DESKTOP ADAPTATION (min-width: 1024px)
   Does not affect mobile layouts!
   ========================================================================= */
@media (min-width: 1024px) {
	body {
		background-color: #050812;
		/* Darker backdrop outside the app wrapper */
	}

	.app-container {
		max-width: 1200px;
		border-radius: 20px;
		margin-top: 2rem;
		margin-bottom: 2rem;
		border: 1px solid rgba(255, 255, 255, 0.05);
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
		overflow: hidden;
		/* To keep hero bg inside borders */
	}

	.hero-section {
		min-height: 600px;
	}

	.hero-title-top {
		padding: 0 4rem;
		margin-top: 4rem;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.hero-title-top h1 {
		font-size: 4.5rem;
		line-height: 1.1;
		margin-bottom: 1rem;
	}

	.hero-title-top p {
		font-size: 1.3rem;
		max-width: 700px;
		margin: 0 auto;
	}

	/* Turn feed into a 3-column Grid */
	.feed-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}

	.popular-section {
		padding: 4rem 3rem;
	}

	.section-header h2 {
		font-size: 2rem;
	}

	/* Contacts Footer */
	.social-modal {
		padding: 4rem;
	}

	.social-link {
		font-size: 1.2rem;
		padding: 1.2rem;
		max-width: 400px;
		margin: 0 auto;
	}
}