/* ==========================================================================
   BOTA (ቦታ) - COMMERCIAL REAL ESTATE ETHIOPIA (ምርጥ የንግድ ቦታዎች ኢትዮጵያ)
   DESIGN SYSTEM & COMPREHENSIVE STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Abyssinica+SIL&display=swap');

:root {
    /* Brand Green Color Palette matching Bota Logo */
    --primary: #2e7d32;
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --primary-glow: rgba(46, 125, 50, 0.15);

    --accent: #ff6f00;
    --accent-light: #ff8f00;
    --accent-dark: #e65100;
    --accent-glow: rgba(255, 111, 0, 0.2);

    --success: #10b981;
    --whatsapp: #25d366;
    --telegram: #0088cc;

    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-dark: #0d1f12;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-dark: #ffffff;

    --border: #e2e8f0;
    --border-accent: rgba(255, 111, 0, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-accent: 0 8px 24px rgba(255, 111, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(46, 125, 50, 0.25);

    /* Glassmorphism & Radii */
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.5);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Typography & Layout */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-amharic: 'Abyssinica SIL', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1240px;
}

/* Dark Mode Overrides (Adaptive UI) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #0a120c;
        --bg-card: #122116;
        --bg-alt: #1a2e1f;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        --border: #233b28;
        --glass-bg: rgba(18, 33, 22, 0.9);
        --glass-border: rgba(255, 255, 255, 0.08);
    }
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

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

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   LOADING OVERLAY & SPINNERS
   ========================================================================== */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#loadingOverlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loader-box {
    text-align: center;
    background: var(--bg-card);
    padding: 36px 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.loader-logo-img {
    height: 50px;
    margin-bottom: 16px;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-right: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-box p {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* ==========================================================================
   NAVIGATION BAR (DESKTOP & TABLET)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

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

.brand-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-brand:hover .brand-logo-img {
    transform: scale(1.05);
}

.brand-amharic {
    font-family: var(--font-amharic);
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin-left: 2px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.nav-links a.highlight-link {
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-glow);
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   STICKY MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    flex: 1;
    height: 100%;
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    transition: var(--transition);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: translateY(-2px) scale(1.1);
    color: var(--primary);
}

.bottom-nav-badge {
    position: relative;
}

.bottom-nav-badge .badge-count {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 800;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #ffffff;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.4);
}

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

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

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 130px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(255, 111, 0, 0.06) 100%);
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

/* Quick Search Bar inside Hero */
.hero-search-box {
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.search-input-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-alt);
    padding: 10px 16px;
    border-radius: var(--radius-md);
}

.search-input-group i {
    color: var(--primary);
    font-size: 1.1rem;
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    font-size: 0.95rem;
}

/* Stats Counter */
.hero-stats-grid {
    display: flex;
    gap: 40px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-value.accent-val {
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 6px;
}

/* Hero Visual & Floating Cards */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 36px;
    box-shadow: var(--shadow-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-logo-banner {
    max-width: 260px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.floating-pill {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
    z-index: 3;
}

.floating-pill i {
    font-size: 1.4rem;
    color: var(--primary);
}

.floating-pill span {
    font-weight: 700;
    font-size: 0.95rem;
}

.pill-1 {
    top: 30px;
    left: -20px;
    animation-delay: 0s;
}

.pill-2 {
    bottom: 40px;
    right: -20px;
    animation-delay: 1.5s;
}

.pill-3 {
    top: 50%;
    right: -30px;
    animation-delay: 2.8s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* Wave Separator */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 48px;
    fill: var(--bg-main);
}

/* ==========================================================================
   SEGMENTED NAVIGATION TABS (Commercial vs New Buildings)
   ========================================================================== */
.segmented-tabs-wrapper {
    max-width: var(--container-width);
    margin: -30px auto 30px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.segmented-tabs {
    display: flex;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    max-width: 540px;
    margin: 0 auto;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
}

.tab-btn.active.tab-newbldg {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: var(--shadow-accent);
}

/* ==========================================================================
   CATEGORY & SUBCITY FILTER CHIPS (Horizontal Swipeable Container)
   ========================================================================== */
.filter-bar-container {
    max-width: var(--container-width);
    margin: 0 auto 30px;
    padding: 0 24px;
}

.category-chips-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.category-chips-scroll::-webkit-scrollbar {
    height: 5px;
}

.category-chips-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.chip-btn i {
    font-size: 0.95rem;
    color: var(--primary);
}

.chip-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.chip-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
}

.chip-btn.active i {
    color: #ffffff;
}

/* ==========================================================================
   PROPERTIES SECTION & HEADER CONTROLS
   ========================================================================== */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-glow);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Controls Bar (Title + Grid/List Toggle + Sort) */
.properties-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.controls-title h3 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.view-toggle-btns {
    display: flex;
    background: var(--bg-alt);
    padding: 4px;
    border-radius: var(--radius-sm);
    gap: 4px;
}

.view-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.view-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.sort-dropdown {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

/* ==========================================================================
   PROPERTY CARDS GRID & LIST VIEWS
   ========================================================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
    min-height: 360px;
}

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

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

.property-card.newbldg-card {
    border: 2px solid var(--accent);
}

.property-card.newbldg-card:hover {
    box-shadow: var(--shadow-accent);
}

.card-media {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    overflow: hidden;
}

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

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

.card-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.pill-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-views {
    background: rgba(15, 23, 42, 0.75);
}

.badge-cat {
    background: var(--primary);
}

.badge-new {
    background: var(--accent);
}

.badge-subcity {
    background: var(--primary-dark);
}

.card-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.card-fav-btn:hover,
.card-fav-btn.favorited {
    color: #ef4444;
    background: #ffffff;
}

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

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

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

.card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.card-footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-contact-bar {
    padding: 12px 20px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.card-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition);
}

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

/* List View Layout Override */
.properties-grid.list-view {
    grid-template-columns: 1fr;
}

.properties-grid.list-view .property-card {
    flex-direction: row;
    height: 190px;
}

.properties-grid.list-view .card-media {
    width: 240px;
    height: 100%;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .properties-grid.list-view .property-card {
        flex-direction: column;
        height: auto;
    }

    .properties-grid.list-view .card-media {
        width: 100%;
        height: 180px;
    }
}

/* ==========================================================================
   PROPERTY DETAIL MODAL (Instant Smooth Slide-Up View)
   ========================================================================== */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    overflow-y: auto;
    padding: 20px 16px;
}

.detail-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.detail-content-box {
    max-width: 860px;
    margin: 30px auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
}

.detail-sticky-bar {
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
}

.back-btn:hover {
    color: var(--accent);
}

.detail-hero-media {
    position: relative;
    width: 100%;
    height: 380px;
    background: #000;
}

.detail-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-body {
    padding: 30px;
}

.detail-header-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.detail-location-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
}

.detail-grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.detail-stat-box {
    background: var(--bg-alt);
    padding: 18px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-box-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-box-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-top: 4px;
}

.detail-section-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.detail-section-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

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

.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-action-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.detail-action-buttons .btn {
    flex: 1;
    min-width: 160px;
    padding: 16px 24px;
    font-size: 1rem;
}

.btn-whatsapp-color {
    background: var(--whatsapp);
    color: #ffffff;
}

/* ==========================================================================
   FEATURES & TESTIMONIALS SECTIONS
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-box {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-box-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-box:hover .feature-box-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stars {
    color: #f59e0b;
    margin-bottom: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding-top: 60px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-stats-grid {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-search-box {
        flex-direction: column;
    }

    .search-input-group {
        width: 100%;
    }

    .hero-stats-grid {
        gap: 20px;
    }

    .stat-value {
        font-size: 1.7rem;
    }

    .detail-hero-media {
        height: 260px;
    }

    .detail-header-info h1 {
        font-size: 1.5rem;
    }

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

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .segmented-tabs {
        flex-direction: column;
    }

    .detail-action-buttons {
        flex-direction: column;
    }

    .detail-action-buttons .btn {
        width: 100%;
    }
}


/* ==========================================================================
   PURE CSS BRAND LOGO (HIGH-DEFINITION, CRISP & ANIMATED)
   ========================================================================== */
.brand-css-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2.5px solid #2e7d32;
    border-radius: 12px;
    padding: 4px 10px;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.nav-brand:hover .brand-css-logo,
.brand-css-logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 22px rgba(46, 125, 50, 0.32);
    border-color: #1b5e20;
}

.brand-css-logo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5px;
    line-height: 1;
}

.brand-letter-b,
.brand-letter-ta {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    font-weight: 900;
    font-size: 1.45rem;
    color: #1b5e20;
    letter-spacing: -0.04em;
}

.logo-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 1px;
    animation: pin-bounce 2.4s infinite ease-in-out;
}

.logo-pin svg {
    display: block;
}

@keyframes pin-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.brand-text-col {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
    line-height: 1.1;
}

.brand-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: #1b5e20;
    letter-spacing: -0.03em;
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    color: #388e3c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero Badge */
.hero-css-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 244, 0.96));
    border: 2.5px solid rgba(46, 125, 50, 0.3);
    border-radius: 28px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(46, 125, 50, 0.18), 0 6px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    backdrop-filter: blur(12px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    max-width: 420px;
    margin: 0 auto;
}

.hero-css-badge:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(46, 125, 50, 0.26);
}

.hero-brand-css-logo {
    padding: 8px 18px;
    border-width: 4px;
    border-radius: 18px;
}

.hero-badge-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
    color: #1b5e20;
}

.hero-badge-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

/* ==========================================================================
   CIRCULAR SOCIAL MEDIA AGENT PROFILE AVATAR (DETAIL MODAL)
   ========================================================================== */
.detail-agent-box {
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
    border: 1.5px solid rgba(46, 125, 50, 0.2);
    border-radius: 20px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.08);
    flex-wrap: wrap;
}

.detail-agent-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Small, perfectly circular social-media style avatar */
.agent-avatar-circle {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    border: 2.5px solid #2e7d32;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    overflow: hidden;
    position: relative;
}

.agent-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Online status indicator dot */
.agent-avatar-circle::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.agent-details h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 3px;
}

.agent-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.detail-phone-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2e7d32;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.3);
    transition: all 0.25s ease;
}

.detail-phone-display:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(46, 125, 50, 0.4);
}

/* ==========================================================================
   ATTRACTIVE CATEGORY CHIPS & CARDS
   ========================================================================== */
.category-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 14px 4px 20px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #2e7d32 transparent;
}

.category-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
    background: #2e7d32;
    border-radius: 10px;
}

/* Super attractive chip buttons */
.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid rgba(46, 125, 50, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.chip-btn i {
    font-size: 1.05rem;
    color: #2e7d32;
    transition: transform 0.25s ease;
}

.chip-btn:hover {
    transform: translateY(-3px);
    border-color: #2e7d32;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.16);
    color: #1b5e20;
}

.chip-btn:hover i {
    transform: scale(1.15);
}

.chip-btn.active {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    border-color: #1b5e20;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(46, 125, 50, 0.38);
    transform: translateY(-2px);
}

.chip-btn.active i {
    color: #ffffff;
}

/* Super attractive Category Hub Grid Cards */
.category-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.cat-hub-card {
    background: linear-gradient(145deg, #ffffff, #f7fee7);
    border: 1.5px solid rgba(46, 125, 50, 0.15);
    border-radius: 20px;
    padding: 22px 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cat-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #43a047);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cat-hub-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: #2e7d32;
    box-shadow: 0 16px 32px rgba(46, 125, 50, 0.16);
    background: #ffffff;
}

.cat-hub-card:hover::before {
    opacity: 1;
}

.cat-hub-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-size: 1.5rem;
    box-shadow: 0 6px 14px rgba(46, 125, 50, 0.18);
    transition: all 0.3s ease;
}

.cat-hub-card:hover .cat-hub-icon-box {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.35);
}

.cat-hub-title {
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
    margin: 0;
}

.cat-hub-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}