/* ============================================================
   Un Click - Comprehensive Stylesheet
   Directorio Nacional de Negocios de Venezuela
   ============================================================
   Table of Contents:
   1.  CSS Custom Properties
   2.  CSS Reset / Base
   3.  Typography
   4.  Layout Utilities
   5.  Navigation Bar
   6.  Hero Section
   7.  Search Bar
   8.  Sections (Generic)
   9.  Property Grid & Cards
   10. Badges
   11. Buttons
   12. Forms
   13. Tables
   14. Modals
   15. Auth / Login Page
   16. Dashboard
   17. Property Form (Publish)
   18. Property Detail Page
   19. Gallery & Lightbox
   20. Admin Panel
   21. Search Page
   22. Map Page
   23. Upload Area
   24. Footer
   25. Toast Notifications
   26. Loading / Spinner
   27. Empty States
   28. Pagination
   29. Favorites
   30. Animations & Transitions
   31. Utility Classes
   32. Custom Scrollbar
   33. Responsive Design (Tablet)
   34. Responsive Design (Mobile)
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Primary Colors */
    --color-primary: #1a73e8;
    --color-primary-light: #4a90e8;
    --color-primary-dark: #1557b0;
    --color-primary-bg: #e8f0fe;

    /* Secondary Colors */
    --color-secondary: #28a745;
    --color-secondary-light: #5cb85c;
    --color-secondary-dark: #1e7e34;
    --color-secondary-bg: #e8f5e9;

    /* Accent Colors */
    --color-accent: #ff6b35;
    --color-accent-light: #ff8c5a;
    --color-accent-dark: #e55a2b;
    --color-accent-bg: #fff3e0;

    /* Dark & Light */
    --color-dark: #1a1a2e;
    --color-dark-light: #2d2d44;
    --color-light: #f8f9fa;
    --color-light-dark: #e9ecef;
    --color-white: #ffffff;

    /* Text Colors */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-text-white: #ffffff;

    /* Semantic Colors */
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;

    /* Border Colors */
    --color-border: #dee2e6;
    --color-border-light: #e9ecef;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.18);

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Font */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height: 1.6;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-navbar: 1000;
    --z-overlay: 2000;
    --z-modal: 3000;
    --z-toast: 4000;
    --z-tooltip: 5000;

    /* Layout */
    --navbar-height: 70px;
    --container-max: 1200px;
    --sidebar-width: 280px;
    --admin-sidebar-width: 260px;
}


/* ============================================================
   2. CSS RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    outline: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: var(--color-dark);
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

h5 {
    font-size: var(--font-size-md);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

p:last-child {
    margin-bottom: 0;
}

small {
    font-size: var(--font-size-sm);
}

strong {
    font-weight: var(--font-weight-bold);
}

/* Text Utilities */
.text-center {
    text-align: center;
}

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

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

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

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

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

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

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

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

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

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

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

.text-small {
    font-size: var(--font-size-sm);
}

.text-capitalize {
    text-transform: capitalize;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-bold {
    font-weight: var(--font-weight-bold);
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--space-md) * -1);
    margin-right: calc(var(--space-md) * -1);
}

.col {
    flex: 1;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.gap-1 {
    gap: var(--space-sm);
}

.gap-2 {
    gap: var(--space-md);
}

.gap-3 {
    gap: var(--space-lg);
}

.gap-4 {
    gap: var(--space-xl);
}


/* ============================================================
   5. NAVIGATION BAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-navbar);
    transition: box-shadow var(--transition), background-color var(--transition);
}

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

.navbar-admin {
    background-color: var(--color-dark);
}

.navbar-admin .nav-logo {
    color: var(--color-white);
}

.navbar-admin .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-admin .nav-link:hover,
.navbar-admin .nav-link.active {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-decoration: none;
    flex-shrink: 0;
}

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

.nav-logo i {
    font-size: var(--font-size-xl);
}

.nav-logo .admin-badge {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    margin-left: var(--space-xs);
    vertical-align: middle;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
    color: var(--color-dark);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.nav-toggle:hover {
    background-color: var(--color-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

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

.nav-link.active {
    color: var(--color-primary);
    background-color: var(--color-primary-bg);
    font-weight: var(--font-weight-semibold);
}

.nav-btn {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
}

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

.nav-btn.active {
    background-color: var(--color-primary-dark);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-logout {
    color: var(--color-text-muted) !important;
    font-size: var(--font-size-sm);
}

.btn-logout:hover {
    color: var(--color-danger) !important;
    background-color: rgba(220, 53, 69, 0.08);
}

/* Admin link in navbar - only visible to admin users */
.nav-admin-link {
    color: #d93025 !important;
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: 6px 14px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-admin-link:hover {
    background-color: rgba(217, 48, 37, 0.08);
    color: #c5221f !important;
}


/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 30%, #1a1a2e 70%, #16213e 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0.6) 0%,
        rgba(26, 26, 46, 0.4) 40%,
        rgba(26, 115, 232, 0.15) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: calc(var(--navbar-height) + var(--space-xl)) var(--space-md) var(--space-xl);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Hero Compact — when hero is NOT the first section */
.hero-compact {
    min-height: auto;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    background-attachment: scroll;
}

.hero-compact .hero-content {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.hero-compact .hero-title {
    font-size: var(--font-size-3xl);
}

.hero-compact .hero-subtitle {
    margin-bottom: var(--space-lg);
}

/* ─── Home Mini Map ──────────────────────────────────────────── */
.home-map-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-border-light);
}

.home-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: opacity var(--transition);
}

.home-map-overlay:hover {
    background: rgba(26, 26, 46, 0.4);
}

.home-map-overlay-content {
    text-align: center;
    color: var(--color-white);
    padding: var(--space-xl);
}

.home-map-overlay-content i {
    font-size: 48px;
    margin-bottom: var(--space-md);
    display: block;
    opacity: 0.9;
}

.home-map-overlay-content p {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-lg);
    opacity: 0.85;
}

@media (max-width: 768px) {
    .home-map-wrapper {
        height: 280px;
    }

    .hero-compact .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-compact .hero-subtitle {
        font-size: var(--font-size-sm);
    }
}


/* ============================================================
   7. SEARCH BAR
   ============================================================ */
.search-bar {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    max-width: 850px;
    margin: 0 auto;
}

.search-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

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

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-field label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
    text-align: left;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background-color: var(--color-light);
    transition: all var(--transition-fast);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.search-field input::placeholder {
    color: var(--color-text-muted);
}

.btn-search {
    align-self: flex-end;
    white-space: nowrap;
    padding: 12px 24px;
}


/* ============================================================
   8. SECTIONS (Generic)
   ============================================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section-light {
    background-color: var(--color-light);
}

.section-dark {
    background-color: var(--color-dark);
}

.section-dark .section-title {
    color: var(--color-white);
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    margin-top: var(--space-sm);
}

.section-subtitle {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    margin-top: var(--space-sm);
}

.section-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    white-space: nowrap;
}

.section-link:hover {
    color: var(--color-primary-dark);
    gap: var(--space-sm);
}

/* Types Grid (Index) */
.types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
}

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

.type-card h3 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin: 0;
}

.type-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xl);
    transition: all var(--transition);
}

.type-card:hover .type-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

/* Steps Grid (Index) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.step-card {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}

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

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-2xl);
}

.step-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.step-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Stats Grid (Index) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
}

.stat-icon {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: var(--font-weight-medium);
}


/* ============================================================
   8-B. INDEX PAGE V2 (Modern Redesign)
   ============================================================ */

/* --- Hero Section --- */
.idx-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0f1a 0%, #111827 40%, #0f172a 70%, #0a0f1a 100%);
}

.idx-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 115, 232, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(111, 66, 193, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(255, 107, 53, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.idx-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
}

.idx-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.idx-hero-particles::before,
.idx-hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: idx-particle-float 20s ease-in-out infinite;
}

.idx-hero-particles::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #1a73e8, transparent 70%);
    top: -100px;
    right: -100px;
}

.idx-hero-particles::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff6b35, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -10s;
    animation-direction: reverse;
}

@keyframes idx-particle-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

.idx-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 950px;
    padding: calc(var(--navbar-height) + 40px) 20px 60px;
    animation: fadeInUp 0.8s ease-out;
}

.idx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(26, 115, 232, 0.15);
    border: 1px solid rgba(26, 115, 232, 0.25);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.idx-hero-badge i {
    color: #fbbf24;
    font-size: 0.7rem;
}

.idx-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.idx-hero-highlight {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.idx-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* --- Search Bar --- */
.idx-search-bar {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 24px;
    max-width: 900px;
    margin: 0 auto 24px;
}

.idx-search-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

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

.idx-search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.idx-search-field label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.idx-search-field label i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.idx-select-wrap {
    position: relative;
}

.idx-search-field input,
.idx-select-wrap select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(255,255,255,0.06);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.25s;
    font-family: inherit;
}

.idx-search-field input::placeholder {
    color: rgba(255,255,255,0.3);
}

.idx-search-field input:focus,
.idx-select-wrap select:focus {
    border-color: rgba(26, 115, 232, 0.5);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.idx-select-wrap select option {
    background: #1f2937;
    color: #fff;
}

.idx-select-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    pointer-events: none;
}

.idx-search-btn {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: linear-gradient(135deg, #1a73e8, #4a90e8);
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
}

.idx-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(26, 115, 232, 0.5);
}

/* --- Quick Links --- */
.idx-quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.idx-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.25s;
}

.idx-quick-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.idx-quick-link i {
    font-size: 0.7rem;
}

.idx-quick-link-publish {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
    color: #86efac;
}

.idx-quick-link-publish:hover {
    background: rgba(40, 167, 69, 0.25);
    color: #bbf7d0;
}

/* --- Mobile Search Trigger --- */
.idx-mobile-search-trigger {
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1a73e8, #4a90e8);
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.45), 0 0 0 0 rgba(26, 115, 232, 0.2);
    margin: 0 auto 16px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.idx-mobile-search-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

.idx-mobile-search-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(26, 115, 232, 0.55), 0 0 0 0 rgba(26, 115, 232, 0.2);
}

.idx-mobile-search-trigger:active {
    transform: translateY(0);
}

.idx-mobile-search-trigger i:first-child {
    font-size: 1.1rem;
}

.idx-mobile-search-trigger span {
    flex: 1;
    text-align: center;
}

.idx-mobile-search-arrow {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.3s;
}

.idx-mobile-search-trigger.active .idx-mobile-search-arrow {
    transform: rotate(180deg);
}

/* --- Search Modal Header (mobile only) --- */
.idx-search-modal-header {
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.idx-search-modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.idx-search-modal-header h3 i {
    color: #60a5fa;
    font-size: 0.9rem;
}

.idx-search-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.idx-search-modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* --- Mobile Search Backdrop --- */
.idx-mobile-search-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s;
}

.idx-mobile-search-backdrop.visible {
    display: block;
    opacity: 1;
}

/* Quick links inside modal - hidden on desktop */
.idx-quick-links-modal {
    display: none;
}

/* --- Sections --- */
.idx-section {
    padding: 64px 0;
}

.idx-section-alt {
    background: #f8fafc;
}

.idx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.idx-section-header-center {
    justify-content: center;
}

.idx-section-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.idx-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.idx-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.idx-section-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2px;
}

.idx-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.25s;
}

.idx-section-link:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #eff6ff;
}

/* --- Types Grid --- */
.idx-types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.idx-type-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #f0f0f0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.idx-type-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.1);
    transform: translateY(-3px);
}

.idx-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.idx-type-card:hover .idx-type-icon {
    transform: scale(1.08);
}

.idx-type-card h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.idx-type-arrow {
    font-size: 0.75rem;
    color: #d1d5db;
    transition: all 0.3s;
}

.idx-type-card:hover .idx-type-arrow {
    color: #1a73e8;
    transform: translateX(3px);
}

/* --- Map Wrapper --- */
.idx-map-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 2px solid #e5e7eb;
}

.idx-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.4s;
}

.idx-map-overlay-content {
    text-align: center;
    color: #fff;
    padding: 24px;
}

.idx-map-overlay-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
    animation: pf-float 3s ease-in-out infinite;
}

.idx-map-overlay-content p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.idx-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    transition: all 0.3s;
}

.idx-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}

/* --- Steps Grid --- */
.idx-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.idx-step-card {
    text-align: center;
    padding: 36px 28px 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    position: relative;
}

.idx-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.idx-step-connector {
    position: absolute;
    top: 56px;
    right: -24px;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #e5e7eb, transparent);
    z-index: 1;
}

.idx-step-card:last-child .idx-step-connector {
    display: none;
}

.idx-step-number {
    font-size: 3rem;
    font-weight: 900;
    color: #f1f5f9;
    position: absolute;
    top: 10px;
    right: 16px;
    line-height: 1;
    letter-spacing: -2px;
}

.idx-step-icon-wrap {
    margin-bottom: 20px;
}

.idx-step-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.idx-step-card:hover .idx-step-icon {
    transform: scale(1.1) rotate(-3deg);
}

.idx-step-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.idx-step-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 260px;
    margin: 0 auto;
}

/* --- Stats Section --- */
.idx-stats-section {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.idx-stats-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 50%, rgba(26, 115, 232, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(255, 107, 53, 0.06) 0%, transparent 50%);
}

.idx-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.idx-stat-card {
    text-align: center;
    padding: 28px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.idx-stat-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.idx-stat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(26, 115, 232, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #60a5fa;
    margin-bottom: 16px;
}

.idx-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.idx-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- CTA Section --- */
.idx-cta-section {
    padding: 64px 0;
}

.idx-cta-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a73e8, #4a90e8, #6366f1);
    padding: 60px 40px;
    text-align: center;
}

.idx-cta-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.idx-cta-content {
    position: relative;
    z-index: 1;
}

.idx-cta-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.idx-cta-card p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.idx-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #fff;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a73e8;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.idx-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

/* --- Responsive: Tablet & Mobile (≤768px) --- */
@media (max-width: 768px) {
    .idx-hero-title {
        font-size: 2.2rem;
    }

    .idx-hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* Show the mobile search trigger button */
    .idx-mobile-search-trigger {
        display: flex;
    }

    /* Hide the search form inline - it becomes a slide-up modal */
    .idx-search-bar {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        padding: 20px 16px 32px;
        max-height: 80vh;
        overflow-y: auto;
        animation: idx-search-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255,255,255,0.1);
        border-left: none;
        border-right: none;
        border-bottom: none;
        /* iOS safe area */
        padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    }

    .idx-search-bar.mobile-open {
        display: block;
    }

    /* Show modal header on mobile */
    .idx-search-modal-header {
        display: flex;
    }

    .idx-search-row,
    .idx-search-row-2 {
        flex-direction: column;
        gap: 10px;
    }

    .idx-search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        border-radius: 12px;
        font-size: 0.95rem;
        margin-top: 6px;
    }

    /* Hide quick links inline on mobile */
    .idx-quick-links {
        display: none;
    }

    /* Show quick links inside the mobile modal */
    .idx-quick-links-modal {
        display: flex;
        gap: 8px;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid rgba(255,255,255,0.08);
        flex-wrap: wrap;
        justify-content: center;
    }

    .idx-quick-links-modal .idx-quick-link {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

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

    .idx-steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .idx-step-connector {
        display: none;
    }

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

    .idx-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .idx-section-title {
        font-size: 1.2rem;
    }

    .idx-map-wrapper {
        height: 280px;
    }

    .idx-cta-card {
        padding: 40px 24px;
    }

    .idx-cta-card h2 {
        font-size: 1.4rem;
    }
}

@keyframes idx-search-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes idx-search-slide-down {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 480px) {
    .idx-hero {
        min-height: auto;
        padding: 0;
    }

    .idx-hero-content {
        padding: calc(var(--navbar-height) + 24px) 16px 32px;
    }

    .idx-hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .idx-hero-title {
        font-size: 1.7rem;
    }

    .idx-hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    /* Compact hero - less padding so properties are closer */
    .idx-hero {
        padding-bottom: 0;
    }

    .idx-search-bar.mobile-open {
        padding: 16px 14px calc(28px + env(safe-area-inset-bottom, 0px));
        border-radius: 18px 18px 0 0;
    }

    .idx-search-field input,
    .idx-select-wrap select {
        padding: 10px 12px;
        font-size: 16px; /* Prevent iOS zoom */
        border-radius: 8px;
    }

    .idx-section {
        padding: 40px 0;
    }

    .idx-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .idx-type-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .idx-type-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
        border-radius: 10px;
    }

    .idx-type-card h3 {
        font-size: 0.8rem;
    }

    .idx-type-arrow {
        display: none;
    }

    .idx-step-card {
        padding: 28px 20px 24px;
    }

    .idx-step-number {
        font-size: 2rem;
    }

    .idx-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .idx-stat-card {
        padding: 20px 12px;
    }

    .idx-stat-number {
        font-size: 1.6rem;
    }

    .idx-cta-card {
        padding: 32px 20px;
        border-radius: 18px;
    }

    .idx-cta-card h2 {
        font-size: 1.2rem;
    }

    .idx-cta-btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .idx-quick-link {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .idx-section-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 12px;
    }
}


/* ============================================================
   9. PROPERTY GRID & CARDS
   ============================================================ */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

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

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

/* Card Link — wraps the entire card */
.property-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.property-card-image,
.property-card .card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.property-card-image img,
.property-card .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform var(--transition-slow);
    display: block;
}

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

/* Card Badges */
.property-card-badges,
.property-card .card-badges {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
}

/* Card Favorite Button */
.property-card-fav,
.property-card .card-fav {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    z-index: 2;
    cursor: pointer;
    border: none;
    padding: 0;
}

.property-card-fav:hover,
.property-card .card-fav:hover,
.property-card-fav.active,
.property-card .card-fav.active {
    color: var(--color-danger);
    background-color: var(--color-white);
    transform: scale(1.1);
}

/* Card Body */
.property-card-body,
.property-card .card-body {
    padding: 10px var(--space-sm);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Card Price */
.property-card-price,
.property-card .card-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

/* Card Title */
.property-card-title,
.property-card .card-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* Card Location */
.property-card-location,
.property-card .card-location {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.property-card-location i,
.property-card .card-location i {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Card Features */
.property-card-features,
.property-card .card-features {
    display: flex;
    gap: var(--space-sm);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--color-border-light);
    margin-top: auto;
}

.property-card-features span,
.property-card .card-feature {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    white-space: nowrap;
}

.property-card-features i,
.property-card .card-feature i {
    color: var(--color-text-muted);
    font-size: 11px;
}

.property-card .card-footer {
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-light);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* Card Image Placeholder */
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light-dark);
    color: var(--color-text-muted);
    font-size: var(--font-size-3xl);
}


/* ============================================================
   10. BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    background-color: var(--color-danger);
    border-radius: var(--radius-full);
    line-height: 1;
    white-space: nowrap;
}

.card-badge,
.badge-primary {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.card-badge.badge-venta,
.badge-venta {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.card-badge.badge-alquiler,
.badge-alquiler {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.card-badge.badge-destacada {
    background-color: var(--color-accent);
    color: var(--color-white);
}

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

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

.badge-warning {
    background-color: var(--color-accent-bg);
    color: var(--color-accent);
}

.badge-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--color-danger);
}

.badge-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--color-info);
}

.badge-pendiente {
    background-color: var(--color-warning);
    color: #333;
}

.badge-publicada {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.badge-rechazada {
    background-color: var(--color-danger);
    color: var(--color-white);
}


/* ============================================================
   11. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
}

.btn-secondary {
    background-color: var(--color-light-dark);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-border);
    border-color: var(--color-text-muted);
    color: var(--color-dark);
}

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

.btn-accent:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

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

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

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

.btn-success:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: var(--color-white);
}

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

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

.btn-whatsapp {
    background-color: #25d366;
    color: var(--color-white);
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    border-color: #1ebe57;
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Share WhatsApp button (property detail) */
.btn-share-wa {
    background-color: #fff;
    color: #25d366;
    border: 2px solid #25d366;
    font-weight: 600;
}
.btn-share-wa:hover {
    background-color: #25d366;
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Share WhatsApp button on property cards (floating icon) */
.btn-share-wa-card {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.9);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transform: translateY(4px);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.property-card:hover .btn-share-wa-card {
    opacity: 1;
    transform: translateY(0);
}
.btn-share-wa-card:hover {
    background: #1ebe57;
    transform: scale(1.15);
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-base);
    border-radius: var(--radius);
}

.btn-block,
.btn-full {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

/* Button Loading State */
.btn.loading {
    color: transparent;
    pointer-events: none;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: var(--radius-full);
    animation: spin 0.6s linear infinite;
}

.btn-secondary.loading::after {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-text);
}


/* ============================================================
   12. FORMS
   ============================================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.form-group-lg {
    flex: 2;
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.form-control,
.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background-color: var(--color-white);
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus,
.form-input:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-control::placeholder,
.form-input::placeholder {
    color: var(--color-text-muted);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-select-sm {
    padding: 6px 30px 6px 10px;
    font-size: var(--font-size-xs);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.form-input-sm {
    padding: 6px 10px;
    font-size: var(--font-size-xs);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
}

.form-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.form-hint {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.form-hint i {
    margin-right: var(--space-xs);
}

.form-error {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-danger);
    margin-top: var(--space-xs);
    min-height: 18px;
}

.form-link {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.form-link:hover {
    text-decoration: underline;
}

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

/* Form Validation */
.is-valid {
    border-color: var(--color-secondary) !important;
}

.is-invalid {
    border-color: var(--color-danger) !important;
}

.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15) !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.form-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Input with Icon */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.input-icon input {
    padding-left: 42px;
}

.input-icon .toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.input-icon .toggle-password:hover {
    color: var(--color-primary);
    background-color: var(--color-light);
}

/* Checkbox */
.checkbox-label,
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
}

.checkbox-label input[type="checkbox"],
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Password Strength */
.password-strength {
    height: 4px;
    background-color: var(--color-border-light);
    border-radius: 2px;
    margin-top: var(--space-sm);
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all var(--transition);
}


/* ============================================================
   13. TABLES
   ============================================================ */
.dash-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.dash-table thead,
.admin-table thead {
    background-color: var(--color-light);
}

.dash-table th,
.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 2px solid var(--color-border);
}

.dash-table td,
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
    color: var(--color-text);
}

.dash-table tbody tr:hover,
.admin-table tbody tr:hover {
    background-color: var(--color-light);
}

.dash-table .empty-row,
.admin-table .empty-row {
    background: none;
}

.dash-table .empty-row:hover,
.admin-table .empty-row:hover {
    background: none;
}

.dash-table-responsive,
.admin-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.admin-table-props td:first-child {
    width: 60px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
}

.admin-table-props img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.admin-table .prop-cell {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 150px;
}

.admin-table .prop-cell img {
    width: 50px;
    height: 38px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.admin-table .prop-cell .prop-info {
    min-width: 0;
}

.admin-table .prop-cell .prop-title {
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: block;
}


/* ============================================================
   14. MODALS
   ============================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
    z-index: 1;
}

.modal-content.modal-lg {
    max-width: 720px;
}

.modal-content.modal-xl {
    max-width: 900px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.modal-close:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
    flex-shrink: 0;
}


/* ============================================================
   15. AUTH / LOGIN PAGE
   ============================================================ */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + var(--space-xl)) var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 50%, #fff3e0 100%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
}

.auth-tabs {
    display: flex;
    background-color: var(--color-light);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: var(--space-lg);
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab:hover {
    color: var(--color-text);
}

.auth-tab.active {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: none;
}

.auth-form.active,
.auth-form:not(.hidden) {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-message {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.auth-message.success {
    background-color: var(--color-secondary-bg);
    color: var(--color-secondary-dark);
    border: 1px solid var(--color-secondary);
}

.auth-message.error {
    background-color: rgba(220, 53, 69, 0.08);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.auth-footer a {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

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

/* ─── Google Sign-In ──────────────────────────────────────── */
.google-signin-section {
    margin-bottom: var(--space-md);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: #3c4043;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-google:hover {
    background-color: var(--color-light);
    border-color: var(--color-text-muted);
    box-shadow: var(--shadow-sm);
}

.btn-google:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-google:active {
    background-color: var(--color-light-dark);
}

.btn-google .google-icon {
    flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--color-border-light);
}

.auth-divider span {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ============================================================
   16. DASHBOARD
   ============================================================ */
.dashboard {
    padding-top: calc(var(--navbar-height) + var(--space-sm));
    min-height: 100vh;
    background-color: var(--color-light);
}

.dashboard-container {
    display: flex;
    gap: var(--space-lg);
    max-width: 100%;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-lg));
    align-self: flex-start;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    max-height: calc(100vh - var(--navbar-height) - 48px);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background-color: var(--color-primary-bg);
    border-bottom: 1px solid var(--color-border-light);
}

.user-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.user-info h3 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin-bottom: 2px;
}

.user-info p {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin: 0;
}

.sidebar-nav {
    padding: var(--space-sm);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    text-decoration: none;
    width: 100%;
}

.sidebar-link:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

.sidebar-link.active {
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.sidebar-link .badge {
    margin-left: auto;
}

/* Dashboard Main Content */
.dashboard-main {
    flex: 1;
    min-width: 0;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.dashboard-header-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .dashboard-header-actions {
        width: 100%;
        margin-left: 0;
    }
    .dashboard-header-actions .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

/* ─── Product Upload Area ──────────────────────────────── */
.prod-upload-area {
    margin-top: 12px;
    padding: 16px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    text-align: center;
}

.prod-upload-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.prod-upload-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.prod-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.prod-upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.prod-upload-preview .prod-upload-filename {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prod-upload-preview .prod-upload-remove {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-upload-progress {
    color: #059669;
    font-size: 0.85rem;
    padding: 8px;
}

.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    font-size: var(--font-size-lg);
    cursor: pointer;
    border: 1px solid var(--color-border-light);
}

.dashboard-title {
    font-size: var(--font-size-xl);
    flex: 1;
}

/* Dashboard Sections */
.dashboard-section {
    animation: fadeIn 0.3s ease;
}

/* Dashboard Stats Grid */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.dash-stat-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.dash-stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.stat-icon-blue {
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
}

.stat-icon-green {
    background-color: var(--color-secondary-bg);
    color: var(--color-secondary);
}

.stat-icon-orange {
    background-color: var(--color-accent-bg);
    color: var(--color-accent);
}

.stat-icon-purple {
    background-color: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.dash-stat-info {
    min-width: 0;
}

.dash-stat-number {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    line-height: 1.2;
}

.dash-stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Dashboard Card */
.dash-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.dash-card-header h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

.dash-link {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
}

.dash-link:hover {
    text-decoration: underline;
}

.dash-filters {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Messages List */
.messages-list {
    padding: var(--space-md);
}

.message-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius);
    border-bottom: 1px solid var(--color-border-light);
    transition: background-color var(--transition-fast);
}

.message-item:hover {
    background-color: var(--color-light);
}

.message-item.unread {
    background-color: var(--color-primary-bg);
}

/* Profile Form */
/* ─── Profile Header Card ─────────────────────────────────── */
.profile-header-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}

.profile-cover {
    height: 100px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 40%, #34a853 100%);
    position: relative;
}

.profile-header-body {
    display: flex;
    align-items: flex-end;
    gap: var(--space-md);
    padding: 0 var(--space-xl) var(--space-lg);
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.profile-avatar-large {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    flex-shrink: 0;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-info {
    padding-bottom: 4px;
}

.profile-header-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.profile-role-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #e8f0fe, #d2e3fc);
    color: #1a73e8;
    margin-right: 8px;
}

.profile-role-badge.role-admin {
    background: linear-gradient(135deg, #fce8e6, #f9dedc);
    color: #d93025;
}

.profile-role-badge.role-agent {
    background: linear-gradient(135deg, #e6f4ea, #ceead6);
    color: #137333;
}

.profile-email-display {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 4px 0 0 0;
}

/* ─── Profile Form Card ──────────────────────────────────── */
.profile-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-form-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.profile-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.profile-form-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 2px 0;
}

.profile-form-card-header p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ─── Profile Form Sections ──────────────────────────────── */
.profile-form {
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
}

.profile-form-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid #f5f5f5;
}

.profile-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--space-lg);
    padding-bottom: 0;
}

.profile-form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid #f0f0f0;
}

.profile-form-section-title i {
    color: var(--color-primary);
    font-size: 15px;
    width: 20px;
    text-align: center;
}

/* ─── Profile Input Groups ───────────────────────────────── */
.profile-input-group {
    flex: 1;
    min-width: 0;
}

.profile-input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.profile-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-input-wrapper i {
    position: absolute;
    left: 14px;
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s;
}

.profile-input-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--color-text);
    background: #fafbfc;
    transition: all 0.25s ease;
    outline: none;
}

.profile-input-wrapper input:hover {
    border-color: #d0d0d0;
    background: #fff;
}

.profile-input-wrapper input:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.profile-input-wrapper input:focus + i,
.profile-input-wrapper:has(input:focus) i {
    color: var(--color-primary);
}

.profile-input-wrapper input::placeholder {
    color: #bbb;
}

.profile-input-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #999;
    padding-left: 2px;
}

/* ─── Profile Textarea ───────────────────────────────────── */
.profile-textarea-wrapper {
    position: relative;
}

.profile-textarea-wrapper textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--color-text);
    background: #fafbfc;
    transition: all 0.25s ease;
    outline: none;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

.profile-textarea-wrapper textarea:hover {
    border-color: #d0d0d0;
    background: #fff;
}

.profile-textarea-wrapper textarea:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.profile-textarea-wrapper textarea::placeholder {
    color: #bbb;
}

.profile-char-count {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.72rem;
    color: #bbb;
    pointer-events: none;
}

/* ─── Profile Sync Banner ────────────────────────────────── */
.profile-sync-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 12px;
    margin-bottom: var(--space-xl);
    border: 1px solid #c8e6c9;
}

.profile-sync-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #34a853, #43a047);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.profile-sync-text strong {
    display: block;
    font-size: 0.85rem;
    color: #2e7d32;
    margin-bottom: 3px;
}

.profile-sync-text p {
    font-size: 0.8rem;
    color: #558b2f;
    margin: 0;
    line-height: 1.5;
}

/* ─── Profile Form Actions ───────────────────────────────── */
.profile-form-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    padding-top: var(--space-md);
}

.profile-save-btn {
    padding: 11px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
}

.profile-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.profile-cancel-btn {
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.profile-save-btn.saving {
    pointer-events: none;
    opacity: 0.7;
}

.profile-save-btn.saving i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ─── Profile Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    .profile-header-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 var(--space-md) var(--space-lg);
    }

    .profile-avatar-large {
        width: 76px;
        height: 76px;
        font-size: 28px;
        margin-top: -38px;
    }

    .profile-header-info h2 {
        font-size: 1.15rem;
    }

    .profile-form {
        padding: var(--space-md);
    }

    .profile-form-card-header {
        padding: var(--space-md);
    }

    .profile-form-actions {
        flex-direction: column;
    }

    .profile-save-btn,
    .profile-cancel-btn {
        width: 100%;
        justify-content: center;
    }

    .profile-sync-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-sync-icon {
        margin-bottom: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .profile-cover {
        height: 70px;
    }

    .profile-avatar-large {
        width: 64px;
        height: 64px;
        font-size: 24px;
        margin-top: -32px;
    }
}


/* ============================================================
   17. PROPERTY FORM (Publish)
   ============================================================ */
.property-form-page {
    padding-top: calc(var(--navbar-height) + var(--space-xl));
    min-height: 100vh;
    background-color: var(--color-light);
    padding-bottom: var(--space-xl);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.form-header h1 {
    font-size: var(--font-size-2xl);
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.form-header h1 i {
    color: var(--color-primary);
    margin-right: var(--space-sm);
}

.form-subtitle {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
}

.property-form {
    max-width: 860px;
    margin: 0 auto;
}

.form-section {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-md);
}

.form-section-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
}

.form-section-title .title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.feature-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1.5px solid var(--color-border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 12px;
    text-align: center;
    background-color: var(--color-white);
    color: var(--color-text-light);
    white-space: nowrap;
    user-select: none;
}

.feature-checkbox .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--color-light);
    border-radius: 6px;
    font-size: 11px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.feature-checkbox:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-bg);
    color: var(--color-dark);
}

.feature-checkbox:hover .feature-icon {
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
}

.feature-checkbox:has(input:checked) {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
}

.feature-checkbox:has(input:checked) .feature-icon {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
}

.feature-checkbox input[type="checkbox"] {
    display: none;
}

.feature-icon {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

.feature-checkbox:has(input:checked) .feature-icon {
    color: var(--color-white);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: var(--color-light);
}

.upload-area:hover,
.upload-area.active {
    border-color: var(--color-primary);
    background-color: var(--color-primary-bg);
}

.upload-placeholder i {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    display: block;
}

.upload-placeholder h3 {
    font-size: var(--font-size-base);
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
}

.upload-placeholder p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.upload-placeholder small {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.photos-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--color-border-light);
}

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

.photo-preview-item .remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-danger);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.photo-preview-item:hover .remove-photo {
    opacity: 1;
}

.photo-preview-item .photo-order {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
}

/* Upload Action Buttons (Gallery + Camera) */
.upload-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.btn-upload-gallery,
.btn-upload-camera {
    flex: 1;
    justify-content: center;
    padding: 12px var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.btn-upload-gallery {
    background-color: var(--color-white);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-upload-gallery:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-primary-bg);
}

.btn-upload-camera {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-upload-camera:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
}

/* ============================================================
   17-B. PROPERTY FORM V2 (Modern Redesign)
   ============================================================ */

/* --- Hero Header --- */
.pf-hero {
    position: relative;
    padding: 60px 20px 40px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.pf-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(26, 115, 232, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(107, 66, 193, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.pf-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.pf-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.pf-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a73e8, #4a90e8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(26, 115, 232, 0.4);
    animation: pf-float 3s ease-in-out infinite;
}

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

.pf-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.pf-hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
}

/* --- Step Progress --- */
.pf-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.pf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.pf-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-step span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    transition: color 0.3s;
}

.pf-step.active .pf-step-circle {
    background: linear-gradient(135deg, #1a73e8, #4a90e8);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.5);
    transform: scale(1.1);
}

.pf-step.active span {
    color: #fff;
}

.pf-step.completed .pf-step-circle {
    background: linear-gradient(135deg, #28a745, #5cb85c);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.pf-step.completed span {
    color: rgba(255,255,255,0.7);
}

.pf-step-line {
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 4px;
    margin-bottom: 22px;
    border-radius: 1px;
    transition: background 0.4s;
}

.pf-step-line.active {
    background: linear-gradient(90deg, #28a745, #1a73e8);
}

/* --- Form Sections --- */
.pf-section {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.3s, transform 0.3s;
}

.pf-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.pf-section.in-focus {
    box-shadow: 0 0 0 2px #1a73e8, 0 8px 30px rgba(26, 115, 232, 0.12);
}

.pf-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
}

.pf-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pf-section-text {
    flex: 1;
}

.pf-section-text h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.pf-section-text p {
    font-size: 0.8rem;
    color: #999;
    margin: 2px 0 0;
}

.pf-section-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: #e8f0fe;
    color: #1a73e8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pf-section-body {
    padding: 24px;
}

/* --- Fields --- */
.pf-field {
    margin-bottom: 20px;
}

.pf-field:last-child {
    margin-bottom: 0;
}

.pf-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.pf-label i {
    font-size: 0.8rem;
    color: #9ca3af;
}

.pf-required {
    color: #ef4444;
    font-weight: 700;
}

.pf-field input[type="text"],
.pf-field input[type="number"],
.pf-field input[type="email"],
.pf-field input[type="tel"],
.pf-field input[type="password"],
.pf-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1f2937;
    background: #fff;
    transition: all 0.25s;
    outline: none;
    font-family: inherit;
}

.pf-field input:focus,
.pf-field textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.pf-field input::placeholder,
.pf-field textarea::placeholder {
    color: #c4c9d4;
}

.pf-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.pf-field-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.pf-field-footer .form-hint {
    margin: 0;
    font-size: 0.72rem;
}

.pf-field-footer .form-hint i {
    color: #f59e0b;
}

.pf-char-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

/* --- Select Wrapper --- */
.pf-select-wrapper {
    position: relative;
}

.pf-select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1f2937;
    background: #fff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.pf-select-wrapper select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.pf-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #9ca3af;
    pointer-events: none;
}

/* --- Grids --- */
.pf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pf-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.pf-grid-collapse {
    margin-top: 16px;
}

/* --- Price Card --- */
.pf-price-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pf-price-main {
    flex: 1;
}

.pf-price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pf-price-symbol {
    position: absolute;
    left: 16px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #28a745;
    z-index: 1;
}

.pf-price-input-wrapper input {
    padding-left: 42px !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    height: 56px !important;
    border-color: #28a745 !important;
    border-width: 2px !important;
}

.pf-price-input-wrapper input:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
    border-color: #28a745 !important;
}

.pf-currency-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.pf-currency-option {
    cursor: pointer;
}

.pf-currency-option input[type="radio"] {
    display: none;
}

.pf-currency-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.25s;
    background: #fff;
}

.pf-currency-option input:checked + .pf-currency-card {
    border-color: #28a745;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.pf-currency-card:hover {
    border-color: #9ca3af;
}

.pf-currency-flag {
    font-size: 1.3rem;
    line-height: 1;
}

.pf-currency-code {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
}

.pf-currency-name {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* --- Map Container --- */
.pf-map-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.pf-map-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.pf-map-header i {
    color: #ff6b35;
}

.pf-map-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 12px;
}

.pf-coords-display {
    display: flex;
    gap: 16px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 10px;
}

.pf-coords-display strong {
    color: #1f2937;
    font-weight: 700;
}

/* --- Quick Stats Cards --- */
.pf-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.pf-stat-card {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.25s;
}

.pf-stat-card:hover {
    border-color: #6f42c1;
    background: #faf5ff;
}

.pf-stat-card:focus-within {
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.pf-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #6f42c1;
    margin-bottom: 8px;
}

.pf-stat-card label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pf-stat-card input {
    width: 100%;
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    outline: none;
    transition: all 0.25s;
    background: #fff;
}

.pf-stat-card input:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

/* --- Features Chips --- */
.pf-features-section {
    margin-top: 4px;
}

.pf-features-section > .pf-label {
    margin-bottom: 14px;
}

.pf-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pf-feature-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.pf-feature-chip:hover {
    border-color: #a78bfa;
    background: #faf5ff;
}

.pf-feature-chip input[type="checkbox"] {
    display: none;
}

.pf-feature-chip-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: all 0.25s;
}

.pf-feature-chip-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    flex: 1;
    transition: color 0.25s;
}

.pf-feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.25s;
}

.pf-feature-chip:has(input:checked) {
    border-color: #6f42c1;
    background: linear-gradient(135deg, #6f42c1, #8b5cf6);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.pf-feature-chip:has(input:checked) .pf-feature-chip-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.pf-feature-chip:has(input:checked) .pf-feature-chip-text {
    color: #fff;
    font-weight: 600;
}

.pf-feature-chip:has(input:checked) .pf-feature-check {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* --- Upload Zone --- */
.pf-upload-zone {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafbfc;
    overflow: hidden;
}

.pf-upload-glow {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a73e8, #e91e63, #ff6b35, #28a745);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s;
    background-size: 300% 300%;
    animation: pf-glow-shift 4s ease infinite;
}

@keyframes pf-glow-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pf-upload-zone:hover .pf-upload-glow,
.pf-upload-zone.active .pf-upload-glow {
    opacity: 1;
}

.pf-upload-zone:hover,
.pf-upload-zone.active {
    border-color: transparent;
    background: #fff;
}

.pf-upload-content {
    position: relative;
    z-index: 1;
}

.pf-upload-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a73e8;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.pf-upload-zone:hover .pf-upload-icon-ring {
    background: linear-gradient(135deg, #1a73e8, #4a90e8);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.3);
}

.pf-upload-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.pf-upload-content p {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 12px;
}

.pf-upload-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pf-upload-meta span {
    font-size: 0.72rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pf-upload-meta span i {
    color: #d1d5db;
}

/* --- Upload Buttons --- */
.pf-upload-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.pf-upload-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.pf-upload-btn-gallery {
    background: #fff;
    border-color: #e5e7eb;
    color: #374151;
}

.pf-upload-btn-gallery:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #eff6ff;
}

.pf-upload-btn-camera {
    background: linear-gradient(135deg, #1a73e8, #4a90e8);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.pf-upload-btn-camera:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.pf-upload-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 12px;
}

.pf-upload-hint i {
    color: #f59e0b;
}

/* --- Form Actions --- */
.pf-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    margin-top: 8px;
}

.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    font-family: inherit;
}

.pf-btn-cancel {
    background: #fff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.pf-btn-cancel:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.pf-btn-publish {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a73e8, #4a90e8);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
}

.pf-btn-publish-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1557b0, #1a73e8);
    opacity: 0;
    transition: opacity 0.3s;
}

.pf-btn-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.5);
}

.pf-btn-publish:hover .pf-btn-publish-bg {
    opacity: 1;
}

.pf-btn-publish i,
.pf-btn-publish span {
    position: relative;
    z-index: 1;
}

/* --- Responsive: Tablet --- */
@media (max-width: 768px) {
    .pf-hero {
        padding: 40px 16px 30px;
    }

    .pf-hero-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
        border-radius: 16px;
    }

    .pf-hero h1 {
        font-size: 1.5rem;
    }

    .pf-step-line {
        width: 24px;
    }

    .pf-step-circle {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

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

    .pf-section-header {
        padding: 16px 18px;
        gap: 12px;
    }

    .pf-section-body {
        padding: 18px;
    }

    .pf-grid-2,
    .pf-grid-3 {
        grid-template-columns: 1fr;
    }

    .pf-price-card {
        flex-direction: column;
    }

    .pf-currency-selector {
        flex-direction: row;
        min-width: auto;
    }

    .pf-currency-card {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
    }

    .pf-currency-name {
        display: none;
    }

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

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

    .pf-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .pf-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .pf-field input[type="text"],
    .pf-field input[type="number"],
    .pf-field input[type="email"],
    .pf-field input[type="tel"],
    .pf-field input[type="password"],
    .pf-field textarea,
    .pf-select-wrapper select {
        font-size: 16px; /* Prevent iOS zoom */
    }

    .pf-field textarea {
        min-height: 100px;
    }

    .pf-step span {
        display: none;
    }

    .pf-step-line {
        margin-bottom: 0;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 480px) {
    .pf-hero {
        padding: 32px 12px 24px;
    }

    .pf-hero-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 14px;
        margin-bottom: 14px;
    }

    .pf-hero h1 {
        font-size: 1.25rem;
    }

    .pf-hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }

    .pf-step-circle {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .pf-step-line {
        width: 16px;
    }

    .pf-section-header {
        padding: 14px 14px;
        gap: 10px;
    }

    .pf-section-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
        border-radius: 10px;
    }

    .pf-section-text h2 {
        font-size: 0.95rem;
    }

    .pf-section-badge {
        display: none;
    }

    .pf-section-body {
        padding: 14px;
    }

    .pf-label {
        font-size: 0.8rem;
    }

    .pf-field input[type="text"],
    .pf-field input[type="number"],
    .pf-field input[type="email"],
    .pf-field input[type="tel"],
    .pf-field input[type="password"],
    .pf-field textarea,
    .pf-select-wrapper select {
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 16px;
    }

    .pf-quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .pf-stat-card {
        padding: 12px 8px;
    }

    .pf-stat-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .pf-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .pf-feature-chip {
        padding: 8px 10px;
        gap: 6px;
    }

    .pf-feature-chip-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .pf-feature-chip-text {
        font-size: 0.75rem;
    }

    .pf-feature-check {
        display: none;
    }

    .pf-upload-zone {
        padding: 28px 16px;
    }

    .pf-upload-icon-ring {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .pf-upload-content h3 {
        font-size: 0.9rem;
    }

    .pf-upload-meta {
        flex-direction: column;
        gap: 6px;
    }

    .pf-upload-buttons {
        flex-direction: column;
    }

    .pf-upload-btn {
        padding: 12px 16px;
    }

    .pf-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .pf-currency-selector {
        flex-direction: row;
    }

    .pf-currency-card {
        flex-direction: column;
        gap: 4px;
        padding: 10px;
    }

    .pf-map-container {
        padding: 14px;
    }

    .pf-price-input-wrapper input {
        font-size: 1.1rem !important;
        height: 48px !important;
    }

    .pf-price-symbol {
        font-size: 1.1rem;
        left: 14px;
    }
}


/* ============================================================
   18. PROPERTY DETAIL PAGE
   ============================================================ */
.property-detail-page {
    padding-top: calc(var(--navbar-height) + var(--space-sm));
    min-height: 100vh;
    background-color: var(--color-light);
    padding-bottom: var(--space-xl);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
    flex-wrap: wrap;
    padding: 0;
}

.breadcrumb a {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

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

.breadcrumb span {
    color: var(--color-dark);
    font-weight: var(--font-weight-semibold);
}

.breadcrumb::before {
    content: '';
    display: none;
}

/* Error State */
.error-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    animation: fadeIn 0.5s ease;
}

.error-state i {
    font-size: 64px;
    color: var(--color-danger);
    margin-bottom: var(--space-md);
    display: block;
}

.error-state h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.error-state p {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

/* Property Content */
.property-content {
    animation: fadeIn 0.5s ease;
}

/* Property Content Layout */
.property-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-lg);
    align-items: start;
}

/* Property Detail Main Column */
.property-detail-main {
    min-width: 0;
}

/* Property Header Info */
.property-header-info {
    margin-bottom: var(--space-lg);
}

.property-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.property-title-row h1 {
    font-size: var(--font-size-2xl);
    line-height: 1.3;
    margin: 0;
}

.btn-favorite {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

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

.btn-favorite.active {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    color: var(--color-white);
}

.property-price {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.property-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

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

.property-type-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Quick Stats */
.property-quick-stats {
    display: flex;
    gap: 0;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.quick-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    text-align: center;
    border-right: 1px solid var(--color-border-light);
}

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

.quick-stat i {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
}

.quick-stat span {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
}

.quick-stat label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* Property Sections */
.property-section {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
}

.property-section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border-light);
}

.property-description {
    color: var(--color-text);
    line-height: 1.8;
    white-space: pre-wrap;
}

.property-description p {
    margin-bottom: var(--space-sm);
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-light);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
}

.feature-item i {
    color: var(--color-secondary);
    font-size: var(--font-size-base);
}

/* Property Map */
.property-map {
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--color-light-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-map p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* Contact Form */
.contact-section {
    background-color: var(--color-white);
}

.contact-form {
    max-width: 100%;
}

/* Contact Actions (WhatsApp + Message buttons) */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Chat Panel */
.chat-panel {
    margin-top: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow);
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-primary);
    color: #fff;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.chat-header-info i {
    font-size: 24px;
}

.chat-status {
    font-weight: 400;
    font-size: 11px;
    opacity: 0.85;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

.chat-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255,255,255,0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 120px;
    max-height: 260px;
    background: #f8f9fa;
}

.chat-welcome {
    text-align: center;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.chat-welcome i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
    color: var(--color-border);
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease;
}

.chat-bubble.sent {
    background: var(--color-primary);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    background: var(--color-white);
    color: var(--color-text);
    margin-right: auto;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.chat-bubble .chat-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
}

.chat-bubble.sent .chat-time {
    text-align: right;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--color-border-light);
    background: var(--color-white);
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--color-primary-dark);
}

.contact-whatsapp {
    margin-top: var(--space-md);
    text-align: center;
}

.contact-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--color-border-light);
}

/* Property Detail Sidebar */
.property-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-lg));
}

/* Owner Card */
.owner-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.owner-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 48px;
}

.owner-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin-bottom: 4px;
}

.owner-since {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.owner-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

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

.owner-stat-number {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
}

.owner-stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.owner-contact {
    margin-top: var(--space-sm);
}

.owner-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

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

/* Sidebar Card */
.sidebar-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.sidebar-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

/* Price Summary */
.price-summary {
    margin-bottom: var(--space-sm);
}

.price-big {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.price-operation {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.price-details {
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.price-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.price-detail-item strong {
    color: var(--color-dark);
}

/* Quick Info List */
.quick-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-info-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

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

.quick-info-list li i {
    color: var(--color-primary);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}


/* ============================================================
   19. GALLERY & LIGHTBOX
   ============================================================ */
.property-gallery {
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f0f0f0;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: zoom-in;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: opacity 0.2s ease;
}

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

.gallery-nav:hover {
    background-color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: var(--space-md);
}

.gallery-next {
    right: var(--space-md);
}

.gallery-counter {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    z-index: 3;
}

.gallery-fullscreen {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 3;
}

.gallery-fullscreen:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.gallery-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    gap: var(--space-xs);
    z-index: 3;
}

.gallery-thumbnails {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.gallery-thumb:hover {
    opacity: 1;
}

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

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 4;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: var(--space-lg);
}

.lightbox-next {
    right: var(--space-lg);
}

.lightbox-counter {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}


/* ============================================================
   20. ADMIN PANEL
   ============================================================ */
.admin-panel {
    padding-top: var(--navbar-height);
    min-height: 100vh;
    background-color: var(--color-light);
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - var(--navbar-height));
}

/* Admin Sidebar */
.admin-sidebar {
    width: var(--admin-sidebar-width);
    background-color: var(--color-dark);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    z-index: var(--z-sticky);
    transition: transform var(--transition);
    overflow-y: auto;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-header i {
    font-size: var(--font-size-lg);
    color: var(--color-accent);
}

.admin-nav {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.admin-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.admin-nav-link.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.admin-nav-link .badge {
    background-color: var(--color-accent);
    margin-left: auto;
}

/* Admin Content */
.admin-content {
    flex: 1;
    margin-left: var(--admin-sidebar-width);
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: var(--navbar-height);
    z-index: var(--z-dropdown);
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.admin-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: var(--font-size-lg);
    cursor: pointer;
}

.admin-page-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.admin-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--space-lg);
    padding-bottom: 0;
}

.admin-tabs .admin-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tabs .admin-tab:hover {
    color: var(--color-primary);
}

.admin-tabs .admin-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Info Banner for Admin */
.dash-info-banner {
    background: var(--color-primary-bg);
    border: 1px solid var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-primary-dark);
}

.dash-info-banner i {
    font-size: 18px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.dash-info-banner p {
    margin: 0;
    line-height: 1.5;
}

/* Avatar Initials */
.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
}

/* Admin Pending Row Highlight */
.admin-pending-row {
    background: #fffdf5;
}

.admin-pending-row:hover {
    background: #fef9e7 !important;
}

/* Admin section */
.admin-tab {
    padding: var(--space-lg);
    animation: fadeIn 0.3s ease;
}

/* ─── Admin Users Panel ─────────────────────────────────── */
.admin-users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.admin-users-stats {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.admin-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-stat-chip i {
    font-size: 11px;
}

.admin-stat-chip-blue {
    background: linear-gradient(135deg, #e8f0fe, #d2e3fc);
    color: #1a73e8;
}

.admin-stat-chip-red {
    background: linear-gradient(135deg, #fce8e6, #f9dedc);
    color: #d93025;
}

.admin-stat-chip-green {
    background: linear-gradient(135deg, #e6f4ea, #ceead6);
    color: #137333;
}

.admin-users-search {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.admin-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-search-wrapper i {
    position: absolute;
    left: 12px;
    color: #aaa;
    font-size: 13px;
    pointer-events: none;
}

.admin-search-wrapper input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.85rem;
    outline: none;
    background: #fafbfc;
    transition: all 0.2s;
}

.admin-search-wrapper input:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* ─── Role Toggle ────────────────────────────────────────── */
.role-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e8e8e8;
    background: #f5f5f5;
}

.role-toggle-btn {
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #888;
    position: relative;
}

.role-toggle-btn:first-child {
    border-right: 1px solid #e0e0e0;
}

.role-toggle-btn:hover {
    background: rgba(0,0,0,0.04);
}

.role-toggle-btn.active-admin {
    background: linear-gradient(135deg, #d93025, #c5221f);
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.role-toggle-btn.active-user {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.role-toggle-btn.active-agent {
    background: linear-gradient(135deg, #137333, #43a047);
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.role-toggle-btn.self-badge {
    cursor: default;
    opacity: 0.8;
}

.role-toggle-btn.saving-role {
    pointer-events: none;
    opacity: 0.6;
}

/* ─── User Table Row ────────────────────────────────────── */
.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.2;
}

.admin-user-date {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.admin-role-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.admin-role-badge-inline.role-admin {
    background: #fce8e6;
    color: #d93025;
}

.admin-role-badge-inline.role-user {
    background: #e8f0fe;
    color: #1a73e8;
}

.admin-role-badge-inline.role-agent {
    background: #e6f4ea;
    color: #137333;
}

/* Admin Users Responsive */
@media (max-width: 768px) {
    .admin-users-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-users-search {
        max-width: 100%;
    }
}

/* ─── Edit User Modal ────────────────────────────────────── */
.edit-user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.edit-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.edit-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-user-avatar span {
    color: #fff;
}

.edit-user-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #666;
}

.edit-user-meta div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-user-meta strong {
    color: #333;
}

.edit-user-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.edit-user-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.edit-user-section-admin {
    background: linear-gradient(135deg, #fffdf5, #fff9f0);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #fde8c8;
    margin-bottom: 0;
}

.edit-user-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0f0f0;
}

.edit-user-section-admin .edit-user-section-title {
    border-bottom-color: #fde8c8;
}

.edit-user-section-title i {
    color: var(--color-primary);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.edit-user-section-admin .edit-user-section-title i {
    color: #e67e22;
}

/* Modal large variant */
.modal-lg {
    max-width: 600px;
    width: 95%;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.admin-stat-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.admin-stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.admin-stat-info {
    min-width: 0;
}

.admin-stat-number {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    line-height: 1.2;
}

.admin-stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Admin Card */
.admin-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.admin-card-header h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.admin-card-header h3 i {
    color: var(--color-primary);
}

.admin-card-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.admin-card-body {
    padding: 0;
}

.admin-link {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
}

.admin-link:hover {
    text-decoration: underline;
}

/* Activity List */
.activity-list {
    padding: var(--space-md);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.activity-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.activity-text {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    line-height: 1.5;
}

.activity-time {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Admin Pagination */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}


/* ============================================================
   21. SEARCH PAGE
   ============================================================ */
.search-page {
    padding-top: calc(var(--navbar-height) + var(--space-md));
    min-height: 100vh;
    background-color: var(--color-light);
    padding-bottom: var(--space-xl);
}

/* Search Filters Bar */
.search-filters-bar {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-md);
}

.search-filters-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.search-filter-field {
    min-width: 130px;
}

.search-filter-field .form-select,
.search-filter-field .form-input {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.search-filters-extended {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border-light);
}

.search-filters-extended .search-filters-row {
    gap: var(--space-sm);
}

.btn-toggle-filters {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Info Bar */
.search-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.search-results-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.search-results-info strong {
    color: var(--color-dark);
}

.active-filters {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 10px;
    background-color: var(--color-primary-bg);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

.filter-tag .remove {
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    opacity: 0.7;
}

.filter-tag .remove:hover {
    opacity: 1;
}

.btn-clear-filters {
    font-size: var(--font-size-xs);
    color: var(--color-danger);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.btn-clear-filters:hover {
    background-color: rgba(220, 53, 69, 0.08);
}

/* Search View Controls */
.search-view-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.sort-select {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
}

.sort-select label {
    color: var(--color-text-muted);
    white-space: nowrap;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    width: 36px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    color: var(--color-text-muted);
    border: none;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

.btn-map-toggle {
    font-size: var(--font-size-sm);
}

/* Search Layout */
.search-layout {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.search-results {
    flex: 1;
    min-width: 0;
}

.search-map {
    width: 400px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-md));
}

.search-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-white);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid var(--color-border-light);
}

.search-map-header h3 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.btn-close-map {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.btn-close-map:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

#searchMiniMap {
    height: 500px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    animation: fadeIn 0.5s ease;
}

.no-results i {
    font-size: 64px;
    color: var(--color-border);
    margin-bottom: var(--space-md);
    display: block;
}

.no-results h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.no-results p {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.no-results-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}


/* ============================================================
   22. MAP PAGE
   ============================================================ */
.map-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--navbar-height));
    margin-top: var(--navbar-height);
}

.map-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.map-sidebar {
    width: 360px;
    min-width: 360px;
    background: var(--color-white);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    z-index: var(--z-dropdown);
    transition: all var(--transition);
}

.map-sidebar.collapsed {
    width: 0;
    min-width: 0;
    overflow: hidden;
    border-right: none;
}

.map-sidebar-toggle {
    position: absolute;
    top: 10px;
    left: 370px;
    z-index: var(--z-sticky);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: left var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
}

.map-sidebar-toggle.shifted {
    left: 10px;
}

.map-filters {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-light);
}

.map-filters h3 {
    margin: 0 0 var(--space-md) 0;
    font-size: var(--font-size-base);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.map-filters .form-group {
    margin-bottom: var(--space-sm);
}

.map-filters .form-group label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 4px;
    color: var(--color-text-light);
}

.map-filters .form-select,
.map-filters input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
}

.filter-row {
    display: flex;
    gap: var(--space-sm);
}

.filter-row .form-group {
    flex: 1;
}

.map-filters .btn {
    width: 100%;
    margin-top: var(--space-sm);
}

.map-results {
    flex: 1;
    overflow-y: auto;
}

.map-result-count {
    padding: 10px var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
}

.map-property-list {
    padding: var(--space-sm);
}

.map-property-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    margin-bottom: 6px;
}

.map-property-card:hover {
    background-color: var(--color-primary-bg);
}

.map-property-card.active {
    background-color: var(--color-primary-bg);
    border-color: var(--color-primary);
}

.map-property-card img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.map-property-card .card-info {
    flex: 1;
    min-width: 0;
}

.map-property-card .card-price {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
}

.map-property-card .card-title {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-property-card .card-location {
    font-size: 11px;
    color: var(--color-text-muted);
}

.map-property-card .card-badges {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.map-property-card .card-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: var(--z-dropdown);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.map-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
}

.map-no-results i {
    font-size: 48px;
    color: var(--color-border);
    margin-bottom: 12px;
    display: block;
}

#map {
    flex: 1;
    height: 100%;
}


/* ============================================================
   23. UPLOAD AREA
   ============================================================ */
.upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: var(--color-light);
}

.upload-area:hover,
.upload-area.active {
    border-color: var(--color-primary);
    background-color: var(--color-primary-bg);
}

.upload-area.dragover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-bg);
    transform: scale(1.01);
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--color-border-light);
}

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

.upload-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-danger);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.upload-remove-btn:hover {
    transform: scale(1.15);
}


/* ============================================================
   24. FOOTER
   ============================================================ */
.footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

.footer-col {
    /* Footer column base */
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: var(--space-md);
}

.footer-logo:hover {
    color: var(--color-white);
}

.footer-logo i {
    color: var(--color-primary);
}

.footer-col p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col ul li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-col ul li i {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    width: 16px;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}


/* ============================================================
   25. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-sm);
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease-out;
    pointer-events: all;
    border-left: 4px solid var(--color-text-muted);
    max-width: 400px;
}

.toast i {
    font-size: var(--font-size-lg);
    flex-shrink: 0;
    margin-top: 2px;
}

.toast .toast-content {
    flex: 1;
    min-width: 0;
}

.toast .toast-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin-bottom: 2px;
}

.toast .toast-message {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    line-height: 1.5;
}

.toast .toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 2px;
    font-size: var(--font-size-md);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.toast .toast-close:hover {
    color: var(--color-dark);
}

.toast-success {
    border-left-color: var(--color-secondary);
}

.toast-success i {
    color: var(--color-secondary);
}

.toast-error {
    border-left-color: var(--color-danger);
}

.toast-error i {
    color: var(--color-danger);
}

.toast-info {
    border-left-color: var(--color-info);
}

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

.toast-warning {
    border-left-color: var(--color-warning);
}

.toast-warning i {
    color: var(--color-accent);
}

.toast.toast-exit {
    animation: slideOutRight 0.3s ease-in forwards;
}


/* ============================================================
   26. LOADING / SPINNER
   ============================================================ */
.loading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-3xl);
    color: var(--color-text-muted);
}

.loading-spinner i {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
}

.loading-spinner p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 56px;
    height: 56px;
    border-width: 4px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-light-dark) 25%,
        var(--color-border-light) 50%,
        var(--color-light-dark) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-sm);
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: var(--space-md);
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
}


/* ============================================================
   27. EMPTY STATES
   ============================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
}

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

.empty-state p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.empty-state-sm {
    padding: var(--space-md);
    text-align: center;
}

.empty-state-sm p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}


/* ============================================================
   28. PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-lg) 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--color-primary-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.pagination-pages .page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-pages .page-btn:hover {
    background-color: var(--color-primary-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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


/* ============================================================
   29. FAVORITES
   ============================================================ */
.fav-btn,
.card-fav,
.btn-favorite {
    transition: all var(--transition-fast);
}

.fav-btn.active,
.card-fav.active,
.btn-favorite.active {
    color: var(--color-danger);
}

.fav-btn.active i,
.card-fav.active i,
.btn-favorite.active i {
    font-weight: 900;
}


/* ============================================================
   30. ANIMATIONS & TRANSITIONS
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}


/* ============================================================
   31. UTILITY CLASSES
   ============================================================ */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

.show-flex {
    display: flex !important;
}

.show-grid {
    display: grid !important;
}

/* Margin Utilities */
.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.m-1 {
    margin: var(--space-sm);
}

.m-2 {
    margin: var(--space-md);
}

.m-3 {
    margin: var(--space-lg);
}

.m-4 {
    margin: var(--space-xl);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Padding Utilities */
.p-1 {
    padding: var(--space-sm);
}

.p-2 {
    padding: var(--space-md);
}

.p-3 {
    padding: var(--space-lg);
}

.p-4 {
    padding: var(--space-xl);
}

.py-1 {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.py-2 {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.px-1 {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

.px-2 {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

/* Border & Shadow */
.rounded {
    border-radius: var(--radius);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.border {
    border: 1px solid var(--color-border);
}

.border-bottom {
    border-bottom: 1px solid var(--color-border);
}

.border-top {
    border-top: 1px solid var(--color-border);
}

/* Display */
.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Misc */
.no-underline {
    text-decoration: none;
}

.pointer {
    cursor: pointer;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.min-h-screen {
    min-height: 100vh;
}

/* Visibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Background */
.bg-white {
    background-color: var(--color-white);
}

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

.bg-dark {
    background-color: var(--color-dark);
}

.bg-primary {
    background-color: var(--color-primary);
}

/* Width */
.w-auto {
    width: auto;
}

.min-w-0 {
    min-width: 0;
}

/* Positioning */
.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.self-start {
    align-self: flex-start;
}

/* List view for property grid */
.property-grid.list-view {
    grid-template-columns: 1fr;
}

.property-grid.list-view .property-card {
    display: grid;
    grid-template-columns: 300px 1fr;
}

.property-grid.list-view .property-card .card-img-wrapper {
    aspect-ratio: auto;
    height: 100%;
    padding-top: 0;
}


/* ============================================================
   32. CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.35);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Dark scrollbar for dark sections */
.admin-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.admin-sidebar {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Lightbox scrollbar hidden */
.lightbox::-webkit-scrollbar {
    display: none;
}

.lightbox {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* ============================================================
   18b. COMPACT PROPERTY DETAIL LAYOUT
   ============================================================ */

/* Compact Info Card */
.compact-info-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
}

.compact-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.compact-price-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.compact-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    line-height: 1.3;
    margin: 0 0 var(--space-xs) 0;
}

.compact-price {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.compact-address {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.compact-address i {
    color: var(--color-primary);
}

/* Feature Chips */
.feature-chips {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--color-light);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    white-space: nowrap;
}

.feature-chip i {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
}

/* Compact Description */
.compact-description {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    line-height: 1.7;
}

.compact-description.collapsed {
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.compact-description.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--color-white));
    pointer-events: none;
}

.description-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--space-xs) 0;
    margin-top: var(--space-xs);
}

.description-toggle:hover {
    color: var(--color-primary-dark);
}

/* Map Section with button */
.map-section-wrapper {
    position: relative;
}

.open-map-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 14px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    margin-top: var(--space-sm);
    transition: all var(--transition-fast);
}

.open-map-modal-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Full-screen Map Modal */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    background: var(--color-white);
    display: none;
    flex-direction: column;
}

.map-modal.active {
    display: flex;
}

.map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.map-modal-header h3 {
    font-size: var(--font-size-base);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.map-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.map-modal-close:hover {
    background: var(--color-danger);
    color: var(--color-white);
}

.map-modal-body {
    flex: 1;
    position: relative;
}

.map-modal-body #mapModalMap {
    width: 100%;
    height: 100%;
}


/* ============================================================
   33. RESPONSIVE DESIGN (Tablet - max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    /* Typography */
    h1 {
        font-size: var(--font-size-2xl);
    }

    h2 {
        font-size: var(--font-size-xl);
    }

    h3 {
        font-size: var(--font-size-lg);
    }

    /* Navbar - Hamburger */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-xs);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        max-height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
        z-index: var(--z-navbar);
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px var(--space-md);
    }

    .nav-btn {
        justify-content: center;
        margin-top: var(--space-sm);
    }

    .nav-user {
        flex-direction: column;
        width: 100%;
        gap: var(--space-xs);
        padding-top: var(--space-sm);
        border-top: 1px solid var(--color-border-light);
        margin-top: var(--space-sm);
    }

    .navbar-admin .nav-menu {
        background-color: var(--color-dark);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 0;
    }

    .hero-content {
        padding: calc(var(--navbar-height) + var(--space-xl)) var(--space-md) var(--space-xl);
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
    }

    /* Search Bar */
    .search-bar {
        padding: var(--space-md);
    }

    .search-row {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .search-field input,
    .search-field select {
        padding: 10px 14px;
    }

    .btn-search {
        width: 100%;
    }

    /* Types Grid */
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .stat-number {
        font-size: var(--font-size-2xl);
    }

    /* Property Grid */
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

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

    /* Compact cards on mobile */
    .property-card-image,
    .property-card .card-img-wrapper {
        padding-top: 60%;
    }

    .property-card-body,
    .property-card .card-body {
        padding: 6px 8px;
    }

    .property-card-price,
    .property-card .card-price {
        font-size: var(--font-size-base);
    }

    .property-card-title,
    .property-card .card-title {
        font-size: var(--font-size-xs);
        -webkit-line-clamp: 1;
        min-height: 1.3em;
    }

    .property-card-location,
    .property-card .card-location {
        font-size: 10px;
    }

    .property-card-features span,
    .property-card .card-feature {
        font-size: 10px;
    }

    /* Sections */
    .section {
        padding: var(--space-2xl) 0;
    }

    /* Dashboard */
    .dashboard-container {
        flex-direction: column;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .dashboard-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    .dashboard-sidebar.collapsed {
        display: none;
    }

    .sidebar-toggle {
        display: flex;
    }

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

    /* Property Detail */
    .property-detail-grid {
        grid-template-columns: 1fr;
    }

    .property-detail-sidebar {
        position: static;
        order: -1;
    }

    .property-quick-stats {
        flex-wrap: wrap;
    }

    .quick-stat {
        min-width: 100px;
    }

    /* Gallery */
    .gallery-main {
        aspect-ratio: 16 / 10;
        border-radius: var(--radius-sm);
    }

    /* Admin Panel */
    .admin-sidebar {
        transform: translateX(-100%);
        top: var(--navbar-height);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-sidebar-toggle {
        display: flex;
    }

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

    .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-card-actions {
        width: 100%;
    }

    .admin-card-actions .form-select-sm,
    .admin-card-actions .form-input-sm {
        flex: 1;
        min-width: 0;
    }

    /* Search Page */
    .search-layout {
        flex-direction: column;
    }

    .search-map {
        width: 100%;
        position: static;
    }

    #searchMiniMap {
        height: 300px;
    }

    .search-filters-row {
        flex-direction: column;
    }

    .search-filter-field {
        min-width: 100%;
    }

    .search-view-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .sort-select {
        flex: 1;
        min-width: 150px;
    }

    /* Form - Property Page Tablet Enhancements */
    .property-form-page {
        padding-top: calc(var(--navbar-height) + var(--space-md));
    }

    .property-form {
        max-width: 100%;
    }

    .form-section {
        padding: var(--space-lg);
        margin-bottom: var(--space-md);
    }

    .form-section-title {
        font-size: var(--font-size-md);
        margin-bottom: var(--space-md);
    }

    .form-section-title .title-icon {
        width: 38px;
        height: 38px;
        font-size: var(--font-size-base);
    }

    .form-header h1 {
        font-size: var(--font-size-xl);
    }

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

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

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }

    .form-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Map Page */
    .map-page {
        margin-top: var(--navbar-height);
        height: calc(100vh - var(--navbar-height));
    }

    .map-layout {
        flex-direction: column;
    }

    .map-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 50vh;
    }

    .map-sidebar.collapsed {
        max-height: 0;
    }

    .map-sidebar-toggle {
        top: auto;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .map-sidebar-toggle.shifted {
        left: 50%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* Lightbox */
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: var(--space-sm);
    }

    .lightbox-next {
        right: var(--space-sm);
    }

    /* Toast */
    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
        max-width: none;
    }

    /* Modal */
    .modal-content {
        margin: var(--space-sm);
        max-height: 95vh;
    }

    .modal-content.modal-lg {
        max-width: calc(100vw - 16px);
    }

    /* Tables scrollable */
    .dash-table-responsive,
    .admin-table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact section */
    .contact-whatsapp .contact-divider {
        flex-direction: column;
    }

    .contact-whatsapp .btn-whatsapp {
        width: 100%;
    }
}


/* ============================================================
   34. RESPONSIVE DESIGN (Mobile - max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    :root {
        --navbar-height: 56px;
    }

    h1 {
        font-size: var(--font-size-xl);
    }

    h2 {
        font-size: var(--font-size-lg);
    }

    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    /* Hero */
    .hero-title {
        font-size: var(--font-size-xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
    }

    /* Search Bar */
    .search-bar {
        padding: var(--space-sm);
        border-radius: var(--radius);
    }

    .search-field input,
    .search-field select {
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Types Grid */
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .type-card {
        padding: var(--space-md) var(--space-sm);
    }

    .type-icon {
        width: 44px;
        height: 44px;
        font-size: var(--font-size-lg);
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .stat-item {
        padding: var(--space-md);
    }

    /* Section */
    .section {
        padding: var(--space-xl) 0;
    }

    .section-title {
        font-size: var(--font-size-lg);
    }

    /* Auth */
    .auth-card {
        padding: var(--space-lg);
        border-radius: var(--radius);
    }

    .auth-tabs {
        margin-bottom: var(--space-md);
    }

    /* Dashboard */
    .dash-stats-grid {
        grid-template-columns: 1fr;
    }

    .dash-stat-card {
        padding: var(--space-md);
    }

    .dash-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    /* Form - Property Page Mobile Enhancements */
    .property-form-page {
        padding-top: calc(var(--navbar-height) + var(--space-md));
        padding-bottom: var(--space-2xl);
    }

    .form-header {
        margin-bottom: var(--space-lg);
        padding: 0 var(--space-xs);
    }

    .form-header h1 {
        font-size: var(--font-size-lg);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .form-header h1 i {
        font-size: var(--font-size-md);
    }

    .form-subtitle {
        font-size: var(--font-size-sm);
        margin-top: var(--space-xs);
    }

    .property-form {
        max-width: 100%;
    }

    .form-section {
        padding: var(--space-lg) var(--space-md);
        margin-bottom: var(--space-md);
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border-light);
        box-shadow: var(--shadow-sm);
    }

    .form-section-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-md);
        padding-bottom: var(--space-sm);
        gap: var(--space-sm);
    }

    .form-section-title .title-icon {
        width: 34px;
        height: 34px;
        font-size: var(--font-size-sm);
        border-radius: var(--radius-sm);
        box-shadow: 0 3px 8px rgba(26, 115, 232, 0.25);
    }

    .form-section-title::after {
        width: 40px;
        height: 2px;
    }

    .form-group label {
        font-size: var(--font-size-xs);
        margin-bottom: 4px;
    }

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        border-radius: var(--radius-sm);
    }

    .form-group textarea {
        min-height: 100px;
    }

    .form-group select {
        padding-right: 36px;
    }

    .form-hint {
        font-size: 10px;
        margin-top: 4px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .form-row-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    /* Location map */
    .location-picker-map {
        height: 260px;
        border-radius: var(--radius-sm);
    }

    .location-map-search input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .location-coords-display {
        flex-wrap: wrap;
        gap: var(--space-xs);
        padding: var(--space-xs) var(--space-sm);
        font-size: 10px;
    }

    /* Upload area */
    .upload-area {
        padding: var(--space-lg) var(--space-md);
        border-radius: var(--radius-md);
    }

    .upload-placeholder h3 {
        font-size: var(--font-size-sm);
    }

    .upload-placeholder p {
        font-size: var(--font-size-xs);
    }

    /* Form actions */
    .form-actions {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-md) 0;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Property Detail */
    .property-title-row {
        flex-direction: column;
    }

    .property-price {
        font-size: var(--font-size-xl);
    }

    .property-quick-stats {
        flex-wrap: wrap;
    }

    .quick-stat {
        flex: 1 1 calc(50% - 1px);
        min-width: 80px;
    }

    .property-section {
        padding: var(--space-md);
    }

    /* Gallery */
    .gallery-main {
        aspect-ratio: 16 / 10;
    }

    .gallery-thumb {
        width: 56px;
        height: 42px;
    }

    /* Admin */
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        padding: var(--space-sm) var(--space-md);
    }

    .admin-tab {
        padding: var(--space-md);
    }

    .admin-stat-card {
        padding: var(--space-md);
    }

    /* Buttons */
    .btn-lg {
        padding: 12px 20px;
        font-size: var(--font-size-sm);
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: var(--font-size-xs);
    }

    /* Toast */
    .toast {
        padding: var(--space-sm) var(--space-md);
    }

    /* Features grid - 2 cols on mobile */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .feature-checkbox {
        padding: 8px 6px;
        font-size: 12px;
        gap: 5px;
    }

    .feature-checkbox .feature-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    /* Map sidebar */
    .map-sidebar {
        max-height: 40vh;
    }

    .map-sidebar-toggle {
        padding: 6px 10px;
    }

    /* Footer */
    .footer-social {
        justify-content: center;
    }

    /* Photos preview */
    .photos-preview {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Search view controls */
    .search-view-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-select {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .view-toggle {
        justify-content: center;
    }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .navbar,
    .footer,
    .nav-toggle,
    .toast-container,
    .btn-favorite,
    .map-page,
    .search-filters-bar,
    .search-info-bar,
    .pagination {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }

    .property-detail-page {
        padding-top: 0;
    }

    .property-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================================
   35. LOCATION PICKER MAP (Property Form)
   ============================================================ */
.location-picker-map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    overflow: hidden;
    z-index: 1;
    background-color: var(--color-light-dark);
    cursor: crosshair;
}

/* Hide Leaflet attribution/debug icon globally on all maps */
.leaflet-control-attribution,
.leaflet-control-attribution.leaflet-control {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.location-picker-map .leaflet-control-zoom {
    border: none;
    box-shadow: var(--shadow);
}

.location-picker-map .leaflet-control-zoom a {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: var(--font-size-md);
    color: var(--color-primary);
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
}

.location-picker-map .leaflet-control-zoom a:hover {
    background-color: var(--color-primary-bg);
    color: var(--color-primary-dark);
}

.location-map-search {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.location-map-search input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background-color: var(--color-white);
    transition: all var(--transition-fast);
    outline: none;
}

.location-map-search input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.location-map-search .btn {
    flex-shrink: 0;
}

.location-coords-display {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-primary-bg);
    border-radius: var(--radius);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.location-coords-display span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

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

.location-coords-display strong {
    color: var(--color-dark);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-xs);
}

/* Marker pulse animation */
.location-picker-map .leaflet-marker-icon {
    animation: markerDrop 0.3s ease-out;
}

@keyframes markerDrop {
    0% { transform: translateY(-20px); opacity: 0; }
    60% { transform: translateY(3px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive location picker */
@media (max-width: 768px) {
    .location-picker-map {
        height: 300px;
    }

    .location-coords-display {
        flex-direction: column;
        gap: var(--space-xs);
    }
}


/* ============================================================
   36. MAP MARKERS & POPUPS (Custom Styles)
   ============================================================ */

/* Custom Marker Reset */
.custom-map-marker {
    background: none !important;
    border: none !important;
}

/* Marker Pin */
.marker-pin {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
}

.marker-price {
    transform: rotate(45deg);
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    letter-spacing: -0.3px;
}

/* Marker Shadow */
.marker-shadow {
    width: 24px;
    height: 6px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    margin: 2px auto 0;
    filter: blur(1px);
}

/* Leaflet Popup Override */
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: auto !important;
    min-width: 260px;
}

.leaflet-popup-tip {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
    border-radius: 0 !important;
}

.leaflet-popup-close-button {
    color: #fff !important;
    font-size: 22px !important;
    top: 8px !important;
    right: 10px !important;
    z-index: 10 !important;
    width: 28px !important;
    height: 28px !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
    line-height: 28px !important;
}

/* Map Popup Card */
.map-popup {
    overflow: hidden;
}

.map-popup-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.map-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-popup-content {
    padding: 14px;
}

.map-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-popup-price {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.map-popup-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.map-popup-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
}

.map-popup-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    margin-right: 10px;
    margin-bottom: 4px;
}

.map-popup-detail i {
    color: #999;
    font-size: 11px;
}

.map-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 18px;
    background: #1a73e8;
    color: #fff !important;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
}

.map-popup-link:hover {
    background: #1557b0;
    color: #fff !important;
    text-decoration: none !important;
}

/* Override Leaflet default link color inside popups */
.leaflet-popup-content a {
    color: #fff !important;
}

/* Map Popup Responsive - Mobile */
@media (max-width: 480px) {
    .map-popup-image {
        height: 120px;
    }

    .map-popup-content {
        padding: 10px;
    }

    .map-popup-title {
        font-size: 13px;
    }

    .map-popup-price {
        font-size: 16px;
    }

    .marker-pin {
        width: 48px;
        height: 48px;
    }

    .marker-price {
        font-size: 10px;
    }

    /* Touch-friendly link */
    .map-popup-link {
        display: flex !important;
        padding: 10px 16px;
        font-size: 13px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
}


/* Marker touch target fix for mobile */
.custom-map-marker {
    touch-action: manipulation;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
}

.marker-pin {
    touch-action: manipulation;
}

.marker-shadow {
    pointer-events: none !important;
}



/* ============================================================
   35. CHAT WIDGET (Floating)
   ============================================================ */

/* ─── Chat Button (floating) ─── */
.cb-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.4);
    z-index: var(--z-toast);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.cb-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(26, 115, 232, 0.5);
}

.cb-chat-btn.cb-active {
    transform: scale(0.95) rotate(90deg);
    background: var(--color-dark);
}

/* ─── Chat Badge ─── */
.cb-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--color-danger);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cb-badge-pulse 2s ease-in-out infinite;
}

@keyframes cb-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ─── Chat Panel ─── */
.cb-chat-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 140px);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--color-border-light);
}

.cb-chat-panel.cb-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ─── Chat Header ─── */
.cb-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    flex-shrink: 0;
}

.cb-chat-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
}

.cb-chat-header h3::after {
    display: none;
}

.cb-chat-header-left {
    display: flex;
    align-items: center;
}

.cb-chat-header-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.cb-chat-header-back:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cb-chat-header-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.cb-chat-header-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ─── Chat Body ─── */
.cb-chat-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ─── Conversations List ─── */
.cb-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.cb-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.cb-chat-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.cb-chat-empty p {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--color-text-light);
}

.cb-chat-empty small {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ─── Conversation Item ─── */
.cb-chat-conv-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
}

.cb-chat-conv-item:hover {
    background: var(--color-light);
}

.cb-chat-conv-item.cb-unread {
    background: var(--color-primary-bg);
}

.cb-chat-conv-item.cb-unread:hover {
    background: #d4e4fc;
}

/* Avatar */
.cb-conv-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-light-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cb-conv-avatar i {
    font-size: 20px;
    color: var(--color-text-muted);
}

/* Info */
.cb-conv-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cb-conv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cb-conv-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-conv-time {
    font-size: 11px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.cb-conv-prop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-conv-prop-title {
    font-size: 12px;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.cb-conv-prop-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    flex-shrink: 0;
}

.cb-conv-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cb-conv-text {
    font-size: 13px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.cb-conv-unread-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Messages View ─── */
.cb-chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Property bar */
.cb-chat-property-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--color-light);
    border-bottom: 1px solid var(--color-border-light);
    font-size: 13px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cb-chat-property-bar i {
    color: var(--color-primary);
}

.cb-prop-link {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-prop-link:hover {
    text-decoration: underline;
}

/* Messages list */
.cb-chat-messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ─── Message Bubbles ─── */
.cb-msg-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    animation: cb-msg-in 0.25s ease-out;
}

@keyframes cb-msg-in {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cb-msg-mine {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border-bottom-right-radius: 4px;
}

.cb-msg-other {
    align-self: flex-start;
    background: var(--color-light);
    color: var(--color-dark);
    border-bottom-left-radius: 4px;
}

.cb-msg-content {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 4px;
    white-space: pre-wrap;
}

.cb-msg-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.cb-msg-time {
    font-size: 11px;
    opacity: 0.7;
}

.cb-msg-mine .cb-msg-time {
    color: rgba(255, 255, 255, 0.75);
}

.cb-msg-other .cb-msg-time {
    color: var(--color-text-muted);
}

.cb-msg-read {
    font-size: 12px;
}

.cb-msg-mine .cb-msg-read {
    color: rgba(255, 255, 255, 0.7);
}

.cb-msg-other .cb-msg-read {
    color: var(--color-text-muted);
}

/* Sending state */
.cb-msg-sending {
    opacity: 0.7;
}

/* Error state */
.cb-msg-error {
    opacity: 0.6;
    cursor: pointer;
}

.cb-msg-error .cb-msg-time {
    color: var(--color-danger);
}

/* ─── Chat Input Area ─── */
.cb-chat-input-area {
    padding: 12px 14px;
    border-top: 1px solid var(--color-border-light);
    background: var(--color-white);
    flex-shrink: 0;
}

.cb-chat-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--color-light);
    border-radius: 24px;
    padding: 8px 12px 8px 16px;
    border: 2px solid var(--color-border-light);
    transition: border-color 0.2s;
}

.cb-chat-input-wrap:focus-within {
    border-color: var(--color-primary);
    background: var(--color-white);
}

.cb-chat-input-wrap textarea {
    flex: 1;
    border: none;
    background: none;
    resize: none;
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-text);
    padding: 4px 0;
    max-height: 100px;
    min-height: 24px;
    outline: none;
}

.cb-chat-input-wrap textarea::placeholder {
    color: var(--color-text-muted);
}

.cb-chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    transition: all 0.2s;
}

.cb-chat-send-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.08);
}

/* ─── Hidden utility ─── */
.cb-chat-panel .hidden {
    display: none !important;
}

/* ─── Responsive: Chat widget on mobile ─── */
@media (max-width: 480px) {
    .cb-chat-panel {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .cb-chat-btn {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    .cb-msg-bubble {
        max-width: 88%;
    }

    /* WhatsApp share card button: always visible on mobile */
    .btn-share-wa-card {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .cb-chat-panel {
        width: 340px;
        height: 460px;
        right: 16px;
        bottom: 80px;
    }
}

/* Scrollbar for chat */
.cb-chat-list::-webkit-scrollbar,
.cb-chat-messages-list::-webkit-scrollbar {
    width: 4px;
}

.cb-chat-list::-webkit-scrollbar-track,
.cb-chat-messages-list::-webkit-scrollbar-track {
    background: transparent;
}

.cb-chat-list::-webkit-scrollbar-thumb,
.cb-chat-messages-list::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.cb-chat-list::-webkit-scrollbar-thumb:hover,
.cb-chat-messages-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   LOCATION SELECTOR
   ═══════════════════════════════════════════════════════════════ */
.location-selector {
    position: relative;
    margin-left: 8px;
    flex-shrink: 0;
}

.location-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 2px solid #fbbf24;
    border-radius: 25px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 2px 16px rgba(245, 158, 11, 0.7); }
}

.location-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #fcd34d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
}

.location-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #fcd34d;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
}

.location-btn i:first-child {
    color: #fff;
    font-size: 12px;
}

.location-btn i:last-child {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.location-btn.active i:last-child {
    transform: rotate(180deg);
}

.location-label {
    color: #fff;
    font-weight: 700;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 280px;
    max-width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    z-index: 1000;
    overflow: hidden;
    animation: locationDropdownIn 0.2s ease;
}

@keyframes locationDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-search {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
}

.location-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s;
}

.location-search input:focus {
    border-color: #3b82f6;
    background: #fff;
}

.location-search input::placeholder {
    color: #9ca3af;
}

.location-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #374151;
    font-size: 14px;
}

.location-option:hover {
    background: #f3f4ff;
    color: #4f46e5;
}

.location-option i {
    font-size: 13px;
    color: #6b7280;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.location-option:hover i {
    color: #4f46e5;
}

.location-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 4px 0;
}

.location-list {
    max-height: 320px;
    overflow-y: auto;
}

.location-list::-webkit-scrollbar {
    width: 6px;
}

.location-list::-webkit-scrollbar-track {
    background: transparent;
}

.location-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* Brand name dynamic */
.brand-name {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.brand-location-icon {
    color: #fbbf24 !important;
}

/* Responsive: location selector on mobile */
@media (max-width: 768px) {
    .location-selector {
        margin-left: 6px;
    }

    .location-btn {
        padding: 5px 8px;
        font-size: 11px;
        gap: 4px;
    }

    .location-label {
        max-width: 80px;
    }

    .location-dropdown {
        min-width: 250px;
        right: 0;
        left: auto;
    }
}

@media (max-width: 480px) {
    .location-label {
        max-width: 60px;
    }

    .location-dropdown {
        min-width: 220px;
        max-width: calc(100vw - 32px);
    }
}

/* ─── Navbar Dropdown ("Más") ─────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    color: var(--color-primary);
    background-color: var(--color-primary-bg);
}

.nav-dropdown-toggle i.fa-chevron-down {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
}

.nav-dropdown-toggle.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: var(--color-white);
    border: 1.5px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 100;
    padding: 6px;
    list-style: none;
}

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

.nav-dropdown-menu li {
    display: flex;
    align-items: center;
}

.nav-dropdown-menu .nav-link {
    padding: 10px 14px;
    border-radius: var(--radius);
    width: 100%;
    font-size: 0.88rem;
}

.nav-dropdown-menu .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.nav-dropdown-menu .nav-link:hover {
    background: var(--color-primary-bg);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: 4px 8px;
}

/* Mobile: dropdown becomes flat items */
@media (max-width: 1024px) {
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 100%;
        padding: 0;
        border-radius: 0;
        display: none;
    }

    .nav-dropdown-menu.active {
        display: block;
    }

    .nav-dropdown-toggle {
        justify-content: flex-start;
        padding: 12px var(--space-md);
        width: 100%;
    }

    .nav-dropdown-menu .nav-link {
        padding: 10px var(--space-md) 10px calc(var(--space-md) + 16px);
    }
}

/* ─── Mobile Nav CTA Buttons ──────────────────────────── */
.nav-mobile-cta {
    display: none;
}

@media (max-width: 1024px) {
    .nav-mobile-cta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px var(--space-md);
        width: 100%;
    }

    .nav-mobile-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.25s;
        text-align: center;
    }

    .nav-mobile-cta-marketplace {
        background: linear-gradient(135deg, #059669, #10b981);
        color: #fff;
        box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
    }

    .nav-mobile-cta-marketplace:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(5, 150, 105, 0.55);
        color: #fff;
    }

    .nav-mobile-cta-cupon {
        background: linear-gradient(135deg, #ea580c, #f97316);
        color: #fff;
        box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
    }

    .nav-mobile-cta-cupon:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(234, 88, 12, 0.5);
        color: #fff;
    }
}

/* ─── Settings Toggle Switches ─────────────────────────────── */
.settings-section {
    margin-bottom: 8px;
}
.settings-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}
.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-light);
}
.settings-toggle-row:last-child {
    border-bottom: none;
}
.settings-label {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}
.settings-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.settings-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.settings-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}
.settings-switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
.settings-switch input:checked + .settings-switch-slider {
    background-color: var(--color-primary);
}
.settings-switch input:checked + .settings-switch-slider:before {
    transform: translateX(22px);
}
