/* ==========================================================================
   Place In — shared design system (public site + agent portal)
   ========================================================================== */

:root {
    --navy-950: #0f1030;
    --navy-900: #14153b;
    --navy-800: #1b1c4d;
    --navy-700: #262862;
    --navy-100: #e7e8f6;
    --amber-500: #edbc6d;
    --amber-600: #d9a24e;
    --amber-100: #fbf1e0;
    --white: #ffffff;
    --ink-900: #14152b;
    --ink-700: #4a4b66;
    --ink-500: #7a7b96;
    --ink-300: #c3c4da;
    --ink-100: #eef0fa;
    --success: #1fa971;
    --danger: #e0483e;
    --warning: #edbc6d;
    --info: #3b6ee6;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-card: 0 4px 24px rgba(20, 21, 43, 0.08);
    --shadow-pop: 0 12px 40px rgba(20, 21, 43, 0.16);

    --container: 1180px;
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
    font-family: var(--font);
    color: var(--ink-900);
    background: var(--ink-100);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-pill);
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 600;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--amber-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--amber-600); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); }
.btn-outline { background: transparent; color: var(--navy-900); border: 1.5px solid var(--ink-300); }
.btn-outline:hover { border-color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; text-align: left; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--ink-300);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--ink-900);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px var(--amber-100);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { font-size: 12.5px; color: var(--ink-500); margin-top: 6px; }

/* ---------- Light-theme icon-prefixed field (forms/edit-listing style) ---------- */
.icon-field-wrap { position: relative; }
.icon-field-wrap .field-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 2;
    color: var(--ink-500); display: flex; pointer-events: none;
}
.icon-field-wrap .field-icon svg { width: 18px; height: 18px; }
.icon-field-wrap input, .icon-field-wrap select, .icon-field-wrap textarea { padding-left: 46px !important; }
.icon-field-wrap select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7b96' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }

.photo-preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.photo-preview-item { position: relative; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; }
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-item .remove-btn {
    position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--danger); color: var(--white); border: 2px solid var(--white); font-size: 12px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1;
}
.media-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.media-upload-btn {
    border: 1.5px dashed var(--ink-300); border-radius: var(--radius-md); padding: 14px; background: var(--white);
    display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left;
}
.media-upload-btn .ic { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--amber-100); color: var(--amber-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.media-upload-btn .ic svg { width: 18px; height: 18px; }
.media-upload-btn strong { display: block; font-size: 13.5px; }
.media-upload-btn span { font-size: 11.5px; color: var(--ink-500); }
.media-upload-btn .chev { margin-left: auto; color: var(--ink-300); }

.layout-plan-preview { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--ink-300); border-radius: var(--radius-md); padding: 12px 14px; margin-top: 10px; }
.layout-plan-preview .ic { width: 34px; height: 34px; border-radius: var(--radius-sm); background: #fdeceb; color: var(--danger); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 800; }
.layout-plan-preview .info { flex: 1; min-width: 0; font-size: 12.5px; }
.layout-plan-preview .info a { color: var(--info); font-weight: 600; }
.layout-plan-preview .remove-link { color: var(--danger); font-size: 12.5px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.field-error { font-size: 12.5px; color: var(--danger); margin-top: 6px; }

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 40px;
    max-width: 440px;
    margin: 0 auto;
}
.form-card h1 { margin: 0 0 6px; font-size: 26px; }
.form-card .subtitle { color: var(--ink-500); margin: 0 0 28px; font-size: 14.5px; }
.form-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--ink-500); }
.form-alt a { color: var(--amber-600); font-weight: 600; }

.alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
}
.alert-error { background: #fdeceb; color: var(--danger); }
.alert-success { background: #e7f8f1; color: var(--success); }

/* ---------- Top navbar (public site) ---------- */
.navbar {
    background: var(--navy-950);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.navbar .logo { display: flex; align-items: center; }
.navbar .logo img { height: 26px; width: auto; display: block; }
.navbar nav { display: flex; align-items: center; gap: 28px; }
.navbar nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-300); }
.navbar nav a.active, .navbar nav a:hover { color: var(--white); }
.navbar .actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
    color: var(--white);
    padding: 72px 0 100px;
    text-align: center;
}
.hero h1 { font-size: 42px; margin: 0 0 14px; line-height: 1.15; }
.hero h1 span { color: var(--amber-500); }
.hero p { color: var(--ink-300); font-size: 17px; max-width: 560px; margin: 0 auto 34px; }

.search-bar {
    background: var(--white);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-pop);
    padding: 8px;
    display: flex;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
}
.search-bar input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: var(--radius-pill);
}
.search-bar input:focus { outline: none; }

.country-chips { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.country-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: var(--white);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 500;
}
.country-chip:hover { background: rgba(255,255,255,0.16); }

/* ---------- Filters bar ---------- */
.filters-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 20px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: -56px auto 40px;
    max-width: var(--container);
    position: relative;
    z-index: 5;
}
.filters-bar .field { margin-bottom: 0; min-width: 150px; flex: 1; }

/* ---------- Section headings ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 22px; }
.section-head h2 { font-size: 24px; margin: 0; }
.section-head a { color: var(--amber-600); font-weight: 600; font-size: 14px; }

/* ---------- Property cards ---------- */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}
.property-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
}
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.property-card .thumb {
    height: 190px;
    background: var(--navy-100) center/cover no-repeat;
    position: relative;
}
.property-card .badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--amber-500); color: var(--navy-950);
    font-size: 11.5px; font-weight: 700; text-transform: uppercase;
    padding: 5px 10px; border-radius: var(--radius-pill);
}
.save-btn {
    position: absolute; top: 10px; right: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: none;
    display: flex; align-items: center; justify-content: center;
}
.save-btn .ic { width: 17px; height: 17px; color: var(--navy-900); }
.save-btn.saved .ic { color: var(--danger); }
.save-btn.saved .ic svg { fill: currentColor; }
.property-card .body { padding: 16px 18px 20px; }
.property-card .price { font-size: 19px; font-weight: 700; color: var(--navy-900); }
.property-card .title { font-size: 15px; font-weight: 600; margin: 4px 0 6px; }
.property-card .loc { font-size: 13px; color: var(--ink-500); margin-bottom: 10px; }
.property-card .meta { display: flex; gap: 14px; font-size: 13px; color: var(--ink-700); border-top: 1px solid var(--ink-100); padding-top: 12px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-500); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-950); color: var(--ink-300); margin-top: 80px; padding: 48px 0 28px; font-size: 13.5px; }
footer.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

/* ---------- Auth pages ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
    padding: 40px 20px;
}
.auth-page .brand { text-align: center; margin-bottom: 26px; }
.auth-page .brand a { display: inline-flex; }
.auth-page .brand img { height: 32px; width: auto; display: block; }

/* ---------- Full-bleed dark auth screen (app-matched) ---------- */
.auth-dark {
    min-height: 100vh; background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
    color: var(--white); padding: 20px 24px 40px;
}
.auth-dark-inner { max-width: 440px; width: 100%; margin: 0 auto; }
.auth-dark-back {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: var(--white); margin-bottom: 12px;
}
.auth-dark-back svg { width: 18px; height: 18px; }
.auth-dark-brand { text-align: center; margin: 8px 0 36px; }
.auth-dark-brand .tagline { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.auth-dark-brand img { height: 40px; width: auto; margin: 0 auto; display: block; }
.auth-dark h1 { font-size: 26px; margin: 0 0 6px; }
.auth-dark .subtitle { color: rgba(255,255,255,0.65); font-size: 14.5px; margin: 0 0 28px; }
.auth-dark .field label { color: rgba(255,255,255,0.85); }
.auth-dark .field input {
    background: var(--ink-100); border: none; color: var(--ink-900); padding: 15px 16px;
}
.auth-dark .field input:focus { box-shadow: 0 0 0 3px rgba(237,188,109,0.4); }
.auth-dark .password-field { position: relative; }
.auth-dark .password-field input { padding-right: 46px; }
.auth-dark .password-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--ink-500); display: flex; cursor: pointer;
}
.auth-dark .password-toggle svg { width: 20px; height: 20px; }
.auth-dark-row { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 20px; font-size: 14px; }
.auth-dark-remember { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); cursor: pointer; }
.auth-dark-remember input { width: 17px; height: 17px; accent-color: var(--amber-500); cursor: pointer; }
.auth-dark-row a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.auth-dark-terms { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-bottom: 22px; line-height: 1.5; }
.auth-dark-terms a { color: rgba(255,255,255,0.8); }
.auth-dark-divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 28px 0 22px; }
.auth-dark-alt { text-align: center; }
.auth-dark-alt p { color: rgba(255,255,255,0.65); font-size: 14px; margin: 0 0 14px; }

.auth-dark .field.icon-field .icon-input-wrap { position: relative; }
.auth-dark .field.icon-field .field-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 2;
    color: var(--ink-500); display: flex; pointer-events: none;
}
.auth-dark .field.icon-field .field-icon svg { width: 18px; height: 18px; }
.auth-dark .field.icon-field input { padding-left: 46px; }

.auth-dark .field .phone-field {
    position: relative; display: flex; align-items: center; background: var(--ink-100);
    border-radius: var(--radius-sm); overflow: visible;
}
.auth-dark .field .phone-field input {
    border: none; background: none; flex: 1; min-width: 0; padding: 15px 16px 15px 10px;
    font-size: 15px; color: var(--ink-900);
}
.auth-dark .field .phone-field input:focus { outline: none; }
.phone-code-btn {
    display: flex; align-items: center; gap: 6px; background: none; border: none;
    padding: 15px 12px; font-size: 15px; color: var(--ink-900); cursor: pointer; flex-shrink: 0;
    border-right: 1.5px solid var(--ink-300);
}
.phone-code-btn .flag { font-size: 17px; }
.phone-code-btn svg { width: 14px; height: 14px; color: var(--ink-500); }
.phone-code-menu {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
    background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-pop);
    max-height: 240px; overflow-y: auto; min-width: 220px; padding: 6px;
}
.phone-code-menu.open { display: block; }
.phone-code-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
    background: none; border: none; text-align: left; font-size: 14px; color: var(--ink-900);
    border-radius: var(--radius-sm); cursor: pointer;
}
.phone-code-menu button:hover { background: var(--ink-100); }
.phone-code-menu .flag { font-size: 16px; }
.phone-code-menu .dial { color: var(--ink-500); margin-left: auto; }

.auth-dark-check {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; font-size: 14px;
    color: rgba(255,255,255,0.85); cursor: pointer;
}
.auth-dark-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--amber-500); cursor: pointer; flex-shrink: 0; }
.auth-dark-check a { color: var(--amber-500); font-weight: 600; }

/* ---------- Centered confirm dialog (app-matched) ---------- */
.confirm-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.confirm-backdrop.open { display: flex; }
.confirm-card { background: #3c3c3f; color: var(--white); border-radius: var(--radius-md); padding: 24px; max-width: 340px; width: 100%; box-shadow: var(--shadow-pop); }
.confirm-card h3 { margin: 0 0 12px; font-size: 19px; }
.confirm-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.85); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 20px; margin-top: 22px; }
.confirm-actions button, .confirm-actions a {
    background: none; border: none; color: #4fd1e0; font-size: 14px; font-weight: 700;
    letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; padding: 4px;
}

/* ---------- Steps / onboarding ---------- */
.step-page { min-height: 100vh; background: var(--navy-950); color: var(--white); display: flex; flex-direction: column; }
.step-progress { height: 4px; background: var(--navy-700); }
.step-progress-fill { height: 100%; background: var(--amber-500); transition: width .3s ease; }
.step-body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 480px; margin: 0 auto; padding: 40px 24px; width: 100%; }
.step-body h2 { font-size: 24px; margin-bottom: 8px; }
.step-body .step-count { color: var(--ink-300); font-size: 13px; margin-bottom: 18px; }
.option-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.option-item {
    background: var(--navy-800);
    border: 1.5px solid var(--navy-700);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: var(--white);
}
.option-item.selected { border-color: var(--amber-500); background: rgba(245,166,35,0.12); }
.step-actions { display: flex; justify-content: space-between; margin-top: 24px; }

/* ---------- Detail page ---------- */
.hero-wrap { position: relative; }
.hero-back-btn, .hero-save-btn {
    position: absolute; top: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; border: none;
}
.hero-back-btn { left: 16px; background: rgba(15,16,48,0.55); color: var(--white); }
.hero-save-btn { right: 16px; background: rgba(255,255,255,0.92); color: var(--navy-950); }
.hero-save-btn.saved { color: var(--danger); }
.hero-save-btn.saved .ic svg { fill: currentColor; }
.hero-back-btn .ic svg, .hero-save-btn .ic svg { width: 18px; height: 18px; }

.detail-hero { height: 340px; background: var(--navy-100) center/cover no-repeat; position: relative; }
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; height: 420px; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }

.detail-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 340px; -ms-overflow-style: none; scrollbar-width: none; }
.detail-carousel::-webkit-scrollbar { display: none; }
.detail-carousel img { flex: 0 0 100%; width: 100%; height: 340px; object-fit: cover; scroll-snap-align: start; }

.photo-count-badge {
    position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 5;
    background: rgba(15,16,48,0.65); color: var(--white); font-size: 12.5px; font-weight: 600;
    padding: 6px 14px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 6px;
}
.photo-count-badge .ic svg { width: 14px; height: 14px; }
.price-badge-float {
    position: absolute; left: 16px; bottom: 16px; z-index: 5;
    background: var(--amber-500); color: var(--navy-950); font-size: 17px; font-weight: 800;
    padding: 8px 16px; border-radius: var(--radius-pill);
}
.detail-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 5px; }
.detail-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.detail-dots span.on { background: var(--white); width: 16px; border-radius: var(--radius-pill); }

.detail-carousel-arrow {
    display: flex; position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--navy-950);
    align-items: center; justify-content: center; border: none; cursor: pointer; box-shadow: var(--shadow-card);
}
.detail-carousel-arrow.prev { left: 12px; }
.detail-carousel-arrow.next { right: 12px; }
.detail-carousel-arrow svg { width: 18px; height: 18px; }
.detail-carousel-arrow.hidden { display: none !important; }

/* On wider screens, keep the hero and the content column the same contained width
   instead of the photo stretching full-bleed against a narrow centered column below. */
@media (min-width: 900px) {
    .hero-wrap { max-width: 960px; margin: 20px auto 0; border-radius: var(--radius-lg); overflow: hidden; }
    .app-page-body.detail-page-body { max-width: 960px; }
    .detail-carousel, .detail-carousel img, .detail-hero { height: 480px; }
    .detail-carousel-arrow { width: 44px; height: 44px; }
    .detail-carousel-arrow.prev { left: 16px; }
    .detail-carousel-arrow.next { right: 16px; }
    .detail-carousel-arrow svg { width: 20px; height: 20px; }
}

.detail-main h1 { font-size: 24px; margin: 0 0 6px; }
.detail-main .loc { color: var(--ink-500); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.detail-main .loc .ic svg { width: 15px; height: 15px; flex-shrink: 0; }
.detail-stats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); margin-bottom: 20px; }
.price-note { display: flex; gap: 12px; align-items: flex-start; background: #f8f4e8; border: 1px solid #efe6cf; border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 16px; }
.price-note .ic { color: var(--ink-500); display: flex; flex-shrink: 0; margin-top: 2px; }
.price-note .ic svg { width: 16px; height: 16px; }
.price-note p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-700); }
.detail-stats span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-700); font-weight: 600; }
.detail-stats .ic svg { width: 16px; height: 16px; color: var(--ink-500); }

.agent-link-card {
    display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-card); padding: 14px 16px; margin-bottom: 16px;
}
.agent-link-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink-300); flex-shrink: 0; }
.agent-link-card .info { flex: 1; min-width: 0; }
.agent-link-card .info strong { display: block; font-size: 14px; }
.agent-link-card .info span { font-size: 12.5px; color: var(--ink-500); }
.agent-link-card .chevron { color: var(--ink-300); flex-shrink: 0; }
.agent-link-card .chevron svg { width: 18px; height: 18px; }

.action-row { display: flex; gap: 8px; margin-bottom: 12px; }
.action-row .btn { flex: 1; min-width: 0; padding: 13px 14px; font-size: 14.5px; gap: 6px; }
.action-row .btn .ic svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1fb959; }
.btn-pale-amber { background: var(--amber-100); color: var(--amber-600); display: flex; align-items: center; gap: 10px; }
.btn-pale-amber .chev { margin-left: auto; color: var(--amber-600); }
.btn-pale-danger { background: #fdeceb; color: var(--danger); }

/* ---------- Agent profile (photo-hero style) ---------- */
.profile-hero {
    background: linear-gradient(155deg, var(--navy-800), var(--navy-950));
    color: var(--white); position: relative;
}
.profile-hero-inner { max-width: 640px; margin: 0 auto; padding: 18px 20px 54px; }
.profile-hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.profile-hero-top .back-btn {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white);
}
.profile-hero-top .back-btn svg { width: 18px; height: 18px; }
.profile-hero-top h1 { font-size: 17px; margin: 0; font-weight: 700; }
.profile-hero-top .overflow-menu-wrap { position: relative; margin-left: auto; }
.profile-hero-top .overflow-menu-btn {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); border: none;
}
.profile-hero-top .overflow-menu-btn svg { width: 20px; height: 20px; }
.overflow-menu {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
    background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-pop);
    min-width: 210px; padding: 6px;
}
.overflow-menu.open { display: block; }
.overflow-menu a {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
    text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-900);
    border-radius: var(--radius-sm);
}
.overflow-menu a:hover { background: var(--ink-100); }
.overflow-menu a .ic { color: var(--ink-500); display: flex; flex-shrink: 0; }
.overflow-menu a .ic svg { width: 18px; height: 18px; }
.profile-id-row { display: flex; align-items: flex-end; gap: 16px; }
.profile-avatar-ring {
    width: 84px; height: 84px; border-radius: 50%; background: var(--amber-500);
    border: 3px solid rgba(255,255,255,0.85); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: var(--shadow-pop); font-size: 28px; font-weight: 800; color: var(--navy-950);
    position: relative;
}
.avatar-edit-badge {
    position: absolute; bottom: -2px; right: -2px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--navy-950); color: var(--white); border: 2px solid var(--white);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.avatar-edit-badge svg { width: 14px; height: 14px; }
.profile-id-row h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.profile-id-row .agency { margin: 0 0 9px; color: rgba(255,255,255,0.75); font-size: 13.5px; }
.elite-pill {
    display: inline-flex; align-items: center; gap: 5px; background: var(--amber-500); color: var(--navy-950);
    font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill);
}

.profile-sheet { background: var(--ink-100); border-radius: 24px 24px 0 0; margin-top: -34px; position: relative; padding: 22px 20px 0; }

.stat-bar-dark { background: var(--navy-950); border-radius: var(--radius-lg); display: flex; color: var(--white); padding: 18px 4px; margin-bottom: 18px; }
.stat-bar-dark .stat-item { flex: 1; text-align: center; padding: 0 6px; }
.stat-bar-dark .stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,0.15); }
.stat-bar-dark .ic { display: inline-flex; margin-bottom: 6px; color: var(--amber-500); }
.stat-bar-dark .ic svg { width: 19px; height: 19px; }
.stat-bar-dark .value { font-size: 19px; font-weight: 800; }
.stat-bar-dark .label { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }

.info-box-dark { background: var(--navy-950); color: var(--white); border-radius: var(--radius-md); padding: 15px 16px; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.info-box-dark .info-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.9); }
.info-box-dark .info-row .ic { color: var(--amber-500); flex-shrink: 0; display: flex; }
.info-box-dark .info-row .ic svg { width: 15px; height: 15px; }

.overview-panel { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 20px; margin: 20px 0; }
.overview-panel h3 { margin: 0 0 14px; font-size: 15.5px; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; }
.overview-grid div { border-top: 1px dashed var(--ink-300); padding-top: 10px; }
.overview-grid div:nth-child(-n+3) { border-top: none; padding-top: 0; }
.overview-grid label { display: block; font-size: 11.5px; color: var(--ink-500); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .02em; }
.overview-grid strong { font-size: 14px; text-transform: capitalize; }

.thumb-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; }
.thumb-strip img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }

/* ---------- Calendar / booking ---------- */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 18px 0; }
.calendar-grid .day-label { text-align: center; font-size: 11px; color: var(--ink-500); font-weight: 700; }
.calendar-grid .day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 13.5px; background: var(--ink-100); color: var(--ink-700);
}
.calendar-grid .day.selected { background: var(--amber-500); color: var(--navy-950); font-weight: 700; }
.calendar-grid .day.disabled { opacity: .3; }
.time-slots { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.time-slot { padding: 10px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--ink-300); font-size: 13.5px; }
.time-slot.selected { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.success-panel { text-align: center; max-width: 420px; margin: 60px auto; }
.success-panel .icon { width: 74px; height: 74px; border-radius: 50%; background: var(--success); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 20px; }

/* ---------- Chat ---------- */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 68px); }
.chat-list { border-right: 1px solid var(--ink-100); overflow-y: auto; background: var(--white); }
.chat-list-item { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ink-100); }
.chat-list-item:hover, .chat-list-item.active { background: var(--ink-100); }
.chat-list-item .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink-300); flex-shrink: 0; }
.chat-list-item .info { flex: 1; min-width: 0; }
.chat-list-item .info strong { font-size: 14px; }
.chat-list-item .info p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber-500); }

.chat-thread { display: flex; flex-direction: column; background: var(--ink-100); }
.chat-thread-head { background: var(--white); padding: 16px 24px; border-bottom: 1px solid var(--ink-100); font-weight: 600; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.msg-bubble { max-width: 60%; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14.5px; word-break: break-word; }
.msg-bubble.mine { align-self: flex-end; background: var(--navy-900); color: var(--white); }
.msg-bubble.theirs { align-self: flex-start; background: var(--white); }
.msg-bubble .msg-meta { display: block; font-size: 11px; opacity: 0.6; margin-top: 4px; text-align: right; }
.msg-bubble.has-media { padding: 4px; }
.msg-bubble.has-media .msg-meta { padding: 4px 8px 2px; }
.msg-image-link { display: block; }
.msg-image { display: block; max-width: 260px; max-height: 260px; width: 100%; object-fit: cover; border-radius: calc(var(--radius-md) - 4px); }
.msg-file {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-width: 200px;
    color: inherit; border-radius: calc(var(--radius-md) - 4px);
}
.msg-file .ic { width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-bubble.theirs .msg-file .ic { background: var(--ink-100); color: var(--ink-700); }
.msg-file .name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-file .open-ic { flex-shrink: 0; opacity: 0.7; display: flex; }
.msg-file .open-ic svg { width: 16px; height: 16px; }
.msg-voice { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; }
.msg-voice .play-btn {
    width: 34px; height: 34px; border-radius: 50%; background: var(--amber-500); color: var(--navy-950);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: none; cursor: pointer;
}
.msg-voice .play-btn svg { width: 15px; height: 15px; }
.msg-voice .mic-ic { display: flex; opacity: 0.65; flex-shrink: 0; }
.msg-voice .mic-ic svg { width: 15px; height: 15px; }
.msg-voice .label { font-size: 13.5px; font-weight: 600; }
.msg-voice .duration { font-size: 12.5px; opacity: 0.7; margin-left: 2px; }
.chat-input-row { display: flex; gap: 10px; padding: 16px 24px; background: var(--white); border-top: 1px solid var(--ink-100); }
.chat-input-row input { flex: 1; border: 1.5px solid var(--ink-300); border-radius: var(--radius-pill); padding: 12px 18px; }

/* ---------- Dashboard shell (agent + admin) ---------- */
.dash-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.dash-sidebar { background: var(--navy-950); color: var(--white); padding: 26px 18px; display: flex; flex-direction: column; }
.dash-sidebar .logo { padding: 0 10px 30px; display: flex; align-items: center; }
.dash-sidebar .logo img { height: 22px; width: auto; display: block; }
.dash-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink-300); font-weight: 500; }
.ic { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; vertical-align: -4px; }
.ic svg { width: 18px; height: 18px; stroke: currentColor; }
.dash-search .ic { width: 16px; height: 16px; color: var(--ink-500); vertical-align: -3px; }
.dash-search .ic svg { width: 16px; height: 16px; }
.btn .ic { width: 16px; height: 16px; }
.btn .ic svg { width: 16px; height: 16px; }
.dash-nav a:hover { background: var(--navy-800); color: var(--white); }
.dash-nav a.active { background: var(--amber-500); color: var(--navy-950); font-weight: 700; }
.dash-sidebar .profile-card { display: flex; align-items: center; gap: 10px; padding: 14px 10px; border-top: 1px solid var(--navy-700); margin-top: 10px; }
.dash-sidebar .profile-card .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-700); }
.dash-sidebar .profile-card strong { display: block; font-size: 13.5px; }
.dash-sidebar .profile-card span { font-size: 11.5px; color: var(--ink-300); }

.dash-main { padding: 30px 36px 60px; }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dash-topbar h1 { font-size: 24px; margin: 0 0 4px; }
.dash-topbar p { margin: 0; color: var(--ink-500); font-size: 14px; }
.dash-search { background: var(--white); border-radius: var(--radius-pill); padding: 10px 18px; border: 1px solid var(--ink-300); display: flex; align-items: center; gap: 8px; min-width: 260px; }
.dash-search input { border: none; outline: none; flex: 1; background: transparent; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.kpi-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 20px; }
.kpi-card .label { font-size: 13px; color: var(--ink-500); margin-bottom: 8px; }
.kpi-card .value { font-size: 26px; font-weight: 800; }
.kpi-card .delta { font-size: 12.5px; color: var(--success); margin-top: 6px; }

.dash-grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 22px; }
.panel h3 { margin: 0 0 16px; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; }
.panel h3 .tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--ink-100); color: var(--ink-700); }

.attention-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--ink-100); font-size: 14px; }
.attention-row:last-child { border-bottom: none; }
.status-pill { font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); }
.status-pill.danger { background: #fdeceb; color: var(--danger); }
.status-pill.info { background: #e8effd; color: var(--info); }
.status-pill.success { background: #e7f8f1; color: var(--success); }
.status-pill.warning { background: var(--amber-100); color: var(--amber-600); }

.quick-action { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.quick-action.primary { background: var(--amber-100); color: var(--amber-600); }
.quick-action:not(.primary) { background: var(--ink-100); }

.activity-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ink-100); font-size: 13.5px; }
.activity-row:last-child { border-bottom: none; }
.activity-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); margin-top: 6px; flex-shrink: 0; }
.activity-row .time { color: var(--ink-500); font-size: 12px; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 180px; margin-top: 10px; }
.bar-chart .bar { flex: 1; background: var(--amber-100); border-radius: 6px 6px 0 0; position: relative; }
.bar-chart .bar.highlight { background: var(--amber-500); }
.bar-chart .bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--ink-500); }

/* ---------- Agent Analytics ---------- */
.analytics-period {
    display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: var(--radius-pill);
    box-shadow: var(--shadow-card); padding: 12px 18px; margin-bottom: 18px; font-weight: 700; color: var(--navy-900);
    font-size: 14px;
}
.analytics-period .ic { color: var(--navy-900); display: flex; }
.analytics-period .ic svg { width: 17px; height: 17px; }
.analytics-period .chev { margin-left: auto; color: var(--ink-500); }

.analytics-agent-card {
    background: linear-gradient(155deg, var(--navy-800), var(--navy-950)); color: var(--white);
    border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 14px;
}
.analytics-agent-card .avatar {
    width: 56px; height: 56px; border-radius: 50%; background: var(--amber-500); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy-950); font-size: 18px;
    border: 2px solid rgba(255,255,255,0.7);
}
.analytics-agent-card .name { font-weight: 800; font-size: 16px; margin-bottom: 2px; }
.analytics-agent-card .label { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.analytics-agent-card .earning { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.analytics-agent-card .trend { color: #4ade80; font-size: 13px; font-weight: 700; }
.analytics-agent-card .previews { color: rgba(255,255,255,0.6); font-size: 12.5px; }

.analytics-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.analytics-kpi-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 16px; }
.analytics-kpi-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.analytics-kpi-card .value { font-size: 22px; font-weight: 800; }
.analytics-kpi-card .label { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.analytics-kpi-card .sub { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.analytics-kpi-card .trend { color: var(--success); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 3px; }
.analytics-kpi-card .icon-badge {
    width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--navy-950); color: var(--amber-500);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.analytics-kpi-card .icon-badge svg { width: 17px; height: 17px; }

.analytics-row {
    display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-card); padding: 16px 18px; margin-bottom: 18px;
}
.analytics-row .icon-badge {
    width: 34px; height: 34px; border-radius: 50%; background: var(--amber-100); color: var(--amber-600);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.analytics-row .icon-badge svg { width: 17px; height: 17px; }
.analytics-row .grow { flex: 1; font-weight: 600; font-size: 14.5px; }
.analytics-row .value { font-weight: 800; font-size: 15px; }
.analytics-row .chev { color: var(--ink-300); }

.line-chart-card { background: var(--navy-950); color: var(--white); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px; }
.line-chart-card .rate { color: var(--amber-500); font-size: 20px; font-weight: 800; }
.line-chart-card .caption { color: rgba(255,255,255,0.55); font-size: 12.5px; margin-left: 8px; }
.line-chart-labels { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 6px; }

.earning-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ink-100); font-size: 14px; }
.earning-row:last-of-type { border-bottom: none; }
.earning-row .ic { color: var(--amber-600); display: flex; flex-shrink: 0; }
.earning-row .ic svg { width: 16px; height: 16px; }
.earning-row .grow { flex: 1; color: var(--ink-700); }
.earning-row .value { font-weight: 700; }

.analytics-tabs { display: flex; background: var(--ink-100); border-radius: var(--radius-pill); padding: 4px; margin-bottom: 14px; }
.analytics-tabs button { flex: 1; border: none; background: none; padding: 10px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 600; color: var(--ink-500); cursor: pointer; }
.analytics-tabs button.active { background: var(--navy-950); color: var(--white); }

.earnings-card-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.earnings-card-row .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-300); flex-shrink: 0; background-size: cover; }
.earnings-card-row .name { font-weight: 700; font-size: 14.5px; }
.earnings-card-row .prop { color: var(--ink-500); font-size: 13px; }
.earnings-card-row .earning-value { margin-left: auto; font-weight: 800; text-align: right; }
.earnings-stat-row { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; border-top: 1px solid var(--ink-100); padding-top: 14px; }
.earnings-stat-row .value { font-size: 18px; font-weight: 800; }
.earnings-stat-row .label { font-size: 12px; color: var(--ink-500); }
.lead-source-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--ink-100); font-size: 14px; }
.lead-source-row:last-child { border-bottom: none; }

/* ---------- Data table ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); padding: 14px 18px; background: var(--ink-100); }
.data-table td { padding: 14px 18px; font-size: 14px; border-top: 1px solid var(--ink-100); }
.data-table tr:hover td { background: #fbfbfe; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.tab-group { display: flex; gap: 6px; background: var(--ink-100); padding: 4px; border-radius: var(--radius-pill); }
.tab-group a { padding: 8px 16px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.tab-group a.active { background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-card); }

/* ---------- Utilities ---------- */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--ink-500); }
.loading-text { text-align: center; padding: 40px; color: var(--ink-500); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .dash-shell { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-grid-2 { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .chat-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .navbar nav { display: none; }
    .hero h1 { font-size: 30px; }
    .search-bar { flex-direction: column; border-radius: var(--radius-md); }
    .kpi-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   App-style home screen (splash loader + hero + category tabs + carousel + map)
   ========================================================================== */

/* ---------- Splash loader ---------- */
.splash-screen {
    position: fixed; inset: 0; z-index: 999;
    background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity .45s ease, visibility .45s ease;
}
.splash-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-screen img { width: 220px; height: auto; margin-bottom: 18px; }
.splash-screen .tagline { color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 40px; }
.splash-dots { display: flex; gap: 8px; margin-bottom: 16px; }
.splash-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.splash-dots span.on { background: var(--amber-500); }
.splash-bar { width: 200px; height: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.25); overflow: hidden; }
.splash-bar-fill { height: 100%; width: 0%; background: var(--amber-500); transition: width 1.4s ease; }

/* ---------- App hero (background photo + overlay chrome) ---------- */
.app-hero {
    position: relative;
    min-height: 480px;
    background: url('../img/hero-bg.png') center/cover no-repeat;
    color: var(--white);
    padding: 20px 0 90px;
}
.app-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,16,48,0.55) 0%, rgba(15,16,48,0.25) 40%, rgba(15,16,48,0.75) 100%);
}
.app-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ---------- Simple photo-hero header (agent listings/leads style pages) ---------- */
.page-hero-photo {
    position: relative; min-height: 220px; background: url('../img/hero-bg.png') center/cover no-repeat;
    color: var(--white);
}
.page-hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,16,48,0.6) 0%, rgba(15,16,48,0.35) 50%, rgba(15,16,48,0.8) 100%); }
.page-hero-photo-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 20px 20px 70px; }
.page-hero-photo h1 { font-size: 26px; margin: 0 0 4px; }
.page-hero-photo .subtitle { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0 0 18px; }
.page-hero-photo .tab-group { background: rgba(255,255,255,0.12); margin-bottom: 12px; }
.page-hero-photo .tab-group a { color: rgba(255,255,255,0.75); }
.page-hero-photo .tab-group a.active { background: var(--white); color: var(--navy-900); }
.page-hero-photo .pill-group { margin-bottom: 4px; }
.page-hero-photo .hero-back-btn {
    position: static; z-index: auto;
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white);
    margin-bottom: 18px;
}
.page-hero-photo .hero-back-btn svg { width: 18px; height: 18px; }
.page-sheet { background: var(--ink-100); border-radius: 24px 24px 0 0; margin-top: -30px; position: relative; padding: 20px 20px 24px; max-width: 900px; margin-left: auto; margin-right: auto; }

.app-hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.location-select { position: relative; }
.location-btn {
    display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--white);
    font-size: 15px; font-weight: 700; padding: 0;
}
.location-btn .ic { width: 16px; height: 16px; }
.location-btn .ic:first-child { color: var(--amber-500); }
.location-btn .ic:first-child svg { width: 16px; height: 16px; fill: var(--amber-500); stroke: none; }
.location-btn .ic:last-child svg { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.currency-badge {
    background: rgba(237,188,109,0.18); color: var(--amber-500); font-size: 11px; font-weight: 800;
    letter-spacing: 0.03em; padding: 3px 7px; border-radius: var(--radius-sm);
}
.location-menu {
    display: none; position: absolute; top: 30px; left: 0; z-index: 20;
    background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop);
    min-width: 180px; max-height: 320px; overflow-y: auto;
}
.location-menu.open { display: block; }
.location-menu button {
    display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left;
    background: none; border: none; padding: 12px 16px; font-size: 14px; color: var(--ink-900); font-weight: 500;
    border-bottom: 1px solid var(--ink-100);
}
.location-menu button:last-child { border-bottom: none; }
.location-menu button:hover { background: var(--ink-100); }
.location-menu button.selected { color: var(--navy-900); font-weight: 700; }
.location-menu button.selected::after { content: '✓'; color: var(--amber-600); }
.app-logo-badge {
    width: 42px; height: 42px; border-radius: 12px; background: var(--navy-900);
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card);
    overflow: hidden; flex-shrink: 0;
}
.app-logo-badge img { height: 16px; width: auto; }

.app-hero h1 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; font-weight: 800; font-family: Georgia, 'Times New Roman', serif; }
.app-hero h1 span { color: var(--amber-500); }
.app-hero .subtitle { color: rgba(255,255,255,0.85); font-size: 15px; max-width: 380px; margin: 0 0 24px; }

.app-search-row { display: flex; gap: 10px; }
.app-search-bar {
    flex: 1; background: var(--white); border-radius: var(--radius-sm); padding: 14px 18px;
    display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-pop);
}
.app-search-bar .ic { color: var(--ink-500); width: 18px; height: 18px; }
.app-search-bar input { border: none; outline: none; flex: 1; font-size: 14.5px; background: transparent; }
.filter-btn {
    width: 50px; flex-shrink: 0; background: var(--amber-500); border: none; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-pop);
}
.filter-btn .ic { width: 20px; height: 20px; color: var(--navy-950); }

/* ---------- Content sheet ---------- */
.app-sheet {
    background: var(--ink-100);
    border-radius: 28px 28px 0 0;
    margin-top: -60px;
    position: relative; z-index: 2;
    padding: 24px 0 40px;
}
.app-sheet-inner { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ---------- Category tabs ---------- */
.category-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.category-tab {
    background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
    padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 600; color: var(--navy-900);
}
.category-tab .ic { width: 22px; height: 22px; color: var(--navy-900); }
.category-tab.active { background: var(--navy-950); color: var(--white); border-color: var(--navy-950); }
.category-tab.active .ic { color: var(--amber-500); }

/* ---------- Recommended carousel ---------- */
.carousel-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 6px; margin: 0 -20px; padding-left: 20px; padding-right: 20px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
    flex: 0 0 260px; scroll-snap-align: start; background: var(--white);
    border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card);
    position: relative;
}
.carousel-card .thumb { height: 160px; background: var(--navy-100) center/cover no-repeat; position: relative; }
.carousel-card .heart-btn {
    position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: none; display: flex; align-items: center; justify-content: center;
}
.carousel-card .heart-btn .ic { width: 17px; height: 17px; color: var(--navy-900); }
.carousel-card .heart-btn.saved .ic { color: var(--danger); }
.carousel-card .heart-btn.saved .ic svg { fill: currentColor; }
.carousel-card .body { padding: 14px 16px 16px; }
.carousel-card .title { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carousel-card .price { font-size: 16px; font-weight: 800; color: var(--navy-900); margin-bottom: 6px; }
.carousel-card .loc { font-size: 12.5px; color: var(--ink-500); display: flex; align-items: center; gap: 4px; }
.carousel-card .loc .ic { width: 13px; height: 13px; }

.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-300); }
.carousel-dots span.on { background: var(--navy-900); width: 16px; border-radius: var(--radius-pill); }

/* ---------- Explore on map ---------- */
.map-card {
    position: relative; height: 220px; border-radius: var(--radius-md); overflow: hidden;
    background: var(--navy-950); margin-top: 8px;
}
.map-card .leaflet-map { position: absolute; inset: 0; }
.map-card .map-cta {
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    background: var(--amber-500); color: var(--navy-950); font-weight: 700; font-size: 13.5px;
    padding: 10px 22px; border-radius: var(--radius-pill); border: none; box-shadow: var(--shadow-pop);
    display: flex; align-items: center; gap: 8px; z-index: 401;
}

/* ---------- Bottom tab bar (mobile-style primary nav) ---------- */
.bottom-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 1px solid var(--ink-100);
    display: flex; justify-content: center; padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.bottom-tabbar-inner { display: flex; justify-content: space-around; width: 100%; max-width: 460px; }
.bottom-tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; color: var(--ink-500); padding: 4px 10px; border-radius: 10px;
}
.bottom-tabbar a .ic { width: 22px; height: 22px; }
.bottom-tabbar a.active { color: var(--navy-900); }
.bottom-tabbar a.active .ic svg { stroke-width: 2.2; }
body.has-bottom-nav { padding-bottom: 66px; }

@media (max-width: 640px) {
    .app-hero h1 { font-size: 28px; }
    .category-tabs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .carousel-card { flex-basis: 220px; }
}

/* ==========================================================================
   Filters bottom sheet
   ========================================================================== */
.filters-backdrop {
    position: fixed; inset: 0; z-index: 200; background: rgba(15,16,48,0.5);
    display: none; align-items: flex-end; justify-content: center;
}
.filters-backdrop.open { display: flex; }
.filters-sheet {
    background: var(--white); width: 100%; max-width: 480px; max-height: 88vh;
    border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden;
    animation: sheet-up .25s ease;
}
@keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.filters-head {
    background: var(--amber-500); color: var(--navy-950); padding: 18px 22px;
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.filters-head h3 { margin: 0; font-size: 17px; }
.filters-head button { background: none; border: none; font-size: 13.5px; font-weight: 700; color: var(--navy-950); }
.filters-body { padding: 20px 22px 8px; overflow-y: auto; }
.filter-group { margin-bottom: 24px; }
.filter-group > label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-900); margin-bottom: 10px; }
.filter-group select {
    width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--ink-300);
    font-size: 14.5px; background: var(--white); color: var(--ink-900);
}
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-btn {
    padding: 10px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--ink-300);
    background: var(--white); color: var(--ink-900); font-size: 13.5px; font-weight: 600;
}
.pill-btn.active { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.pill-btn.active.status-active { background: var(--amber-500); border-color: var(--amber-500); color: var(--navy-950); }

.price-range-values { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.price-slider { position: relative; height: 34px; }
.price-slider .track { position: absolute; top: 15px; left: 0; right: 0; height: 4px; background: var(--ink-300); border-radius: var(--radius-pill); }
.price-slider .track-fill { position: absolute; top: 15px; height: 4px; background: var(--navy-900); border-radius: var(--radius-pill); }
.price-slider input[type="range"] {
    position: absolute; top: 0; left: 0; width: 100%; margin: 0; height: 34px;
    -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
    background: var(--amber-500); border: 3px solid var(--navy-950); cursor: pointer; margin-top: 0;
}
.price-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
    background: var(--amber-500); border: 3px solid var(--navy-950); cursor: pointer;
}
.price-slider input[type="range"]::-webkit-slider-runnable-track { background: none; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-500); margin-top: 4px; }

.filters-footer { padding: 16px 22px; border-top: 1px solid var(--ink-100); flex-shrink: 0; }
.filters-footer .btn { background: var(--navy-950); color: var(--amber-500); }

/* ==========================================================================
   Shared app-style chrome for interior pages (header + content wrapper)
   ========================================================================== */
.app-topbar {
    background: var(--navy-950); color: var(--white);
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; position: sticky; top: 0; z-index: 40;
}
.app-topbar .back-btn {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white);
}
.app-topbar .back-btn .ic svg { width: 18px; height: 18px; }
.app-topbar h1 { font-size: 17px; margin: 0; flex: 1; font-weight: 700; }
.app-topbar .topbar-action {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white);
}
.app-topbar .topbar-action.saved { color: var(--danger); background: var(--white); }
.app-topbar .topbar-action .ic svg { width: 17px; height: 17px; }

.app-page-body { max-width: 800px; margin: 0 auto; padding: 24px 20px 40px; }
.app-page-wide { max-width: 1200px; margin: 0 auto; padding: 24px 28px 100px; }
.app-page-wide .dash-topbar { margin-bottom: 22px; }
.app-topbar .topbar-title-group { flex: 1; }
.app-topbar .topbar-title-group p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-300); font-weight: 400; }

/* ---------- Layout plan row ---------- */
.layout-plan-row {
    display: flex; align-items: center; gap: 12px; background: var(--white); border: 1.5px solid var(--ink-300);
    border-radius: var(--radius-md); padding: 14px 16px; margin: 16px 0; width: 100%; text-align: left;
}
.layout-plan-row .ic { width: 22px; height: 22px; color: var(--navy-900); flex-shrink: 0; }
.layout-plan-row .ic svg { width: 22px; height: 22px; }
.layout-plan-row strong { flex: 1; font-size: 14.5px; }
.layout-plan-row .chevron { color: var(--ink-300); flex-shrink: 0; }
.layout-plan-row .chevron svg { width: 18px; height: 18px; }

/* ---------- Lightbox (full-screen photo / plan viewer) ---------- */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 999; background: #000;
    display: flex; flex-direction: column;
}
.lightbox-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; flex-shrink: 0;
}
.lightbox-close {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12);
    border: none; color: var(--white); display: flex; align-items: center; justify-content: center;
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-counter {
    background: var(--navy-900); color: var(--white); font-size: 13px; font-weight: 700;
    padding: 8px 16px; border-radius: var(--radius-pill);
}
.lightbox-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox-stage img { max-width: 92%; max-height: 92%; object-fit: contain; }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12);
    border: none; color: var(--white); display: flex; align-items: center; justify-content: center;
}
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ---------- PDF viewer (layout plans) ---------- */
.pdfv-overlay { position: fixed; inset: 0; z-index: 999; background: #2b2d2f; display: flex; flex-direction: column; }
.pdfv-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--navy-900); color: var(--white); flex-shrink: 0; }
.pdfv-title { flex: 1; font-size: 19px; font-weight: 700; padding-left: 6px; }
.pdfv-icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--white); border-radius: 50%; cursor: pointer; }
.pdfv-icon-btn:hover { background: rgba(255,255,255,0.12); }
.pdfv-icon-btn svg { width: 22px; height: 22px; }
.pdfv-pages { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pdfv-page { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.4); flex-shrink: 0; max-width: none; }
.pdfv-status { color: rgba(255,255,255,0.75); margin: auto; text-align: center; padding: 20px; }
.pdfv-pager {
    position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
    background: rgba(0,0,0,0.85); color: var(--white); font-size: 13.5px; border-radius: var(--radius-pill);
    padding: 8px 14px; display: flex; align-items: center; gap: 10px; z-index: 2;
}
.pdfv-pager[hidden] { display: none; }
.pdfv-pager b { font-weight: 600; }
.pdfv-pager .pdfv-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.3); }
.pdfv-pager button { background: none; border: none; color: var(--white); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.pdfv-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 18px; background: var(--white); flex-shrink: 0; }
.pdfv-bottom .btn { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- Reels (agent) ---------- */
.reel-head { background: var(--navy-800); color: var(--white); border-radius: 0 0 28px 28px; }
.reel-head-inner { max-width: 640px; margin: 0 auto; padding: 18px 20px 24px; display: flex; align-items: center; gap: 14px; }
.reel-head .back-btn { color: var(--white); display: flex; flex-shrink: 0; padding: 4px; }
.reel-head .back-btn svg { width: 22px; height: 22px; }
.reel-head h1 { margin: 0; font-size: 22px; font-weight: 800; }
.reel-head p { margin: 2px 0 0; font-size: 13.5px; color: rgba(255,255,255,0.8); }
.reel-head .titles { flex: 1; min-width: 0; }
.reel-head .head-action { color: var(--white); background: none; border: none; display: flex; padding: 6px; cursor: pointer; }
.reel-head .head-action svg { width: 22px; height: 22px; }
.reel-head .head-action[hidden] { display: none; }
.reel-body { max-width: 640px; margin: 0 auto; padding: 22px 20px 220px; }
.reel-step { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.reel-step .num { width: 42px; height: 42px; border-radius: 50%; background: var(--amber-500); color: var(--navy-950); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reel-step h2 { margin: 0; font-size: 19px; }
.reel-step p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-500); }
.reel-section { margin-bottom: 28px; }
.reel-drop { border: 2px dashed var(--ink-300); border-radius: 24px; background: #f6f6fc; text-align: center; padding: 34px 20px; }
.reel-drop .cloud { width: 76px; height: 76px; border-radius: 50%; background: var(--ink-100); color: var(--navy-900); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.reel-drop .cloud svg { width: 34px; height: 34px; }
.reel-drop h3 { margin: 0 0 6px; font-size: 19px; color: var(--navy-900); }
.reel-drop p { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-500); }
.btn-amber-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--amber-500); color: var(--navy-950); border: none; border-radius: var(--radius-pill); padding: 13px 24px; font-weight: 700; font-size: 15px; cursor: pointer; }
.btn-amber-pill svg { width: 18px; height: 18px; }
.reel-preview { border: 1px solid var(--ink-100); border-radius: 24px; background: #f6f6fc; padding: 20px; text-align: center; }
.reel-video-wrap { position: relative; display: inline-block; border-radius: 22px; overflow: hidden; background: #000; line-height: 0; }
.reel-video-wrap video { display: block; max-height: 460px; max-width: 100%; width: auto; cursor: pointer; }
.reel-video-wrap .mute-btn { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.55); color: var(--white); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.reel-video-wrap .mute-btn svg { width: 20px; height: 20px; }
.reel-video-wrap .dur-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,0.6); color: var(--white); font-size: 13px; font-weight: 700; line-height: 1; padding: 8px 12px; border-radius: 10px; }
.reel-meta { margin: 12px 0 14px; font-size: 14px; color: var(--ink-500); }
.reel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reel-actions button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 16px; background: var(--white); font-weight: 700; font-size: 15px; cursor: pointer; border: 1.5px solid var(--ink-300); color: var(--navy-900); }
.reel-actions button svg { width: 17px; height: 17px; }
.reel-actions .danger { color: var(--danger); border-color: #f2c3bf; }
.reel-prop-list { display: flex; flex-direction: column; gap: 14px; }
.reel-prop { display: flex; align-items: center; gap: 14px; background: var(--white); border: 2px solid var(--ink-100); border-radius: 22px; padding: 12px; cursor: pointer; text-align: left; width: 100%; }
.reel-prop.selected { border-color: var(--navy-900); background: #f7f7fd; }
.reel-prop .thumb { width: 88px; height: 78px; border-radius: 14px; background: var(--ink-100) center/cover no-repeat; flex-shrink: 0; }
.reel-prop .info { flex: 1; min-width: 0; }
.reel-prop .info strong { display: block; font-size: 16px; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-prop .info .price { display: block; font-weight: 800; color: var(--navy-900); margin: 3px 0; }
.reel-prop .info .city { display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink-500); }
.reel-prop .info .city svg { width: 14px; height: 14px; }
.reel-prop .radio { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink-300); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--white); }
.reel-prop.selected .radio { background: var(--navy-900); border-color: var(--navy-900); }
.reel-prop .radio svg { width: 18px; height: 18px; display: none; }
.reel-prop.selected .radio svg { display: block; }
.reel-caption { width: 100%; border: 1.5px solid var(--ink-300); border-radius: 18px; padding: 14px 16px; font-size: 15px; background: var(--white); resize: vertical; min-height: 96px; }
.reel-caption-count { text-align: right; font-size: 12.5px; color: var(--ink-500); margin-top: 6px; }
.reel-footer { position: fixed; left: 0; right: 0; bottom: 66px; background: var(--white); border-top: 1px solid var(--ink-100); z-index: 40; }
.reel-footer-inner { max-width: 640px; margin: 0 auto; padding: 12px 20px 14px; text-align: center; }
.reel-footer .hint { font-size: 14px; color: var(--ink-500); margin-bottom: 10px; }
.btn-navy-block { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--navy-900); color: var(--white); border: none; border-radius: 20px; padding: 17px; font-size: 17px; font-weight: 800; cursor: pointer; }
.btn-navy-block svg { width: 20px; height: 20px; color: var(--amber-500); }
.btn-navy-block:disabled { background: #b8b6d6; cursor: not-allowed; }
.reel-fab { --col: 900px; position: fixed; bottom: 86px; right: max(20px, calc((100vw - var(--col)) / 2 + 20px)); width: 64px; height: 64px; border-radius: 50%; background: var(--navy-900); color: var(--amber-500); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(15,16,48,0.35); z-index: 41; }
.reel-fab svg { width: 30px; height: 30px; }
.reel-list { max-width: 640px; margin: 0 auto; padding: 20px 20px 170px; display: flex; flex-direction: column; gap: 16px; }
.reel-card { display: flex; gap: 16px; background: var(--white); border-radius: 26px; box-shadow: var(--shadow-card); padding: 16px; color: inherit; }
.reel-card .rthumb { position: relative; width: 132px; min-height: 178px; border-radius: 18px; overflow: hidden; background: #000 center/cover no-repeat; flex-shrink: 0; }
.reel-card .rthumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-card .rthumb .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.5); color: var(--white); display: flex; align-items: center; justify-content: center; }
.reel-card .rthumb .play svg { width: 18px; height: 18px; }
.reel-card .rthumb .dur { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,0.6); color: var(--white); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 8px; }
.reel-card .rinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.reel-card .top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.reel-card .cap { font-size: 17px; font-weight: 800; color: var(--navy-900); line-height: 1.3; }
.reel-card .cap.none { font-style: italic; font-weight: 500; color: var(--ink-500); }
.reel-card .live { background: #e5f5ec; color: #23895a; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; flex-shrink: 0; }
.reel-card .live.off { background: var(--amber-100); color: var(--amber-600); }
.reel-card .listing { display: flex; align-items: center; gap: 6px; color: var(--navy-900); font-weight: 700; font-size: 15px; }
.reel-card .listing svg { width: 18px; height: 18px; flex-shrink: 0; }
.reel-card .listing span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-card .listing .edit-ic { color: var(--ink-500); }
.reel-card .stats { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-500); margin-top: auto; }
.reel-card .stats span { display: flex; align-items: center; gap: 5px; }
.reel-card .stats svg { width: 17px; height: 17px; }
.reel-card .stats .ago { margin-left: auto; }
.dlg-backdrop { position: fixed; inset: 0; background: rgba(15,16,48,0.55); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.dlg-backdrop.open { display: flex; }
.dlg-card { background: var(--white); border-radius: 28px; padding: 30px 24px 24px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-pop); }
.dlg-card .badge { width: 68px; height: 68px; border-radius: 50%; background: #e5f5ec; color: #23895a; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.dlg-card .badge.danger { background: #fdeceb; color: var(--danger); }
.dlg-card .badge svg { width: 34px; height: 34px; }
.dlg-card h3 { margin: 0 0 8px; font-size: 22px; color: var(--navy-900); }
.dlg-card p { margin: 0 0 22px; color: var(--ink-700); font-size: 15px; line-height: 1.5; }
.dlg-card .dlg-actions { display: grid; gap: 10px; }
.dlg-card .dlg-actions.two { grid-template-columns: 1fr 1fr; }
.dlg-card .dlg-actions button { padding: 15px; border-radius: 16px; font-weight: 800; font-size: 16px; cursor: pointer; border: 1.5px solid var(--ink-300); background: var(--white); color: var(--navy-900); }
.dlg-card .dlg-actions button.primary { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.dlg-card .dlg-actions button.danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.reel-fab.narrow { --col: 640px; }
.reel-search { position: relative; margin-bottom: 14px; }
.reel-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-500); pointer-events: none; }
.reel-search input { width: 100%; padding: 15px 16px 15px 46px; border: 2px solid var(--ink-100); border-radius: 18px; background: var(--white); font-size: 15px; }
.reel-search input:focus { outline: none; border-color: var(--navy-900); }

/* ---------- Manage Account (agent) ---------- */
.acct-page { background: #1f1f66; min-height: 100vh; }
.acct-wrap { max-width: 640px; margin: 0 auto; padding: 22px 20px 120px; }
.acct-top { display: flex; align-items: center; justify-content: space-between; color: var(--white); margin-bottom: 26px; }
.acct-top h1 { margin: 0; font-size: 21px; font-weight: 700; }
.acct-back { color: var(--white); display: flex; }
.acct-back svg { width: 24px; height: 24px; }
.acct-card { background: #f1f1f8; border-radius: 30px; margin-bottom: 20px; }
.acct-id { text-align: center; padding: 32px 20px 30px; }
.acct-avatar { position: relative; width: 122px; height: 122px; border-radius: 50%; margin: 0 auto 16px; background: var(--amber-500) center/cover no-repeat; border: 4px solid var(--white); display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; color: var(--navy-950); }
.acct-avatar .cam { position: absolute; top: -2px; right: -6px; width: 38px; height: 38px; border-radius: 50%; background: #1f1f66; color: var(--white); border: 3px solid var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.acct-avatar .cam svg { width: 17px; height: 17px; }
.acct-name { font-size: 23px; font-weight: 600; color: #444; }
.acct-phone { font-size: 16px; color: #555; margin-top: 4px; }
.acct-menu { padding: 12px 20px 20px; }
.acct-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1.5px solid #dcdcf0; color: #1f1f66; font-size: 18px; font-weight: 600; }
.acct-item .ic { display: flex; flex-shrink: 0; }
.acct-item .ic svg { width: 26px; height: 26px; }
.acct-item .chev { margin-left: auto; display: flex; }
.acct-item .chev svg { width: 20px; height: 20px; }
.acct-item:hover { color: var(--navy-950); }
.acct-logout { width: 100%; margin-top: 28px; padding: 18px; border: none; border-radius: 18px; background: var(--amber-500); color: var(--navy-950); font-size: 20px; font-weight: 700; box-shadow: 0 6px 14px rgba(15,16,48,0.18); cursor: pointer; }
.acct-delete { width: 100%; margin-top: 14px; padding: 15px; border-radius: 16px; background: transparent; border: 1.5px solid #d94a5f; color: #d94a5f; font-size: 18px; font-weight: 700; cursor: pointer; }

/* ---------- Home: Buy/Rent card, mic, stories, near ---------- */
.hero-search-card { background: var(--white); border-radius: 22px; padding: 14px 14px 16px; box-shadow: var(--shadow-pop); }
.buyrent-tabs { display: flex; align-items: center; gap: 14px; padding: 0 6px 12px; }
.buyrent-tabs button { background: none; border: none; font-size: 18px; font-weight: 600; color: var(--ink-500); padding: 4px 0 6px; border-bottom: 3px solid transparent; cursor: pointer; }
.buyrent-tabs button.active { color: var(--navy-900); font-weight: 800; border-bottom-color: var(--navy-900); }
.buyrent-tabs .sep { width: 1px; height: 22px; background: var(--ink-300); }
.hero-search-card .app-search-row { gap: 0; }
.hero-search-card .app-search-bar { box-shadow: none; background: #f6f6fc; border: 1px solid var(--ink-100); border-radius: 14px 0 0 14px; }
.mic-btn { width: 52px; flex-shrink: 0; background: var(--navy-900); border: none; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mic-btn svg { width: 22px; height: 22px; }
.mic-btn.listening { background: #d94a5f; animation: micPulse 1.1s infinite; }
@keyframes micPulse { 0% { box-shadow: 0 0 0 0 rgba(217,74,95,0.55); } 70% { box-shadow: 0 0 0 12px rgba(217,74,95,0); } 100% { box-shadow: 0 0 0 0 rgba(217,74,95,0); } }
.hero-search-card .filter-btn { box-shadow: none; border-radius: 0 14px 14px 0; width: 52px; }
.stories-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.stories-row::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; width: 84px; color: var(--ink-900); font-size: 13.5px; }
.story .ring { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--amber-500); padding: 3px; background: var(--white); }
.story .ring span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--ink-100) center/cover no-repeat; }
.near-card { background: #f6f6fc; border: 1px solid var(--ink-100); border-radius: 22px; padding: 18px; }
.near-card p { margin: 0 0 14px; font-size: 15px; color: var(--ink-700); }
.near-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.near-grid a { background: var(--white); border: 1px solid var(--ink-100); border-radius: 16px; padding: 14px 6px; text-align: center; font-weight: 700; color: var(--navy-900); font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.near-grid svg { width: 20px; height: 20px; color: var(--navy-900); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(15,16,48,0.92); color: var(--white); padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 3000; max-width: 90vw; text-align: center; }

/* ---------- Find Near Property ---------- */
.radius-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.radius-chips button { background: rgba(255,255,255,0.92); border: none; border-radius: 14px; padding: 15px 8px; font-size: 16px; font-weight: 700; color: var(--navy-900); cursor: pointer; }
.radius-chips button.active { background: var(--amber-500); }
.near-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.near-head-row .locate { color: var(--amber-500); background: none; border: none; display: flex; padding: 6px; cursor: pointer; }
.near-head-row .locate svg { width: 28px; height: 28px; }

/* ---------- Property Reels (user) ---------- */
body.shorts { margin: 0; background: #05061a; overflow: hidden; }
.sh-wrap { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; background: #000; color: var(--white); }
.sh-progress { height: 4px; background: rgba(255,255,255,0.28); flex-shrink: 0; margin: 10px 20px 0; border-radius: 4px; overflow: hidden; }
.sh-progress > div { height: 100%; width: 0; background: var(--white); }
.sh-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 14px; background: #05061a; flex-shrink: 0; }
.sh-head .back { color: var(--white); display: flex; width: 32px; }
.sh-head .back svg { width: 26px; height: 26px; }
.sh-head h1 { margin: 0; font-size: 22px; font-weight: 700; }
.sh-head .where { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; min-width: 32px; justify-content: flex-end; background: none; border: none; color: var(--white); cursor: pointer; }
.sh-head .where svg { width: 18px; height: 18px; }
.sh-feed { flex: 1; min-height: 0; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; background: #000; }
.sh-feed::-webkit-scrollbar { display: none; }
.sh-item { position: relative; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.sh-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.sh-item video.contain { object-fit: contain; }
.sh-item .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 100%); pointer-events: none; }
.sh-item .pause-ind { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border-radius: 50%; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; pointer-events: none; }
.sh-item .pause-ind svg { width: 34px; height: 34px; }
.sh-item.paused .pause-ind { display: flex; }
.sh-rail { position: absolute; right: 14px; bottom: 150px; display: flex; flex-direction: column; align-items: center; gap: 20px; z-index: 2; }
.sh-rail button, .sh-rail .stat { background: none; border: none; color: var(--white); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; cursor: pointer; text-shadow: 0 1px 4px rgba(0,0,0,0.6); padding: 0; }
.sh-rail svg { width: 38px; height: 38px; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)); }
.sh-rail .like.on svg { color: #ff4d67; fill: #ff4d67; }
.sh-rail .mute svg { width: 30px; height: 30px; }
.sh-info { position: absolute; left: 20px; right: 90px; bottom: 26px; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.sh-info .agent { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 20px; font-weight: 700; color: var(--white); }
.sh-info .avatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--white); background: var(--amber-500) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--navy-950); font-weight: 800; flex-shrink: 0; }
.sh-info .cap { font-size: 15px; margin-bottom: 10px; line-height: 1.4; }
.sh-info .ttl { font-size: 20px; font-weight: 700; }
.sh-info .ttl span { font-size: 17px; font-weight: 500; opacity: 0.85; margin-left: 8px; }
.sh-info .price { font-size: 34px; font-weight: 800; margin: 6px 0 4px; }
.sh-info .meta { font-size: 16px; opacity: 0.9; display: flex; gap: 14px; }
.sh-info .view-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: var(--amber-500); color: var(--navy-950); font-weight: 800; font-size: 17px; padding: 13px 22px; border-radius: 999px; text-shadow: none; }
.sh-info .view-btn svg { width: 16px; height: 16px; }
.sh-empty { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 30px; color: rgba(255,255,255,0.8); }
.cm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index: 20; display: none; }
.cm-backdrop.open { display: block; }
.cm-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: var(--white); color: var(--ink-900); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .25s ease; }
.cm-backdrop.open .cm-sheet { transform: translateY(0); }
.cm-grab { width: 44px; height: 5px; border-radius: 4px; background: var(--ink-300); margin: 12px auto 0; }
.cm-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid var(--ink-100); font-size: 20px; font-weight: 800; }
.cm-head .count { color: var(--ink-500); font-weight: 600; margin-left: 6px; }
.cm-head button { background: none; border: none; color: var(--ink-900); display: flex; cursor: pointer; }
.cm-head button svg { width: 26px; height: 26px; }
.cm-list { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cm-empty { text-align: center; color: var(--ink-500); padding: 40px 10px; font-size: 16px; }
.cm-row { display: flex; gap: 12px; padding: 12px 0; }
.cm-row .av { width: 38px; height: 38px; border-radius: 50%; background: var(--amber-500) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy-950); flex-shrink: 0; font-size: 14px; }
.cm-row .nm { font-weight: 700; font-size: 14px; }
.cm-row .nm span { font-weight: 400; color: var(--ink-500); margin-left: 8px; font-size: 12.5px; }
.cm-row .bd { font-size: 15px; margin-top: 2px; word-break: break-word; }
.cm-form { display: flex; gap: 12px; padding: 12px 18px 16px; border-top: 1px solid var(--ink-100); }
.cm-form input { flex: 1; background: #f3f3fa; border: none; border-radius: 999px; padding: 14px 20px; font-size: 15.5px; }
.cm-form button { width: 52px; height: 52px; border-radius: 50%; border: none; background: #b8b6d6; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.cm-form button.ready { background: var(--navy-900); }
.cm-form button svg { width: 22px; height: 22px; }

/* ---------- Chat: rows, bubbles, composer (shared) ---------- */
.chat-messages { padding: 18px 20px; gap: 6px; }
.msg-row { display: flex; align-items: flex-end; gap: 10px; max-width: 82%; }
.msg-row.mine { align-self: flex-end; }
.msg-row.theirs { align-self: flex-start; }
.msg-row .msg-col { min-width: 0; display: flex; flex-direction: column; }
.msg-av { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-900) center/cover no-repeat; color: var(--amber-500); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.msg-av.spacer { background: none; }
.msg-name { font-size: 13px; font-weight: 600; color: var(--ink-700); margin: 0 0 3px 2px; }
.msg-row .msg-bubble { max-width: none; align-self: auto; padding: 10px 14px 6px; border-radius: 18px; font-size: 15px; color: var(--ink-900); }
.msg-row .msg-bubble.mine { background: #fde9ea; color: var(--ink-900); }
.msg-row .msg-bubble.theirs { background: #fff6da; }
.msg-row .msg-bubble.has-media { padding: 8px 8px 6px; }
.msg-bubble .msg-text { white-space: pre-wrap; }
.msg-bubble .msg-time { display: block; text-align: right; font-size: 11.5px; color: var(--ink-500); margin-top: 3px; padding-right: 2px; }
.msg-bubble .msg-cap { padding: 8px 6px 0; font-size: 14.5px; word-break: break-word; }
.msg-row .msg-image { max-width: 280px; max-height: 300px; border-radius: 14px; }
.msg-row .msg-file { color: inherit; padding: 6px 4px; }
.msg-row .msg-file .ic { background: rgba(20,21,59,0.08); color: var(--ink-700); font-size: 11px; font-weight: 800; }
.msg-row .msg-voice { padding: 2px 6px 2px 2px; }
.msg-row .msg-voice .mic-ic { color: var(--danger); opacity: 1; }
.msg-row .msg-voice .duration { opacity: 0.6; }

.chat-composer { position: relative; background: var(--white); border-top: 1px solid var(--ink-100); flex-shrink: 0; }
.cc-row { display: flex; align-items: center; gap: 6px; padding: 12px 16px 14px; }
.cc-row input[type=text] { flex: 1; min-width: 0; border: none; outline: none; font-size: 15.5px; padding: 12px 6px; background: transparent; }
.cc-row input[type=text]::placeholder { color: var(--amber-600); opacity: 0.7; }
.cc-btn { width: 42px; height: 42px; flex-shrink: 0; border: none; background: none; color: var(--ink-500); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; }
.cc-btn:hover { background: var(--ink-100); }
.cc-btn svg { width: 24px; height: 24px; }
#ccEmojiBtn { color: var(--amber-500); }
.cc-send { width: 50px; height: 50px; flex-shrink: 0; border: none; border-radius: 50%; background: var(--amber-100); color: var(--amber-500); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cc-send svg { width: 22px; height: 22px; }
.cc-send.ready { background: var(--amber-500); color: var(--navy-950); }
.cc-send:disabled { cursor: default; }
.cc-send.busy { opacity: 0.6; }
.cc-error { color: var(--danger); font-size: 13px; padding: 6px 20px 0; }
.cc-error:empty { display: none; }
.cc-preview { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 16px 0; }
.cc-chip { display: flex; align-items: center; gap: 8px; background: var(--ink-100); border-radius: 12px; padding: 6px 8px 6px 6px; max-width: 220px; }
.cc-chip img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.cc-chip .ic { width: 38px; height: 38px; border-radius: 8px; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--ink-700); }
.cc-chip .ic svg { width: 20px; height: 20px; }
.cc-chip .nm { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-chip button { background: none; border: none; color: var(--ink-500); display: flex; padding: 2px; cursor: pointer; }
.cc-chip button svg { width: 16px; height: 16px; }
.cc-emoji { position: absolute; left: 12px; bottom: calc(100% + 6px); width: min(340px, calc(100% - 24px)); background: var(--white); border-radius: 18px; box-shadow: var(--shadow-pop); z-index: 20; overflow: hidden; }
.cc-emoji[hidden], .cc-preview[hidden], .cc-rec[hidden], .cc-row[hidden] { display: none; }
.cc-emoji .tabs { display: flex; border-bottom: 1px solid var(--ink-100); }
.cc-emoji .tabs button { flex: 1; background: none; border: none; font-size: 20px; padding: 10px 0; cursor: pointer; border-bottom: 3px solid transparent; }
.cc-emoji .tabs button.on { border-bottom-color: var(--amber-500); }
.cc-emoji .grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; max-height: 210px; overflow-y: auto; }
.cc-emoji .grid button { background: none; border: none; font-size: 22px; padding: 6px 0; cursor: pointer; border-radius: 8px; }
.cc-emoji .grid button:hover { background: var(--ink-100); }
.cc-rec { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; }
.cc-rec-mid { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-900); }
.cc-rec-mid .dot { width: 12px; height: 12px; border-radius: 50%; background: #d94a5f; animation: micPulse 1.1s infinite; }
.cc-rec-hint { font-weight: 400; color: var(--ink-500); font-size: 14px; }
.msg-voice .play-btn svg.off { display: none; }
.chat-layout { grid-template-rows: minmax(0, 1fr); }
.chat-thread { min-height: 0; overflow: hidden; }
.chat-messages { min-height: 0; }
.chat-list { min-height: 0; }

/* ---------- Search row must shrink inside the hero card (mobile overflow fix) ---------- */
.hero-search-card { overflow: hidden; }
.hero-search-card .app-search-row { min-width: 0; }
.hero-search-card .app-search-bar { min-width: 0; padding: 12px 14px; }
.hero-search-card .app-search-bar input { min-width: 0; width: 100%; text-overflow: ellipsis; }
.hero-search-card .mic-btn, .hero-search-card .filter-btn { width: 48px; }

/* ---------- Ask Placein (voice assistant) ---------- */
.va-overlay { position: fixed; inset: 0; z-index: 2000; background: #121248; color: var(--white); overflow-y: auto; }
.va-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px; max-width: 480px; margin: 0 auto; }
.va-top h2 { margin: 0; font-size: 17px; font-weight: 700; }
.va-close { background: none; border: none; color: var(--white); display: flex; padding: 4px; cursor: pointer; }
.va-close svg { width: 22px; height: 22px; }
.va-body { max-width: 480px; margin: 0 auto; padding: 22px 16px 60px; display: flex; flex-direction: column; align-items: stretch; }
.va-orb { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--amber-500); background: #2a2b7a; color: var(--white); display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; cursor: pointer; padding: 0; }
.va-orb svg { width: 30px; height: 30px; }
.va-orb.listening { animation: vaPulse 1.2s infinite; }
@keyframes vaPulse { 0% { box-shadow: 0 0 0 0 rgba(237,188,109,0.55); } 70% { box-shadow: 0 0 0 20px rgba(237,188,109,0); } 100% { box-shadow: 0 0 0 0 rgba(237,188,109,0); } }
.va-status { text-align: center; font-size: 13.5px; margin: 0 0 12px; line-height: 1.5; }
.va-heard { text-align: center; color: var(--amber-500); font-size: 15px; font-weight: 700; margin: 0 0 16px; word-break: break-word; }
.va-heard[hidden] { display: none; }
.va-form { display: flex; background: var(--white); border-radius: 14px; overflow: hidden; margin: 6px 0 18px; }
.va-form input { flex: 1; min-width: 0; border: none; outline: none; padding: 13px 14px; font-size: 13px; color: var(--ink-900); background: transparent; }
.va-form button { width: 46px; border: none; background: var(--amber-500); color: #121248; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.va-form button svg { width: 20px; height: 20px; }
.va-answer { font-size: 14px; font-weight: 600; line-height: 1.5; margin: 0 2px 16px; }
.va-answer:empty { display: none; }
.va-results { display: flex; flex-direction: column; gap: 10px; }
.va-card { display: flex; gap: 12px; background: rgba(255,255,255,0.08); border-radius: 14px; padding: 10px; color: var(--white); }
.va-card .thumb { width: 72px; height: 64px; border-radius: 10px; background: #2a2b7a center/cover no-repeat; flex-shrink: 0; }
.va-card .info { display: flex; flex-direction: column; min-width: 0; justify-content: center; gap: 2px; }
.va-card .info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va-card .price { color: var(--amber-500); font-weight: 800; font-size: 14px; }
.va-card .loc { font-size: 12.5px; opacity: 0.75; }
.va-all { text-align: center; color: var(--amber-500); font-weight: 700; padding: 10px; font-size: 14px; }

/* ---------- Property Reels: match the app's compact sizing ---------- */
.sh-progress { margin: 8px 18px 0; height: 3px; }
.sh-head { padding: 10px 16px 12px; }
.sh-head h1 { font-size: 16px; font-weight: 700; }
.sh-head .back { width: 28px; }
.sh-head .back svg { width: 22px; height: 22px; }
.sh-head .where { font-size: 13.5px; gap: 5px; }
.sh-head .where svg { width: 15px; height: 15px; }
.sh-rail { right: 12px; bottom: 120px; gap: 15px; }
.sh-rail button, .sh-rail .stat { font-size: 12.5px; gap: 1px; }
.sh-rail svg { width: 27px; height: 27px; }
.sh-rail .mute svg { width: 22px; height: 22px; }
.sh-info { left: 16px; right: 76px; bottom: 20px; }
.sh-info .agent { font-size: 14.5px; gap: 9px; margin-bottom: 10px; }
.sh-info .avatar { width: 30px; height: 30px; font-size: 11px; border-width: 1.5px; }
.sh-info .cap { font-size: 13px; margin-bottom: 6px; }
.sh-info .ttl { font-size: 15px; }
.sh-info .ttl span { font-size: 13px; margin-left: 6px; }
.sh-info .price { font-size: 22px; margin: 4px 0 3px; }
.sh-info .meta { font-size: 12.5px; gap: 10px; }
.sh-info .view-btn { font-size: 13.5px; padding: 9px 16px; margin-top: 12px; gap: 6px; }
.sh-info .view-btn svg { width: 12px; height: 12px; }
.sh-item .pause-ind { width: 56px; height: 56px; }
.sh-item .pause-ind svg { width: 26px; height: 26px; }
.cm-head { font-size: 16px; padding: 12px 18px; }
.cm-head button svg { width: 22px; height: 22px; }
.cm-row .bd { font-size: 14px; }
.cm-form input { font-size: 14px; padding: 12px 16px; }
.cm-form button { width: 44px; height: 44px; }
