/* ============================================================
   ESTILOS PREMIUM INMOBILIARIOS - DARK & LIGHT LUXURY THEME
   ============================================================ */

:root {
    --bg-dark: #0b0f19;
    --bg-card: #151c2c;
    --bg-card-hover: #1e293b;
    --bg-input: #0f172a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(245, 158, 11, 0.3);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-gold: #fbbf24;
    --text-emerald: #34d399;
    --text-blue: #60a5fa;
    --text-amber: #f59e0b;

    --accent-gold: #f59e0b;
    --accent-gold-hover: #d97706;
    --accent-emerald: #10b981;
    --accent-emerald-hover: #059669;
    --accent-blue: #3b82f6;
    --accent-danger: #ef4444;

    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar-main {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.9rem 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    font-size: 2rem;
    color: var(--accent-gold);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-emerald {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

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

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.05);
}

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

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

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
}

.w-100 { width: 100%; }

/* Hero & Search Section */
.hero-section {
    position: relative;
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, var(--bg-dark) 100%), 
                url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Filter Card */
.filter-card {
    background: rgba(21, 28, 44, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    text-align: left;
}

.search-main-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input-group {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gold);
}

.search-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-select, .form-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.filter-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.badge-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.checkbox-badge {
    cursor: pointer;
}

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

.badge-box {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.checkbox-badge input[type="checkbox"]:checked + .badge-box {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent-gold);
    color: var(--text-gold);
    font-weight: 600;
}

/* Catalog Grid Section */
.catalog-section {
    padding: 3.5rem 1.5rem;
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.catalog-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

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

.sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-select {
    width: auto;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

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

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

.card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.badge-operation {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.badge-code {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-type {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.card-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-gold);
}

.card-hoa-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-title a:hover {
    color: var(--accent-gold);
}

.card-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.specs-grid {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spec-item i {
    color: var(--text-gold);
}

.card-amenities-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.badge-feature {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.card-footer {
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-mini {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Detail Page */
.detail-container {
    padding: 2.5rem 1.5rem 5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb .separator {
    font-size: 0.7rem;
}

.breadcrumb .active {
    color: var(--text-gold);
    font-weight: 600;
}

.detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

.detail-location {
    font-size: 1rem;
    color: var(--text-muted);
}

.detail-price-block {
    text-align: right;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
}

.price-value {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-gold);
}

.hoa-detail-badge {
    font-size: 0.85rem;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.main-image-container {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

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

.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 2.5rem;
}

.thumb-img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.thumb-img:hover, .thumb-img.active {
    opacity: 1;
    border-color: var(--accent-gold);
}

.specs-full-card, .description-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.specs-full-card h3, .description-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specs-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.spec-card-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

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

.spec-info {
    display: flex;
    flex-direction: column;
}

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

.spec-val {
    font-size: 0.95rem;
    font-weight: 700;
}

.agent-card-sticky {
    position: sticky;
    top: 6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-glow);
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.agent-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.agent-title-label {
    font-size: 0.75rem;
    color: var(--text-gold);
    font-weight: 700;
    text-transform: uppercase;
}

.agent-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.agent-phone {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cta-notice {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.cta-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.agent-guarantee {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

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

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 580px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

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

.modal-body { padding: 2rem; }
.modal-footer {
    padding: 1.25rem 2rem;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.col-3 { flex: 0 0 calc(25% - 0.75rem); }
.col-4 { flex: 0 0 calc(33.333% - 0.67rem); }
.col-6 { flex: 0 0 calc(50% - 0.5rem); }
.col-8 { flex: 0 0 calc(66.666% - 0.33rem); }

/* Admin Panels */
.admin-body { background: var(--bg-dark); }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.user-badge-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    color: var(--text-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 700; font-size: 0.9rem; }
.user-role-badge { font-size: 0.65rem; text-transform: uppercase; font-weight: 800; }
.badge-admin { color: var(--text-gold); }
.badge-seller { color: var(--text-emerald); }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.3rem; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-gold);
}

.sidebar-divider {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin: 1.5rem 0 0.5rem 0.5rem;
}

.admin-main { flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
    padding: 1.5rem 2.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-content-inner { padding: 2.5rem; flex: 1; }
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-number { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Tables */
.table-responsive { width: 100%; overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

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

.data-table th {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

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

.badge-status {
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-status-disponible { background: rgba(16, 185, 129, 0.15); color: var(--text-emerald); }
.badge-status-negociacion { background: rgba(245, 158, 11, 0.15); color: var(--text-gold); }
.badge-status-vendido, .badge-status-alquilado { background: rgba(59, 130, 246, 0.15); color: var(--text-blue); }
.badge-status-nuevo { background: rgba(245, 158, 11, 0.2); color: var(--text-gold); }

/* Form helper colors */
.text-gold { color: var(--text-gold) !important; }
.text-emerald { color: var(--text-emerald) !important; }
.text-blue { color: var(--text-blue) !important; }
.text-amber { color: var(--text-amber) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--accent-danger) !important; }
.bg-emerald { background: var(--accent-emerald); color: #fff; }
.bg-gold { background: var(--accent-gold); color: #0f172a; }

.bg-gold-subtle { background: rgba(245, 158, 11, 0.15); }
.bg-emerald-subtle { background: rgba(16, 185, 129, 0.15); }
.bg-blue-subtle { background: rgba(59, 130, 246, 0.15); }
.bg-purple-subtle { background: rgba(168, 85, 247, 0.15); }
.bg-amber-subtle { background: rgba(245, 158, 11, 0.15); }

/* Footer */
.footer-main {
    background: #080c14;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-gold);
    margin-bottom: 1rem;
}

.footer-desc { color: var(--text-muted); font-size: 0.9rem; max-width: 400px; }
.footer-links h4, .footer-contact h4 { font-family: var(--font-heading); margin-bottom: 1.25rem; font-size: 1.1rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-gold); }

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Gallery Management Grid */
.gallery-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.gallery-manage-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 110px;
    border: 1px solid var(--border-color);
}

.gallery-manage-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.3rem;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-cover { font-size: 0.65rem; color: var(--text-gold); font-weight: 800; }
.is-cover-card { border: 2px solid var(--accent-gold); }

/* Login Page Styling */
.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.login-header { text-align: center; margin-bottom: 2rem; }
.login-brand-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.login-header h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; }
.login-header p { font-size: 0.85rem; color: var(--text-muted); }
.login-demo-notice {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid var(--accent-danger); color: #fca5a5; }

/* Navbar Mobile Styles */
.navbar-toggle, .sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem;
}

.mobile-nav-actions {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .container { padding: 0 1rem; }

    /* Navbar Mobile Collapse */
    .navbar-toggle { display: block; }
    .navbar-actions { display: none; }
    
    .navbar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-gold);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1rem;
        display: none;
        box-shadow: var(--shadow-card);
    }

    .navbar-nav.active { display: flex; }
    .mobile-nav-actions { display: block; }

    /* Hero Section */
    .hero-section { padding: 3rem 0 2rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .filter-card { padding: 1.25rem; }
    .search-main-row { flex-direction: column; }
    
    .filters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .filter-badges-row { flex-direction: column; align-items: flex-start; }

    /* Property Detail Page */
    .detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .detail-header-row { flex-direction: column; gap: 1rem; }
    .detail-price-block { text-align: left; width: 100%; }
    .main-image-container { height: 300px; }
    .agent-card-sticky { position: static; }

    /* Admin Sidebar Drawer on Mobile */
    .sidebar-toggle-btn { display: block; }
    .admin-wrapper { flex-direction: column; }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 3000;
        transition: left 0.3s ease;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
        overflow-y: auto;
    }

    .admin-sidebar.active { left: 0; }
    .admin-topbar { padding: 1rem 1.25rem; gap: 1rem; }
    .admin-content-inner { padding: 1.25rem; }
    .dashboard-sections-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.6rem; }
    .filters-grid { grid-template-columns: 1fr; }
    
    .property-grid {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .col-3, .col-4, .col-6, .col-8 {
        flex: 0 0 100%;
        width: 100%;
    }

    .modal-card {
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-body, .modal-header, .modal-footer {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-sm-mobile {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .data-table th, .data-table td {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

