/* ==========================================================================
   URBANNEST Premium Real Estate Theme
   Color Palette: Corporate Deep Navy Blue & Luxury Warm Gold
   ========================================================================== */

:root {
	--primary: #0f2942;
	--primary-light: #1d3d5f;
	--primary-dark: #071524;
	
	--accent: #c5a880;
	--accent-hover: #bfa054;
	--accent-light: #f9f6f0;
	
	--text-main: #1e2630;
	--text-muted: #60738a;
	--bg-light: #f5f7fa;
	--border-color: #dbe4ed;
	
	--shadow-sm: 0 4px 6px rgba(15, 41, 66, 0.04);
	--shadow-md: 0 10px 20px rgba(15, 41, 66, 0.06);
	--shadow-lg: 0 20px 40px rgba(15, 41, 66, 0.12);
	
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--font-base: 'Inter', 'Noto Sans Thai', sans-serif;
	--font-title: 'Outfit', sans-serif;
	--transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Core Reset --- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-base);
	background-color: var(--bg-light);
	color: var(--text-main);
	line-height: 1.6;
	overflow-x: hidden;
}

/* --- Premium Webkit Scrollbar --- */
::-webkit-scrollbar {
	width: 10px;
}
::-webkit-scrollbar-track {
	background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
	border-radius: 5px;
	border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
	background: var(--accent-hover);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-title);
	font-weight: 700;
	color: var(--primary);
	line-height: 1.25;
}

/* ==========================================================================
   Modular Layout Sections
   ========================================================================== */

/* --- Sticky Premium Header --- */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 5%;
	z-index: 1000;
	background: #ffffff;
	transition: var(--transition);
	border-bottom: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
}

header.scrolled {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	padding: 0.8rem 5%;
	box-shadow: var(--shadow-md);
	border-bottom: 1px solid var(--border-color);
}

/* --- Premium Logo Design --- */
.logo {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	text-decoration: none;
}

.logo-img {
	height: 48px;
	width: auto;
	border-radius: var(--radius-sm);
	/* border: 2px solid var(--accent); */
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
}

header.scrolled .logo-img {
	height: 40px;
}

.logo-text {
	display: flex;
	flex-direction: column;
}

.logo-brand {
	font-family: var(--font-title);
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 2px;
	color: var(--primary);
	line-height: 1;
}

.logo-sub {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 4px;
	color: var(--accent);
	margin-top: 2px;
}

/* --- Desktop Nav Menu --- */
#nav-menu {
	display: flex;
	align-items: center;
	gap: 2.2rem;
}

#nav-menu a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text-main);
	text-decoration: none;
	transition: var(--transition);
	position: relative;
	padding: 0.3rem 0;
}

#nav-menu a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--accent);
	transition: var(--transition);
}

#nav-menu a:hover {
	color: var(--accent);
}

#nav-menu a:hover::after {
	width: 100%;
}

header.scrolled #nav-menu a {
	color: var(--text-main);
}

header.scrolled #nav-menu a:hover {
	color: var(--accent);
}

.nav-close-btn {
	display: none;
}

/* --- Header Actions & Buttons --- */
.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-base);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.6rem 1.4rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
}

.btn-primary {
	background-color: var(--accent);
	color: var(--primary-dark);
	border: 1px solid var(--accent);
}

.btn-primary:hover {
	background-color: var(--accent-hover);
	border-color: var(--accent-hover);
	box-shadow: 0 4px 15px rgba(197, 168, 128, 0.4);
	transform: translateY(-2px);
}

.btn-outline {
	background: transparent;
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: white;
	color: white;
}

.menu-toggle {
	display: none;
	background: transparent;
	border: none;
	color: var(--primary);
	font-size: 1.5rem;
	cursor: pointer;
}

/* --- Parallax Hero Section --- */
.hero {
	position: relative;
	min-height: 85vh;
	display: flex;
	align-items: center;
	background: linear-gradient(rgba(15, 41, 66, 0.8), rgba(7, 21, 36, 0.95)),
				url('../img/hero-bg.jpg') no-repeat center center/cover;
	background-attachment: fixed;
	padding: 8rem 5% 4rem;
	color: white;
}

.hero-content {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 3rem;
	width: 100%;
	align-items: center;
}

.hero-brand-header {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1.5rem;
}

.hero-text .hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(197, 168, 128, 0.15);
	color: var(--accent);
	font-size: 0.85rem;
	font-weight: 700;
	padding: 0.4rem 1rem;
	border-radius: 50px;
	border: 1px solid rgba(197, 168, 128, 0.3);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0;
}

.hero-logo-img {
	display: block;
	width: 120px;
	height: auto;
	/* border: 3px solid #ffffff; */
	/* box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4); */
	animation: rotate-twice-pause 4.5s infinite ease-in-out;
}

@keyframes rotate-twice-pause {
	0% {
		transform: perspective(400px) rotateY(0deg);
	}
	45% {
		transform: perspective(400px) rotateY(720deg);
	}
	100% {
		transform: perspective(400px) rotateY(720deg);
	}
}

.hero-text h1 {
	font-family: 'Cinzel', serif;
	font-size: 3rem;
	font-weight: 700;
	background: linear-gradient(to bottom, #ffe89e 0%, #d4af37 45%, #a67c1e 75%, #ffe89e 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.8)) drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.4));
	margin-bottom: 1.5rem;
	line-height: 1.15;
	letter-spacing: 0.12em;
}

.hero-text h1 span {
	font-family: 'Itim', 'Mali', cursive;
	font-size: 2.3rem;
	font-weight: 400;
	color: #ffffff;
	-webkit-text-fill-color: #ffffff !important;
	letter-spacing: 0.03em;
	display: inline-block;
	margin-top: 0.5rem;
}

.hero-text h1 span.gold-text {
	/* background: linear-gradient(to bottom, #ffe89e 0%, #d4af37 45%, #a67c1e 75%, #ffe89e 100%); */
	background-color: #ffe89e;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent !important;
	filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.8));
}

.hero-text p {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 2.5rem;
}

/* ==========================================================================
   Real Estate Search Portal
   ========================================================================== */

/* --- Advanced Search Box --- */
.search-portal {
	background: white;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-lg);
	padding: 1.8rem;
	margin-top: -3.5rem;
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.search-portal-tabs {
	display: flex;
	gap: 0.5rem;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.8rem;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}
.search-portal-tabs::-webkit-scrollbar {
	display: none;
}

.search-tab-btn {
	background: transparent;
	border: none;
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--text-muted);
	padding: 0.4rem 0.8rem;
	cursor: pointer;
	position: relative;
	transition: var(--transition);
	white-space: nowrap;
	flex-shrink: 0;
}

.search-tab-btn.active {
	color: var(--primary);
}

.search-tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: -0.9rem;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: var(--accent);
}

.search-portal-inputs {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 1rem;
}

.search-input-group {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.search-input-group label {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.search-field-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.search-field-wrapper i {
	position: absolute;
	left: 0.8rem;
	color: var(--accent);
	font-size: 0.95rem;
}

.search-field-wrapper input {
	width: 100%;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.75rem 1rem 0.75rem 2.2rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	background: var(--bg-light);
	color: var(--primary);
	outline: none;
	transition: var(--transition);
	appearance: none;
}

.search-field-wrapper:has(select) i {
	display: none;
}

.search-field-wrapper select {
	width: 100%;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.75rem 0.5rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	background: var(--bg-light);
	color: var(--primary);
	outline: none;
	transition: var(--transition);
	appearance: none;
	cursor: pointer;
	text-align: center;
	text-align-last: center;
}
.search-field-wrapper select option {
	text-align: center;
}

.search-field-wrapper input:focus,
.search-field-wrapper select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
	background: white;
}

/* ==========================================================================
   Popular Searches & Quick Links (Matching exact Reference Realtors design!)
   ========================================================================== */

.popular-searches-section {
	padding: 4rem 5% 2rem;
}

.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-title {
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
	position: relative;
	display: inline-block;
	padding-bottom: 0.8rem;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--accent);
}

.section-subtitle {
	color: var(--text-muted);
	font-size: 0.95rem;
	max-width: 600px;
	margin: 0.5rem auto 0;
}

.popular-links-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 2rem;
}

.popular-links-col {
	background: white;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	padding: 2rem;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
}

.popular-links-col:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
	border-color: var(--accent);
}

.popular-links-col h4 {
	font-size: 1.1rem;
	margin-bottom: 1.2rem;
	border-bottom: 1px solid var(--bg-light);
	padding-bottom: 0.6rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.popular-links-col h4 i {
	color: var(--accent);
}

.popular-links-col ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.popular-links-col ul li a {
	font-size: 0.9rem;
	color: var(--text-muted);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: var(--transition);
}

.popular-links-col ul li a::before {
	content: '\f105';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	color: var(--accent);
	font-size: 0.8rem;
	transition: var(--transition);
}

.popular-links-col ul li a:hover {
	color: var(--accent-hover);
	padding-left: 5px;
}

/* ==========================================================================
   Real Estate Listings Catalog
   ========================================================================== */

.listings-section {
	padding: 2rem 5% 6rem;
}

.category-tabs {
	display: flex;
	justify-content: center;
	gap: 0.8rem;
	margin-bottom: 2.5rem;
}

.category-tabs .tab-btn {
	background: white;
	border: 1px solid var(--border-color);
	font-family: var(--font-base);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--primary);
	padding: 0.6rem 1.4rem;
	border-radius: 50px;
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	box-shadow: var(--shadow-sm);
}

.category-tabs .tab-btn i {
	font-size: 0.85rem;
	color: var(--accent);
}

.category-tabs .tab-btn:hover,
.category-tabs .tab-btn.active {
	background-color: var(--primary);
	color: white;
	border-color: var(--primary);
}

.category-tabs .tab-btn:hover i,
.category-tabs .tab-btn.active i {
	color: var(--accent);
}

/* --- Listings Grid & Luxury Cards --- */
.listings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 2rem;
}

.property-card {
	background: white;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	position: relative;
	cursor: pointer;
}

.property-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
	border-color: var(--accent);
}

.property-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
	transform: scaleX(0);
	transition: var(--transition);
	transform-origin: left;
}

.property-card:hover::after {
	transform: scaleX(1);
}

/* --- Card Media Wrappers --- */
.property-img-wrapper {
	position: relative;
	height: 240px;
	overflow: hidden;
	background: var(--primary-dark);
}

.property-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.property-card:hover .property-img {
	transform: scale(1.1);
	opacity: 0.9;
}

.status-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 0.75rem;
	padding: 0.4rem 0.9rem;
	border-radius: var(--radius-sm);
	color: white;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: var(--shadow-sm);
}

.status-badge.sale {
	background-color: var(--accent);
	color: var(--primary-dark);
}

.status-badge.rent {
	background-color: var(--primary);
	color: white;
	border: 1px solid rgba(197, 168, 128, 0.4);
}

.status-badge.both {
	background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
	color: white;
}

.cat-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(255, 255, 255, 0.9);
	color: var(--primary);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.4rem 0.8rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
}

/* --- Card Information Details --- */
.property-info {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.prop-location {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--accent-hover);
	margin-bottom: 0.5rem;
}

.prop-location i {
	font-size: 0.85rem;
}

.property-name-th {
	font-size: 1.25rem;
	margin-bottom: 0.2rem;
}

.property-name-eng {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-muted);
	margin-bottom: 0.8rem;
}

.property-short-desc {
	font-size: 0.88rem;
	color: var(--text-muted);
	margin-bottom: 1.2rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- Card Tech Specs Row --- */
.property-specs {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	padding: 0.8rem 0;
	margin-bottom: 1.2rem;
}

.spec-item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--primary);
}

.spec-item i {
	color: var(--accent);
	font-size: 0.9rem;
}

/* --- Card Pricing Row --- */
.property-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	padding-top: 0.5rem;
}

.prop-prices {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.price-tag {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-muted);
}

.price-tag strong {
	font-family: var(--font-title);
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--primary);
}

.price-tag.rent-tag strong {
	color: var(--accent-hover);
}

.card-action-btn {
	background: transparent;
	border: 1px solid var(--accent);
	color: var(--primary);
	font-family: var(--font-base);
	font-weight: 700;
	font-size: 0.82rem;
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
}

.property-card:hover .card-action-btn {
	background-color: var(--accent);
	color: var(--primary-dark);
}

/* ==========================================================================
   Breathtaking Details Modal Overlay
   ========================================================================== */

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 41, 66, 0.85);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	opacity: 0;
	pointer-events: none;
	transition: var(--transition);
	padding: 2rem;
}

.modal-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.modal-box {
	background: white;
	width: 98%;
	max-width: 1750px;
	height: 95vh;
	border-radius: var(--radius-md);
	border: 1px solid var(--accent);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.8fr 1fr;
	position: relative;
	transform: scale(0.9) translateY(30px);
	transition: var(--transition);
}

.modal-overlay.active .modal-box {
	transform: scale(1) translateY(0);
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: white;
	border: 1px solid var(--border-color);
	color: var(--primary);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 1010;
	transition: var(--transition);
}

.modal-close:hover {
	background-color: var(--primary);
	color: white;
	border-color: var(--primary);
}

/* --- Modal Gallery Left Sidebar Slider --- */
.modal-gallery {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--primary-dark);
	padding: 1.5rem;
	gap: 1rem;
	border-right: 1px solid var(--border-color);
	justify-content: center;
	min-width: 0;
}

.gallery-viewport {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: #0b1a29;
	display: flex;
	align-items: center;
	justify-content: center;
	height: calc(95vh - 170px);
	width: 100%;
	box-shadow: var(--shadow-sm);
	border: 1px solid rgba(197, 168, 128, 0.2);
}

#gallery-main-container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#gallery-main-container img,
#gallery-main-container video {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.gallery-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(15, 41, 66, 0.7);
	color: var(--accent);
	border: 1px solid var(--accent);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition);
	z-index: 10;
}

.gallery-nav-btn:hover {
	background: var(--accent);
	color: var(--primary-dark);
}

#gallery-prev-btn {
	left: 1rem;
}

#gallery-next-btn {
	right: 1rem;
}

#gallery-thumbnails {
	display: flex;
	gap: 0.6rem;
	overflow-x: auto;
	padding: 0.5rem 0;
	scrollbar-width: thin;
	scrollbar-color: var(--accent) var(--primary-dark);
}

.thumb-item {
	width: 70px;
	height: 50px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	opacity: 0.6;
	transition: var(--transition);
	flex-shrink: 0;
	position: relative;
	background: #000;
}

.thumb-item:hover,
.thumb-item.active {
	opacity: 1;
	border-color: var(--accent);
}

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

.thumb-item .thumb-video-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--accent);
	font-size: 1.2rem;
	text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* --- Modal Body Contents --- */
.modal-body {
	padding: 2.2rem;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	min-width: 0;
}

.modal-header-info {
	margin-bottom: 1.2rem;
}

.modal-badge {
	display: inline-block;
	background: var(--accent-light);
	color: var(--accent-hover);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.3rem 0.8rem;
	border-radius: var(--radius-sm);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: 1px solid rgba(197, 168, 128, 0.2);
}

.modal-title-th {
	font-size: 1.6rem;
	margin-bottom: 0.2rem;
}

.modal-title-eng {
	font-size: 1rem;
	color: var(--text-muted);
	font-weight: 500;
	margin-bottom: 0.8rem;
}

.modal-badges-row {
	display: flex;
	gap: 0.5rem;
}

.modal-loc-badge, .modal-bts-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.3rem 0.6rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
}

.modal-loc-badge {
	color: var(--accent-hover);
	background: var(--accent-light);
	border-color: rgba(197, 168, 128, 0.2);
}

.modal-bts-badge {
	color: var(--primary);
	background: #eef4f8;
}

/* --- Modal Navigation Tabs --- */
.modal-nav {
	position: sticky;
	top: 0;
	background: white;
	z-index: 100;
	display: flex;
	gap: 0.4rem;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 1.2rem;
	margin-top: 1rem;
	padding-top: 0.5rem;
	padding-bottom: 0.2rem;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
	flex-shrink: 0;
}
.modal-nav::-webkit-scrollbar {
	display: none;
}

.modal-nav-btn {
	background: transparent;
	border: none;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--text-muted);
	padding: 0.5rem 1rem;
	cursor: pointer;
	transition: var(--transition);
	position: relative;
	white-space: nowrap;
	flex-shrink: 0;
}

.modal-nav-btn.active {
	color: var(--primary);
}

.modal-nav-btn.active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--accent);
}

/* --- Tab Contents Core --- */
.modal-tab-content {
	display: none;
	flex-direction: column;
	gap: 1rem;
}

.modal-tab-content.active {
	display: flex;
}

.modal-desc-text {
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.6;
}

/* --- Specs Tables --- */
.specs-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.5rem;
}

.specs-table th, .specs-table td {
	padding: 0.8rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--bg-light);
	font-size: 0.9rem;
}

.specs-table th {
	font-weight: 700;
	color: var(--primary);
	width: 40%;
}

.specs-table td {
	font-weight: 600;
	color: var(--text-main);
}

.specs-table td span {
	font-size: 0.78rem;
	color: var(--text-muted);
}

/* --- Interactive Inquiries form --- */
.inquiry-form {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.8rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.form-group label {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.65rem 0.8rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	outline: none;
	background: var(--bg-light);
	transition: var(--transition);
}

.form-group textarea {
	resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: var(--accent);
	background: white;
	box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.1);
}

.form-submit-btn {
	background-color: var(--primary);
	color: white;
	border: 1px solid var(--primary);
	font-family: inherit;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 0.8rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.form-submit-btn:hover {
	background-color: var(--primary-light);
	border-color: var(--primary-light);
	box-shadow: var(--shadow-md);
}

/* --- Form Success State --- */
.modal-success-state {
	display: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2rem 0;
	gap: 1rem;
}

.modal-success-state.active {
	display: flex;
}

.success-icon-wrapper {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #d1fae5;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	box-shadow: var(--shadow-sm);
}

.modal-success-state h3 {
	font-size: 1.4rem;
	color: #059669;
}

.modal-success-state p {
	font-size: 0.9rem;
	color: var(--text-muted);
	max-width: 320px;
	line-height: 1.6;
}

/* ==========================================================================
   Premium Footer Columns
   ========================================================================== */

footer {
	background-color: var(--primary-dark);
	color: white;
	padding: 5rem 5% 2rem;
	border-top: 3px solid var(--accent);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
	gap: 3rem;
	margin-bottom: 4rem;
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}

.footer-logo-img {
	height: 38px;
	width: auto;
	border-radius: var(--radius-sm);
	border: 1px solid var(--accent);
}

.footer-logo span {
	font-family: var(--font-title);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: 2px;
	color: white;
}

.footer-desc {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
}

.footer-socials {
	display: flex;
	gap: 0.8rem;
}

.social-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: var(--transition);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
	background: var(--accent);
	color: var(--primary-dark);
	border-color: var(--accent);
	transform: translateY(-2px);
}

.footer-col h4 {
	font-size: 1.05rem;
	color: white;
	position: relative;
	padding-bottom: 0.5rem;
}

.footer-col h4::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: var(--accent);
}

.footer-col ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.footer-col ul li a {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: var(--transition);
}

.footer-col ul li a:hover {
	color: var(--accent);
	padding-left: 4px;
}

.contact-info-list {
	gap: 1rem !important;
}

.contact-info-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.75);
}

.contact-info-list li i {
	color: var(--accent);
	font-size: 1rem;
	margin-top: 3px;
}

/* --- Footer Bottom credits --- */
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
	display: flex;
	gap: 1.5rem;
}

.footer-bottom-links a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: var(--transition);
}

.footer-bottom-links a:hover {
	color: var(--accent);
}

/* ==========================================================================
   Premium Toast Alert System Styling
   ========================================================================== */

.toast-container {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.toast {
	background: white;
	border-left: 4px solid #059669;
	padding: 1rem 1.4rem;
	border-radius: var(--radius-sm);
	box-shadow: 0 10px 30px rgba(15, 41, 66, 0.15);
	display: flex;
	align-items: center;
	gap: 0.8rem;
	color: var(--primary);
	font-size: 0.9rem;
	font-weight: 600;
	transform: translateX(120%);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 1px solid var(--border-color);
}

.toast.active {
	transform: translateX(0);
}

.toast i {
	font-size: 1.15rem;
	color: #059669;
}

.toast.error {
	border-left-color: #dc2626;
}

.toast.error i {
	color: #dc2626;
}

/* ==========================================================================
   Responsive Breakpoints System
   ========================================================================== */

@media (max-width: 992px) {
	header {
		padding: 1rem 5%;
	}
	
	.btn-phone {
		display: none !important;
	}
	
	#nav-menu {
		gap: 1.2rem !important;
	}
	
	#nav-menu a {
		white-space: nowrap !important;
	}
	
	.hero {
		padding: 7rem 5% 3rem;
		min-height: auto;
	}
	
	.hero-content {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		text-align: center;
	}

	.hero-brand-header {
		margin-top: 2.5rem !important;
	}
	
	.hero-text h1 {
		font-size: 1.8rem;
	}
	
	.search-portal {
		margin-top: -1.5rem;
		width: 100%;
		max-width: 100%;
	}
	
	.search-portal-inputs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.8rem;
		width: 100%;
	}
	
	.section-title {
		font-size: 1.5rem;
		padding-bottom: 0.6rem;
	}
	.section-subtitle {
		font-size: 0.9rem;
	}
	
	.popular-links-grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
	}
	
	.modal-overlay {
		padding: 0.5rem;
	}

	.modal-box {
		grid-template-columns: 1fr;
		width: 98%;
		height: 96vh;
		max-height: 96vh;
	}
	
	.modal-gallery {
		height: auto;
		min-height: auto;
		padding: 0.8rem;
		gap: 0.6rem;
	}

	.gallery-viewport {
		height: 380px;
	}

	.modal-body {
		padding: 1.2rem;
	}
	
	.modal-nav {
		top: 0;
	}
	
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}
	
	#nav-menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		height: 100vh;
		background: var(--primary-dark);
		flex-direction: column;
		padding: 6rem 2rem;
		gap: 1.5rem;
		align-items: flex-start;
		box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
		transition: var(--transition);
	}
	
	#nav-menu.active {
		right: 0;
	}
	
	.nav-close-btn {
		display: block !important;
		position: absolute;
		top: 1.8rem;
		right: 1.8rem;
		background: transparent;
		border: none;
		color: #ffffff !important;
		font-size: 1.6rem;
		cursor: pointer;
		z-index: 10000;
	}
	
	#nav-menu a {
		color: #ffffff !important;
	}
	
	.header-actions {
		display: none;
	}
	
	.search-portal-inputs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.6rem;
		width: 100%;
	}
	.search-input-group {
		width: auto;
	}
	.search-input-group:first-child {
		width: auto;
	}
	.search-input-group label {
		font-size: 0.7rem;
	}
	.search-field-wrapper select,
	.search-field-wrapper input {
		font-size: 0.8rem;
		padding-top: 0.6rem;
		padding-bottom: 0.6rem;
	}
	.search-field-wrapper select {
		padding-left: 0.3rem;
		padding-right: 0.3rem;
	}
	.search-field-wrapper input {
		padding-left: 1.6rem;
		padding-right: 0.4rem;
	}
	.search-field-wrapper i {
		left: 0.5rem;
		font-size: 0.8rem;
	}
	
	.section-title {
		font-size: 1.3rem;
		padding-bottom: 0.5rem;
	}
	.section-subtitle {
		font-size: 0.85rem;
	}
	
	.popular-links-grid {
		grid-template-columns: 1fr;
	}
	
	.category-tabs {
		flex-wrap: wrap;
	}
	
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.footer-bottom {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.hero {
		padding: 6rem 1rem 3rem;
	}
	
	.hero-text h1 {
		font-size: 1.3rem;
		word-break: break-word;
		overflow-wrap: break-word;
	}
	
	.hero-text p {
		font-size: 0.95rem;
	}
	
	.search-portal {
		padding: 1rem;
	}
	
	.listings-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 360px) {
	.search-portal-inputs {
		grid-template-columns: 1fr;
	}
}

/* --- Gallery Fullscreen Button --- */
.gallery-fullscreen-btn {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(15, 41, 66, 0.7);
	color: var(--accent);
	border: 1px solid var(--accent);
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: var(--transition);
}

.gallery-fullscreen-btn:hover {
	background: var(--accent);
	color: var(--primary-dark);
}

/* --- Lightbox Overlay --- */
.lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(10, 25, 41, 0.95);
	backdrop-filter: blur(12px);
	z-index: 3000;
	opacity: 0;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}

.lightbox-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.lightbox-close {
	position: absolute;
	top: 2rem;
	right: 2rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3010;
	transition: var(--transition);
	font-size: 1.2rem;
}

.lightbox-close:hover {
	background: #dc2626;
	color: white;
	border-color: #dc2626;
}

.lightbox-content {
	width: 95vw;
	height: 85vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 20px 50px rgba(0,0,0,0.5);
	border-radius: var(--radius-sm);
}

.lightbox-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(10, 25, 41, 0.75);
	border: 1px solid var(--accent);
	color: var(--accent);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition);
	font-size: 1.3rem;
	z-index: 3010;
}

.lightbox-nav-btn.id-prev {
	left: 1.5rem;
}

.lightbox-nav-btn.id-next {
	right: 1.5rem;
}

.lightbox-nav-btn:hover {
	background: var(--accent);
	color: var(--primary-dark);
}

/* Mobile optimizations for lightbox navigation buttons overlay */
@media (max-width: 768px) {
	.lightbox-nav-btn {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}
	.lightbox-nav-btn.id-prev {
		left: 0.5rem;
	}
	.lightbox-nav-btn.id-next {
		right: 0.5rem;
	}
	.lightbox-close {
		top: 1rem;
		right: 1rem;
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}
}

/* ==========================================================================
   New Living Services & Visual Trust Enhancements (Business Model)
   ========================================================================== */

/* 1. Engineering Quality Stamp Badges */
.verified-badge {
	position: absolute;
	top: 1rem;
	left: 4.5rem;
	background: #0f2942;
	color: #c5a880;
	border: 1px solid #c5a880;
	font-family: var(--font-title);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.4rem 0.8rem;
	border-radius: var(--radius-sm);
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	box-shadow: var(--shadow-sm);
	z-index: 5;
}

.modal-verified-badge {
	background: rgba(15, 41, 66, 0.1);
	color: var(--primary);
	border: 1px solid rgba(15, 41, 66, 0.2);
	font-size: 0.8rem;
	font-weight: 700;
	padding: 0.4rem 0.8rem;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

/* 2. Ready-to-Move Packages Options */
.package-option-card {
	border: 1px solid var(--border-color);
	padding: 1rem;
	border-radius: 8px;
	display: flex;
	gap: 1rem;
	align-items: center;
	cursor: pointer;
	transition: var(--transition);
	background: var(--bg-light);
}

.package-option-card:hover {
	border-color: var(--accent);
	background: white;
	box-shadow: var(--shadow-sm);
}

.package-option-card input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--primary);
	cursor: pointer;
}

.pkg-details h4 {
	margin: 0 0 0.2rem 0;
	font-size: 0.95rem;
	color: var(--primary);
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.pkg-details p {
	margin: 0;
	font-size: 0.82rem;
	color: var(--text-muted);
}

/* 3. Services 4 Pillars Showcase */
.services-portfolio-section {
	padding: 5rem 5%;
	background: white;
}

.services-pillars-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2rem;
	margin-bottom: 5rem;
}

.pillar-card {
	background: var(--bg-light);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 2.2rem 1.8rem;
	text-align: center;
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pillar-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-md);
	border-color: var(--accent);
	background: white;
}

.pillar-icon-wrapper {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	margin-bottom: 1.5rem;
	box-shadow: var(--shadow-sm);
}

.care-color { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.design-color { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.inspector-color { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.builder-color { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.pm-color { background: rgba(236, 72, 153, 0.1); color: #ec4899; }

.pillar-card h3 {
	font-size: 1.25rem;
	margin-bottom: 0.8rem;
}

.pillar-card p {
	font-size: 0.88rem;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.pillar-link {
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--accent-hover);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: var(--transition);
}

.pillar-card:hover .pillar-link {
	gap: 0.6rem;
	color: var(--primary);
}

/* 4. Lifestyle Portfolio Gallery */
.portfolio-showcase {
	border-top: 1px solid var(--border-color);
	padding-top: 4rem;
}

.portfolio-header {
	text-align: center;
	margin-bottom: 3rem;
}

.portfolio-header h3 {
	font-size: 1.8rem;
	margin-bottom: 0.4rem;
}

.portfolio-header p {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
}

.portfolio-item {
	position: relative;
	height: 300px;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	cursor: pointer;
}

.portfolio-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.portfolio-item:hover img {
	transform: scale(1.08);
}

.portfolio-info {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 1.8rem;
	background: linear-gradient(to top, rgba(15, 41, 66, 0.95) 0%, rgba(15, 41, 66, 0.4) 60%, transparent 100%);
	color: white;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	transform: translateY(0);
	transition: var(--transition);
}

.portfolio-info h4 {
	color: white;
	font-size: 1.1rem;
	margin: 0;
}

.portfolio-info p {
	margin: 0;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.8);
}

.portfolio-badge {
	font-family: var(--font-title);
	font-size: 0.7rem;
	font-weight: 700;
	background: rgba(197, 168, 128, 0.2);
	border: 1px solid rgba(197, 168, 128, 0.5);
	color: var(--accent);
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	align-self: flex-start;
	text-transform: uppercase;
}

/* Header action adjustments */
.btn-phone {
	color: var(--primary);
	border: 1px solid rgba(15, 41, 66, 0.2);
}
.btn-phone:hover {
	background: rgba(15, 41, 66, 0.05);
	color: var(--primary-dark);
	border-color: var(--primary);
}

@media (max-width: 768px) {
	.verified-badge {
		position: static;
		margin-bottom: 0.5rem;
		align-self: flex-start;
	}
	.btn-phone {
		padding: 0.5rem 0.8rem;
		font-size: 0.8rem;
	}
	.services-pillars-grid {
		grid-template-columns: 1fr;
	}
	.portfolio-grid {
		grid-template-columns: 1fr;
	}
}

