/* ================================================
   CH-MASTER — Mediterranean Warmth Design System
   CSS variables are overridden per-site via inline <style>
   using values from site-config.json theme object.
   ================================================ */

:root {
    /* Theme colors — overridden per-site via inline style block */
    --primary-color: #1a0a2e;
    --secondary-color: #3d1f6d;
    --primary-gradient: linear-gradient(135deg, #1a0a2e 0%, #2d1557 50%, #3d1f6d 100%);
    --accent-rose: #ff6b9d;
    --accent-rose-soft: #ffe0ec;
    --gold: #c9a84c;
    --gold-soft: #faf3e0;
    --light-bg: #f8f5fc;
    --card-bg: #ffffff;
    --card-bg-alt: #f3eff8;

    /* Semantic aliases (map theme vars to design tokens) */
    --text: #2E2A26;
    --text-muted: #7A706A;
    --text-light: #A89E96;
    --border: rgba(0, 0, 0, 0.07);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.09);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================================
   RESET & BASE
   ================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--light-bg);
    color: var(--text);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary-color); }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   NAVBAR (.site-nav)
   Cream background, sticky, thin border-bottom
   ================================================ */
.site-nav {
    background: var(--light-bg);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}
.site-nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.site-nav .nav-brand img {
    height: 28px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 0;
}
.nav-brand__flag {
    width: 20px;
    height: 14px;
    flex-shrink: 0;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.nav-actions .nav-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s var(--transition);
    position: relative;
}
.nav-actions .nav-btn:hover {
    background: var(--accent-rose-soft);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--accent-rose);
}
.nav-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-rose);
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--light-bg);
}

/* Conversations dropdown */
.conv-wrap { position: relative; }
.conv-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border);
    min-width: 300px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 1001;
}
.conv-panel.show { display: block; }
.conv-title {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--primary-color);
}
.conv-list { padding: 6px; }
.conv-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.86rem;
}
.conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
}
.conv-item:hover { background: var(--card-bg-alt); }
.conv-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 600; font-size: 0.86rem; color: var(--primary-color); }
.conv-last-msg { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 0.72rem; color: var(--text-light); }

/* ================================================
   HERO (.page-hero)
   Gradient bg, centered text, Playfair italic h1
   ================================================ */
.page-hero {
    background: var(--primary-gradient);
    padding: 32px 0 36px;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 10;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
                radial-gradient(ellipse at 20% 0%, rgba(0, 0, 0, 0.15) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.65rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.page-hero__sub {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 0.01em;
}

/* ================================================
   SECTION HEADINGS
   Playfair with underline bar, no icon
   ================================================ */
.section-heading {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    padding-bottom: 12px;
    position: relative;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--accent-rose);
    border-radius: 2px;
}

/* Section divider */
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* ================================================
   LISTING (HORIZONTAL CARDS)
   Image 140px left, content right
   ================================================ */
.listing {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.listing-card {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
    text-decoration: none;
    color: inherit;
}
a.listing-card,
a.listing-card:hover,
a.listing-card:visited {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.listing-card * { text-decoration: none; }
.listing-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.listing-card__img {
    width: 140px;
    min-width: 140px;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--card-bg-alt);
    flex-shrink: 0;
}
.listing-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--transition);
}
.listing-card:hover .listing-card__img img { transform: scale(1.05); }
.listing-card__body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.listing-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.listing-card__name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
}
.listing-card__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #16a34a;
}
.listing-card__status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
}
.listing-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.listing-card__tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 20px;
    background: var(--accent-rose-soft);
    color: var(--accent-rose);
}
.listing-card__tag--muted {
    background: var(--card-bg-alt);
    color: var(--text-muted);
}
.listing-card__excerpt {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
}
.listing-card__cta i { font-size: 0.72rem; }

/* ================================================
   HIGHLIGHTS ROW (Benefits)
   3-col grid, icon circles
   ================================================ */
.highlights-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.highlights-row .highlight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.highlight__icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: var(--accent-rose-soft);
    color: var(--accent-rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.highlight__body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}
.highlight__body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ================================================
   GUIDE CONTENT (direct, no card wrapper)
   ================================================ */
.guide-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 10px;
    margin-top: 24px;
}
.guide-content h3:first-child { margin-top: 0; }
.guide-content p {
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ================================================
   FAQ (.faq-section) with +/- toggles
   ================================================ */
.faq-section {}
.faq-entry {
    border-bottom: 1px solid var(--border);
    transition: border-left-color 0.2s var(--transition);
    border-left: 3px solid transparent;
    padding-left: 0;
}
.faq-entry:last-child { border-bottom: none; }
.faq-entry.open,
.faq-entry:hover {
    border-left-color: var(--accent-rose);
    padding-left: 16px;
}
.faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-color);
    gap: 16px;
    transition: color 0.2s;
    user-select: none;
}
.faq-trigger:hover { color: var(--secondary-color); }
.faq-trigger .faq-icon {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    flex-shrink: 0;
    transition: color 0.2s;
    width: 20px;
    text-align: center;
}
.faq-entry.open .faq-trigger .faq-icon { color: var(--accent-rose); }
.faq-body {
    display: none;
    padding: 0 0 16px 0;
}
.faq-body.show { display: block; }
.faq-body p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ================================================
   SEO CONTENT
   ================================================ */
.seo-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}
.seo-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 10px;
    margin-top: 20px;
}

/* ================================================
   FOOTER (.site-footer) — cream bg, 2-col
   ================================================ */
.site-footer {
    background: var(--light-bg);
    color: var(--text-muted);
    padding: 36px 0 28px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}
.footer-left h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 8px;
}
.footer-left p {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.6;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.footer-right h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 4px;
}
.footer-right a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-right a:hover { color: var(--primary-color); }
.footer-copyright {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.76rem;
    color: var(--text-light);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.86rem;
    font-family: var(--font-body);
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--transition);
    letter-spacing: 0.01em;
    line-height: 1;
}
.btn--primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.btn--primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}
.btn--accent {
    background: var(--accent-rose);
    color: #fff;
    border-color: var(--accent-rose);
}
.btn--accent:hover {
    filter: brightness(1.1);
    color: #fff;
}
.btn--outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--border);
}
.btn--outline:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.btn--ghost {
    background: transparent;
    color: var(--primary-color);
    border-color: transparent;
    padding: 11px 12px;
}
.btn--ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--secondary-color);
}

/* Tag pills */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.01em;
}
.tag i { font-size: 0.65rem; }
.tag--type { background: var(--accent-rose-soft); color: var(--accent-rose); }
.tag--privacy { background: var(--card-bg-alt); color: var(--text-muted); }

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #16a34a;
}
.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
}

/* ================================================
   PROFILE PAGE — INLINE IN profil.php
   Base support classes here
   ================================================ */
.p-page { max-width: 680px; margin: 0 auto; padding: 0 20px 120px; }

/* ================================================
   CHAT PAGE (.chat-view)
   ================================================ */
.chat-view {
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
}
.chat-page { background: var(--light-bg); }

/* Chat bar — gradient header */
.chat-bar {
    background: var(--primary-gradient);
    color: #fff;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.chat-bar__left { display: flex; align-items: center; gap: 12px; }
.chat-bar__back {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-decoration: none;
    padding: 4px;
    transition: color 0.2s;
}
.chat-bar__back:hover { color: #fff; }
.chat-bar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.chat-bar__info h3 { font-size: 0.9rem; font-weight: 600; margin: 0; }
.chat-bar__status {
    font-size: 0.76rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-bar__status--online { opacity: 1; color: #34d399; }
.chat-bar__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    display: inline-block;
}
.chat-bar__right { display: flex; align-items: center; gap: 8px; }
.chat-bar__btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s var(--transition);
}
.chat-bar__btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* Chat body */
.chat-body { flex: 1; overflow-y: auto; background: var(--light-bg); }
.chat-thread {
    padding: 28px 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}
.chat-welcome__icon {
    width: 64px;
    height: 64px;
    background: var(--accent-rose-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.chat-welcome__icon i { font-size: 1.6rem; color: var(--accent-rose); }
.chat-welcome h3 { font-size: 1rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.chat-welcome p { font-size: 0.86rem; color: var(--text-light); }

/* Messages — terracotta sent, white received */
.msg {
    display: flex;
    margin-bottom: 8px;
    max-width: 70%;
    animation: fadeIn 0.3s var(--transition);
}
.msg--out { margin-left: auto; }
.msg--in { margin-right: auto; }
.msg-content { padding: 10px 14px; border-radius: var(--radius); }
.msg--out .msg-content {
    background: var(--accent-rose);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg--in .msg-content {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.msg-content p { margin: 0; font-size: 0.86rem; line-height: 1.55; }
.msg-time { display: block; font-size: 0.68rem; margin-top: 3px; opacity: 0.5; text-align: right; }

/* Typing indicator */
.msg-content--typing { padding: 10px 16px !important; }
.typing-dots { display: flex; gap: 5px; align-items: center; height: 20px; }
.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typingBounce 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Voice & recording */
.msg-content--voice { padding: 8px 12px !important; }
.msg-content--voice audio { width: 220px; height: 36px; display: block; margin-bottom: 2px; }
.msg-content--recording { display: flex; align-items: center; gap: 8px; padding: 10px 14px !important; }
.recording-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-rose); animation: pulse 1s infinite; }
.msg-content--recording span { font-size: 0.82rem; color: var(--text-light); font-style: italic; }

/* Chat gate (locked CTA) */
.chat-gate {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    text-align: center;
}
.chat-gate p { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.chat-gate__btn {
    display: block;
    width: 100%;
    background: var(--accent-rose);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.25s var(--transition);
}
.chat-gate__btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.chat-gate__btn i { margin-right: 6px; }

/* Chat compose */
.chat-compose {
    padding: 10px 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}
.chat-compose__inner { display: flex; gap: 10px; }
.chat-compose__input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
    background: var(--light-bg);
}
.chat-compose__input:focus { border-color: var(--primary-color); background: var(--card-bg); }
.chat-compose__send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    transition: all 0.2s var(--transition);
    flex-shrink: 0;
}
.chat-compose__send:hover { background: var(--secondary-color); transform: scale(1.05); }

/* ================================================
   MODALS (.overlay)
   ================================================ */
.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}
.overlay__content {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 34px 28px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}
.overlay__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text);
    transition: all 0.2s;
}
.overlay__google:hover { background: var(--card-bg-alt); }
.overlay__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 600;
}
.overlay__divider::before,
.overlay__divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.overlay__email-wrap { position: relative; margin-bottom: 18px; }
.overlay__email-wrap input {
    width: 100%;
    padding: 13px 44px 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
}
.overlay__email-wrap input:focus { border-color: var(--accent-rose); }
.overlay__email-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-rose);
    font-size: 1.1rem;
}
.overlay__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    cursor: pointer;
    line-height: 1.45;
}
.overlay__consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-rose);
}
.overlay__consent a { color: var(--primary-color); text-decoration: underline; font-weight: 600; }
.overlay__submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-rose);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.25s var(--transition);
}
.overlay__submit:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ================================================
   NOTIFICATION TOAST
   ================================================ */
.message-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
    animation: fadeIn 0.4s var(--transition);
}
.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-hover);
    border-left: 3px solid var(--accent-rose);
    max-width: 340px;
}
.notification-icon { font-size: 1.3rem; }
.notification-text strong { display: block; color: var(--primary-color); font-size: 0.82rem; margin-bottom: 2px; }
.notification-text p { font-size: 0.76rem; color: var(--text-muted); margin: 0; }
.notification-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.notification-close:hover { color: var(--text-muted); }

/* ================================================
   FLOATING CHAT BUBBLE (.chat-float)
   ================================================ */
.chat-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    cursor: pointer;
    text-decoration: none;
}
.chat-float .float-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s var(--transition), box-shadow 0.25s var(--transition);
}
.chat-float:hover .float-circle {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.chat-float .float-circle i { font-size: 1.3rem; color: #fff; }
.chat-float .float-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--light-bg);
}

/* ================================================
   BREADCRUMBS (.trail)
   ================================================ */
.trail {
    padding: 16px 0 10px;
    font-size: 0.8rem;
    list-style: none;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--text-light);
}
.trail__link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}
.trail__link:hover { text-decoration: underline; color: var(--primary-color); }
.trail__sep { color: var(--text-light); }
.trail__current { color: var(--text-light); }

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

.listing-card {
    animation: fadeIn 0.45s var(--transition) both;
}
.listing-card:nth-child(1) { animation-delay: 0.05s; }
.listing-card:nth-child(2) { animation-delay: 0.1s; }
.listing-card:nth-child(3) { animation-delay: 0.15s; }
.listing-card:nth-child(4) { animation-delay: 0.2s; }
.listing-card:nth-child(5) { animation-delay: 0.25s; }
.listing-card:nth-child(6) { animation-delay: 0.3s; }

/* ================================================
   RESPONSIVE — 991px
   ================================================ */
@media (max-width: 991px) {
    .highlights-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================
   RESPONSIVE — 768px
   ================================================ */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .site-nav .container { height: 50px; }
    .page-hero { padding: 22px 0 26px; }
    .page-hero h1 { font-size: 1.3rem; }
    .listing-card__img {
        width: 120px;
        min-width: 120px;
    }
    .highlights-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-inner { flex-direction: column; gap: 20px; }
    .footer-right { align-items: flex-start; }
}

/* ================================================
   RESPONSIVE — 576px
   ================================================ */
@media (max-width: 576px) {
    .container { padding: 0 14px; }
    .page-hero h1 { font-size: 1.15rem; }
    .section-heading { font-size: 1.08rem; }
    .listing-card {
        flex-direction: column;
    }
    .listing-card__img {
        width: 100%;
        min-width: 100%;
        aspect-ratio: 16/9;
    }
    .listing-card__body {
        padding: 14px 16px;
    }
    .chat-thread { padding: 16px 12px; }
    .msg { max-width: 85%; }
    .p-page { padding: 0 14px 120px; }
}

/* ================================================
   LEGACY CLASS ALIASES
   For pages not yet migrated
   ================================================ */

/* Legacy navbar */
.navbar {
    background: var(--light-bg);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

/* Legacy hero */
.hero-section {
    background: var(--primary-gradient);
    padding: 32px 0 36px;
    text-align: center;
    color: #fff;
}
.hero-section h1 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.65rem;
    font-weight: 400;
    color: #fff;
}

/* Legacy chat container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
    background: var(--card-bg);
}

/* Legacy chat header */
.chat-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.chat-header-left { display: flex; align-items: center; gap: 12px; }
.chat-back { color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; text-decoration: none; padding: 4px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.chat-header-info h3 { font-size: 0.9rem; font-weight: 600; margin: 0; }
.chat-status { font-size: 0.76rem; opacity: 0.6; display: flex; align-items: center; gap: 4px; }
.chat-status.online { opacity: 1; color: #34d399; }

/* Legacy messages */
.message { display: flex; margin-bottom: 8px; max-width: 70%; animation: fadeIn 0.3s var(--transition); }
.message.sent { margin-left: auto; }
.message.received { margin-right: auto; }
.message-bubble { padding: 10px 14px; border-radius: var(--radius); }
.message.sent .message-bubble { background: var(--accent-rose); color: #fff; border-bottom-right-radius: 4px; }
.message.received .message-bubble { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.message-bubble p { margin: 0; font-size: 0.86rem; line-height: 1.55; }
.message-time { display: block; font-size: 0.68rem; margin-top: 3px; opacity: 0.5; text-align: right; }

/* Legacy chat compose */
.messages-wrapper { flex: 1; overflow-y: auto; background: var(--light-bg); }
.chat-messages { padding: 28px 20px; min-height: 100%; display: flex; flex-direction: column; }
.chat-input { padding: 10px 20px; background: var(--card-bg); border-top: 1px solid var(--border); }
.chat-input .input-group { display: flex; gap: 10px; }
.chat-input .form-control { flex: 1; border: 1.5px solid var(--border); border-radius: 24px; padding: 10px 18px; font-size: 0.88rem; font-family: var(--font-body); outline: none; background: var(--light-bg); }
.chat-input .form-control:focus { border-color: var(--primary-color); background: var(--card-bg); }
.btn-send { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-color); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.92rem; transition: all 0.2s; }
.btn-send:hover { background: var(--secondary-color); }

/* Legacy unlock modal */
.unlock-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3000; }
.unlock-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); }
.unlock-modal-content { position: relative; background: var(--card-bg); border-radius: var(--radius); padding: 34px 28px; max-width: 420px; width: 90%; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18); }

/* Legacy email modal */
.email-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2000; }
.email-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); }
.email-modal-content { position: relative; background: var(--card-bg); border-radius: var(--radius); max-width: 440px; width: 90%; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18); overflow: hidden; }

/* Legacy chat bottom CTA */
.chat-bottom-cta { background: var(--card-bg); border-top: 1px solid var(--border); padding: 16px 20px; text-align: center; }
.chat-bottom-cta p { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 12px; }
.chat-bottom-cta .btn-unlock { display: block; width: 100%; background: var(--accent-rose); color: #fff; border: none; padding: 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: all 0.25s; }
.chat-bottom-cta .btn-unlock:hover { filter: brightness(1.1); }

/* Legacy floating bubble */
.floating-chat-bubble { position: fixed; bottom: 24px; right: 24px; z-index: 1500; cursor: pointer; text-decoration: none; }
.floating-chat-bubble .bubble-circle { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-rose); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); transition: transform 0.25s; }
.floating-chat-bubble:hover .bubble-circle { transform: scale(1.08); }
.floating-chat-bubble .bubble-circle i { font-size: 1.3rem; color: #fff; }
.floating-chat-bubble .bubble-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--primary-color); color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--light-bg); }

/* Legacy typing/voice */
.typing-bubble-inner { padding: 10px 16px !important; }
.voice-bubble { padding: 8px 12px !important; }
.voice-bubble audio { width: 220px; height: 36px; display: block; margin-bottom: 2px; }
.recording-bubble { display: flex; align-items: center; gap: 8px; padding: 10px 14px !important; }
.recording-dot-anim { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-rose); animation: pulse 1s infinite; }
.recording-bubble span { font-size: 0.82rem; color: var(--text-light); font-style: italic; }
