/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   DESIGN TOKENS — fluid + themeable
   ============================================================ */
:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8a;
    --primary-dark: #0f2640;
    --accent: #c9a86c;
    --accent-light: #e0c99a;
    --accent-dark: #b38f4a;
    --gold-gradient: linear-gradient(135deg, #c9a86c, #e0c99a);
    --facebook: #1877f2;
    --whatsapp: #25d366;
    --viber: #7360f2;

    --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);
    --surface-subtle: rgba(26, 58, 92, 0.06);
    --overlay-bg: rgba(255, 255, 255, 0.92);
    --overlay-bg-strong: rgba(255, 255, 255, 0.98);
    --hero-start: #f5f3ef;
    --hero-end: #e8e3da;
    --placeholder-start: #e8e3da;
    --placeholder-end: #d8d2c4;
    --chat-gradient-start: #f5f3ef;
    --chat-gradient-end: #efece5;
    --scrollbar-thumb: #d4cfc0;

    --fs-h1: clamp(2rem, 5vw + 1rem, 3.8rem);
    --fs-h2: clamp(1.7rem, 3.5vw + 0.6rem, 2.8rem);
    --fs-h3: clamp(1.05rem, 1.6vw + 0.5rem, 1.6rem);
    --fs-h4: clamp(0.92rem, 0.6vw + 0.75rem, 1.05rem);
    --fs-body: clamp(0.9rem, 0.25vw + 0.85rem, 1.05rem);
    --fs-nav: clamp(0.85rem, 0.2vw + 0.8rem, 0.9rem);
    --fs-small: clamp(0.76rem, 0.15vw + 0.72rem, 0.88rem);
    --fs-tiny: clamp(0.66rem, 0.1vw + 0.64rem, 0.72rem);

    --space-section: clamp(3rem, 6vw, 5rem);
    --space-container: clamp(1rem, 3vw, 1.5rem);
    --space-card: clamp(1.25rem, 3vw, 2rem);
    --gap-grid: clamp(0.85rem, 2vw, 1.25rem);
    --gap-tight: clamp(0.5rem, 1.2vw, 0.85rem);

    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --nav-height: 76px;

    --motion-shimmer-duration: 3s;
    --motion-progress-duration: 3s;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1419;
        --card-bg: #1a2332;
        --text: #ece8e0;
        --text-muted: #9aa3b2;
        --text-light: #6c7689;
        --border: #2a3547;
        --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
        --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.45);
        --surface-subtle: rgba(201, 168, 108, 0.08);
        --overlay-bg: rgba(15, 20, 25, 0.92);
        --overlay-bg-strong: rgba(15, 20, 25, 0.98);
        --hero-start: #0f1419;
        --hero-end: #131c26;
        --placeholder-start: #1e2836;
        --placeholder-end: #263241;
        --chat-gradient-start: #131c26;
        --chat-gradient-end: #0f1419;
        --scrollbar-thumb: #2a3547;
        --primary-dark: #05090f;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --motion-shimmer-duration: 0s;
        --motion-progress-duration: 0s;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --border: #8a8a9e;
        --text-muted: #3a3a4a;
    }
    .btn-outline { border-width: 3px; }
    .navbar { border-bottom-width: 2px; }
}

/* ============================================================
   GLOBAL BASE
   ============================================================ */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: var(--fs-body);
    padding-top: var(--nav-height);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-container);
    width: 100%;
}

.section { padding: var(--space-section) 0; }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.section-header .badge {
    display: inline-block;
    font-size: var(--fs-tiny);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-dark);
    background: rgba(201, 168, 108, 0.12);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(201, 168, 108, 0.20);
}

.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.section-header h2 .highlight { color: var(--accent-dark); }

.section-header p {
    color: var(--text-muted);
    font-size: var(--fs-body);
    font-weight: 400;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: clamp(0.75rem, 1.5vw, 0.9rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--fs-small);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary);
    color: #fff;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    text-align: center;
    min-height: 44px;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 58, 92, 0.25);
}

.btn:active { transform: translateY(-1px); }

.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: var(--overlay-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
    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);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.15rem, 1.5vw + 0.9rem, 1.5rem);
    font-weight: 700;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.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;
    flex-shrink: 0;
}

.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: clamp(1.2rem, 2.5vw, 2rem);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: var(--fs-nav);
    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: 0.6rem 1.2rem;
    border-radius: 50px;
    background: var(--gold-gradient);
    color: var(--primary-dark) !important;
    font-weight: 700;
    font-size: 0.78rem;
    transition: var(--transition);
    white-space: nowrap;
}

.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: 8px;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.hamburger:hover { background: var(--surface-subtle); }

.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: clamp(2.5rem, 5vw, 4rem) 0 0;
    background: linear-gradient(165deg, var(--hero-start) 0%, var(--hero-end) 100%);
    position: relative;
    overflow: hidden;
    min-height: clamp(600px, 85vh, 900px);
    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: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.hero-content h1 .highlight {
    color: var(--accent-dark);
    position: relative;
    display: inline-block;
}

.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: clamp(1rem, 1.2vw + 0.7rem, 1.2rem);
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hero-content .location-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-subtle);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.hero-content .location-tag i { color: var(--accent); }

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.hero-stats {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(201, 168, 108, 0.20);
    flex-wrap: wrap;
}

.hero-stats .stat h3 {
    font-size: clamp(1.4rem, 2vw + 0.9rem, 2rem);
    font-weight: 800;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.hero-stats .stat h3 .accent { color: var(--accent-dark); }

.hero-stats .stat p {
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin: 0.25rem 0 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: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    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;
}

@media (hover: hover) {
    .hero-card:hover { transform: translateY(-6px); }
}

.hero-card .agent-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero-card .agent-avatar .avatar {
    width: clamp(52px, 6vw, 64px);
    height: clamp(52px, 6vw, 64px);
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.4rem, 2vw, 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: clamp(1.1rem, 1vw + 0.85rem, 1.3rem);
    font-weight: 700;
    color: var(--primary-dark);
}

.hero-card .agent-avatar .name p {
    font-size: var(--fs-small);
    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: var(--fs-tiny);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.hero-quote {
    color: var(--text-muted);
    font-size: var(--fs-small);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.hero-card .quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-card .quick-info .info-item {
    background: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: var(--fs-tiny);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: inherit;
    cursor: pointer;
    min-height: 60px;
    border: 1px solid transparent;
}

@media (hover: hover) {
    .hero-card .quick-info .info-item:hover {
        background: var(--card-bg);
        box-shadow: 0 6px 20px rgba(26, 58, 92, 0.10);
        transform: translateY(-2px);
        border-color: var(--border);
    }
}

.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: var(--fs-tiny);
    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: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    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: clamp(2.4rem, 4vw, 3.6rem);
    margin-bottom: 0.75rem;
    color: var(--accent-light);
}

.about-image h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2vw + 0.8rem, 2rem);
    font-weight: 700;
}

.about-image p {
    opacity: 0.85;
    max-width: 360px;
    font-weight: 400;
    font-size: var(--fs-body);
    margin-top: 0.5rem;
}

.about-image .years-badge {
    position: absolute;
    bottom: clamp(1.25rem, 3vw, 2rem);
    right: clamp(1.25rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.about-image .years-badge strong {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-family: 'Playfair Display', serif;
    display: block;
    line-height: 1;
}

.about-image .years-badge-sub {
    font-size: var(--fs-tiny);
    opacity: 0.8;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.about-text h2 .highlight { color: var(--accent-dark); }

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: var(--fs-body);
}

.about-text .contact-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.about-text .contact-badge .item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: var(--fs-small);
    color: var(--text);
    transition: var(--transition);
    min-height: 44px;
}

.about-text .contact-badge .item:hover { color: var(--primary); }

.about-text .contact-badge .item i {
    color: var(--accent);
    font-size: 1.05rem;
    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);
    flex-shrink: 0;
}

.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: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: clamp(1rem, 2vw, 1.75rem);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

@media (hover: hover) {
    .listing-group:hover { box-shadow: var(--shadow-hover); }
}

.listing-group-header {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.listing-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 4vw, 46px);
    height: clamp(38px, 4vw, 46px);
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.2vw + 0.8rem, 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: var(--fs-h3);
    font-weight: 700;
    color: var(--primary-dark);
    flex: 1;
    min-width: 180px;
    line-height: 1.2;
}

.listing-group-header .market-tag {
    font-size: var(--fs-tiny);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-dark);
    background: rgba(201, 168, 108, 0.12);
    padding: 0.3rem 0.9rem;
    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: var(--surface-subtle);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: var(--gap-grid);
}

.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;
}

@media (hover: hover) {
    .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, var(--placeholder-start) 0%, var(--placeholder-end) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 0.5rem;
    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 var(--motion-shimmer-duration) ease-in-out infinite;
}

@keyframes listingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.listing-placeholder i {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--accent);
    opacity: 0.55;
    z-index: 1;
}

.listing-placeholder span {
    font-size: var(--fs-tiny);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    z-index: 1;
}

.listing-info {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.listing-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-h4);
    font-weight: 700;
    color: var(--primary-dark);
}

.listing-info p {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.4;
}

.listing-info .listing-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fs-tiny);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-dark);
    margin-top: 0.4rem;
}

.listing-info .listing-status i { font-size: 0.7rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.80);
    padding: clamp(2.5rem, 5vw, 3rem) 0 1.75rem;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

.footer-brand .logo {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.footer-brand .logo .logo-icon { background: var(--gold-gradient); }

.footer-brand p {
    color: rgba(255, 255, 255, 0.60);
    font-size: var(--fs-small);
    max-width: 280px;
    margin-top: 0.25rem;
}

.footer-tagline { color: rgba(255, 255, 255, 0.40) !important; }

.footer-location {
    margin-top: 0.5rem;
    font-size: var(--fs-small);
}

.footer-location i { color: var(--accent); }

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 0.85rem;
    font-size: var(--fs-small);
    color: #fff;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.60);
    font-size: var(--fs-small);
    padding: 0.25rem 0;
    transition: var(--transition);
    min-height: 32px;
}

.footer-col a i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.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: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.50);
}

.footer-bottom .footer-socials { display: flex; gap: 0.75rem; }

.footer-bottom .footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    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 FAB (floating action button)
   Adaptive size + safe-area aware
   ============================================================ */
.chat-fab {
    position: fixed;
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem));
    width: clamp(54px, 5vw, 68px);
    height: clamp(54px, 5vw, 68px);
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--primary-dark);
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    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;
}

@media (hover: hover) {
    .chat-fab:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 18px 44px rgba(201, 168, 108, 0.45);
    }
}

.chat-fab:active { transform: scale(0.96); }

.chat-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: #fff;
    font-size: clamp(0.6rem, 0.8vw, 0.72rem);
    font-weight: 700;
    min-width: clamp(20px, 2vw, 24px);
    height: clamp(20px, 2vw, 24px);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid var(--card-bg);
    font-family: 'Inter', sans-serif;
}

.chat-fab-badge.show { display: flex; }

/* ============================================================
   CHAT WIDGET
   Fluid width/height with clamp() + viewport units + safe areas.
   Grows on big screens, shrinks on small ones, and switches to
   full-screen on very small phones.
   ============================================================ */
.chat-widget {
    position: fixed;

    /* Adaptive position with safe-area insets */
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    bottom: max(6.5rem, calc(env(safe-area-inset-bottom, 0px) + 5.5rem));

    /* Adaptive size — fluid between sensible bounds */
    width: clamp(340px, 26vw, 420px);
    height: clamp(500px, 68vh, 660px);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);

    background: var(--card-bg);
    border-radius: clamp(16px, 1.5vw, 22px);
    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: clamp(0.7rem, 1.5vw, 0.9rem) clamp(0.9rem, 1.8vw, 1.15rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 3px solid var(--accent);
    flex-shrink: 0;
}

.chat-widget-header .cw-who {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.chat-widget-header .cw-avatar {
    width: clamp(36px, 3.5vw, 42px);
    height: clamp(36px, 3.5vw, 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: clamp(0.85rem, 1.2vw, 1rem);
    flex-shrink: 0;
}

.chat-widget-header h3 {
    font-size: clamp(0.85rem, 1vw + 0.7rem, 0.95rem);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-widget-header p {
    font-size: clamp(0.65rem, 0.8vw + 0.5rem, 0.72rem);
    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: clamp(32px, 3.5vw, 36px);
    height: clamp(32px, 3.5vw, 36px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.8rem, 1vw, 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: clamp(1rem, 2vw, 1.5rem) clamp(0.9rem, 1.8vw, 1.25rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cw-tabs {
    display: flex;
    background: var(--bg);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: clamp(0.9rem, 1.8vw, 1.25rem);
}

.cw-tabs button {
    flex: 1;
    padding: clamp(0.5rem, 1vw, 0.6rem);
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.78rem, 0.9vw + 0.6rem, 0.85rem);
    color: var(--text-muted);
    transition: var(--transition);
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    min-height: 40px;
}

.cw-tabs button.active {
    background: var(--primary);
    color: #fff;
}

.cw-field { margin-bottom: clamp(0.6rem, 1.2vw, 0.75rem); }

.cw-field label {
    display: block;
    font-size: clamp(0.66rem, 0.7vw + 0.55rem, 0.72rem);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.cw-field input {
    width: 100%;
    padding: clamp(0.6rem, 1.2vw, 0.7rem) clamp(0.75rem, 1.4vw, 0.9rem);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: clamp(0.82rem, 0.9vw + 0.65rem, 0.9rem);
    background: var(--bg);
    outline: none;
    transition: var(--transition);
    color: var(--text);
    font-family: inherit;
    min-height: 44px;
}

.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: clamp(0.65rem, 1.3vw, 0.75rem);
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: clamp(0.8rem, 0.9vw + 0.65rem, 0.88rem);
    transition: var(--transition);
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    min-height: 44px;
}

.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: clamp(0.5rem, 1vw, 0.65rem) clamp(0.6rem, 1.2vw, 0.8rem);
    border-radius: 8px;
    font-size: clamp(0.72rem, 0.8vw + 0.55rem, 0.8rem);
    font-weight: 500;
    margin-top: 0.6rem;
    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: clamp(0.85rem, 1.8vw, 1.15rem) clamp(0.7rem, 1.5vw, 0.9rem);
    background: linear-gradient(180deg, var(--chat-gradient-start) 0%, var(--chat-gradient-end) 100%);
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 1vw, 0.65rem);
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.cw-messages::-webkit-scrollbar { width: 6px; }
.cw-messages::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    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: clamp(0.5rem, 1vw, 0.6rem) clamp(0.7rem, 1.4vw, 0.85rem);
    border-radius: 15px;
    font-size: clamp(0.82rem, 0.8vw + 0.65rem, 0.88rem);
    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: var(--card-bg);
    color: var(--text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.cw-msg .cw-time {
    font-size: clamp(0.6rem, 0.6vw + 0.5rem, 0.68rem);
    color: var(--text-muted);
    margin-top: 3px;
    padding: 0 4px;
}

.cw-msg .cw-attach {
    margin-top: 5px;
    border-radius: 12px;
    overflow: hidden;
    max-width: min(240px, 75%);
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.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: 0.6rem 0.75rem;
    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: clamp(1rem, 3vw, 1.75rem) 1rem;
}

.cw-empty i {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.cw-empty h4 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.9rem, 1vw + 0.65rem, 1.05rem);
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.cw-empty p {
    font-size: clamp(0.72rem, 0.8vw + 0.55rem, 0.82rem);
    max-width: 240px;
}

.cw-composer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: clamp(0.5rem, 1vw, 0.6rem) clamp(0.6rem, 1.2vw, 0.75rem);
    padding-bottom: max(clamp(0.5rem, 1vw, 0.6rem), env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
}

.cw-attach-preview {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg);
    border-radius: 10px;
    padding: 0.4rem 0.7rem;
    margin-bottom: 0.5rem;
    font-size: clamp(0.72rem, 0.8vw + 0.55rem, 0.8rem);
}

.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: 4px;
    cursor: pointer;
    background: none;
    border: none;
}

.cw-row {
    display: flex;
    gap: 0.45rem;
    align-items: flex-end;
}

.cw-attach-btn {
    width: clamp(38px, 3.5vw, 42px);
    height: clamp(38px, 3.5vw, 42px);
    border-radius: 50%;
    background: var(--bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.9rem, 1vw, 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: clamp(0.55rem, 1.1vw, 0.65rem) clamp(0.75rem, 1.4vw, 0.9rem);
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: clamp(0.82rem, 0.8vw + 0.65rem, 0.88rem);
    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: var(--card-bg);
}

.cw-send-btn {
    width: clamp(38px, 3.5vw, 42px);
    height: clamp(38px, 3.5vw, 42px);
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.82rem, 0.9vw + 0.65rem, 0.92rem);
    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: clamp(0.66rem, 0.7vw + 0.5rem, 0.72rem);
    color: var(--text-muted);
    margin-top: 0.75rem;
    padding: 0.4rem;
    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: 0.6rem 1rem;
    border-radius: 8px;
    font-size: clamp(0.72rem, 0.8vw + 0.55rem, 0.8rem);
    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; }

/* ============================================================
   ADAPTIVE BEHAVIORS
   ============================================================ */

/* --- Touch devices: remove hover-only transforms --- */
@media (hover: none) {
    .btn:hover,
    .btn-outline:hover,
    .nav-cta:hover,
    .listing-card:hover,
    .hero-card:hover {
        transform: none;
    }
}

/* ============================================================
   CHAT WIDGET RESPONSIVE SIZING
   ============================================================ */

/* --- Extra large desktop: bigger, more comfortable panel --- */
@media (min-width: 1600px) {
    .chat-widget {
        width: clamp(400px, 25vw, 460px);
        height: clamp(560px, 72vh, 700px);
    }
}

/* --- Ultrawide monitors: roomier chat --- */
@media (min-width: 2000px) {
    .chat-widget {
        width: clamp(440px, 24vw, 500px);
        height: clamp(600px, 75vh, 760px);
    }
}

/* --- Laptop --- */
@media (max-width: 1200px) {
    .chat-widget {
        width: clamp(320px, 30vw, 400px);
        height: clamp(460px, 66vh, 620px);
    }
}

/* --- Tablet landscape / small laptop --- */
@media (max-width: 1024px) {
    .chat-widget {
        width: clamp(310px, 34vw, 380px);
        height: clamp(440px, 64vh, 580px);
    }
}

/* --- Tablet portrait / large phone --- */
@media (max-width: 900px) {
    .chat-widget {
        width: clamp(300px, 40vw, 370px);
        height: clamp(420px, 62vh, 560px);
    }
}

/* --- Large phone / phablet: nearly full width --- */
@media (max-width: 768px) {
    .chat-widget {
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        bottom: max(5.5rem, calc(env(safe-area-inset-bottom, 0px) + 5rem));
        width: auto;
        height: min(72vh, calc(100vh - 7rem));
        height: min(72vh, calc(100dvh - 7rem));
        max-width: none;
        max-height: calc(100vh - 7rem);
        max-height: calc(100dvh - 7rem);
        border-radius: 18px;
    }
}

/* --- Phone: edge to edge, taller --- */
@media (max-width: 600px) {
    .chat-widget {
        right: 0.5rem;
        left: 0.5rem;
        bottom: max(5rem, calc(env(safe-area-inset-bottom, 0px) + 4.5rem));
        height: min(78vh, calc(100vh - 6.5rem));
        height: min(78vh, calc(100dvh - 6.5rem));
        max-height: calc(100vh - 6.5rem);
        max-height: calc(100dvh - 6.5rem);
        border-radius: 16px;
    }
}

/* --- Small phone: full screen takeover --- */
@media (max-width: 480px) {
    .chat-widget {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-width: none;
        max-height: none;
        border-radius: 0;
        z-index: 950; /* above the FAB */
        transform-origin: bottom center;
        transform: translateY(100%);
    }

    .chat-widget.open {
        transform: translateY(0);
    }

    /* Hide the FAB while the full-screen chat is open */
    body:has(.chat-widget.open) .chat-fab {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.6);
    }
}

/* --- Landscape phone: side panel, full-height, right-aligned --- */
@media (max-height: 500px) and (orientation: landscape) {
    .chat-widget {
        top: auto;
        left: auto;
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        bottom: max(0.75rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem));
        width: clamp(340px, 45vw, 480px);
        height: calc(100vh - 1.5rem);
        height: calc(100dvh - 1.5rem);
        max-width: calc(100vw - 1.5rem);
        max-height: none;
        border-radius: 14px;
        transform-origin: bottom right;
        transform: translateY(20px) scale(0.96);
    }

    .chat-widget.open {
        transform: translateY(0) scale(1);
    }

    .chat-fab {
        bottom: max(0.75rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
    }
}

/* --- Very short viewports (regardless of width): compact chrome --- */
@media (max-height: 600px) {
    .chat-widget-header {
        padding: 0.6rem 0.9rem;
    }
    .chat-widget-header .cw-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .chat-widget-header h3 { font-size: 0.85rem; }
    .chat-widget-header p { font-size: 0.65rem; }
    .cw-composer { padding: 0.5rem 0.75rem; }
    .cw-messages { padding: 0.75rem 0.6rem; }
    .cw-auth { padding: 0.9rem; }
}

/* ============================================================
   LAYOUT RESPONSIVE (nav, hero, listings, footer)
   ============================================================ */

@media (max-width: 1024px) {
    .hero-grid { gap: 2.5rem; }
}

@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: 1rem; }
    .about-text .contact-badge { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 68px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--overlay-bg-strong);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2rem 1.5rem 2.5rem;
        gap: 1.25rem;
        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);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.6rem 0;
        width: 100%;
        text-align: center;
    }

    .hamburger { display: flex; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .listing-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    }
}

@media (max-width: 480px) {
    :root {
        --space-section: 2.75rem;
        --space-container: 1rem;
        --radius: 14px;
    }

    .hero-stats { gap: 1.25rem; }

    .listing-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .listing-info { padding: 0.6rem 0.7rem 0.75rem; }
    .listing-info p { font-size: 0.72rem; }

    .hero-card .quick-info { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .hero-card .quick-info .info-item { padding: 0.6rem 0.5rem; }
    .hero-card .quick-info .info-item .full-email { font-size: 0.55rem; }
}

@media (max-width: 360px) {
    .btn { font-size: 0.8rem; padding: 0.7rem 1.1rem; }
    .hero-buttons { gap: 0.5rem; }
    .listing-grid { grid-template-columns: 1fr; }
    .hero-card .quick-info { grid-template-columns: 1fr; }
}

@media (min-width: 1600px) {
    :root {
        --max-width: 1360px;
    }
    .hero { min-height: 80vh; }
}

@media (min-width: 2000px) {
    :root {
        --max-width: 1500px;
        --nav-height: 88px;
    }
    body { font-size: 1.05rem; }
    .listing-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (min-width: 2560px) {
    :root {
        --max-width: 1680px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .navbar,
    .hamburger,
    .chat-fab,
    .chat-widget,
    .hero-buttons,
    .footer-socials,
    .social-links {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        padding-top: 0;
    }

    .hero,
    .section {
        padding: 1rem 0;
        background: #fff !important;
        page-break-inside: avoid;
    }

    .hero-card,
    .listing-group,
    .listing-card {
        box-shadow: none !important;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    a { color: #000; text-decoration: underline; }
    .listing-placeholder { background: #eee; }
}