/*
 * Minh Hoàng BĐS - Luxury Dark Obsidian & Champagne Gold Design System
 * Primary Color Palette: Obsidian Black (#090a0f), Dark Slate (#12141d), Gold Champagne (#dfba6b)
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #dfba6b;       /* Premium Metallic Gold */
    --primary-hover: #f3d082;       /* Bright Champagne Gold */
    --secondary-color: #12141d;     /* Deep Slate/Charcoal */
    --secondary-light: #181b26;     /* Light Obsidian for Cards */
    --dark-color: #090a0f;          /* Pure Obsidian Dark Background */
    --light-color: #0e1017;         /* Base Body Background */
    --grey-color: #1c1f2b;          /* Dark Dividers */
    --text-dark: #f3f4f6;           /* Main Light Text */
    --text-muted: #9ca3af;          /* Muted Gray Text */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --box-shadow-hover: 0 20px 40px rgba(223, 186, 107, 0.12), 0 5px 15px rgba(0, 0, 0, 0.6);
    --border-gold-soft: 1px solid rgba(223, 186, 107, 0.15);
    --border-gold-focus: 1px solid rgba(223, 186, 107, 0.5);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--light-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: #050608;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 25px;
}

.top-bar-info i {
    color: var(--primary-color);
    margin-right: 8px;
}

.top-bar-social span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- HEADER / NAVIGATION --- */
header {
    background-color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: var(--border-gold-soft);
    box-shadow: var(--box-shadow);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-image-wrap {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 85px;
    width: auto;
    transform: scale(1.8);
    transform-origin: left center;
    object-fit: contain;
    filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.5));
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contact-header {
    background-color: var(--primary-color);
    color: var(--dark-color) !important;
    padding: 10px 22px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(223, 186, 107, 0.2);
}

.btn-contact-header::after {
    display: none;
}

.btn-contact-header:hover {
    background-color: #ffffff;
    color: var(--dark-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(180deg, rgba(9, 10, 15, 0.85) 0%, rgba(14, 16, 23, 0.98) 100%), url('/static/images/hero-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 140px 0 110px 0;
    text-align: center;
    border-bottom: var(--border-gold-soft);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(223, 186, 107, 0.08);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    border: var(--border-gold-soft);
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 54px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.25;
    letter-spacing: 0.5px;
}

.hero h1 span {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--primary-color);
    font-weight: 400;
}

.hero-desc {
    max-width: 780px;
    margin: 0 auto 44px auto;
    font-size: 18px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(223, 186, 107, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(223, 186, 107, 0.35);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* --- STATS SECTION --- */
.stats {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    border: var(--border-gold-soft);
    overflow: hidden;
}

.stat-item {
    padding: 35px 20px;
    text-align: center;
    border-right: 1px solid rgba(223, 186, 107, 0.08);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-lbl {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- BRAND PARTNERS --- */
.partners-section {
    background-color: var(--dark-color);
    padding: 50px 0;
    border-bottom: var(--border-gold-soft);
}

.partners-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    opacity: 0.8;
}

.partners-grid-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logo-item {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    filter: grayscale(1) brightness(0.7) sepia(0.2) contrast(1.2);
    opacity: 0.55;
}

.partner-logo-item img {
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
}

.partner-logo-item:hover {
    filter: grayscale(1) brightness(1.3);
    opacity: 1;
    transform: translateY(-3px);
}

/* --- SECTION GENERAL --- */
.section {
    padding: 90px 0;
    background-color: var(--light-color);
}

.section-grey {
    background-color: var(--secondary-color);
    border-top: var(--border-gold-soft);
    border-bottom: var(--border-gold-soft);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 14px;
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.section-title span {
    font-style: italic;
    color: var(--primary-color);
}

/* --- ABOUT SECTION --- */
.about-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #ffffff;
}

.about-text h2 span {
    font-style: italic;
    color: var(--primary-color);
}

.about-desc {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: justify;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feat-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.feat-icon {
    background-color: rgba(223, 186, 107, 0.08);
    color: var(--primary-color);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-size: 20px;
    border: var(--border-gold-soft);
}

.feat-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.feat-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.about-image img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    border: var(--border-gold-soft);
}

/* --- PROPERTY CARDS GRID --- */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--secondary-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    border: var(--border-gold-soft);
}

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

.card-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-bottom: var(--border-gold-soft);
}

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

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

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--dark-color);
    color: var(--primary-color);
    border: var(--border-gold-soft);
    padding: 4px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 4px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 26px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 58px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-meta-list {
    margin-bottom: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.card-meta span.lbl {
    font-weight: 500;
}

.card-meta span.val {
    color: #ffffff;
    font-weight: 600;
}

.card-meta-price {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: rgba(223, 186, 107, 0.05);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 11px 0;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.card:hover .card-btn {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(223, 186, 107, 0.2);
}

/* --- FILTER FORM (LISTING PAGE) --- */
.filter-box {
    background-color: var(--secondary-color);
    padding: 24px;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
    border: var(--border-gold-soft);
    box-shadow: var(--box-shadow);
}

.filter-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr;
    gap: 15px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    background-color: var(--dark-color);
    color: #ffffff;
    font-size: 14px;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(223, 186, 107, 0.15);
}

.form-group select option {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.filter-form .btn-submit {
    width: 100%;
    padding: 12.5px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(223, 186, 107, 0.15);
}

.filter-form .btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- DETAIL PAGE --- */
.detail-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 40px;
    margin-top: 30px;
}

.detail-main {
    background-color: var(--secondary-light);
    padding: 35px;
    border-radius: var(--border-radius-md);
    border: var(--border-gold-soft);
    box-shadow: var(--box-shadow);
}

.detail-header {
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.35;
}

.detail-meta-row {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.detail-meta-row span {
    font-size: 14px;
    color: var(--text-muted);
}

.detail-meta-row i {
    color: var(--primary-color);
    margin-right: 6px;
}

.detail-gallery {
    margin-bottom: 35px;
}

.gallery-main {
    height: 480px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 15px;
    border: var(--border-gold-soft);
}

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

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.gallery-thumb {
    height: 85px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.gallery-thumb.active, .gallery-thumb:hover {
    border-color: var(--primary-color);
}

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

.detail-section {
    margin-bottom: 44px;
}

.detail-section-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    border-left: 3px solid var(--primary-color);
    padding-left: 14px;
    margin-bottom: 22px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background-color: var(--dark-color);
    padding: 25px;
    border-radius: var(--border-radius-md);
    border: var(--border-gold-soft);
}

.spec-line {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
}

.spec-line:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-line .label {
    font-weight: 500;
    color: var(--text-muted);
}

.spec-line .value {
    font-weight: 600;
    color: #ffffff;
}

.detail-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
}

/* --- SIDEBAR FORM --- */
.detail-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
}

.contact-card {
    background-color: var(--secondary-light);
    color: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    border: var(--border-gold-soft);
}

.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
}

.contact-card p {
    font-size: 13px;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.contact-card .form-group {
    margin-bottom: 18px;
}

.contact-card input, .contact-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    background-color: var(--dark-color);
    color: #ffffff;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.contact-card input:focus, .contact-card textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-card input::placeholder, .contact-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- MESSAGES / FEEDBACK --- */
.messages {
    list-style: none;
    margin-bottom: 24px;
}

.alert-success {
    background-color: rgba(223, 186, 107, 0.08);
    color: var(--primary-color);
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
    border-top: var(--border-gold-soft);
    border-right: var(--border-gold-soft);
    border-bottom: var(--border-gold-soft);
    font-weight: 600;
    font-size: 15px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-color);
    color: var(--text-muted);
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(223, 186, 107, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 1px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-col ul li a {
    color: var(--text-muted);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* --- FLOATING CONTACT BUTTONS --- */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    animation: pulse-ring 2.5s infinite;
}

.float-btn:hover {
    transform: translateY(-5px);
}

.float-zalo {
    background-color: #ffffff;
    color: #0068ff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.float-phone {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(223, 186, 107, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(223, 186, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(223, 186, 107, 0);
    }
}

/* --- PROJECTS SHOWCASE --- */
.projects-section {
    border-bottom: var(--border-gold-soft);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    height: 380px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: var(--border-gold-soft);
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-hover);
}

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

.project-card:hover .project-card-img {
    transform: scale(1.08);
}

.project-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(9, 10, 15, 0.95) 0%, rgba(9, 10, 15, 0.4) 60%, rgba(9, 10, 15, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: var(--transition-smooth);
}

.project-card-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

.project-card-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-card-location i {
    color: var(--primary-color);
}

.project-card-btn {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.project-card:hover .project-card-btn {
    opacity: 1;
    color: #ffffff;
}

/* --- RESPONSIVE DESIGN (IPAD & MOBILE) --- */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    .about-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .filter-form {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }
    .filter-form .form-group:last-child {
        grid-column: span 4;
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        position: static;
        margin-top: 20px;
    }
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
    }
    .footer-col:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .nav-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 12px 0;
    }
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .nav-link {
        font-size: 13px;
        padding: 4px 0;
    }
    .btn-contact-header {
        padding: 6px 14px;
        font-size: 13px;
    }
    .hero {
        padding: 100px 0 80px 0;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero-desc {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-btns .btn {
        width: 100%;
    }
    .stats {
        margin-top: -30px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat-item {
        padding: 25px 15px;
    }
    .stat-item:nth-child(even) {
        border-right: none;
    }
    .stat-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(223, 186, 107, 0.08);
    }
    .partners-grid-logos {
        gap: 20px;
    }
    .partner-logo-item {
        height: 38px;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .about-text h2 {
        font-size: 28px;
    }
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .project-card {
        height: 320px;
    }
    .project-card-title {
        font-size: 20px;
    }
    .card-img-wrap {
        height: 210px;
    }
    .filter-form {
        grid-template-columns: 1fr;
    }
    .filter-form .form-group:last-child {
        grid-column: span 1;
    }
    .gallery-main {
        height: 280px;
    }
    .gallery-thumbs {
        gap: 8px;
    }
    .gallery-thumb {
        height: 55px;
    }
    .specs-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    .spec-line:nth-last-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-col:last-child {
        grid-column: span 1;
    }
    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .float-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}

/* Footer social icons premium transition and hover effects */
.social-icon:hover {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(223, 186, 107, 0.4);
}
.top-bar-social a {
    display: inline-block;
    transition: all 0.3s ease;
}
.top-bar-social a:hover {
    color: var(--primary-color) !important;
    transform: scale(1.2);
}

/* --- LUXURY MEGA MENU NAVIGATION --- */
.nav-item.dropdown-trigger {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 1000px;
    max-width: 90vw;
    background: rgba(18, 20, 29, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border-gold-soft);
    border-radius: var(--border-radius-md);
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1200;
}

.nav-item.dropdown-trigger.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

.mega-column {
    border-right: 1px solid rgba(223, 186, 107, 0.08);
    padding-right: 12px;
}

.mega-column:last-child {
    border-right: none;
    padding-right: 0;
}

.mega-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(223, 186, 107, 0.15);
    padding-bottom: 8px;
}

.mega-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-links li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    display: block;
    transition: var(--transition-smooth);
    line-height: 1.4;
}

.mega-links li a:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

/* Responsiveness for Mobile Viewports */
@media (max-width: 992px) {
    .nav-item.dropdown-trigger.is-open .mega-menu {
        display: none;
    }
    
    .nav-item.dropdown-trigger.active .mega-menu {
        display: block !important;
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        opacity: 1;
        visibility: visible;
        background: rgba(9, 10, 15, 0.5);
        border: none;
        box-shadow: none;
        padding: 15px 10px;
        backdrop-filter: none;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mega-column {
        border-right: none;
        border-bottom: 1px solid rgba(223, 186, 107, 0.06);
        padding-right: 0;
        padding-bottom: 12px;
    }
    
    .mega-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* --- LUXURY MOTION & MICRO-ANIMATIONS (SEO & SEARCH AI SPECIALIZED) --- */

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Page Entry Animations */
.hero-badge {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1 {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-desc {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.hero-btns {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Card Sweep Shine Effect */
.card, .project-card {
    position: relative;
    overflow: hidden;
}

.card::after, .project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(223, 186, 107, 0.18) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 15;
    pointer-events: none;
}

.card:hover::after, .project-card:hover::after {
    left: 150%;
}

/* Floating contact buttons gentle bounce/pulse scale on scroll */
.float-btn {
    animation: float-pulse-ring 2.5s infinite, gentle-bounce 4s ease-in-out infinite !important;
}

@keyframes float-pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(223, 186, 107, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(223, 186, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(223, 186, 107, 0);
    }
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Scroll Reveal base configuration */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Grid staggered scroll reveals */
.scroll-reveal-grid > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-grid.active > * {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-grid.active > *:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal-grid.active > *:nth-child(2) { transition-delay: 0.15s; }
.scroll-reveal-grid.active > *:nth-child(3) { transition-delay: 0.25s; }
.scroll-reveal-grid.active > *:nth-child(4) { transition-delay: 0.35s; }
.scroll-reveal-grid.active > *:nth-child(5) { transition-delay: 0.45s; }
.scroll-reveal-grid.active > *:nth-child(6) { transition-delay: 0.55s; }

/* Pulse Glow border for call-to-action buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.6s;
    pointer-events: none;
}
.btn-primary:hover::before {
    left: 100%;
}

/* --- CUSTOM PREMIUM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #090a0f;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dfba6b 0%, #b89345 100%);
    border: 2px solid #090a0f;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f3d082;
}

/* --- PAGE TRANSITION OVERLAY --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #090a0f;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    opacity: 1;
    visibility: visible;
}
.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}
.loader-logo {
    max-height: 75px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 0px 20px rgba(223, 186, 107, 0.45));
    animation: loader-pulse-gold 2s infinite ease-in-out;
}
.loader-bar {
    width: 160px;
    height: 3px;
    background: rgba(223, 186, 107, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(223, 186, 107, 0.05);
}
.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #dfba6b, transparent);
    animation: loader-progress-anim 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- MAIN PAGE CONTENT FADE IN --- */
main {
    animation: page-content-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loader-pulse-gold {
    0%, 100% {
        transform: scale(0.97);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.03);
        opacity: 1;
        filter: drop-shadow(0px 0px 25px rgba(223, 186, 107, 0.6));
    }
}
@keyframes loader-progress-anim {
    0% { left: -100%; }
    100% { left: 100%; }
}
@keyframes page-content-fade-in {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typed-cursor {
    color: var(--primary-color);
    font-weight: 300;
    margin-left: 5px;
    animation: typed-blink-cursor 0.8s infinite;
}

@keyframes typed-blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- LUXURY FINANCIAL CALCULATOR AND CFLOW TABLE --- */
.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: background 0.3s;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #090a0f;
    box-shadow: 0 0 10px rgba(223, 186, 107, 0.5);
    transition: transform 0.2s, background 0.2s;
}
.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-hover);
}
.calc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #090a0f;
    box-shadow: 0 0 10px rgba(223, 186, 107, 0.5);
    transition: transform 0.2s, background 0.2s;
}
.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-hover);
}

.cashflow-table tbody tr {
    transition: background-color 0.3s ease;
}
.cashflow-table tbody tr:hover {
    background-color: rgba(223, 186, 107, 0.03);
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .calc-results-panel {
        padding: 20px !important;
        gap: 15px !important;
    }
    .calc-results-panel h2 {
        font-size: 28px !important;
    }
    .calc-results-panel h3 {
        font-size: 20px !important;
    }
}




/* MOBILE HEADER FIXES */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    .logo-img {
        transform: scale(1.4) !important;
        transform-origin: center center !important;
        margin: 0 auto;
    }
    .logo-image-wrap {
        width: 100%;
        justify-content: center !important;
        margin-bottom: 10px;
    }
    .nav-bar {
        padding: 10px 0 !important;
        gap: 5px !important;
    }
    .nav-menu {
        flex-direction: column !important;
        width: 100% !important;
        gap: 5px !important;
        padding: 0 !important;
    }
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 8px 0;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    /* Fix mega menu for mobile */
    .mega-menu, .mega-menu[style] {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 10px !important;
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important; /* Hide until tapped */
    }
    .nav-item.is-open .mega-menu, .nav-item.active .mega-menu {
        display: block !important;
    }
    .mega-menu-grid, .mega-menu-grid[style] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .mega-title {
        color: var(--primary-color) !important;
        font-size: 16px !important;
        margin-bottom: 5px !important;
        text-align: center;
    }
    .mega-links li a {
        padding: 8px 0 !important;
        justify-content: center !important;
    }
}
