:root {
    /* Color Palette */
    --primary: #070b12;        /* Deep Obsidian Black */
    --primary-light: #0f172a;  /* Dark Slate */
    --secondary: #c5a880;      /* Champagne Gold */
    --secondary-dark: #b0926a; /* Rich Bronze Gold */
    --accent: #e2d4c0;         /* Soft Cream Gold */
    --bg-light: #faf9f6;       /* Soft Lino Cream */
    --bg-white: #ffffff;
    --text-dark: #1e293b;      /* Charcoal */
    --text-light: #64748b;     /* Slate Gray */
    --text-muted: #94a3b8;     /* Light Gray */
    --white: #ffffff;
    
    /* Shadows and Borders */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(7, 11, 18, 0.05);
    --shadow-lg: 0 20px 50px rgba(7, 11, 18, 0.1);
    --shadow-gold: 0 10px 30px rgba(197, 168, 128, 0.15);
    --border-gold: 1px solid rgba(197, 168, 128, 0.2);
    --border-light: 1px solid rgba(226, 232, 240, 0.8);
    
    /* Layout */
    --radius-sm: 0.375rem;
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-subheading: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & Smoothness */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

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

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

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header (Glassmorphism & Floating) */
.site-header {
    background: rgba(250, 249, 246, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo span {
    color: var(--secondary);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-left: 1px solid rgba(7, 11, 18, 0.15);
    padding-left: 0.5rem;
    margin-left: 0.2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

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

.btn-outline:hover {
    background: rgba(197, 168, 128, 0.05);
    color: var(--secondary-dark);
}

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

.btn-dark:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Section Common Styling */
section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem;
}

.section-title span {
    font-family: var(--font-subheading);
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 300;
}

/* HERO SECTION - "PAZ MENTAL" */
.hero-luxury {
    background: radial-gradient(circle at top right, rgba(197, 168, 128, 0.12), transparent 45%),
                linear-gradient(rgba(7, 11, 18, 0.85), rgba(7, 11, 18, 0.92)), 
                url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1920&q=90');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 10rem 0 12rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-luxury::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-light), transparent);
}

.hero-luxury-tag {
    font-family: var(--font-subheading);
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.hero-luxury h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 2rem;
    letter-spacing: -1px;
}

.hero-luxury h1 em {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--secondary);
}

.hero-luxury p {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--accent);
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* DASHBOARD SECTION - "CÓDIGO DE CONTROL" */
.dashboard-section {
    background-color: var(--bg-light);
    padding: 8rem 0;
}

.dashboard-showcase {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Dashboard Navigation Tabs */
.dashboard-tabs {
    display: flex;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    background: rgba(7, 11, 18, 0.02);
}

.tab-btn {
    flex: 1;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--bg-white);
}

.tab-btn.active::after {
    width: 100%;
}

/* Dashboard Body Content */
.dashboard-body {
    padding: 3rem;
    min-height: 420px;
}

.dashboard-panel {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Inside Panel Layouts */
.panel-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.panel-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.metric-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.metric-label {
    font-family: var(--font-subheading);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-family: var(--font-subheading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-change {
    font-size: 0.8rem;
    color: #10b981; /* green */
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.25rem;
}

.metric-change.neutral {
    color: var(--text-light);
}

/* Circular Chart Widget */
.chart-widget {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    border: var(--border-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.circle-chart {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
}

.circle-chart svg {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 8px;
}

.circle-progress {
    fill: none;
    stroke: url(#gold-gradient);
    stroke-width: 8px;
    stroke-dasharray: 440;
    stroke-dashoffset: 44; /* 90% */
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.circle-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-subheading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

/* Operations Log UI */
.operation-log {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
}

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

.log-item:hover {
    background: rgba(197, 168, 128, 0.03);
}

.log-info h4 {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.log-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.log-status {
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.log-status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.log-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Legal/Contract Tab Items */
.legal-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-item {
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.legal-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.legal-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* COLECCIÓN CURADA (PROPERTIES) */
.properties-section {
    background-color: var(--bg-white);
    border-top: 1px solid rgba(197, 168, 128, 0.1);
}

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

.property-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: var(--border-light);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

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

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--primary);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    font-family: var(--font-subheading);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: 2rem;
}

.card-price {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-dark);
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-location {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-location svg {
    color: var(--secondary);
}

.card-features {
    display: flex;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    color: var(--text-light);
    font-size: 0.85rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.feature svg {
    color: var(--secondary);
}

/* HISTORIAS DE ÉXITO (EDITORIAL STYLE) */
.success-section {
    background-color: #070b12; /* Dark Obsidian */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.success-section .section-title p {
    color: var(--accent);
}

.editorial-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 2rem;
}

.editorial-content {
    animation: fadeInLeft 1s var(--transition);
}

.success-tag {
    font-family: var(--font-subheading);
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1.5rem;
}

.editorial-title {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 2rem;
}

.editorial-story {
    margin-bottom: 2.5rem;
}

.story-part {
    margin-bottom: 1.5rem;
}

.story-part h4 {
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.story-part p {
    font-size: 1rem;
    color: #cbd5e1; /* very light gray */
    font-weight: 300;
    line-height: 1.8;
}

.editorial-quote {
    border-left: 2px solid var(--secondary);
    padding-left: 2rem;
    margin-bottom: 2.5rem;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--accent);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.quote-author {
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.editorial-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.editorial-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(7, 11, 18, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

.editorial-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* PREMIUM CTA SECTION */
.cta-luxury {
    background: radial-gradient(circle at center, rgba(197, 168, 128, 0.1), transparent 70%),
                var(--primary);
    padding: 8rem 0;
    text-align: center;
    color: var(--white);
    border-top: 1px solid rgba(197, 168, 128, 0.2);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 168, 128, 0.15);
    padding: 4.5rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 3rem;
}


/* ==========================================================================
   PROPERTY DETAIL PAGE STYLES
   ========================================================================== */
.property-detail-page {
    margin-top: 1rem;
    margin-bottom: 6rem;
}

/* Back navigation bar */
.detail-navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.back-btn:hover {
    color: var(--secondary);
    transform: translateX(-3px);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    color: var(--primary);
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.share-btn:hover {
    background: rgba(197, 168, 128, 0.05);
    border-color: var(--secondary);
    color: var(--secondary-dark);
}

/* Header Block */
.detail-header-block {
    margin-bottom: 3rem;
}

.detail-category-badge {
    display: inline-block;
    background: rgba(197, 168, 128, 0.1);
    color: var(--secondary-dark);
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.3rem 0.875rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 168, 128, 0.15);
    margin-bottom: 0.75rem;
}

.detail-header-block h1 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

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

.detail-location-text svg {
    color: var(--secondary);
}

/* Grid Layout */
.property-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

/* Left Column Details */
.detail-main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Image Viewer / Interactive Touch Carousel */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-main {
    height: 520px;
    background: #080c14; /* Deep luxury frame */
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-main:active {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.32s cubic-bezier(0.2, 0.95, 0.35, 1);
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* No distortion */
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

/* Overlays: Counter & Fullscreen */
.carousel-overlay-top {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.carousel-fullscreen-btn {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 168, 128, 0.5);
    color: #ffffff;
    padding: 7px 15px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    z-index: 51;
    -webkit-tap-highlight-color: transparent;
}

.carousel-fullscreen-btn:hover {
    background: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
    transform: translateY(-1px);
}

.carousel-fullscreen-btn:active {
    transform: scale(0.92);
}

.carousel-overlay-bottom {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 12;
    pointer-events: none;
}

.carousel-counter {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 168, 128, 0.35);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 168, 128, 0.35);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    opacity: 0.9;
    visibility: visible;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-control:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    transform: translateY(-50%) scale(1.08);
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.92);
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) #f1f5f9;
    scroll-snap-type: x mandatory;
    scroll-padding: 6px;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

.gallery-thumb {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    scroll-snap-align: center;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.35);
    transform: scale(1.02);
}

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

/* Lightbox Modal Fullscreen System */
.carousel-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.carousel-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 14, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
}

.lightbox-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
}

.lightbox-counter {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover,
.lightbox-close-btn:active {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.05);
}

.lightbox-stage {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    overflow: hidden;
    touch-action: pan-y;
}

.lightbox-track-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 80vh;
    overflow: hidden;
    cursor: grab;
}

.lightbox-track-wrapper:active {
    cursor: grabbing;
}

.lightbox-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.32s cubic-bezier(0.2, 0.95, 0.35, 1);
}

.lightbox-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.lightbox-slide img {
    max-width: 94vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.lightbox-nav-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lightbox-nav-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.08);
}

.lightbox-nav-btn:active {
    transform: scale(0.92);
}

.lightbox-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 12px 16px;
}

.lightbox-instruction {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Detail Section Cards */
.detail-section {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.detail-section h2 {
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding-bottom: 1rem;
}

.description-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    font-weight: 300;
}

/* Features Styling */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-group h3 {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-dark);
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.feature-group ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.feature-group li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.feature-group li svg {
    color: var(--secondary);
    flex-shrink: 0;
}

/* Map Card */
.map-iframe-wrapper {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: var(--border-light);
}

.map-details {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Right Column Sidebar Cards */
.detail-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 6.5rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.sidebar-luxury-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sidebar-luxury-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 168, 128, 0.3);
}

/* Spectacular Price Presentation */
.price-details-card {
    background: linear-gradient(to bottom, var(--bg-white), #faf9f6);
    border: 1px solid rgba(197, 168, 128, 0.25);
    position: relative;
    overflow: hidden;
}

.price-details-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
}

.price-type-label {
    font-family: var(--font-subheading);
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.price-value-highlight {
    font-family: var(--font-subheading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-dark);
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    letter-spacing: -1px;
}

.price-currency-badge {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0;
}

.price-status-banner {
    display: inline-block;
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #10b981; /* Green */
    letter-spacing: 1px;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(16, 185, 129, 0.08);
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
}

/* Sidebar Essential Stats Grid */
.sidebar-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    padding-top: 2rem;
}

.stat-box {
    background: var(--bg-white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-sm);
    padding: 0.875rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.stat-box:hover {
    border-color: var(--secondary);
    background: rgba(197, 168, 128, 0.03);
}

.stat-box svg {
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.stat-val {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-lbl {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Sidebar Secondary Stats List */
.sidebar-secondary-stats {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    padding-top: 1.5rem;
}

.sec-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.sec-stat-lbl {
    color: var(--text-light);
}

.sec-stat-val {
    font-weight: 600;
    color: var(--primary);
}

/* Exclusive VIP Contact Concierge */
.contact-concierge-card h3 {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.2px;
    margin-bottom: 0.75rem;
}

.contact-concierge-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.form-group-luxury {
    margin-bottom: 1.25rem;
}

.form-group-luxury label {
    display: block;
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-group-luxury input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-main);
    color: var(--primary);
    transition: var(--transition);
}

.form-group-luxury input:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--bg-white);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.1);
}

.btn-concierge {
    width: 100%;
    margin-top: 0.5rem;
    gap: 0.5rem;
    background: #25D366; /* Elegant WhatsApp Green */
    border-color: #25D366;
}

.btn-concierge:hover {
    background: #20ba59;
    border-color: #20ba59;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: #05070c;
    color: #cbd5e1;
    padding: 5rem 0 3rem;
    border-top: 1px solid rgba(197, 168, 128, 0.08);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo span {
    color: var(--secondary);
    font-weight: 300;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-nav a:hover {
    color: var(--secondary);
}

.footer-copy {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #64748b;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1024px) {
    .editorial-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .editorial-image {
        height: 450px;
    }
    
    .property-detail-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 2.5rem;
    }
    
    .gallery-main {
        height: 420px;
    }
}

@media (max-width: 900px) {
    .property-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .detail-sidebar-column {
        position: static;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .hero-luxury {
        padding: 7rem 0 9rem;
    }
    
    .hero-luxury h1 {
        font-size: 2.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .dashboard-body {
        padding: 1.5rem;
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .panel-metrics {
        grid-template-columns: 1fr;
    }
    
    .editorial-title {
        font-size: 2rem;
    }
    
    .cta-box {
        padding: 3rem 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 2.2rem;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Elegant Mobile Menu Transitions */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
        position: relative;
    }
    
    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        transform-origin: center;
    }
    
    /* X transformation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 3rem 2rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid rgba(197, 168, 128, 0.15);
        gap: 1.75rem;
        z-index: 1050;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
        animation: fadeIn 0.4s ease-out forwards;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    /* Property Detail Responsive */
    .detail-header-block h1 {
        font-size: 1.9rem;
    }
    
    .property-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-sidebar-column {
        position: static;
    }
    
    .gallery-container {
        padding: 0.75rem;
        gap: 0.65rem;
        border-radius: 12px;
    }
    
    .gallery-main {
        height: clamp(260px, 60vw, 360px);
        border-radius: 10px;
    }

    .carousel-control {
        width: 38px;
        height: 38px;
        opacity: 0.95;
        visibility: visible;
        background: rgba(15, 23, 42, 0.75);
    }

    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }

    .carousel-fullscreen-btn .fs-text {
        display: none;
    }

    .carousel-fullscreen-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .carousel-overlay-top {
        top: 8px;
        right: 8px;
    }

    .carousel-overlay-bottom {
        bottom: 8px;
        right: 8px;
    }

    .carousel-counter {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .gallery-thumbs {
        gap: 0.5rem;
        padding-bottom: 4px;
    }

    .gallery-thumb {
        width: 76px;
        height: 56px;
        border-radius: 6px;
    }

    .detail-section {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding: 0.5rem;
        gap: 0.5rem;
        border-radius: 10px;
        margin-left: -4px;
        margin-right: -4px;
    }

    .gallery-main {
        height: clamp(230px, 68vw, 300px);
        border-radius: 8px;
    }

    .carousel-control {
        width: 34px;
        height: 34px;
    }

    .carousel-control svg {
        width: 18px;
        height: 18px;
    }

    .carousel-prev { left: 6px; }
    .carousel-next { right: 6px; }

    .carousel-counter {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .gallery-thumb {
        width: 66px;
        height: 48px;
    }

    .lightbox-header {
        padding: 12px 14px;
    }

    .lightbox-stage {
        padding: 4px 6px;
    }

    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================================================
   LUXURY REAL ESTATE SEARCH ENGINE (ARRIENDO & VENTA)
   ========================================================================== */

.luxury-search-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 2.5rem auto 0;
    position: relative;
    z-index: 10;
}

.luxury-search-card {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(7, 11, 18, 0.25), 0 0 0 1px rgba(197, 168, 128, 0.25);
    padding: 1.75rem 2rem 2rem;
    color: var(--text-dark);
    text-align: left;
    transition: box-shadow 0.3s ease;
}

.luxury-search-card:hover {
    box-shadow: 0 30px 60px -12px rgba(7, 11, 18, 0.3), 0 0 0 1px rgba(197, 168, 128, 0.4);
}

/* Tab Switcher */
.search-mode-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-mode-tab {
    padding: 8px 24px;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-mode-tab.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(7, 11, 18, 0.15);
}

.search-mode-tab:hover:not(.active) {
    color: var(--text-dark);
}

/* Fields Grid */
.search-fields-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr auto;
    gap: 1rem;
    align-items: flex-end;
}

.search-fields-row-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
    gap: 1rem;
    align-items: flex-end;
}

.search-field-block {
    position: relative;
}

.search-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.search-field-label svg {
    width: 14px;
    height: 14px;
    color: var(--secondary-dark);
    stroke-width: 2.2;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field-control {
    width: 100%;
    height: 52px;
    padding: 0 1rem;
    background: #faf9f6;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.25s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

select.search-field-control {
    padding-right: 2.2rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.search-field-control:focus {
    background: #ffffff;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

.search-field-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Price Range Dual Input */
.price-range-dual {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #faf9f6;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0 8px;
    height: 52px;
    transition: all 0.25s ease;
}

.price-range-dual:focus-within {
    background: #ffffff;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

.price-range-dual input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    padding: 0 4px;
}

.price-range-dual input::placeholder {
    color: #94a3b8;
    font-size: 0.82rem;
}

.price-range-separator {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Search Submit Button */
.btn-search-action {
    height: 52px;
    padding: 0 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: #ffffff;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 0.65rem;
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(7, 11, 18, 0.2);
    white-space: nowrap;
}

.btn-search-action:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 168, 128, 0.35);
}

.btn-search-action svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Quick Explore Chips */
.quick-chips-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
}

.quick-chips-title {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quick-chip-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.quick-chip-link:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Listing Page Filter Header Card */
.listing-filter-box {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}

.filter-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-results-info {
    font-size: 0.95rem;
    color: var(--text-light);
}

.filter-results-info strong {
    color: var(--text-dark);
    font-weight: 700;
}

.filter-clear-link {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.filter-clear-link:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Active Filter Badges */
.active-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.active-filter-badge {
    background: rgba(197, 168, 128, 0.15);
    color: #856404;
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.active-filter-badge a {
    color: inherit;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    margin-left: 2px;
}

.active-filter-badge a:hover {
    color: #000000;
}

/* Responsive Search Grid */
@media (max-width: 1024px) {
    .search-fields-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .btn-search-action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .luxury-search-card {
        padding: 1.25rem 1rem 1.5rem;
        border-radius: 1rem;
    }

    .search-fields-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .search-mode-tabs {
        width: 100%;
        display: flex;
    }

    .search-mode-tab {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 8px 12px;
    }
}