/* ============================================
   CHAT PROPERTI - MODERN REAL ESTATE PLATFORM
   Premium Design System 2026
   ============================================ */

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --secondary: #0EA5E9;
    --accent: #F59E0B;
    --accent-light: #FCD34D;
    --success: #10B981;
    --success-dark: #059669;
    --danger: #EF4444;
    --dark: #0F172A;
    --dark-2: #1E293B;
    --g900: #111827;
    --g800: #1F2937;
    --g700: #374151;
    --g600: #4B5563;
    --g500: #6B7280;
    --g400: #9CA3AF;
    --g300: #D1D5DB;
    --g200: #E5E7EB;
    --g100: #F3F4F6;
    --g50: #F9FAFB;
    --white: #FFFFFF;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sh-sm: 0 1px 2px rgba(0,0,0,.05);
    --sh: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --sh-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --sh-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --sh-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
    --sh-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
    --r-sm: 6px;
    --r: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;
    --tr: all .3s cubic-bezier(.4,0,.2,1);
    --tr-f: all .15s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--g50);
    color: var(--g800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--tr-f); }
a:hover { color: var(--primary-dark); }

/* HEADER */
header {
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--g200);
    box-shadow: var(--sh-sm);
    height: 72px;
    padding: 0 2rem;
    color: var(--g800);
}

header .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

header .logo-container h1 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.5px;
    margin: 0;
}

.site-logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

header nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

header nav a {
    color: var(--g600);
    font-weight: 500;
    font-size: .9rem;
    padding: 8px 16px;
    border-radius: var(--r-full);
    transition: var(--tr-f);
    text-decoration: none;
    margin-left: 0;
}

header nav a:hover {
    background: var(--g100);
    color: var(--primary);
}

/* MAIN */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* HERO */
.hero-section {
    background: linear-gradient(135deg, #312E81 0%, #4338CA 30%, #6366F1 60%, #818CF8 100%);
    padding: 4rem 2rem 5rem;
    margin: 0 -1.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,.08) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,.05) 0%, transparent 50%);
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.18);
    color: var(--white);
    font-size: .75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--r-full);
    margin-bottom: 1.2rem;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hero-badge .pulse-dot {
    width: 8px; height: 8px;
    background: #34D399;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: .8rem;
    letter-spacing: -1px;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    line-height: 1;
}

.hero-stat-label {
    font-size: .72rem;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* AI SEARCH */
.ai-search-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--r-xl);
    margin: -3rem auto 2.5rem;
    max-width: 900px;
    position: relative;
    z-index: 10;
    box-shadow: var(--sh-xl);
    border: 1px solid var(--g100);
}

.ai-search-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--g900);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: .4rem;
}

.ai-search-title svg { width: 24px; height: 24px; fill: var(--primary); }

.ai-search-description {
    font-size: .88rem;
    color: var(--g500);
    margin-bottom: 1.2rem;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: .75rem;
}

.ai-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--g200);
    border-radius: var(--r);
    font-size: 1rem;
    font-family: var(--font);
    box-sizing: border-box;
    transition: var(--tr);
    background: var(--g50);
    color: var(--g800);
}

.ai-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(79,70,229,.1);
}

.ai-search-input::placeholder { color: var(--g400); }

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    fill: var(--g400);
    pointer-events: none;
}

/* FILTERS */
.filters { margin-bottom: 0; }
.filters form { display: flex; flex-direction: column; gap: .5rem; }

.filters input, .filters select, .filters button {
    padding: .75rem 1rem;
    margin-right: 0;
    font-family: var(--font);
}

.filters select {
    border: 2px solid var(--g200);
    border-radius: var(--r);
    font-size: .9rem;
    background: var(--g50);
    color: var(--g700);
    cursor: pointer;
    transition: var(--tr);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2rem;
    margin-top: 0;
}

.filters select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79,70,229,.1);
}

.filters button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--r);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tr);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.filters button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--sh-md);
}

/* AI EXAMPLES */
.ai-examples {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.ai-example {
    background: var(--g50);
    border: 1px solid var(--g200);
    border-radius: var(--r-full);
    padding: .5rem 1rem;
    cursor: pointer;
    transition: var(--tr);
    font-size: .82rem;
    color: var(--g600);
    white-space: nowrap;
}

.ai-example:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}

/* PARSED QUERY */
.parsed-query-info {
    background: var(--white);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: var(--r);
    margin: 0 0 1.5rem;
    font-size: .9rem;
    box-shadow: var(--sh-sm);
}

.parsed-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }

.parsed-tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: .3rem .8rem;
    border-radius: var(--r-full);
    font-size: .78rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

/* INFO BOX */
.info-box {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border: 1px solid #C7D2FE;
    border-left: 5px solid var(--primary);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-box p {
    font-size: .95rem;
    color: var(--g700);
    margin: 0;
    font-weight: 500;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success);
    color: var(--white) !important;
    padding: .65rem 1.4rem;
    text-decoration: none;
    border-radius: var(--r);
    font-size: .9rem;
    font-weight: 600;
    transition: var(--tr);
    white-space: nowrap;
}

.btn-admin:hover {
    background: var(--success-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}

/* AGENT CTA */
.agent-cta-section {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    border-radius: var(--r-xl);
    padding: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.agent-cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(79,70,229,.3), transparent);
    border-radius: 50%;
}

.agent-cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(14,165,233,.2), transparent);
    border-radius: 50%;
}

.agent-cta-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.agent-cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -.5px;
}

.agent-cta-content h2 .accent { color: var(--accent); }

.agent-cta-content p {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.agent-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item { display: flex; align-items: flex-start; gap: 12px; }

.benefit-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.1);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-text h4 { font-size: .9rem; font-weight: 700; margin-bottom: 2px; color: var(--white); }
.benefit-text p { font-size: .78rem; color: rgba(255,255,255,.5); margin: 0; line-height: 1.4; }

.btn-agent-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--success);
    color: var(--white) !important;
    padding: 1rem 2rem;
    border-radius: var(--r);
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--tr);
    text-decoration: none;
}

.btn-agent-cta:hover {
    background: var(--success-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16,185,129,.3);
}

.agent-cta-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.stat-card {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--tr);
}

.stat-card:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.stat-card .stat-icon { font-size: 2rem; margin-bottom: .5rem; }
.stat-card .stat-number { font-size: 1.8rem; font-weight: 800; color: var(--white); display: block; }
.stat-card .stat-label { font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; }

/* TRUST */
.trust-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: var(--r-lg);
    border: 1px solid var(--g200);
    transition: var(--tr);
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
    border-color: var(--primary-light);
}

.trust-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.trust-title { font-size: .95rem; font-weight: 700; color: var(--g900); margin-bottom: .3rem; }
.trust-desc { font-size: .8rem; color: var(--g500); line-height: 1.4; }

/* SECTION HEADING */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-heading h2 { font-size: 1.5rem; font-weight: 800; color: var(--g900); letter-spacing: -.3px; }

/* EMPTY STATE */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--r-xl);
    border: 2px dashed var(--g300);
}

.empty-state .empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.4rem; font-weight: 700; color: var(--g800); margin-bottom: .5rem; }
.empty-state p { color: var(--g500); font-size: 1rem; margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.section-heading .listing-count {
    font-size: .85rem;
    color: var(--g500);
    background: var(--g100);
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-weight: 500;
}

/* LISTING GRID */
.listing-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: 10px;
    gap: 1.5rem;
    align-items: start;
}

/* CARD */
.card {
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--sh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    grid-row-end: span 20;
    border: 1px solid var(--g200);
    transition: var(--tr);
    width: 100%;
}

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

.card-gallery { width: 100%; background: var(--g900); position: relative; }

.main-media {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.main-media img, .main-media video { width: 100%; height: auto; object-fit: cover; }
.main-media video { max-height: 400px; object-fit: contain; background: #000; }

.video-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .8;
    transition: var(--tr);
    z-index: 2;
}

.video-overlay:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
}

.video-overlay .play-icon { width: 22px; height: 22px; fill: white; margin-left: 3px; }

.video-indicator {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: .72rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.video-indicator svg { width: 12px; height: 12px; fill: white; }

.thumbnails {
    display: flex;
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
    background: var(--g100);
}

.thumb {
    width: 44px; height: 44px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    border-radius: var(--r-sm);
    transition: var(--tr-f);
}

.thumb:hover { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-thumb {
    width: 100%; height: 100%;
    background: var(--g700);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.card-content { padding: 1.2rem 1.2rem .8rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: var(--primary);
    padding: .3rem .8rem;
    border-radius: var(--r-full);
    font-size: .75rem;
    font-weight: 600;
    border: 1px solid #C7D2FE;
}

.tier-badges { display: flex; gap: 6px; padding: .5rem 1rem 0; }

.tier-badge {
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.badge-boosted {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    color: #78350F;
    box-shadow: 0 2px 8px rgba(245,158,11,.3);
}

.badge-premium {
    background: linear-gradient(135deg, #C084FC, #A855F7);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(168,85,247,.3);
}

.whatsapp-text {
    font-family: var(--font);
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 10px;
    padding: 0;
    min-height: 0;
    color: var(--g700);
    font-size: .9rem;
}

.whatsapp-text * { margin: 0; padding: 0; line-height: inherit; }
.whatsapp-text strong { font-weight: 700; color: var(--g900); }
.whatsapp-text em { font-style: italic; }
.whatsapp-text del { text-decoration: line-through; }

.whatsapp-text code {
    font-family: 'Courier New', monospace;
    background: var(--g100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .85em;
    display: inline-block;
}

.card-content small { display: block; margin-top: 10px; color: var(--g400); font-size: .78rem; }

.card-footer {
    padding: .8rem 1.2rem 1.2rem;
    border-top: 1px solid var(--g100);
    margin-top: auto;
}

.card-footer > div { display: flex; gap: 8px; }

a.btn-detail, .btn-detail {
    flex: 1;
    text-align: center;
    background: var(--g100) !important;
    color: var(--g700) !important;
    padding: .6rem !important;
    text-decoration: none;
    border-radius: var(--r) !important;
    font-size: .85rem !important;
    font-weight: 600;
    transition: var(--tr);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

a.btn-detail:hover, .btn-detail:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.btn-wa {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    background: var(--success);
    color: var(--white) !important;
    padding: .6rem;
    text-decoration: none;
    border-radius: var(--r);
    font-weight: 600;
    font-size: .85rem;
    transition: var(--tr);
}

.btn-wa:hover {
    background: var(--success-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16,185,129,.3);
}

.priority-indicator {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    color: white;
    padding: 5px 14px;
    border-radius: var(--r-full);
    font-size: .7rem;
    z-index: 5;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.contact-limit-info { font-size: .78rem; color: var(--g500); padding: 0 1.2rem; margin-top: 4px; }

/* SPONSOR ADS */
.sponsor-ads {
    background: var(--white);
    border: 1px solid var(--g200);
    margin: 0 0 2rem;
    padding: 1.2rem 1.5rem;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    position: relative;
}

.sponsor-title {
    font-weight: 700;
    color: var(--g700);
    font-size: .85rem;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sponsor-title span { margin-left: 10px; font-size: .7rem; font-weight: 400; color: var(--g400); }

.sponsor-ads-carousel { position: relative; overflow: hidden; height: 95px; margin-bottom: 10px; }

.sponsor-ad-item {
    position: absolute;
    top: 0; left: 100%;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity .5s ease, transform .5s ease;
    transform: translateX(20px);
}

.sponsor-ad-item.active { position: relative; left: 0; opacity: 1; transform: translateX(0); }
.sponsor-ad-item.prev { left: -100%; opacity: 0; transform: translateX(-20px); }

.sponsor-ad {
    display: block;
    padding: 12px 25px;
    border-radius: var(--r);
    text-decoration: none;
    font-size: .85rem;
    height: 85px;
    box-sizing: border-box;
    transition: var(--tr);
    box-shadow: var(--sh-sm);
}

.sponsor-ad:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

.sponsor-text { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.sponsor-notaris, .sponsor-contractor, .sponsor-ac { background: white; border: 1px solid var(--g200); color: var(--g800); }
.sponsor-label { font-weight: 700; margin-bottom: 2px; font-size: .9rem; }
.sponsor-desc { font-size: .75rem; margin-top: 2px; }
.sponsor-contact { font-size: .7rem; color: var(--g500); margin-top: 2px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; margin-bottom: 5px; }

.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: var(--g300);
    cursor: pointer;
    transition: var(--tr);
}

.carousel-dot.active { background-color: var(--primary); transform: scale(1.3); }
.carousel-dot:hover { background-color: var(--g500); }

.carousel-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    padding: 0 5px;
}

.carousel-arrow {
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tr);
    font-size: 16px;
}

.carousel-arrow:hover { background: var(--primary); }

.pasang-iklan { font-size: .72rem; color: var(--g400); text-align: center; margin-top: 5px; }
.pasang-iklan a { color: var(--primary); text-decoration: none; font-weight: 500; }
.pasang-iklan a:hover { text-decoration: underline; }

/* PAGINATION */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: .5rem 1rem;
    border: 1px solid var(--g200);
    text-decoration: none;
    color: var(--g600);
    border-radius: var(--r);
    background: var(--white);
    font-size: .9rem;
    font-weight: 500;
    transition: var(--tr);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79,70,229,.25);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    margin: 10vh auto;
    padding: 2.5rem;
    width: 90%;
    max-width: 420px;
    border-radius: var(--r-xl);
    position: relative;
    box-shadow: var(--sh-2xl);
    animation: modalIn .3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close {
    position: absolute;
    right: 1.2rem; top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--g400);
    transition: var(--tr-f);
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover { background: var(--g100); color: var(--g700); }

.modal-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--g900); margin-bottom: 1.5rem; }

.modal-content input {
    width: 100%;
    padding: .8rem 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
    border: 2px solid var(--g200);
    border-radius: var(--r);
    font-size: .95rem;
    font-family: var(--font);
    transition: var(--tr);
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79,70,229,.1);
}

.modal-content button {
    width: 100%;
    padding: .8rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: var(--r);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    transition: var(--tr);
}

.modal-content button:hover { background: var(--primary-dark); }

#msg { text-align: center; margin-top: .5rem; color: var(--g500); font-size: .9rem; }

/* FOOTER */
.site-footer {
    background: var(--dark);
    color: var(--white);
    margin-top: 4rem;
    padding-top: 3.5rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: .8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-section p { color: var(--g400); line-height: 1.7; margin-bottom: 1.5rem; font-size: .9rem; }

.footer-links { display: flex; flex-direction: column; gap: .7rem; }

.footer-links a {
    color: var(--g400);
    text-decoration: none;
    transition: var(--tr);
    padding-left: 0;
    font-size: .9rem;
    display: inline-block;
    position: relative;
}

.footer-links a:hover { color: var(--white); padding-left: 10px; }

.contact-info p { display: flex; align-items: center; gap: 10px; margin-bottom: .8rem; }
.contact-info a { color: var(--white); text-decoration: none; transition: var(--tr-f); }
.contact-info a:hover { color: var(--primary-light); }

.social-links { display: flex; gap: 12px; margin-top: 1rem; }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.08);
    border-radius: var(--r);
    color: white;
    text-decoration: none;
    transition: var(--tr);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(79,70,229,.3);
}

.footer-bottom { background: rgba(0,0,0,.3); margin-top: 3rem; padding: 1.5rem 2rem; }

.footer-bottom-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright { color: var(--g500); font-size: .85rem; }
.legal-links { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.legal-links a { color: var(--g400); text-decoration: none; font-size: .85rem; transition: var(--tr-f); }
.legal-links a:hover { color: var(--white); }
.separator { color: var(--g600); font-size: .85rem; }

br { line-height: 0; content: ""; display: block; margin-bottom: .5em; }

.btn-delete {
    display: block;
    text-align: center;
    background: var(--danger);
    color: var(--white);
    padding: .5rem;
    text-decoration: none;
    border-radius: var(--r);
    font-weight: 600;
    transition: var(--tr);
}

.btn-delete:hover { background: #DC2626; transform: translateY(-1px); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .agent-cta-inner { grid-template-columns: 1fr; }
    .trust-section { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { padding: 10px 1rem; height: auto; min-height: 60px; flex-wrap: wrap; gap: 8px; }
    header nav { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
    header nav a { font-size: .8rem; padding: 6px 10px; }
    .hero-section { padding: 3rem 1.5rem 4rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: .95rem; }
    .hero-stats { gap: 1.5rem; }
    .ai-search-container { margin: -2rem 1rem 2rem; padding: 1.5rem; }
    .ai-examples { gap: .4rem; }
    .ai-example { font-size: .75rem; padding: .4rem .8rem; }
    .agent-cta-section { padding: 2rem 1.5rem; }
    .agent-benefits { grid-template-columns: 1fr; }
    .agent-cta-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .trust-section { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .listing-container { grid-template-columns: 1fr; }
    .info-box { flex-direction: column; text-align: center; }
    .logo-container h1 { display: none; }
    .footer-content { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
    .legal-links { justify-content: center; }
}

@media (max-width: 480px) {
    main { padding: 0 1rem 2rem; }
    header .logo-container { gap: 8px; }
    .site-logo { height: 36px; }
    .hero-section { padding: 2.5rem 1rem 3.5rem; margin: 0 -1rem 0; }
    .hero-title { font-size: 1.5rem; }
    .ai-search-container { margin: -1.5rem .5rem 1.5rem; padding: 1rem; }
    .trust-section { grid-template-columns: 1fr; }
    .trust-item { padding: 1rem; }
    .agent-cta-section { padding: 1.5rem; border-radius: var(--r-lg); }
    .agent-cta-content h2 { font-size: 1.4rem; }
    .agent-cta-stats { grid-template-columns: 1fr; }
    .stat-card { padding: 1rem; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-section { text-align: center; }
    .footer-section h3::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card { animation: fadeInUp .5s ease both; }
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4) { animation-delay: .15s; }
.card:nth-child(5) { animation-delay: .2s; }
.card:nth-child(6) { animation-delay: .25s; }

::selection { background: rgba(79,70,229,.2); color: var(--g900); }
