/* system tokens & variables */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Premium Color Palette (Indigo + Slate + Emerald) */
    --color-bg: #0b0f19;
    --color-bg-alt: #111827;
    --color-card: rgba(22, 28, 45, 0.7);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-dark: #111827;

    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-primary-soft: rgba(99, 102, 241, 0.12);

    --color-success: #10b981;
    --color-success-hover: #059669;
    --color-success-soft: rgba(16, 185, 129, 0.12);

    --color-warning: #f59e0b;
    --color-warning-soft: rgba(245, 158, 11, 0.12);

    --color-danger: #ef4444;
    --color-danger-soft: rgba(239, 68, 68, 0.12);

    --glass-blur: blur(12px);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and basic setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.5;
    max-width: 100%;
    overflow-x: clip;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
}

html {
    max-width: 100%;
    overflow-x: clip;
}

.container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* Layout Utilities */
.grid {
    display: grid;
    gap: 24px;
}

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

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

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

.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

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

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

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

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

@media (max-width: 640px) {
    .flex-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Button Component Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-title);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    outline: none;
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--color-success);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background-color: var(--color-success-hover);
    transform: translateY(-2px);
}

.btn-white {
    background-color: #ffffff;
    color: #0f172a;
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-link {
    background-color: transparent;
    color: var(--color-primary);
    padding: 0;
}

.btn-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* Header & Navigation */
.main-header {
    background-color: rgba(11, 15, 25, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
}

.logo-icon {
    color: var(--color-primary);
    stroke-width: 2.5;
}

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

.nav-menu {
    display: flex;
    gap: 32px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }
    
    #auth-actions-logged-out, 
    #auth-actions-logged-in {
        display: none !important;
    }

    .mobile-menu-toggle-btn {
        display: flex !important;
    }
}

/* --- Mobile Drawer Styles --- */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-border);
    z-index: 1100;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-body {
    padding: 24px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 500;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.mobile-nav-link i {
    color: var(--color-text-muted);
}

.mobile-auth-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.mobile-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 24px 0;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #ffffff;
}

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

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

/* User Account Dropdown Menu */
.user-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: #ffffff;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 200px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    padding: 6px 0;
    z-index: 10;
    animation: slideUp 0.2s ease-out;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 6px 0;
}

/* SPA Navigation transitions */
.spa-view {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.spa-view.active {
    display: block;
}

/* VISTA 1: HOME PAGE HERO */
.hero {
    position: relative;
    padding: 60px 0 0px 0; /* Padding inferior removido porque la barra de estadísticas está abajo */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

body:not(.light-mode) .hero {
    background: linear-gradient(135deg, #0b0f19 0%, #1e293b 100%);
}

.hero-layout-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .hero-layout-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

body:not(.light-mode) .hero-tag-badge {
    background-color: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.25);
}

.hero-main-title {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2rem;
    }
}

body:not(.light-mode) .hero-main-title {
    color: #ffffff;
}

.hero-main-title .text-accent-color {
    color: #6366f1;
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: initial;
}

.hero-desc-text {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

body:not(.light-mode) .hero-desc-text {
    color: #94a3b8;
}

/* New Search Card */
.hero-search-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    width: 100%;
}

body:not(.light-mode) .hero-search-card {
    background-color: #111827;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.search-field-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body:not(.light-mode) .search-field-row {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.search-row-icon {
    color: #6366f1;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.search-row-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.search-row-content label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 3px;
    letter-spacing: 0.05em;
}

body:not(.light-mode) .search-row-content label {
    color: #94a3b8;
}

.search-row-content input,
.search-row-content select {
    background: transparent;
    border: none;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    width: 100%;
    padding: 0;
}

body:not(.light-mode) .search-row-content input,
body:not(.light-mode) .search-row-content select {
    color: #ffffff;
}

.search-row-content select option {
    background-color: #ffffff;
    color: #0f172a;
}

body:not(.light-mode) .search-row-content select option {
    background-color: #111827;
    color: #ffffff;
}

.btn-search-indigo {
    background-color: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.btn-search-indigo:hover {
    background-color: #4f46e5;
    transform: translateY(-1px);
}



/* Hero Right Column: Dynamic Slider */
.hero-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.hero-big-slider-wrapper {
    width: 100%;
}

.hero-big-slider {
    width: 100%;
}

.hero-big-slide-card {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.hero-big-slide-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

body:not(.light-mode) .hero-big-slide-img-wrapper {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.hero-big-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-big-slide-img-wrapper:hover .hero-big-slide-img {
    transform: scale(1.02);
}

.hero-big-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 26, 0.4) 0%, transparent 100%);
    z-index: 2;
}

.hero-slide-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: var(--glass-blur);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-slide-nav-arrows {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.slide-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.slide-nav-btn:hover {
    background-color: #f1f5f9;
    transform: scale(1.05);
}

.hero-slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slide-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.slide-dot.active {
    background-color: #6366f1;
    transform: scale(1.2);
}

/* Info below image */
.hero-slide-info-bottom {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-slide-info-bottom h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    color: #0f172a;
}

body:not(.light-mode) .hero-slide-info-bottom h3 {
    color: #ffffff;
}

.one-line-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.slide-desc-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
    margin: 6px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

body:not(.light-mode) .slide-desc-text {
    color: #cbd5e1;
}

.hero-slide-info-bottom .location-text {
    font-size: 0.9rem;
    color: #64748b;
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
}

body:not(.light-mode) .hero-slide-info-bottom .location-text {
    color: #94a3b8;
}

.info-specs-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
    .info-specs-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

body:not(.light-mode) .info-specs-row {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.specs-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.specs-group span {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #475569;
}

body:not(.light-mode) .specs-group span {
    color: #cbd5e1;
}

.specs-group span i {
    color: #6366f1;
    margin-right: 6px;
}

.price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #6366f1;
}

/* Stats Row Banner */
.hero-stats-banner {
    background-color: #f8fafc;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    margin-top: 24px;
    width: 100%;
}

body:not(.light-mode) .hero-stats-banner {
    background-color: #111827;
}

.stats-banner-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .stats-banner-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .stats-banner-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1240px) {
    .stats-banner-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        justify-items: center;
    }
}

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

.stat-icon-indigo {
    color: #6366f1;
    font-size: 1.6rem;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.stat-banner-text {
    display: flex;
    flex-direction: column;
}

.stat-banner-text strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

body:not(.light-mode) .stat-banner-text strong {
    color: #ffffff;
}

.stat-banner-text span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 2px;
}

body:not(.light-mode) .stat-banner-text span {
    color: #94a3b8;
}

/* Feature Cards (How it works) */.feature-intro-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 0; /* Matches vertical spacing of feature-card, no horizontal padding to align with container edge if needed, or maybe add padding: 32px to match exactly */
}

.feature-card {
    background-color: rgba(22, 28, 45, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.bg-primary-soft { background-color: var(--color-primary-soft); }
.bg-success-soft { background-color: var(--color-success-soft); }
.bg-warning-soft { background-color: var(--color-warning-soft); }
.bg-danger-soft { background-color: var(--color-danger-soft); }

.feature-icon-wrapper i {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Property Grid and Cards */
.bg-light-gradient {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.property-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}

.property-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

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

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

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--color-success);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-favorite-card {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.btn-favorite-card:hover {
    background: rgba(15, 23, 42, 0.7);
    transform: scale(1.05);
}

.btn-favorite-card.active {
    color: rgba(255, 255, 255, 0.9);
}
.btn-favorite-card.active svg {
    fill: rgba(255, 255, 255, 0.7);
}

.property-price {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-title);
}

.property-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.property-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.36rem; /* 1.2rem * 1.4 * 2 lines to keep cards uniform height */
}

.property-location {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.property-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    margin-top: auto;
}

.prop-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.prop-stat i {
    color: var(--color-primary);
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #4338ca 100%);
    border-radius: var(--radius-lg);
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
}

.cta-content {
    max-width: 600px;
}

.cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

/* VISTA 2: LISTINGS BROWSER */
.listings-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    padding: 40px 24px;
}

@media (max-width: 992px) {
    .listings-container {
        grid-template-columns: 1fr;
    }
}

.filters-sidebar {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}

.filter-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.filter-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    width: 16px;
    height: 16px;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    outline: none;
    transition: var(--transition);
}

.input-icon-wrapper input:focus {
    border-color: var(--color-primary);
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    outline: none;
}

/* Price range slider styling */
.price-slider-container {
    padding-top: 8px;
}

.price-slider-container input[type="range"] {
    width: 100%;
    margin-bottom: 8px;
    accent-color: var(--color-primary);
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Bed selector buttons */
.beds-selector {
    display: flex;
    gap: 8px;
}

.bed-btn {
    flex: 1;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 8px 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.bed-btn:hover {
    border-color: var(--color-border-hover);
    color: #ffffff;
}

.bed-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* Results Content */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.sort-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-selector-wrapper label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.sort-selector-wrapper select {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    outline: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    stroke-width: 1.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--color-text-muted);
    max-width: 400px;
    margin: 0 auto 24px;
}

/* VISTA 3: PROPERTY DETAILS */
.detail-container {
    padding: 40px 24px;
}

.detail-back-bar {
    margin-bottom: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

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

.detail-gallery {
    position: relative;
    margin-bottom: 32px;
}

.detail-main-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    height: 520px; /* Ampliado verticalmente para mayor impacto visual */
    width: 100%;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .detail-main-img-wrapper {
        height: 380px;
    }
}

@media (max-width: 480px) {
    .detail-main-img-wrapper {
        height: 260px;
    }
}

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

.detail-badge-free {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--color-success);
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.detail-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.detail-header-info {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.detail-prop-type {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-title {
    font-size: 2.25rem;
    margin: 8px 0 12px;
}

@media (max-width: 640px) {
    .detail-title {
        font-size: 1.75rem;
    }
}

.detail-location {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats layout */
.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 576px) {
    .detail-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-box {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.stat-box i {
    color: var(--color-primary);
    width: 24px;
    height: 24px;
}

.stat-value {
    font-size: 1.5rem;
    font-family: var(--font-title);
    font-weight: 700;
    color: #ffffff;
}

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

/* Technical Specs (Pro) */
.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.detail-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

@media (min-width: 992px) {
    .detail-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 576px) {
    .tech-specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) {
    .tech-specs-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.tech-spec-card {
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: var(--transition);
}

.tech-spec-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.tech-spec-val {
    font-size: 1.1rem;
    font-family: var(--font-title);
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
}

.tech-spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

/* Trust Bar */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text);
}

.trust-item i {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
}

.trust-item.verified {
    color: var(--color-success);
    font-weight: 600;
}
.trust-item.verified i {
    color: var(--color-success);
}

/* Ideal For */
.ideal-for-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.ideal-for-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.ideal-for-card i {
    color: var(--color-primary);
}
.ideal-for-card p {
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

/* Pro Features List */
.features-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 576px) {
    .features-cols {
        grid-template-columns: 1fr 1fr;
    }
}
.feature-item-pro {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.feature-item-pro i {
    color: var(--color-success);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Pro Metrics Sidebar */
.metrics-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
}
.metric-item {
    text-align: center;
}
.metric-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-title);
}
.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.detail-description {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.detail-description h3,
.detail-features h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.detail-description p {
    color: var(--color-text-muted);
    line-height: 1.7;
    white-space: pre-line;
}

/* Features checklist */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.features-list li::before {
    content: "✓";
    color: var(--color-success);
    font-weight: bold;
}

/* Sticky contact Card sidebar */
.contact-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.price-tag {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.contact-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-subtitle {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 20px 0;
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.seller-name {
    font-weight: 600;
    color: #ffffff;
}

.seller-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Reveal contacts styles */
.contact-info-revealed {
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-row label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.info-val {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

/* VISTA 4: USER DASHBOARD */
.dashboard-container {
    padding: 40px 24px;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

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

.dashboard-menu-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.dash-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.dash-menu-btn.active {
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
}

.dashboard-content-pane {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    min-height: 400px;
}

.dash-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.dash-tab-content.active {
    display: block;
}

.tab-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

/* User Listings Panel List */
.dash-listings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-listing-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
}

@media (max-width: 640px) {
    .dash-listing-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.dash-row-img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .dash-row-img {
        width: 100%;
        height: 150px;
    }
}

.dash-row-info {
    flex: 1;
}

.dash-row-info h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.dash-row-price {
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-title);
}

/* Property Creation Form Grid */
.property-form {
    display: flex;
    flex-direction: column;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 2; /* fallback */
}

@media (max-width: 640px) {
    .col-span-2, .col-span-3 {
        grid-column: span 1;
    }
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
}

.form-group label.required::after {
    content: " *";
    color: var(--color-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    padding: 12px;
    outline: none;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

.input-helper {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.input-readonly {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text-muted) !important;
    cursor: not-allowed;
}

/* Checkbox Grid styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkbox-checkmark {
    border-color: var(--color-border-hover);
}

.checkbox-container input:checked ~ .checkbox-checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkbox-checkmark::after {
    display: block;
}

.checkbox-container .checkbox-checkmark::after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Profile Tab Optin Panel */
.marketing-optin-box {
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.optin-header {
    display: flex;
    gap: 16px;
    align-items: center;
}

.optin-header h4 {
    margin-bottom: 2px;
}

/* VISTA 5: ADMIN PORTAL */
.admin-container {
    padding: 40px 24px;
}

.admin-badge {
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.admin-stats {
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon i {
    width: 24px;
    height: 24px;
}

.stat-card-info h3 {
    font-size: 1.75rem;
    font-family: var(--font-title);
    margin-bottom: 2px;
}

.stat-card-info p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.admin-tabs {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.tab-triggers {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
    gap: 16px;
}

.admin-tab-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.admin-tab-btn:hover {
    color: #ffffff;
}

.admin-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.admin-tab-content.active {
    display: block;
}

.table-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* User Database Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

.admin-table td {
    padding: 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
}

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

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

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

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

/* Campaign Simulator Layout */
.campaign-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 32px;
}

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

.campaign-config {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* live email preview mockup */
.email-mockup-wrapper {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mockup-header {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

.email-mockup {
    color: #111827; /* Dark text for emails */
    min-height: 250px;
}

.email-header-preview {
    padding: 16px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

.email-subj-line {
    margin-bottom: 6px;
}

.email-body-preview {
    padding: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Live Simulation Console Logs */
.logs-section-container {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: var(--radius-sm);
    padding: 20px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8b949e;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.progress-bar-container {
    height: 8px;
    background-color: #21262d;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--color-success);
    transition: width 0.1s ease-out;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    color: #8b949e;
    font-size: 0.75rem;
    margin-bottom: 16px;
}

.logs-terminal {
    height: 150px;
    overflow-y: auto;
    background-color: #010409;
    border-radius: 4px;
    padding: 12px;
    color: #39ff14; /* neon green */
    font-size: 0.8rem;
    line-height: 1.5;
}

.log-line {
    margin-bottom: 4px;
}

.log-success { color: #39ff14; }
.log-info { color: #58a6ff; }
.log-warn { color: #f0883e; }

/* MODALS LAYOUT */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    padding: 20px;
}

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

.modal-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    padding: 40px;
    animation: slideUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: #ffffff;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
}

.modal-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.modal-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

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

.modal-form.active {
    display: flex;
}

.form-switch-prompt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.admin-credentials-hint {
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.75rem;
    line-height: 1.4;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Footer Styles */
.main-footer {
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    padding: 60px 0 20px 0;
    margin-top: 80px;
    font-size: 0.9rem;
}

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

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Minimal Footer for single column of links */
.footer-minimal {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.footer-links-minimal {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-links-minimal li a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-links-minimal li a:hover {
    color: var(--color-primary);
}

@media (max-width: 640px) {
    .footer-links-minimal {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-decoration: none;
    color: var(--color-text);
}

.footer-brand .footer-logo i {
    color: var(--color-primary);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--color-text);
    background: var(--color-bg);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

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

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

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

.footer-newsletter p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.footer-newsletter form {
    display: flex;
    gap: 8px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.85rem;
    outline: none;
}

.footer-newsletter input:focus {
    border-color: var(--color-primary);
}

.footer-newsletter button {
    padding: 10px 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.footer-newsletter button:hover {
    background: var(--color-primary-dark);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* KEYFRAMES FOR TRANSITIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Extra Margin utilities */
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.text-xs { font-size: 0.8rem; }
.text-xxs { font-size: 0.7rem; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.bg-glass {
    background-color: rgba(22, 28, 45, 0.5) !important;
    backdrop-filter: var(--glass-blur);
}
.hidden { display: none !important; }

/* ==========================================
   LIGHT MODE OVERRIDES
   ========================================== */
body.light-mode {
    --color-bg: #f8fafc;
    --color-bg-alt: #ffffff;
    --color-card: rgba(255, 255, 255, 0.85);
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.15);
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-dark: #ffffff;
}

body.light-mode .btn-secondary {
    background-color: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

body.light-mode .btn-secondary:hover {
    background-color: rgba(15, 23, 42, 0.12);
}

body.light-mode {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 40%);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #0f172a;
}

body.light-mode .cta-content h2,
body.light-mode .cta-content p {
    color: #ffffff !important;
}

body.light-mode .main-header {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .logo {
    color: #0f172a;
}

body.light-mode .nav-link {
    color: #64748b;
}

body.light-mode .nav-link:hover {
    color: #0f172a;
}

body.light-mode .nav-link.active {
    color: var(--color-primary);
}

body.light-mode .theme-toggle-btn,
body.light-mode #currency-selector,
body.light-mode .dropdown-trigger {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .theme-toggle-btn:hover,
body.light-mode #currency-selector:hover,
body.light-mode .dropdown-trigger:hover {
    background: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode #currency-selector option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

body.light-mode .dropdown-menu {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

body.light-mode .dropdown-item {
    color: #64748b;
}

body.light-mode .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: #0f172a;
}

body.light-mode .hero-bg-accent-1,
body.light-mode .hero-bg-accent-2 {
    filter: blur(150px);
    opacity: 0.3;
}

body.light-mode .hero-title {
    background: linear-gradient(135deg, #0f172a 60%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .hero-subtitle {
    color: #64748b;
}

body.light-mode .hero-search-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body.light-mode .search-input-wrapper label {
    color: #64748b;
}

body.light-mode .search-input-wrapper input,
body.light-mode .search-input-wrapper select {
    color: #0f172a;
}

body.light-mode .search-input-wrapper select option {
    background-color: #ffffff;
    color: #0f172a;
}

body.light-mode .search-divider {
    background-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .hero-card-floating {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.light-mode .hero-card-floating p {
    color: #64748b;
}

body.light-mode .feature-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

body.light-mode .feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.light-mode .bg-light-gradient {
    background-color: #f1f5f9;
    border-top-color: rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .property-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

body.light-mode .property-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.light-mode .property-price {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .filters-sidebar {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

body.light-mode .input-icon-wrapper input,
body.light-mode .filter-group select {
    background-color: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.light-mode .bed-btn {
    background-color: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    color: #64748b;
}

body.light-mode .bed-btn:hover {
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

body.light-mode .bed-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

body.light-mode .sort-selector-wrapper select {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.light-mode .empty-state {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .detail-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-box {
    background-color: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .stat-value {
    color: #0f172a;
}

body.light-mode .contact-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

body.light-mode .price-tag {
    color: #0f172a;
}

body.light-mode .seller-name {
    color: #0f172a;
}

body.light-mode .info-val {
    color: #0f172a;
}

body.light-mode .dashboard-menu-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .dash-menu-btn {
    color: #64748b;
}

body.light-mode .dash-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: #0f172a;
}

body.light-mode .dash-menu-btn.active {
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
}

body.light-mode .dashboard-content-pane {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .dash-listing-row {
    background-color: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .form-group label {
    color: #0f172a;
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.light-mode .input-readonly {
    background-color: #f1f5f9 !important;
}

body.light-mode .profile-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-card-info h3 {
    color: #0f172a;
}

body.light-mode .admin-tabs {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .admin-tab-btn {
    color: #64748b;
}

body.light-mode .admin-tab-btn.active {
    color: var(--color-primary);
}

body.light-mode .admin-table th {
    background-color: #f8fafc;
}

body.light-mode .admin-table td {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .campaign-config h3,
body.light-mode .campaign-monitor h3 {
    color: #0f172a;
}

body.light-mode .modal-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-tab-btn {
    color: #64748b;
}

body.light-mode .modal-tab-btn.active {
    color: var(--color-primary);
}

body.light-mode .main-footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .bg-glass {
    background-color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================
   ADVERTISING & PREMIUM FEATURES
   ========================================== */
.sidebar-ad-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px dashed var(--color-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-ad-card h4 {
    margin-top: 5px;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #ffffff;
    font-family: var(--font-title);
}

.sidebar-ad-card p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: 0;
}

/* Property Card Badges and Colors based on Plans */
.property-card {
    position: relative;
    overflow: hidden;
}

.plan-badge {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 12px;
    border-bottom-right-radius: 8px;
    text-transform: uppercase;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.5px;
}

.badge-exclusive {
    background-color: #1a1a1a;
    color: #eab308;
}

.badge-premium {
    background-color: #4338ca;
    color: #ffffff;
}

.badge-profesional {
    background-color: #2563eb;
    color: #ffffff;
}

.badge-basico {
    background-color: #06b6d4;
    color: #ffffff;
}

.badge-gratis {
    background-color: #22c55e;
    color: #ffffff;
}

/* Floating Price */
.property-image-wrapper {
    position: relative;
}

.property-image-wrapper .property-price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: white;
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 4px 12px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

body.dark-mode .property-image-wrapper .property-price {
    background: #1e293b;
    color: #fff;
}

/* Card Borders */
.property-card.exclusive-listing {
    border: 2px solid #eab308 !important;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}

.property-card.premium-listing {
    border: 2px solid #4338ca !important;
}

.property-card.profesional-listing {
    border: 2px solid #2563eb !important;
}

.property-card.basico-listing {
    border: 2px solid #06b6d4 !important;
}

.property-card.gratis-listing {
    border: 2px solid #22c55e !important;
}

/* Remove old definitions if any */
/* Providers directory styles */
.provider-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.provider-badge-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.provider-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.provider-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.25rem;
}

.provider-info h4 {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    color: #ffffff;
    font-family: var(--font-title);
}

.provider-category-tag {
    font-size: 0.7rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #eab308;
    font-size: 0.85rem;
    font-weight: 700;
}

.provider-rating i {
    fill: #eab308;
}

.provider-description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.provider-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.provider-location-tag {
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Light mode overrides for advertising & providers */
body.light-mode .sidebar-ad-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

body.light-mode .sidebar-ad-card h4 {
    color: #0f172a;
}

body.light-mode .provider-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .provider-card:hover {
    border-color: var(--color-primary);
}

body.light-mode .provider-info h4 {
    color: #0f172a;
}

body.light-mode .provider-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* ==========================================
   PRICING PAGE & STYLING
   ========================================== */
.pricing-pane {
    animation: fadeIn 0.4s ease;
}

.pricing-pane.hidden {
    display: none !important;
}

.pricing-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md);
}

/* Featured / More Recommended Card style */
.pricing-card.featured-pricing {
    border: 2px solid var(--color-primary);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.pricing-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Exclusive / Luxury Pricing style */
.pricing-card.exclusive-pricing {
    border: 2px solid #eab308;
    box-shadow: 0 8px 30px rgba(234, 179, 8, 0.15);
}

.pricing-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.35rem;
    margin: 0 0 12px 0;
    font-family: var(--font-title);
    color: #ffffff;
}

.pricing-header .price-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-title);
}

.pricing-header .price-period {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 4px 0 0 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
}

.pricing-features li i {
    color: var(--color-success);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.pricing-features li.disabled i {
    color: var(--color-danger);
}

/* Premium tag on property listing card */
.property-card.exclusive-listing {
    border: 2px solid #eab308 !important;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.2);
    animation: goldGlow 3s infinite alternate;
}

.property-card.profesional-listing {
    border: 1px solid var(--color-primary) !important;
}

.property-card.basico-listing {
    border: 1px solid #06b6d4 !important;
}

@keyframes goldGlow {
    0% {
        box-shadow: 0 0 10px rgba(234, 179, 8, 0.15);
    }
    100% {
        box-shadow: 0 0 25px rgba(234, 179, 8, 0.35);
    }
}

/* Light mode overrides for pricing */
body.light-mode .pricing-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .pricing-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.light-mode .pricing-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .pricing-header h3,
body.light-mode .pricing-header .price-val {
    color: #0f172a;
}

body.light-mode .pricing-features li {
    color: #334155;
}

body.light-mode .pricing-card.featured-pricing {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

body.light-mode .pricing-card.exclusive-pricing {
    border-color: #eab308;
    box-shadow: 0 8px 30px rgba(234, 179, 8, 0.08);
}

/* Thumbnail Carousel Custom Scrollbar & Hover States */
.detail-thumbs-carousel::-webkit-scrollbar {
    height: 6px;
}

.detail-thumbs-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.detail-thumbs-carousel::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-sm);
}

.detail-thumbs-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.detail-thumb-item:hover {
    transform: scale(1.05);
}

/* Light mode overrides for thumbnail carousel */
body.light-mode .detail-thumbs-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .detail-thumbs-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

/* Payment Modal Customizations */
.payment-modal-content {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    padding: 30px;
    animation: slideUp 0.3s ease-out;
    color: var(--color-text);
}

body.light-mode .payment-modal-content {
    background-color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.payment-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.payment-sparkle-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.payment-sparkle-icon {
    width: 26px;
    height: 26px;
}

.payment-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.payment-modal-header p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.payment-plan-selector {
    margin-bottom: 16px;
}

.plan-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 576px) {
    .plan-options-grid {
        grid-template-columns: 1fr;
    }
}

.plan-opt-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition);
}

.plan-opt-card:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.02);
}

.plan-opt-card.active {
    border-color: #6366f1;
    border-width: 2px;
    background: rgba(99, 102, 241, 0.04);
}

body.light-mode .plan-opt-card {
    background: #f8fafc;
}

body.light-mode .plan-opt-card.active {
    background: rgba(99, 102, 241, 0.05);
    border-color: #6366f1;
}

.plan-opt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.plan-opt-price {
    font-weight: bold;
    color: #6366f1;
    font-size: 0.85rem;
}

.plan-opt-card p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.payment-method-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.pay-tab-btn {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px;
    color: var(--color-text-muted);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.pay-tab-btn.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.pay-tab-content {
    display: none;
}

.pay-tab-content.active {
    display: block;
}

/* ==========================================================================
   DIRECTORIO DE SERVICIOS (MARKETPLACE)
   ========================================================================== */

.directory-hero {
    background-color: #f8fafc;
    padding: 60px 0 40px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body:not(.light-mode) .directory-hero {
    background-color: #0b0f19;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.directory-hero-content {
    max-width: 800px;
}

.directory-hero-title {
    font-size: 2.5rem;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 800;
}

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

body:not(.light-mode) .directory-hero-title {
    color: #ffffff;
}

.directory-hero-title span {
    color: #6366f1;
}

.directory-hero-subtitle {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 32px;
    line-height: 1.5;
}

body:not(.light-mode) .directory-hero-subtitle {
    color: #94a3b8;
}

.directory-hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width: 768px) {
    .directory-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.directory-search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 8px 8px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body:not(.light-mode) .directory-search-wrapper {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
}

.directory-search-icon {
    color: #94a3b8;
    margin-right: 12px;
}

#directory-main-search {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: #0f172a;
    padding: 8px 0;
}

body:not(.light-mode) #directory-main-search {
    color: #ffffff;
}

#btn-directory-main-search {
    border-radius: 6px;
    padding: 10px 24px;
}

/* Categories Grid */
.directory-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 48px;
}

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

@media (max-width: 768px) {
    .directory-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.category-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

body:not(.light-mode) .category-card {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #6366f1;
}

body:not(.light-mode) .category-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: #6366f1;
}

.category-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 6px;
    font-weight: 700;
}

body:not(.light-mode) .category-card h3 {
    color: #ffffff;
}

.category-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.4;
    flex: 1;
}

body:not(.light-mode) .category-card p {
    color: #94a3b8;
}

.category-card-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.category-provider-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}

body:not(.light-mode) .category-provider-count {
    color: #cbd5e1;
    background-color: rgba(255,255,255,0.1);
}

.category-card-footer i {
    color: #94a3b8;
    transition: transform 0.2s;
}

.category-card:hover .category-card-footer i {
    color: #6366f1;
    transform: translateX(4px);
}

/* Category State 2 */
.directory-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 24px;
}

body:not(.light-mode) .directory-breadcrumbs {
    color: #94a3b8;
}

.directory-breadcrumbs a {
    color: #64748b;
    transition: color 0.2s;
}

body:not(.light-mode) .directory-breadcrumbs a {
    color: #94a3b8;
}

.directory-breadcrumbs a:hover {
    color: #6366f1;
}

#directory-breadcrumb-current {
    font-weight: 600;
    color: #0f172a;
}

body:not(.light-mode) #directory-breadcrumb-current {
    color: #ffffff;
}

.directory-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

body:not(.light-mode) .directory-category-header {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.directory-category-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.directory-category-icon-wrapper i {
    width: 32px;
    height: 32px;
}

.directory-category-info h1 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 4px;
}

body:not(.light-mode) .directory-category-info h1 {
    color: #ffffff;
}

.directory-category-info p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 12px;
}

body:not(.light-mode) .directory-category-info p {
    color: #94a3b8;
}

.directory-results-badge {
    display: inline-block;
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* CTA Bottom */
.directory-cta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

body:not(.light-mode) .directory-cta-bottom {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.directory-cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.directory-cta-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: #6366f1;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.directory-cta-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.directory-cta-text h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 4px;
}

body:not(.light-mode) .directory-cta-text h3 {
    color: #ffffff;
}

.directory-cta-text p {
    color: #475569;
    margin: 0;
}

body:not(.light-mode) .directory-cta-text p {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .directory-cta-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .directory-cta-content {
        flex-direction: column;
    }
}

/* ==============================================================
   PROVIDER DETAIL VIEW
   ============================================================== */
.provider-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 992px) {
    .provider-detail-grid {
        grid-template-columns: 1fr;
    }
}

.provider-hero {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

body.light-mode .provider-hero {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.provider-hero-cover {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    position: relative;
}

body.light-mode .provider-hero-cover {
    background-color: #f1f5f9;
}

.provider-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: var(--color-bg-light);
    border: 4px solid var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    position: absolute;
    bottom: -50px;
    left: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.light-mode .provider-hero-avatar {
    background: #ffffff;
    border-color: #ffffff;
}

.provider-hero-info {
    padding: 64px 24px 24px;
}

.provider-hero-info h1 {
    font-size: 2rem;
    margin: 0 0 8px 0;
    color: #ffffff;
}

body.light-mode .provider-hero-info h1 {
    color: #0f172a;
}

.provider-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.provider-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

body.light-mode .provider-section {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.provider-section h2 {
    font-size: 1.25rem;
    margin: 0 0 16px 0;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

body.light-mode .provider-section h2 {
    color: #0f172a;
    border-color: #e2e8f0;
}

.provider-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.provider-services-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
}

.provider-services-list li i {
    color: var(--color-primary);
}

body.light-mode .provider-services-list li {
    color: #334155;
}

.provider-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.provider-gallery-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.provider-gallery-grid img:hover {
    transform: scale(1.02);
}

.provider-sidebar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 80px;
}

body.light-mode .provider-sidebar-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.provider-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.provider-contact-item i {
    color: var(--color-text-muted);
}

body.light-mode .provider-contact-item {
    color: #334155;
}

.provider-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.provider-review-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
}

body.light-mode .provider-review-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.review-stars {
    color: #eab308;
    margin-bottom: 8px;
    display: flex;
    gap: 2px;
}

/* Property Detail Basic Views */
.detail-map-card {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.detail-map-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

body.light-mode .detail-map-card h3 {
    color: #0f172a;
}

.share-qr-card {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 20px;
}

body.light-mode .share-qr-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.share-qr-card h3 {
    color: var(--color-text);
}

body.light-mode .share-qr-card h3 {
    color: #0f172a;
}

.sponsored-services-card {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 20px;
}

body.light-mode .sponsored-services-card {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sponsored-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.sponsored-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.sponsored-info {
    flex: 1;
}

.sponsored-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

body.light-mode .sponsored-name {
    color: #0f172a;
}

@media (max-width: 768px) {
    .detail-bottom-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* VISTA PROFESIONAL - ESTILOS ESPECÍFICOS */
.pro-gallery-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}
.pro-gallery-hero {
    height: 480px;
    width: 100%;
    object-fit: cover;
}
.pro-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--color-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.pro-photo-count {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10;
}
.pro-video-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: white;
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: var(--transition);
}
.pro-video-btn:hover {
    background-color: #f8fafc;
    transform: scale(1.02);
}
.pro-thumbnails-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
}
.pro-thumb {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}
.pro-thumb:hover, .pro-thumb.active {
    opacity: 1;
}
.pro-thumb.active {
    border-color: var(--color-primary);
}
.trust-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 12px 16px;
    background-color: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
    margin: 16px 0 24px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.trust-item.verified {
    color: var(--color-primary);
    font-weight: 600;
}
.trust-item i {
    width: 16px;
    height: 16px;
}
.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.tech-spec-card {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tech-spec-val {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0 4px;
    color: var(--color-text);
}
.tech-spec-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.ideal-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.ideal-for-card {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}
.ideal-for-card i {
    color: var(--color-primary);
    margin-bottom: 8px;
    width: 24px;
    height: 24px;
}
.ideal-for-card p {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}
.metrics-card {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-top: 24px;
}
.metric-item {
    text-align: center;
}
.metric-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
}
.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.features-cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.feature-item-pro {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.feature-item-pro i {
    color: var(--color-success);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Theme Logo Toggle */
img.theme-logo-light { display: none !important; }
body.light-mode img.theme-logo-dark { display: none !important; }
body.light-mode img.theme-logo-light { display: inline-block !important; }

/* Scroll to Top Button */
#btn-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ==========================================================================
   Dashboard Styles
   ========================================================================== */
body.dashboard-body {
    background-color: #f8fafc; /* very light grey for background */
    background-image: none; /* remove radial gradients for clean dashboard */
}

body.dark-mode.dashboard-body {
    background-color: var(--color-bg);
}

.dashboard-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.dark-mode .dashboard-header,
body.dark-mode .user-profile-card,
body.dark-mode .dash-card {
    background-color: var(--color-bg-alt);
}

.dashboard-layout {
    display: flex;
    max-width: 1536px;
    margin: 0 auto;
    padding: 32px 24px;
    gap: 32px;
    align-items: flex-start;
}

.dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.user-profile-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    background-color: var(--color-success);
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text);
}

.user-email {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.user-profile-link {
    font-size: 0.8rem;
    color: var(--color-success);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-profile-link:hover {
    text-decoration: underline;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-nav-item, .dashboard-nav-subitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dashboard-nav-subitem {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.dashboard-nav-item i, .dashboard-nav-subitem i {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
}

.dashboard-nav-subitem i {
    width: 16px;
    height: 16px;
}

.dashboard-nav-item:hover, .dashboard-nav-subitem:hover {
    background-color: rgba(16, 185, 129, 0.05);
    color: var(--color-success);
}

.dashboard-nav-item:hover i, .dashboard-nav-subitem:hover i {
    color: var(--color-success);
}

.dashboard-nav-item.active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.dashboard-nav-item.active i {
    color: var(--color-success);
}

.dashboard-nav-group {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.nav-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-left: 16px;
    margin-bottom: 12px;
    font-weight: 700;
}

.dashboard-nav-bottom {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.text-danger {
    color: #ef4444 !important;
}

.text-danger i {
    color: #ef4444 !important;
}

.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.dashboard-main {
    flex-grow: 1;
    min-width: 0;
}

.dashboard-header-text {
    margin-bottom: 32px;
}

.dashboard-header-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.dashboard-header-text p {
    color: var(--color-text-light);
}

.dashboard-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 24px;
    max-width: 1536px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 0.85rem;
    gap: 32px;
}

.dashboard-footer .footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
}

.dashboard-footer .footer-links a:hover {
    color: var(--color-text);
}

/* Base Dashboard Card */
.dash-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dash-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Dashboard Grids */
.dash-grid-2-col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* Payment Method Card */
.payment-method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.payment-method-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.payment-logo {
    font-weight: 700;
    color: #1a1f36; /* Visa color */
    background: #f7f9fc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.payment-details p {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}
.payment-details span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}
.badge-light-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Address Info */
.address-info {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}
.address-info strong {
    color: var(--color-text);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background-color: var(--color-success);
}
input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Right Column Widgets */
.widget-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}
.widget-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget-item:first-child {
    padding-top: 0;
}
.widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.widget-content h4 {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 4px;
}
.widget-content p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}
.widget-content span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Dashboard Tables */
.table-responsive {
    overflow-x: auto;
}
.dash-table {
    width: 100%;
    border-collapse: collapse;
}
.dash-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-weight: 700;
    border-bottom: 1px solid var(--color-border);
}
.dash-table td {
    padding: 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.dash-table tr:last-child td {
    border-bottom: none;
}
.dash-table-title {
    font-weight: 600;
    color: var(--color-text);
}
.dash-table-sub {
    font-size: 0.8rem;
    color: var(--color-text-light);
}
.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Plan Active Card */
.plan-active-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.plan-active-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.plan-active-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
}
.plan-active-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}
.plan-active-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
}
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--color-text);
}
.benefits-list li i {
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}
.progress-section {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 24px;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.progress-title {
    font-weight: 600;
    color: var(--color-text);
}
.progress-count {
    font-weight: 700;
    color: var(--color-primary);
}
.progress-bar-container {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}
.progress-bar-fill {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 4px;
    width: 35%; /* example 7/20 */
}

/* Pricing Grid Dashboard */
.dash-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.dash-pricing-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.dash-pricing-card.current {
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    position: relative;
}
.current-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
}
.dash-pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.dash-pricing-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
}
.dash-pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-light);
}
.dash-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
}
.dash-pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.dash-pricing-features li i {
    color: var(--color-success);
}

/* Inmuebles Vistos Filters */
.dash-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.dash-filter-select {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-text);
    outline: none;
    min-width: 160px;
}
.dash-filter-clear {
    color: var(--color-text-light);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}
.dash-filter-clear:hover {
    color: var(--color-text);
    text-decoration: underline;
}

/* Horizontal Property Card */
.property-card-horizontal {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    transition: var(--transition);
}
.property-card-horizontal:hover {
    box-shadow: var(--shadow-md);
}
.pch-image-wrapper {
    width: 280px;
    position: relative;
    flex-shrink: 0;
}
.pch-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pch-photo-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pch-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}
.pch-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pch-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text);
}
.pch-location {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pch-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.pch-features {
    display: flex;
    gap: 16px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}
.pch-features span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pch-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 200px;
    border-left: 1px solid var(--color-border);
    padding-left: 24px;
    margin-left: 24px;
}

/* Sugeridos Carousel */
.sugeridos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 24px 0;
}
.sugeridos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Mis Citas Layout */
.citas-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}
.calendar-widget {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 700;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}
.calendar-day-header {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 8px;
}
.calendar-day {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    margin: 0 auto;
}
.calendar-day:hover {
    background-color: #f1f5f9;
}
.calendar-day.active {
    background-color: var(--color-primary);
    color: white;
}
.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background-color: var(--color-success);
    border-radius: 50%;
}
.calendar-day.active.has-event::after {
    background-color: white;
}
.calendar-day.muted {
    color: var(--color-text-light);
}

.citas-filters {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
}
.citas-filters h4 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-weight: 600;
}
.filter-group {
    margin-bottom: 16px;
}
.filter-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    font-family: inherit;
}

.citas-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}
.citas-tabs {
    display: flex;
    gap: 24px;
}
.citas-tab {
    color: var(--color-text-light);
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 16px;
    margin-bottom: -17px;
}
.citas-tab.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    font-weight: 600;
}
.citas-date-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 24px;
}

/* Appointment Card */
.appointment-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    overflow: hidden;
    margin-bottom: 16px;
}
.app-image {
    width: 200px;
    flex-shrink: 0;
}
.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.app-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-time i {
    color: var(--color-primary);
}
.app-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.app-location {
    color: var(--color-text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}
.app-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}
.app-agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.app-agent-details h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 2px 0;
}
.app-agent-details p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
    display: flex;
    gap: 12px;
}
.app-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* Mensajes Layout */
.chat-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 700px;
}
.chat-sidebar {
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}
.chat-search-container {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 12px;
}
.chat-search {
    flex-grow: 1;
    position: relative;
}
.chat-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
}
.chat-search input {
    width: 100%;
    padding: 10px 10px 10px 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    font-family: inherit;
}
.chat-tabs {
    display: flex;
    padding: 0 16px;
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.chat-tabs::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}
.chat-tab {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.chat-tab.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    font-weight: 600;
}
.chat-list {
    flex-grow: 1;
    overflow-y: auto;
}
.chat-list-item {
    display: flex;
    padding: 16px;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition);
}
.chat-list-item:hover {
    background: #f8fafc;
}
.chat-list-item.active {
    background: rgba(99, 102, 241, 0.05); /* very light primary */
    border-left: 3px solid var(--color-primary);
}
.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.chat-list-content {
    flex-grow: 1;
    min-width: 0;
}
.chat-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.chat-list-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-list-time {
    font-size: 0.75rem;
    color: var(--color-text-light);
}
.chat-list-snippet {
    font-size: 0.85rem;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-list-unread {
    background: var(--color-success);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Chat Main Window */
.chat-main {
    display: flex;
    flex-direction: column;
}
.chat-main-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-header-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 2px 0;
}
.chat-header-status {
    font-size: 0.8rem;
    color: var(--color-success);
}
.chat-property-snippet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #f8fafc;
    border-bottom: 1px solid var(--color-border);
}
.cps-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cps-info img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}
.cps-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.cps-price {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}
.chat-messages {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}
.chat-bubble.other {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 4px;
}
.chat-bubble.me {
    align-self: flex-end;
    background: var(--color-primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}
.chat-time {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: 4px;
    display: block;
}
.chat-bubble.me .chat-time {
    color: rgba(255,255,255,0.7);
}
.chat-action-banner {
    background: #ffffff;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-action-banner p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}
.chat-input-area {
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-input {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}
.chat-input:focus {
    border-color: var(--color-primary);
}

/* Dashboard Fixes for Responsive & Dark Mode */
.dash-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .dash-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dash-pricing-card.current {
    background: var(--color-bg-panel) !important; 
}

.citas-layout {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .citas-layout {
        grid-template-columns: 300px 1fr;
    }
}

.chat-layout {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 650px;
    background: var(--color-bg-panel);
}
@media (min-width: 992px) {
    .chat-layout {
        grid-template-columns: 350px 1fr;
    }
}

.dash-item-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .dash-item-card {
        flex-direction: row;
        gap: 24px;
        padding: 24px;
    }
}

.dash-item-image {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .dash-item-image {
        width: 150px;
        height: 100px;
    }
}

.dash-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dash-item-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
@media (min-width: 768px) {
    .dash-item-actions {
        margin-top: auto;
    }
}

.dash-btn-right {
    margin-left: 0;
    width: 100%;
}
@media (min-width: 768px) {
    .dash-btn-right {
        margin-left: auto;
        width: auto;
    }
}
