/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8a;
    --primary-dark: #0f2640;
    --accent: #c9a86c;
    --accent-light: #e0c99a;
    --accent-dark: #b38f4a;
    --gold-gradient: linear-gradient(135deg, #c9a86c, #e0c99a);
    --bg: #f5f3ef;
    --card-bg: #ffffff;
    --text: #1e1e2a;
    --text-muted: #5a5a72;
    --text-light: #8a8a9e;
    --border: #e4e0d8;
    --shadow: 0 12px 40px rgba(26, 58, 92, 0.10);
    --shadow-hover: 0 20px 60px rgba(26, 58, 92, 0.16);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --nav-height: 76px;
    --facebook: #1877f2;
    --whatsapp: #25d366;
    --viber: #7360f2;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: var(--nav-height);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-header .badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-dark);
    background: rgba(201, 168, 108, 0.12);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
    border: 1px solid rgba(201, 168, 108, 0.20);
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-header h2 .highlight { color: var(--accent-dark); }

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary);
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 58, 92, 0.25);
}

.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 10px 30px rgba(201, 168, 108, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(228, 224, 216, 0.40);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
}

.logo span { color: var(--accent-dark); }

.logo .tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--gold-gradient);
    color: var(--primary-dark) !important;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 108, 0.30);
    color: var(--primary-dark) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary-dark);
    border-radius: 4px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 60px 0 0;
    background: linear-gradient(165deg, #f5f3ef 0%, #e8e3da 100%);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(201, 168, 108, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.hero-content h1 .highlight {
    color: var(--accent-dark);
    position: relative;
}

.hero-content h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(201, 168, 108, 0.25);
    border-radius: 4px;
    z-index: -1;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 8px;
    font-weight: 400;
}

.hero-content .location-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 58, 92, 0.06);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
    border: 1px solid rgba(26, 58, 92, 0.08);
}

.hero-content .location-tag i { color: var(--accent); }

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 2px solid rgba(201, 168, 108, 0.20);
}

.hero-stats .stat h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
}

.hero-stats .stat h3 .accent { color: var(--accent-dark); }

.hero-stats .stat p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(228, 224, 216, 0.40);
    transition: var(--transition);
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: var(--radius);
    background: var(--gold-gradient);
    opacity: 0.08;
    z-index: -1;
}

.hero-card:hover { transform: translateY(-6px); }

.hero-card .agent-avatar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-card .agent-avatar .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    flex-shrink: 0;
}

.hero-card .agent-avatar .name h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.hero-card .agent-avatar .name p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-card .agent-badge {
    display: inline-block;
    background: rgba(201, 168, 108, 0.12);
    color: var(--accent-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.hero-quote {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.hero-card .quick-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.hero-card .quick-info .info-item {
    background: var(--bg);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.7rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: inherit;
    cursor: pointer;
}

.hero-card .quick-info .info-item:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(26, 58, 92, 0.10);
    transform: translateY(-2px);
}

.hero-card .quick-info .info-item i {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 2px;
}

.hero-card .quick-info .info-item span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    word-break: break-all;
    line-height: 1.3;
}

.hero-card .quick-info .info-item .full-email {
    font-size: 0.6rem;
    word-break: break-all;
}

.hero-card .quick-info .info-item[href*="wa.me"] i { color: var(--whatsapp); }
.hero-card .quick-info .info-item[href*="viber"] i { color: var(--viber); }
.hero-card .quick-info .info-item[href*="facebook"] i { color: var(--facebook); }

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--card-bg); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    padding: 48px 40px;
    color: #fff;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.about-image .big-icon {
    font-size: 3.6rem;
    margin-bottom: 12px;
    color: var(--accent-light);
}

.about-image h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
}

.about-image p {
    opacity: 0.85;
    max-width: 360px;
    font-weight: 400;
    font-size: 1rem;
}

.about-image .years-badge {
    position: absolute;
    bottom: 32px;
    right: 32px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.about-image .years-badge strong {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    display: block;
    line-height: 1;
}

.about-image .years-badge-sub {
    font-size: 0.75rem;
    opacity: 0.8;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.about-text h2 .highlight { color: var(--accent-dark); }

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-text .contact-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.about-text .contact-badge .item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.about-text .contact-badge .item:hover {
    color: var(--primary);
}

.about-text .contact-badge .item i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 108, 0.10);
    border-radius: 50%;
    transition: var(--transition);
}

.about-text .contact-badge .item[href*="wa.me"] i {
    color: var(--whatsapp);
    background: rgba(37, 211, 102, 0.10);
}

.about-text .contact-badge .item[href*="viber"] i {
    color: var(--viber);
    background: rgba(115, 96, 242, 0.10);
}

.about-text .contact-badge .item[href*="facebook"] i,
.about-text .contact-badge .item.fb-icon-item i {
    color: #fff;
    background: var(--facebook);
}

/* ============================================================
   LISTINGS
   ============================================================ */
#listings { background: var(--bg); }

.listing-group {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.listing-group:hover {
    box-shadow: var(--shadow-hover);
}

.listing-group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.listing-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(201, 168, 108, 0.35);
}

.listing-group-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    flex: 1;
    min-width: 200px;
}

.listing-group-header .market-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-dark);
    background: rgba(201, 168, 108, 0.12);
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid rgba(201, 168, 108, 0.25);
    white-space: nowrap;
}

.listing-group-header .price-tier {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(26, 58, 92, 0.06);
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid rgba(26, 58, 92, 0.12);
    white-space: nowrap;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.listing-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 58, 92, 0.12);
    border-color: var(--accent);
}

.listing-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e8e3da 0%, #d8d2c4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.listing-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%);
    animation: listingShimmer 3s ease-in-out infinite;
}

@keyframes listingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.listing-placeholder i {
    font-size: 2.6rem;
    color: var(--accent);
    opacity: 0.55;
    z-index: 1;
}

.listing-placeholder span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    z-index: 1;
}

.listing-info {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.listing-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.listing-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.listing-info .listing-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-dark);
    margin-top: 6px;
}

.listing-info .listing-status i {
    font-size: 0.7rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.80);
    padding: 48px 0 28px;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand .logo {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.footer-brand .logo .logo-icon { background: var(--gold-gradient); }

.footer-brand p {
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.9rem;
    max-width: 280px;
    margin-top: 4px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.40) !important;
}

.footer-location {
    margin-top: 8px;
    font-size: 0.85rem;
}

.footer-location i { color: var(--accent); }

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.88rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-col a i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-col a[href*="wa.me"] i { color: var(--whatsapp); }
.footer-col a[href*="viber"] i { color: var(--viber); }
.footer-col a[href*="mailto"] i { color: var(--accent-light); }

.footer-col a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.50);
}

.footer-bottom .footer-socials { display: flex; gap: 12px; }

.footer-bottom .footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.60);
    transition: var(--transition);
}

.footer-bottom .footer-socials a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom .footer-socials a[href*="wa.me"]:hover {
    background: var(--whatsapp);
    color: #fff;
}

.footer-bottom .footer-socials a[href*="viber"]:hover {
    background: var(--viber);
    color: #fff;
}

.footer-bottom .footer-socials a[href*="facebook"]:hover {
    background: var(--facebook);
    color: #fff;
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--primary-dark);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 34px rgba(26, 58, 92, 0.35);
    z-index: 900;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.chat-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 18px 44px rgba(201, 168, 108, 0.45);
}

.chat-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #fff;
    font-family: 'Inter', sans-serif;
}

.chat-fab-badge.show { display: flex; }

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 600px;
    max-height: calc(100vh - 130px);
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(15, 38, 64, 0.30);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 899;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.96);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.chat-widget.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-widget-header {
    background: var(--primary-dark);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 3px solid var(--accent);
    flex-shrink: 0;
}

.chat-widget-header .cw-who {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.chat-widget-header .cw-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-widget-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-widget-header p {
    font-size: 0.7rem;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-widget-header .cw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
}

.cw-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.cw-close:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.cw-auth {
    flex: 1;
    padding: 24px 22px;
    overflow-y: auto;
}

.cw-tabs {
    display: flex;
    background: var(--bg);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 20px;
}

.cw-tabs button {
    flex: 1;
    padding: 9px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: var(--transition);
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.cw-tabs button.active {
    background: var(--primary);
    color: #fff;
}

.cw-field { margin-bottom: 12px; }

.cw-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.cw-field input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.88rem;
    background: var(--bg);
    outline: none;
    transition: var(--transition);
    color: var(--text);
    font-family: inherit;
}

.cw-field input:focus {
    border-color: var(--accent);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(201, 168, 108, 0.12);
}

.cw-primary {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cw-primary:hover { background: var(--primary-light); }
.cw-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.cw-err {
    background: rgba(231, 76, 60, 0.10);
    color: #c0392b;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 10px;
    display: none;
    border-left: 3px solid #e74c3c;
    align-items: center;
    gap: 8px;
}

.cw-err.show { display: flex; }

.cw-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cw-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 14px;
    background: linear-gradient(180deg, #f5f3ef 0%, #efece5 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.cw-messages::-webkit-scrollbar { width: 6px; }
.cw-messages::-webkit-scrollbar-thumb {
    background: #d4cfc0;
    border-radius: 3px;
}

.cw-msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    animation: cwFade 0.25s ease;
}

@keyframes cwFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.cw-msg.user { align-self: flex-end; align-items: flex-end; }
.cw-msg.admin { align-self: flex-start; align-items: flex-start; }

.cw-bubble {
    padding: 9px 13px;
    border-radius: 15px;
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cw-msg.user .cw-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.cw-msg.admin .cw-bubble {
    background: #fff;
    color: var(--text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.cw-msg .cw-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 3px;
    padding: 0 4px;
}

.cw-msg .cw-attach {
    margin-top: 5px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 240px;
    border: 1px solid var(--border);
    background: #fff;
}

.cw-msg .cw-attach img,
.cw-msg .cw-attach video {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
}

.cw-msg .cw-attach .cw-pdf {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
}

.cw-msg .cw-attach .cw-pdf i {
    color: #e74c3c;
    font-size: 1.4rem;
}

.cw-msg .cw-attach .cw-pdf span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cw-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 30px 16px;
}

.cw-empty i {
    font-size: 2.4rem;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 12px;
}

.cw-empty h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.cw-empty p {
    font-size: 0.8rem;
    max-width: 240px;
}

.cw-composer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 10px 12px;
    flex-shrink: 0;
}

.cw-attach-preview {
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border-radius: 10px;
    padding: 7px 11px;
    margin-bottom: 8px;
    font-size: 0.78rem;
}

.cw-attach-preview.show { display: flex; }

.cw-attach-preview .name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
}

.cw-attach-preview .rm {
    color: #c0392b;
    font-size: 0.95rem;
    padding: 3px;
    cursor: pointer;
    background: none;
    border: none;
}

.cw-row {
    display: flex;
    gap: 7px;
    align-items: flex-end;
}

.cw-attach-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.cw-attach-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.cw-composer textarea {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    resize: none;
    outline: none;
    max-height: 100px;
    line-height: 1.4;
    background: var(--bg);
    transition: var(--transition);
    color: var(--text);
    font-family: inherit;
    min-height: 40px;
}

.cw-composer textarea:focus {
    border-color: var(--accent);
    background: #fff;
}

.cw-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: var(--transition);
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.cw-send-btn:hover { transform: scale(1.05); }
.cw-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.cw-logout {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 12px;
    padding: 6px;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

.cw-logout:hover { color: #c0392b; }

.cw-toast {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--primary-dark);
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    border-left: 3px solid var(--accent);
    max-width: 80%;
    z-index: 10;
}

.cw-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cw-toast.err { border-left-color: #e74c3c; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-grid { gap: 40px; }
}

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content .subtitle { margin-left: auto; margin-right: auto; }
    .hero-content .location-tag { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image { align-items: center; text-align: center; }
    .about-image p { max-width: 100%; }
    .about-image .years-badge { position: static; margin-top: 16px; }
    .about-text .contact-badge { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .listing-group { padding: 26px 22px; }
    .listing-group-header h3 { font-size: 1.35rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px 40px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hamburger { display: flex; }
    .hero { min-height: auto; padding: 40px 0 60px; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .section-header h2 { font-size: 2.2rem; }
    .section { padding: 56px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-card { padding: 28px 20px; }
    .hero-card .quick-info { grid-template-columns: 1fr 1fr; }

    .listing-group { padding: 20px 16px; margin-bottom: 20px; }
    .listing-group-header { gap: 12px; margin-bottom: 18px; padding-bottom: 14px; }
    .listing-rank { width: 40px; height: 40px; font-size: 1.05rem; }
    .listing-group-header h3 { font-size: 1.2rem; min-width: 0; }
    .listing-group-header .market-tag,
    .listing-group-header .price-tier { font-size: 0.6rem; padding: 4px 10px; }
    .listing-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }

    .chat-widget {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 88px;
        height: 70vh;
        max-height: calc(100vh - 110px);
    }

    .chat-fab { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-stats .stat h3 { font-size: 1.6rem; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .section-header h2 { font-size: 1.8rem; }
    .about-image { padding: 32px 24px; min-height: 240px; }
    .about-image .big-icon { font-size: 2.8rem; }
    .hero-card .agent-avatar .avatar { width: 50px; height: 50px; font-size: 1.4rem; }
    .hero-card .quick-info .info-item .full-email { font-size: 0.55rem; }

    .listing-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .listing-placeholder i { font-size: 1.8rem; }
    .listing-placeholder span { font-size: 0.6rem; letter-spacing: 1px; }
    .listing-info { padding: 10px 12px 12px; }
    .listing-info h4 { font-size: 0.88rem; }
    .listing-info p { font-size: 0.7rem; }

    .chat-widget {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .chat-fab { width: 54px; height: 54px; font-size: 1.3rem; }
}