/* style.css */
/* =========================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    /* --- Color Palette --- */
    /* Primary: Deep Slate Blue (Trust, Professionalism) */
    --color-primary: #0f172a;
    --color-primary-light: #334155;
    --color-primary-dark: #020617;

    /* Accent: Metallic Gold (Luxury, Premium) */
    --color-accent: #d4af37;
    --color-accent-hover: #b5952f;
    --color-accent-light: #fefce8;

    /* Secondary Accent: Deep Orange (Call to Action - warmth without being cheap) */
    --color-action: #c2410c;
    --color-action-hover: #9a3412;

    /* Neutrals */
    --color-bg-body: #f8fafc;
    --color-bg-surface: #ffffff;
    --color-bg-alt: #f1f5f9;

    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-text-white: #ffffff;

    --color-border: #e2e8f0;

    /* Status Colors */
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-error: #ef4444;
    --status-info: #3b82f6;

    /* --- Typography --- */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', sans-serif;
    /* Could use a serif like 'Playfair Display' for extra luxury if imported */

    /* --- Spacing & Layout --- */
    --container-width: 1280px;
    --container-padding: 20px;
    --header-height: 80px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* --- Effects --- */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-primary: 0 10px 30px rgba(15, 23, 42, 0.15);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --backdrop-blur: blur(12px);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =========================================
   3. COMPONENTS (Utilities)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;

    /* Default to Primary/Accent Style */
    background: var(--color-accent);
    color: var(--color-primary);
}

.btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    /*background: var(--color-accent);*/
    color: var(--color-primary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 10px auto 0;
    border-radius: var(--radius-full);
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);

}

header.scrolled {
    background: #ffffff4d;
    backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--shadow-sm);
    /* padding: 10px 0; */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-white);
}

.logo img {
    height: 40px;
    width: auto;
}

header.scrolled .logo {
    color: var(--color-primary);
}

/* Navigation Links */
nav ul {
    display: flex;
    gap: 40px;
}

nav ul li a {
    color: var(--color-text-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

header.scrolled nav ul li a {
    color: var(--color-primary);
}

/* Mobile Menu Trigger */
.mobile-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--color-text-white);
    cursor: pointer;
}

header.scrolled .mobile-menu {
    color: var(--color-primary);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-white);
    margin-bottom: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay + Image */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%),
        url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    color: var(--color-text-white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Base button override for hero */
.hero .btn {
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 15px 40px;
    font-size: 1rem;
}

.hero .btn:hover {
    background: #ffffff;
    color: var(--color-primary);
}

/* =========================================
   6. PROJECTS GRID (Cards)
   ========================================= */
section {
    padding: 25px 0;
}

@media (max-width: 768px) {
    section {
        padding: 10px 0;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
        margin: 0;
        padding-bottom: 10px;
    }
}

.project-card {
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--color-border);
    position: relative;
}

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

.project-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Status Badges */
.project-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.status-completed {
    background: var(--status-success);
    color: white;
}

.status-ongoing {
    background: var(--color-accent);
    color: var(--color-primary);
}

.status-upcoming {
    background: var(--color-primary);
    color: white;
}

.project-details {
    padding: 25px;
}

.project-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.availability {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.availability.for-rent {
    background: #eff6ff;
    color: var(--status-info);
}

.availability.sold-out {
    background: #fef2f2;
    color: var(--status-error);
}

.availability.units-left {
    background: #f0fdf4;
    color: var(--status-success);
}


.project-details h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.project-details p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-main);
}

.project-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* WhatsApp Float Button in Card */
.whatsapp-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #25D366;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.whatsapp-contact:hover {
    transform: scale(1.1);
    background: #128C7E;
}

.whatsapp-contact img {
    width: 30px;
    height: 30px;
    /* filter: brightness(0) invert(1); */
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: var(--color-primary);
    color: var(--color-text-white);
    padding: 80px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-links h3 {
    color: var(--color-text-white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul li {
    margin-bottom: 12px;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* =========================================
   8. ADMIN PANEL STYLES
   ========================================= */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg-alt);
}

.sidebar {
    width: 280px;
    background: var(--color-primary);
    color: white;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    z-index: 99;
}

.sidebar-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.sidebar-header h2 span {
    color: var(--color-accent);
}

.sidebar-menu ul {
    padding: 10px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    color: var(--color-text-light);
    border-left: 4px solid transparent;
    transition: var(--transition-fast);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--color-accent);
}

.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 20px;
}

/* Admin Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: var(--color-bg-surface);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    /* display: flex; */
    /* align-items: flex-start; */
    gap: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-icon.properties {
    background: rgba(15, 23, 42, 0.1);
    color: var(--color-primary);
}

.card-icon.sold {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-error);
}

.card-icon.available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--status-success);
}

.card-info h3 {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    font-weight: 500;
}

.card-info .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Admin Forms */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.content-section {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    nav ul.show {
        transform: translateX(0);
    }

    nav ul li a {
        font-size: 1.5rem;
        color: white;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: var(--transition-normal);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    /* Reveal sidebar logic would generally be added via JS toggle class if requested */
}

/* Admin Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

table th {
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

table td {
    color: var(--color-text-main);
    font-size: 0.95rem;
}

/* Status Badges in Table */
.status-badge {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-ongoing {
    background: #fee2e2;
    color: #991b1b;
}

/* Adjusted for visibility */
.status-badge.status-upcoming {
    background: #e0f2fe;
    color: #075985;
}

.status-badge.status-sold {
    background: #fef2f2;
    color: #ef4444;
}

.status-badge.status-available {
    background: #f0fdf4;
    color: #15803d;
}

/* =========================================
   10. RESTORED & NEW UTILITIES
   ========================================= */

/* Filter Buttons (Properties Page) */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--color-bg-alt);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: var(--color-primary-light);
    color: white;
    border-color: var(--color-primary-light);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Admin Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    /* Square styling requested */
}

/* Force square styling specifically for admin context if needed, or generally for .btn-square class */
.btn-square {
    border-radius: 4px;
}

/* Additional Button Variants */
.btn-warning {
    background: var(--status-warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: var(--status-error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: var(--color-text-muted);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-text-main);
}

/* Animation Utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   11. VISION SECTION
   ========================================= */
.vision-section {
    padding-bottom: 80px;
}

.vision-card {
    display: flex;
    align-items: center;
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow-primary);
}

.vision-content {
    flex: 1;
    padding: 60px;
}

.vision-content h2 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.vision-content p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.vision-features {
    display: flex;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.feature-icon {
    font-size: 1.5rem;
}

.vision-image {
    flex: 1;
    height: 450px;
}

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

/* Responsive Vision */
@media (max-width: 900px) {
    .vision-card {
        flex-direction: column;
    }

    .vision-image {
        width: 100%;
        height: 300px;
        order: -1;
        /* Image on top for mobile */
    }

    .vision-content {
        padding: 40px 20px;
    }

    .vision-features {
        flex-direction: column;
        gap: 15px;
    }
}

/* ================= RESET ================= */

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

body {
    font-family: var(--font-main);
    background: var(--color-bg-surface);
    color: var(--color-primary);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* ================= VARIABLES (Mapped to Root) ================= */
/* Using global variables defined at the top of style.css */
/* 
    --gold: var(--color-accent);
    --gold-dark: var(--color-accent-hover);
    --light: var(--color-bg-alt);
    --border: var(--color-border);
    --muted: var(--color-text-muted);
    */

/* ================= LAYOUT ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 28px 0;
}

.grid {
    display: grid;
    gap: 18px;
}

/* ================= BUTTONS ================= */
.btn-gold {
    background: var(--color-accent);
    color: #fff;
    border: 0;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 150ms ease;
    box-shadow: var(--shadow-md);
}

.btn-gold:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 150ms ease;
}

.btn-outline:hover {
 
    transform: translateY(-1px);
}

/* ================= HEADER (matches your template style) ================= */
header.header {
    background: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 44px;
    width: auto;
}

nav.nav {
    display: flex;
    gap: 26px;
    align-items: center;
}

nav.nav a {
    font-size: 14px;
    color: var(--color-text-main);
}

nav.nav a:hover,
nav.nav a.active {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
    }

    .header-inner .btn-gold {
        display: none;
    }

    nav.nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: var(--color-bg-surface);
        border-bottom: 1px solid var(--color-border);
        padding: 14px 5%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    nav.nav.open {
        display: flex;
    }
}

/* ================= BREADCRUMB / TITLE ================= */
.topbar {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
}

.crumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 13px;
    flex-wrap: wrap;
}

.crumbs a:hover {
    color: var(--color-accent);
}

.title-row {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.title h1 {
    font-family: "Noto Serif", serif;
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.title .sub {
    color: var(--color-text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.price-pill {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.price-pill .label {
    color: var(--color-text-muted);
    font-size: 12px;
}

.price-pill .price {
    color: var(--color-accent);
    font-weight: 800;
    font-size: 22px;
}

/* ================= BADGES / CHIPS ================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(212, 175, 55, 0.08);
    /* Gold */
    color: var(--color-accent-hover);
}

.badge.sale {
    background: rgba(212, 175, 55, 0.12);
}

.badge.rent {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

.chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ================= MAIN CONTENT GRID ================= */
.page {
    padding: 10px 0 30px;
}

.page-grid {
    display: grid;
    /* 75% - 25% */
    grid-template-columns: 3fr 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 1000px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= GALLERY ================= */
.gallery {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--color-bg-surface);
}

.gallery-main {
    position: relative;
    background: var(--color-primary);
}

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

.gallery-overlay {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.gallery-counter {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    background: var(--color-bg-surface);
}

.thumb {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: 120ms ease;
    position: relative;
    background: var(--color-bg-alt);
}

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

.thumb:hover {
    transform: translateY(-1px);
    border-color: var(--color-accent-hover);
}

.thumb.active {
    outline: 2px solid var(--color-accent);
    border-color: var(--color-accent);
}

@media (max-width: 650px) {
    .gallery-main img {
        height: 320px;
    }

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

    .thumb img {
        height: 110px;
    }
}

/* ================= INFO STRIP (icons row like your hero card) ================= */
.info-strip {
    margin-top: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-sm);
    padding: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-main);
    font-size: 14px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
}

.info-item i {
    color: var(--color-accent);
}

/* ================= CONTENT CARDS ================= */
.card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.card h2 {
    font-family: "Noto Serif", serif;
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center !important;
    display: block;
    width: 100%;
}

.muted {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.divider {
    height: 1px;
    background: var(--color-border);
    margin: 14px 0;
}

/* ================= FEATURES (like vision-feature chips) ================= */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
}

.feature .icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(212, 175, 55, 0.10);
    /* Gold alpha */
    color: var(--color-accent-hover);
    flex: 0 0 auto;
}

.feature strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.feature span {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 650px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= SIDEBAR CONTACT ================= */
/* Sticky container handles scroll */
.sticky {
    position: sticky;
    top: 110px;
}



@media (max-width: 1000px) {
    .sticky {
        position: static;
        top: auto;
    }
}

.agent {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--color-accent-hover);
}

.agent .name {
    font-weight: 800;
}

.agent .role {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.form-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.input {
    width: 100%;
    padding: 12px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    outline: none;
    font-size: 14px;
}

.input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.10);
}

textarea.input {
    min-height: 96px;
    resize: vertical;
}

/* ================= MAP ================= */
.map {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-alt);
    height: 400px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================= FOOTER (simple, compatible) ================= */
footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.88);
    margin-top: 40px;
}

.footer-inner {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
}

.footer-inner h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-inner p,
.footer-inner li {
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    line-height: 1.7;
}

.footer-inner ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 14px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.60);
    font-size: 13px;
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   12. EXTRA UTILITIES (Added for Details Page Cleanup) 
   ========================================= */
.pre-line {
    white-space: pre-line;
}

.mt-20 {
    margin-top: 20px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.text-success {
    color: var(--status-success) !important;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    /* Push to bottom of flex container */
}

.gallery-actions {
    display: flex;
    gap: 10px;
}

.text-center {
    text-align: center;
}

@media (max-width: 600px) {
    .price-pill {
        white-space: normal;
        flex-wrap: wrap;
    }
}

/* =========================================
   13. DETAILS PAGE SPECIFIC STYLES
   ========================================= */

/* Reduce overall page padding */
.page {
    padding: 20px 0 !important;
}

.section {
    padding: 20px 0 !important;
}

/* Section titles outside of cards */
.details-section-title {
    font-family: "Noto Serif", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
    position: relative;
    margin-top: 25px;
}

.details-section-title:first-of-type {
    margin-top: 0;
}

/* Remove the h2 from card and use as section title */
.card h2 {
    display: none !important;
}

/* Reduce card padding */
.card {
    padding: 20px !important;
    border-radius: var(--radius-md) !important;
}

/* Fix badge/chip layout for Fast response & Trusted support */
.chip-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 15px 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* Ensure badges are in one line */
.badge {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Compact gallery */
.gallery-main img {
    height: 500px !important;
}

.gallery {
    border-radius: var(--radius-md) !important;
}

/* Compact info strip */
.info-strip {
    padding: 12px 15px !important;
    margin-top: 12px !important;
    border-radius: var(--radius-md) !important;
}

/* Reduce sidebar card padding */
.sticky .card {
    padding: 20px !important;
}

/* Agent section more compact */
.agent {
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
}

/* Actions grid more compact */
.actions-grid {
    gap: 8px !important;
    margin-top: 15px !important;
}

.btn-gold,
.btn-outline {
    padding: 12px 15px !important;
    font-size: 0.9rem !important;
}

/* Map height adjustment */
.map {
    height: 300px !important;
    border-radius: var(--radius-md) !important;
}

/* Feature grid more compact */
.feature-grid {
    gap: 8px !important;
    margin-top: 15px !important;
}

.feature {
    padding: 10px !important;
}

/* Reduce topbar padding */
.topbar {
    padding: 15px 0 !important;
}

/* Price pill more compact */
.price-pill {
    padding: 10px 12px !important;
    gap: 8px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-grid {
        gap: 15px !important;
    }

    .gallery-main img {
        height: 250px !important;
    }

    .card {
        padding: 15px !important;
    }

    .chip-row {
        flex-wrap: wrap !important;
    }

    .details-section-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .details-section-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .gallery-main img {
        height: 200px !important;
    }
}

/* =========================================
   10. WHY CHOOSE US / HIGHLIGHTS
   ========================================= */
.why-choose-us {
    background: var(--color-bg-alt);
    padding: 80px 0;
}

.why-choose-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-choose-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    height: 100%;
    min-height: 450px;
}

.why-choose-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.why-choose-image:hover img {
    transform: scale(1.05);
}

.why-choose-content .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.why-choose-content .section-title h2::after {
    margin: 10px 0 0;
}

.highlights-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    background: var(--color-bg-surface);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-accent);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.highlight-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), rgba(15, 23, 42, 0.9));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    font-size: 20px;
    color: var(--color-accent);
}

.highlight-content h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.highlight-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .why-choose-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-choose-image {
        min-height: 300px;
        order: -1;
        /* Image on top */
    }

    .why-choose-content .section-title {
        text-align: center;
    }

    .why-choose-content .section-title h2::after {
        margin: 10px auto 0;
    }
}