﻿/*
Theme Name: Homie9 Theme
Theme URI: https://homie9.vn/
Author: Homie9 Team
Author URI: https://homie9.vn/
Description: Giao diá»‡n tá»‘i Æ°u, siÃªu nháº¹ khÃ´ng dÃ¹ng Elementor dÃ nh riÃªng cho Báº¥t Ä‘á»™ng sáº£n Homie9.vn. Há»— trá»£ ACF, Native CPT, Dynamic Permalinks vÃ  Bá»™ lá»c AJAX cao cáº¥p.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homie9
*/

/*
 * Main Stylesheet for Homie9.vn
 * Luxury Dark Navy & Golden Palette | Glassmorphism Header
 */

:root {
	--navy-dark: #0a192f;
	--navy-primary: #0f2137;
	--navy-card: #142a45;
	--navy-light: #1e3a5f;
	--gold-primary: #d4af37;
	--gold-hover: #f3cf65;
	--gold-dark: #b38f24;
	--gold-bg: rgba(212, 175, 55, 0.1);
	--white: #ffffff;
	--light-bg: #f8fafc;
	--card-bg: #ffffff;
	--border-color: #e2e8f0;
	--text-main: #334155;
	--text-muted: #64748b;
	--text-heading: #0a192f;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
	--shadow-md: 0 6px 18px rgba(0,0,0,0.08);
	--shadow-hover: 0 12px 30px rgba(10, 25, 47, 0.15);
	--transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--text-main);
	background-color: var(--light-bg);
	line-height: 1.6;
	font-size: 15px;
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.homie9-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==================== 1. GLASSMORPHISM NAVY HEADER ==================== */
.site-header-glass {
	background: rgba(10, 25, 47, 0.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(212, 175, 55, 0.25);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

/* Logo */
.site-branding {
	display: flex;
	align-items: center;
}

.homie9-header-logo {
	height: 52px;
	width: auto;
	object-fit: contain;
	border-radius: 4px;
	transition: var(--transition);
}

.homie9-header-logo:hover {
	transform: scale(1.02);
}

/* Navigation - Aligned to the Right */
.main-navigation.nav-align-right {
	margin-left: auto;
}

.homie9-menu-list {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 24px;
}

.homie9-menu-list li a {
	color: var(--gold-primary);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 10px 0;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.homie9-menu-list li a:hover,
.homie9-menu-list li.current-menu-item a {
	color: var(--white);
	text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.homie9-menu-list li a::after {
	content: '';
	position: absolute;
	bottom: 2px;
	left: 0;
	width: 0%;
	height: 2px;
	background: var(--gold-primary);
	transition: width 0.25s ease;
}

.homie9-menu-list li a:hover::after,
.homie9-menu-list li.current-menu-item a::after {
	width: 100%;
}

.dropdown-arrow {
	font-size: 11px;
}

/* ==================== 2. SMART MEGA MENU FOR Dá»° ÃN ==================== */
.menu-item-mega {
	position: static !important;
}

.homie9-mega-menu {
	position: absolute;
	top: 80px;
	left: 0;
	width: 100%;
	background: rgba(10, 25, 47, 0.96);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-top: 1px solid rgba(212, 175, 55, 0.3);
	border-bottom: 2px solid var(--gold-primary);
	padding: 25px 0 30px;
	box-shadow: 0 15px 35px rgba(0,0,0,0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.menu-item-mega:hover .homie9-mega-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.mega-menu-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.mega-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-header h4 {
	color: var(--gold-primary);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 1px;
}

.mega-menu-header .view-all-link {
	color: #94a3b8;
	font-size: 13px;
	font-weight: 600;
}

.mega-menu-header .view-all-link:hover {
	color: var(--gold-primary);
}

.mega-menu-projects-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.mega-project-card {
	background: var(--navy-card);
	border: 1px solid rgba(212, 175, 55, 0.2);
	border-radius: var(--radius-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: var(--transition);
}

.mega-project-card:hover {
	transform: translateY(-4px);
	border-color: var(--gold-primary);
	box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.mega-proj-img {
	height: 120px;
	background-size: cover;
	background-position: center;
}

.mega-proj-info {
	padding: 12px;
	text-align: center;
}

.mega-proj-title {
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mega-project-card:hover .mega-proj-title {
	color: var(--gold-primary);
}

/* ==================== 3. SECTION 1: LUXURY HERO BANNER ==================== */
.homie9-home-hero-luxury {
	position: relative;
	min-height: 540px;
	background: linear-gradient(135deg, rgba(10, 25, 47, 0.94) 0%, rgba(15, 33, 55, 0.88) 100%), url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
	display: flex;
	align-items: center;
	padding: 80px 0 90px;
	color: #ffffff;
	text-align: center;
}

.hero-content-wrap {
	position: relative;
	z-index: 2;
	max-width: 960px;
	margin: 0 auto;
}

.hero-badge-gold {
	display: inline-block;
	background: var(--gold-bg);
	border: 1px solid var(--gold-primary);
	color: var(--gold-primary);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 6px 18px;
	border-radius: 30px;
	margin-bottom: 20px;
}

.hero-main-title {
	font-size: 38px;
	font-weight: 900;
	color: #ffffff;
	line-height: 1.25;
	margin-bottom: 14px;
	letter-spacing: 0.5px;
	text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-sub-title {
	font-size: 17px;
	color: #cbd5e1;
	margin-bottom: 35px;
	font-weight: 400;
}

/* Fast Search Luxury Box */
.home-search-luxury-box {
	background: rgba(255, 255, 255, 0.98);
	padding: 8px;
	border-radius: var(--radius-md);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
	border: 2px solid var(--gold-primary);
	max-width: 820px;
	margin: 0 auto;
}

.home-search-form-flex {
	display: flex;
	gap: 10px;
	align-items: center;
}

.search-input-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	padding: 6px 14px;
}

.search-input-wrap .search-icon {
	font-size: 20px;
	margin-right: 10px;
	color: var(--navy-dark);
}

.home-search-input {
	width: 100%;
	border: none;
	outline: none;
	font-size: 16px;
	color: var(--navy-dark);
	font-family: inherit;
}

.btn-home-search-gold {
	background: linear-gradient(135deg, #d4af37 0%, #b38f24 100%);
	color: #0a192f;
	border: none;
	padding: 15px 32px;
	border-radius: var(--radius-sm);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: var(--transition);
	white-space: nowrap;
}

.btn-home-search-gold:hover {
	background: linear-gradient(135deg, #f3cf65 0%, #d4af37 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

/* ==================== 4. SECTION 2: QUICK NAVIGATION CARDS ==================== */
.homie9-quick-links-section {
	margin-top: -45px;
	position: relative;
	z-index: 10;
	margin-bottom: 50px;
}

.quick-links-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.quick-link-card {
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-top: 4px solid var(--navy-primary);
	border-radius: var(--radius-md);
	padding: 22px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: var(--shadow-md);
	transition: var(--transition);
}

.quick-link-card:nth-child(2) {
	border-top-color: var(--gold-primary);
}

.quick-link-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-hover);
	border-color: var(--gold-primary);
}

.card-icon-box {
	font-size: 32px;
	background: var(--light-bg);
	width: 60px;
	height: 60px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.card-text-box h3 {
	font-size: 16px;
	font-weight: 800;
	color: var(--navy-dark);
	margin-bottom: 4px;
}

.card-text-box p {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.4;
}

.card-arrow {
	margin-left: auto;
	font-size: 20px;
	color: var(--gold-primary);
	font-weight: 700;
	transition: transform 0.2s ease;
}

.quick-link-card:hover .card-arrow {
	transform: translateX(5px);
}

/* ==================== 5. HOME SECTIONS & HEADINGS ==================== */
.homie9-home-section {
	padding: 55px 0 65px;
}

.bg-section-light {
	background: #f1f5f9;
}

.section-title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 35px;
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 16px;
}

.section-tag-navy {
	display: inline-block;
	background: var(--navy-primary);
	color: var(--gold-primary);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 3px 10px;
	border-radius: 4px;
	margin-bottom: 6px;
}

.section-tag-gold {
	display: inline-block;
	background: var(--gold-primary);
	color: var(--navy-dark);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 3px 10px;
	border-radius: 4px;
	margin-bottom: 6px;
}

.section-heading {
	font-size: 26px;
	font-weight: 800;
	color: var(--navy-dark);
	line-height: 1.2;
}

.section-subheading {
	font-size: 14px;
	color: var(--text-muted);
	margin-top: 4px;
}

.btn-view-all-gold {
	color: var(--gold-dark);
	font-weight: 800;
	font-size: 14px;
	border: 1px solid var(--gold-primary);
	padding: 8px 18px;
	border-radius: 20px;
	background: #fff;
	transition: var(--transition);
}

.btn-view-all-gold:hover {
	background: var(--gold-primary);
	color: #fff;
}

.btn-view-all-navy {
	color: var(--navy-dark);
	font-weight: 800;
	font-size: 14px;
	border: 1px solid var(--navy-dark);
	padding: 8px 18px;
	border-radius: 20px;
	background: #fff;
	transition: var(--transition);
}

.btn-view-all-navy:hover {
	background: var(--navy-dark);
	color: #fff;
}

/* ==================== 6. PROPERTY CARDS (GRID) ==================== */
.homie9-property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
	gap: 26px;
}

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

.homie9-property-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-hover);
	border-color: var(--gold-primary);
}

.property-card-thumb-wrap {
	position: relative;
	aspect-ratio: 16/10;
	overflow: hidden;
	background: #cbd5e1;
}

.property-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.homie9-property-card:hover .property-card-img {
	transform: scale(1.06);
}

.badge-status-new {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--navy-primary);
	color: var(--gold-primary);
	font-size: 11px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 4px;
	border: 1px solid var(--gold-primary);
}

.badge-status-code {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(10, 25, 47, 0.85);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
}

.property-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.property-card-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.property-card-price {
	font-size: 19px;
	font-weight: 800;
	color: #dc2626;
}

.btn-fav {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: var(--text-muted);
}

.property-card-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	margin-bottom: 12px;
	color: var(--navy-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.property-card-title:hover {
	color: var(--gold-dark);
}

.property-card-specs {
	display: flex;
	gap: 12px;
	font-size: 13px;
	color: var(--text-muted);
	padding: 10px 0;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 10px;
}

.property-card-location {
	font-size: 13px;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ==================== 7. Dá»° ÃN GRID ==================== */
.du-an-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.du-an-card {
	background: #fff;
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
}

.du-an-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-hover);
	border-color: var(--navy-primary);
}

.du-an-thumb-wrap {
	aspect-ratio: 16/10;
	overflow: hidden;
	background: #e2e8f0;
}

.du-an-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.du-an-card:hover .du-an-thumb {
	transform: scale(1.05);
}

.du-an-card-body {
	padding: 20px;
}

.du-an-card-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--navy-dark);
	margin-bottom: 10px;
}

.du-an-card-excerpt {
	font-size: 14px;
	color: var(--text-muted);
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.btn-view-du-an {
	color: var(--gold-dark);
	font-weight: 800;
	font-size: 14px;
	display: inline-block;
}

.btn-view-du-an:hover {
	color: var(--navy-dark);
}

/* ==================== 8. FOOTER ==================== */
.site-footer {
	background: var(--navy-dark);
	color: #94a3b8;
	padding-top: 55px;
	margin-top: 60px;
	border-top: 3px solid var(--gold-primary);
}

.footer-widgets-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1.5fr;
	gap: 40px;
	padding-bottom: 40px;
}

.footer-logo .logo-title {
	font-size: 26px;
	color: var(--gold-primary);
	font-weight: 900;
}

.footer-tagline {
	font-size: 13px;
	color: #e2e8f0;
	margin: 8px 0 12px;
	font-weight: 600;
}

.footer-company-desc {
	font-size: 13px;
	color: #94a3b8;
	line-height: 1.5;
}

.footer-widget-title {
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 18px;
	border-left: 3px solid var(--gold-primary);
	padding-left: 10px;
}

.footer-links, .footer-contact-list {
	list-style: none;
}

.footer-links li, .footer-contact-list li {
	margin-bottom: 10px;
	font-size: 14px;
}

.footer-links a:hover {
	color: var(--gold-primary);
}

.footer-bottom-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px 0;
	text-align: center;
	font-size: 13px;
}

/* Floating Actions */
.homie9-floating-actions {
	position: fixed;
	bottom: 25px;
	right: 25px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 9999;
}

.btn-floating {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.25);
	font-size: 22px;
	position: relative;
	transition: transform 0.2s;
}

.btn-floating:hover {
	transform: scale(1.1);
}

.btn-floating.btn-zalo { background: #0068ff; color: #fff; }
.btn-floating.btn-call { background: #e11d48; color: #fff; }

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

.menu-toggle span {
	display: block;
	width: 24px;
	height: 3px;
	background: var(--gold-primary);
	margin: 4px 0;
	border-radius: 2px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
	.quick-links-grid,
	.du-an-grid,
	.footer-widgets-grid {
		grid-template-columns: 1fr;
	}

	.main-navigation.nav-align-right {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.hero-main-title {
		font-size: 28px;
	}

	.home-search-form-flex {
		flex-direction: column;
	}

	.btn-home-search-gold {
		width: 100%;
	}
}
