/* =====================================================
   GHAR JAGGA REAL ESTATE - DESIGN SYSTEM
   Premium teal/dark-slate palette, Inter font
   
   Author: Shiva Sharan Shrestha (shivasharanshrestha.com.np)
   License: MIT
   ===================================================== */

/* === CSS Variables === */
:root {
    --primary: #2a9d8f;
    --primary-dark: #238377;
    --primary-light: #52c7b8;
    --primary-gradient: linear-gradient(135deg, #2a9d8f 0%, #1a7a6e 100%);

    --dark: #1a2332;
    --dark-light: #2d3a4a;
    --dark-muted: #4a5568;

    --text: #2d3748;
    --text-light: #718096;
    --text-muted: #a0aec0;

    --white: #ffffff;
    --off-white: #f7fafc;
    --light-bg: #edf2f7;
    --border: #e2e8f0;

    --danger: #e53e3e;
    --danger-light: #fff5f5;
    --success: #38a169;
    --success-light: #f0fff4;
    --warning: #dd6b20;
    --info: #3182ce;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

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

a:hover {
    color: var(--primary-dark);
}

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

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

.section {
    padding: 60px 0;
}

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

.text-muted {
    color: var(--text-light);
}

.required {
    color: var(--danger);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-lg {
    padding: 15px 36px;
    font-size: 15px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-muted);
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--off-white);
    color: var(--primary);
    padding-left: 24px;
}

.nav-cta {
    margin-left: 16px;
    font-size: 12px;
    padding: 10px 20px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 72px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, #2a9d8f 0%, #1a8770 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #2a9d8f;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.3) 0%, rgba(26, 35, 50, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 40px 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    font-weight: 300;
}

/* Hero Search */
.hero-search {
    margin-top: 20px;
}

.search-form {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-xl);
}

.search-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.search-row:last-child {
    margin-bottom: 0;
}

.search-field-text {
    flex: 2;
    position: relative;
}

.search-field-text i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-field-text input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    transition: var(--transition);
}

.search-field-text input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.12);
}

.search-select {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    appearance: auto;
}

.search-select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-form .btn {
    flex-shrink: 0;
}

.hero-search-form {
    max-width: 1080px;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-search-top-row {
    display: grid;
    grid-template-columns: minmax(280px, 2.2fr) repeat(3, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.hero-search-bottom-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr)) minmax(120px, 0.9fr) minmax(110px, 0.8fr);
    gap: 10px;
    margin-bottom: 0;
}

.hero-search-input,
.hero-search-select {
    min-height: 48px;
    border-radius: 8px;
    border-color: #d1d5db;
    border-width: 1px;
}

.hero-search-input {
    padding: 0 12px;
}

.hero-search-input i {
    left: 14px;
    color: #6b7280;
    font-size: 16px;
}

.hero-search-input input {
    padding-left: 40px;
    font-size: 14px;
    color: #374151;
}

.hero-search-input input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.hero-search-select {
    font-size: 14px;
    color: #374151;
    padding: 0 12px;
}

.hero-search-btn,
.hero-clear-btn {
    min-height: 48px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-transform: none;
    padding: 0 20px;
}

.hero-search-btn {
    min-width: 120px;
}

.hero-clear-btn {
    min-width: 110px;
    color: #6b7280;
    border-color: #d1d5db;
    background: #ffffff;
}

.hero-clear-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 1200px) {
    .hero-search-form {
        max-width: 900px;
        padding: 16px 18px;
    }

    .hero-search-top-row {
        grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(110px, 1fr));
        gap: 8px;
    }

    .hero-search-bottom-row {
        grid-template-columns: repeat(4, minmax(110px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 992px) {
    .hero-search-form {
        max-width: 720px;
        padding: 14px 16px;
    }

    .hero-search-top-row,
    .hero-search-bottom-row {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
        gap: 8px;
    }

    .hero-search-input,
    .hero-search-select,
    .hero-search-btn,
    .hero-clear-btn {
        min-height: 44px;
        font-size: 13px;
    }

    .hero-search-input i {
        font-size: 15px;
        left: 12px;
    }

    .hero-search-input input {
        padding-left: 36px;
    }
}

/* Mobile Search */
.mobile-only {
    display: none;
}

/* Mobile Search Mock */
.hero-search-mobile {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-search-mock {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    gap: 12px;
}

.mobile-search-mock i:first-child {
    color: var(--primary);
    font-size: 18px;
}

.mock-text {
    flex: 1;
    text-align: left;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.mock-filter {
    width: 34px;
    height: 34px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 14px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(26, 35, 50, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 560px;
    padding: 28px;
    max-height: 90vh;
    overflow-y: auto;
}

.search-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-overlay-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.search-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

.search-overlay-form .search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.search-overlay-form .search-field input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 14px;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.search-grid select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    background: var(--white);
}

.search-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* === Categories Section === */
.categories-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .categories-grid {
        display: none;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .categories-grid.show-mobile {
        display: grid;
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    color: var(--text);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    color: var(--text);
}

.category-icon {
    font-size: 36px;
    color: var(--danger);
    margin-bottom: 14px;
}

.category-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-label {
    font-size: 13px;
    color: var(--primary);
}

/* Demand Sidebar */
.demand-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
}

.demand-sidebar h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.demand-sidebar>p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.demand-form .form-group {
    margin-bottom: 16px;
}

.demand-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Button Groups */
.btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-group-4 {
    grid-template-columns: 1fr 1fr;
}

.btn-option {
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

.btn-option.active,
.btn-option:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

/* === Property Cards === */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.property-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    color: var(--text);
    display: block;
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: var(--text);
}

.property-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--light-bg);
}

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

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

.property-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, #dde5ed 100%);
    color: var(--text-muted);
    font-size: 48px;
}

.property-placeholder-img p {
    font-size: 14px;
    margin-top: 8px;
}

.property-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: var(--primary);
    color: var(--white);
}

.badge-rent {
    background: var(--warning);
    color: var(--white);
}

.property-card-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: var(--transition);
}

.property-card:hover .property-card-actions {
    opacity: 1;
}

.action-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--danger);
}

.property-card-body {
    padding: 18px 20px;
}

.property-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.property-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.property-location {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.property-location i {
    color: var(--danger);
    margin-right: 4px;
}

.property-features {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features i {
    color: var(--primary);
    font-size: 12px;
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.section-footer {
    text-align: center;
    margin-top: 36px;
}

/* === CTA Section === */
.cta-section {
    position: relative;
    padding: 80px 0;
    background: var(--primary-gradient);
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.9) 0%, rgba(26, 60, 58, 0.95) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Page Header === */
.page-header {
    background: var(--primary-gradient);
    padding: 50px 0;
    margin-top: 72px;
}

.page-header-sm {
    padding: 30px 0;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* === Properties Page === */
.properties-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.filters-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.filter-clear {
    font-size: 13px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    background: var(--white);
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filter-form .btn {
    margin-top: 12px;
}

.properties-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count {
    font-size: 15px;
    color: var(--text-light);
}

.mobile-filter-btn {
    display: none;
}

@media (max-width: 992px) {
    .properties-layout {
        gap: 20px;
    }

    .properties-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border);
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--dark);
}

.empty-state .btn {
    margin-top: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

/* === Property Detail === */
.property-detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

.property-gallery {
    margin-bottom: 28px;
}

.gallery-main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 460px;
    background: var(--light-bg);
}

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

.property-placeholder-lg {
    height: 460px;
    font-size: 64px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--dark);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-nav:hover {
    background: var(--white);
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

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

.property-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.property-badge-inline {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

.property-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: var(--light-bg);
    color: var(--text);
}

.property-header-info h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0 4px;
    color: var(--dark);
}

.property-location-detail {
    font-size: 15px;
    color: var(--text-light);
}

.property-location-detail i {
    color: var(--danger);
    margin-right: 4px;
}

.property-price-lg {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.price-period {
    font-size: 13px;
    color: var(--text-light);
    text-align: right;
    display: block;
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
}

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

.spec-item i {
    font-size: 22px;
    color: var(--primary);
    width: 28px;
    text-align: center;
}

.spec-item strong {
    display: block;
    font-size: 18px;
}

.spec-item span {
    font-size: 12px;
    color: var(--text-light);
}

.property-section {
    margin-bottom: 28px;
}

.property-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.property-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--white);
}

.detail-label {
    color: var(--text-light);
    font-size: 14px;
}

.detail-value {
    font-weight: 600;
    font-size: 14px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.property-map {
    height: 360px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sidebar-card>p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 18px;
}

.contact-info-list p {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.contact-info-list p:last-child {
    border-bottom: none;
}

.contact-info-list i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

/* Similar Properties */
.similar-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.similar-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* === Forms === */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    background: var(--white);
    transition: var(--transition);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.12);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #c6f6d5;
}

.form-message.error {
    display: block;
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fed7d7;
}

/* Inquiry Form */
.inquiry-form .form-group input,
.inquiry-form .form-group textarea {
    background: var(--off-white);
}

/* === About Page === */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.about-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--off-white);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

.about-img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 64px;
}

.about-img-placeholder p {
    font-size: 20px;
    font-weight: 600;
    margin-top: 12px;
}

.values-section {
    padding-top: 20px;
}

.values-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 32px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

.value-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    font-size: 24px;
    color: var(--primary);
}

.value-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* === Contact Page === */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form-wrapper>p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.contact-info-card {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 16px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.contact-map {
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* === Blog Page === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    font-size: 40px;
}

.blog-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.blog-card-body {
    padding: 20px;
}

.blog-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-readmore {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* === Submit Property === */
.submit-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-bg);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary);
    color: var(--white);
}

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

.step span {
    font-size: 12px;
    color: var(--text-muted);
}

.step.active span {
    color: var(--primary);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 22px;
}

.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}

.form-panel h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(42, 157, 143, 0.04);
}

.upload-area i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.upload-area p {
    font-size: 15px;
    margin-bottom: 4px;
}

.upload-area span {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-link {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.preview-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.preview-item span {
    display: block;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === 404 Page === */
.error-section {
    margin-top: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

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

.error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
}

.error-content h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.error-content p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* === Footer === */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

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

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 18px;
}

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

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 3px;
}

.footer-newsletter p {
    font-size: 14px;
    margin-bottom: 14px;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
}

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

/* === Badges === */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-danger {
    background: #fed7d7;
    color: #742a2a;
}

.badge-warning {
    background: #fefcbf;
    color: #744210;
}

.badge-info {
    background: #bee3f8;
    color: #2a4365;
}

.badge-primary {
    background: #c3dafe;
    color: #3c366b;
}

.badge-secondary {
    background: var(--light-bg);
    color: var(--text-light);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .categories-layout {
        grid-template-columns: 1fr;
    }

    .demand-sidebar {
        order: -1;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

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

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

    .property-detail-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 998;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        padding: 14px 0;
        font-size: 15px;
        display: block;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        display: none;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .nav-toggle {
        display: block;
        z-index: 999;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .mobile-filter-btn {
        display: flex;
    }

    .properties-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(92vw, 320px);
        height: 100vh;
        z-index: 9999;
        border-radius: 0;
        transition: left 0.3s ease;
        border: none;
        box-shadow: var(--shadow-xl);
    }

    .filters-sidebar.active {
        left: 0;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .property-grid-3 {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 280px;
    }

    .property-header-info {
        flex-direction: column;
    }

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

    .details-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
    }

    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .upload-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 26px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 20px 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .form-steps {
        gap: 0;
        padding: 0;
    }

    .step span {
        font-size: 10px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .error-code {
        font-size: 80px;
    }

    .property-specs {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

.property-card {
    animation: fadeInUp 0.5s ease forwards;
}

.property-card:nth-child(2) {
    animation-delay: 0.05s;
}

.property-card:nth-child(3) {
    animation-delay: 0.1s;
}

.property-card:nth-child(4) {
    animation-delay: 0.15s;
}

.property-card:nth-child(5) {
    animation-delay: 0.2s;
}

.property-card:nth-child(6) {
    animation-delay: 0.25s;
}

/* Smooth scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-muted);
}

/* === Property Detail Redesign === */
.property-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.verified-badge {
    background: #e6fffa;
    color: #2c7a7b;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.price-alt {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

.price-label-badge {
    display: inline-block;
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    color: var(--dark);
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: var(--off-white);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ov-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.ov-text label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.ov-text strong {
    font-size: 14px;
    color: var(--dark);
    font-weight: 700;
}

/* Details Table */
.details-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    width: 50%;
}

.details-table tr:last-child td {
    border-bottom: none;
}

.details-table td strong {
    color: var(--text-light);
    font-weight: 600;
    margin-right: 8px;
}

/* Owner Card */
.owner-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.owner-avatar {
    font-size: 60px;
    color: var(--text-muted);
}

.owner-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.owner-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.owner-contacts p {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.owner-contacts i {
    color: var(--primary);
}

@media (max-width: 992px) {
    .overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .property-header-info {
        flex-direction: column;
        gap: 20px;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }

    .details-table td {
        display: block;
        width: 100%;
    }
}

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

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ===== Search Component ===== */
.search-component {
    background: var(--off-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-top-row {
    display: flex;
    gap: 10px;
}

.search-field-text {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 15px;
}

.search-field-text i {
    color: var(--text-light);
    margin-right: 10px;
}

.search-field-text input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 14px;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.search-select {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: white;
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.search-select:focus,
.search-select:hover {
    border-color: var(--primary);
    outline: none;
}

.search-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.search-actions .btn {
    min-width: 150px;
}

@media (max-width: 768px) {
    .search-component {
        padding: 20px;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .search-actions {
        flex-direction: column;
    }

    .search-actions .btn {
        width: 100%;
    }
}

/* ===== Blog Styles ===== */
.blog-featured {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.featured-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.featured-image.placeholder {
    font-size: 48px;
    color: white;
}

.featured-body {
    padding: 25px;
}

.featured-date {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-card h3 {
    margin: 15px 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text);
}

.featured-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    color: var(--primary-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.blog-card-image.placeholder {
    font-size: 36px;
    color: white;
}

.blog-card-body {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card h3 {
    margin: 10px 0 15px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
    min-height: 51px;
}

.blog-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Blog Detail Page */
.blog-detail-section {
    padding: 60px 0;
}

.blog-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.blog-main {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
}

.blog-featured-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.article-meta {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 40px;
}

.article-content h2,
.article-content h3 {
    margin: 30px 0 15px;
    color: var(--dark);
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
    margin: 15px 0 15px 25px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-share {
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.article-share h4 {
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #0a66c2;
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #1a8cd8;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1abc9c;
}

.btn-email {
    background: var(--primary);
    color: white;
}

.btn-email:hover {
    background: var(--primary-dark);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.search-widget {
    display: flex;
    gap: 5px;
}

.search-widget input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 14px;
}

.search-widget button {
    padding: 10px 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.search-widget button:hover {
    background: var(--primary-dark);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: block;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 5px;
}

.widget-list a:hover {
    color: var(--primary);
}

.widget-list .meta {
    font-size: 12px;
    color: var(--text-light);
}

.sidebar-highlight {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(18, 140, 126, 0.1));
    border: 1px solid var(--primary-light);
}

.widget-contact {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.widget-contact .btn {
    flex: 1;
    justify-content: center;
}

.blog-related {
    background: var(--light-bg);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.related-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.related-image {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.related-image.placeholder {
    font-size: 32px;
    color: white;
}

.related-card h4 {
    margin-bottom: 10px;
    font-size: 15px;
}

.related-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.link-arrow {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

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

    .blog-container {
        grid-template-columns: 1fr;
    }

    .article-share {
        overflow-x: auto;
    }

    .share-buttons {
        overflow-x: auto;
    }

    .blog-featured-image {
        height: 250px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact Section ===== */
.contact-quick {
    background: var(--light-bg);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-method {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-method:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.contact-method h4 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--dark);
}

.contact-method p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-method a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}