/* ====================================================
   Legacy Homes AI Receptionist — Widget Styles v1.0.0
   GetLegacyHomes.com
   ==================================================== */

:root {
    --lhr-navy:        #0A1628;
    --lhr-navy-mid:    #111F3A;
    --lhr-navy-light:  #1A2F52;
    --lhr-gold:        #C9A84C;
    --lhr-gold-light:  #E0C06A;
    --lhr-gold-muted:  #8B6F2A;
    --lhr-white:       #FFFFFF;
    --lhr-off-white:   #F4F2EC;
    --lhr-text:        #1A1A2E;
    --lhr-text-muted:  #6B7280;
    --lhr-radius:      16px;
    --lhr-radius-sm:   10px;
    --lhr-shadow:      0 20px 60px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.14);
}

/* ---- Floating trigger -------------------------------- */
.lhr-float-trigger {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--lhr-navy);
    border: 2px solid var(--lhr-gold);
    border-radius: 50px;
    padding: 10px 20px 10px 12px;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(201,168,76,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}
.lhr-float-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(201,168,76,0.38);
}
.lhr-float-icon svg {
    width: 36px;
    height: 36px;
    display: block;
}
.lhr-float-label {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--lhr-gold);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ---- Floating drawer -------------------------------- */
.lhr-float-drawer {
    position: fixed;
    bottom: 96px;
    right: 28px;
    z-index: 99991;
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: 82vh;
    border-radius: var(--lhr-radius);
    box-shadow: var(--lhr-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
}
.lhr-float-drawer:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* ---- Inline wrap ------------------------------------ */
.lhr-inline-wrap {
    border-radius: var(--lhr-radius);
    overflow: hidden;
    box-shadow: var(--lhr-shadow);
    display: flex;
    flex-direction: column;
}

/* ---- Widget core ------------------------------------ */
.lhr-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 440px;
    background: var(--lhr-off-white);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--lhr-text);
    overflow: hidden;
}

/* ---- Header ----------------------------------------- */
.lhr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--lhr-navy);
    padding: 14px 16px;
    border-bottom: 2px solid var(--lhr-gold-muted);
    flex-shrink: 0;
}
.lhr-avatar-wrap { flex-shrink: 0; }
.lhr-avatar {
    position: relative;
    width: 44px;
    height: 44px;
}
.lhr-avatar svg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--lhr-gold);
}
.lhr-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #34D399;
    border-radius: 50%;
    border: 2px solid var(--lhr-navy);
}
.lhr-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.lhr-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--lhr-gold);
    letter-spacing: 0.03em;
}
.lhr-role {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
}
.lhr-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s;
}
.lhr-close-btn:hover { color: var(--lhr-gold); }

/* ---- Messages --------------------------------------- */
.lhr-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}
.lhr-messages::-webkit-scrollbar { width: 4px; }
.lhr-messages::-webkit-scrollbar-track { background: transparent; }
.lhr-messages::-webkit-scrollbar-thumb { background: #d1c9b8; border-radius: 4px; }

.lhr-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
    gap: 3px;
}
.lhr-msg--user {
    align-self: flex-end;
    align-items: flex-end;
}
.lhr-msg--assistant {
    align-self: flex-start;
    align-items: flex-start;
}

.lhr-msg p,
.lhr-msg-bubble {
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--lhr-radius-sm);
    font-size: 14px;
    line-height: 1.55;
}
.lhr-msg--user p,
.lhr-msg--user .lhr-msg-bubble {
    background: var(--lhr-navy);
    color: var(--lhr-white);
    border-bottom-right-radius: 4px;
}
.lhr-msg--assistant p,
.lhr-msg--assistant .lhr-msg-bubble {
    background: var(--lhr-white);
    color: var(--lhr-text);
    border: 1px solid #e5e0d5;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.lhr-msg--assistant p strong { color: var(--lhr-navy); }
.lhr-msg-time {
    font-size: 10px;
    color: var(--lhr-text-muted);
    padding: 0 4px;
}

/* ---- Voice status ----------------------------------- */
.lhr-voice-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(201,168,76,0.08);
    border-top: 1px solid rgba(201,168,76,0.2);
    flex-shrink: 0;
}
.lhr-pulse {
    width: 10px;
    height: 10px;
    background: var(--lhr-gold);
    border-radius: 50%;
    animation: lhr-pulse 1s ease-in-out infinite;
}
@keyframes lhr-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.6; }
}
.lhr-voice-label {
    font-size: 12px;
    color: var(--lhr-gold-muted);
    font-weight: 600;
}

/* ---- Input area ------------------------------------- */
.lhr-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    background: var(--lhr-white);
    border-top: 1px solid #e5e0d5;
    flex-shrink: 0;
}
.lhr-input {
    flex: 1;
    border: 1.5px solid #d8d2c5;
    border-radius: var(--lhr-radius-sm);
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--lhr-text);
    resize: none;
    outline: none;
    line-height: 1.45;
    max-height: 110px;
    overflow-y: auto;
    transition: border-color 0.15s;
    background: var(--lhr-off-white);
}
.lhr-input:focus { border-color: var(--lhr-gold); }
.lhr-input-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.lhr-mic-btn,
.lhr-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
}
.lhr-mic-btn {
    background: var(--lhr-off-white);
    color: var(--lhr-navy-light);
    border: 1.5px solid #d8d2c5;
}
.lhr-mic-btn:hover { background: #ede8de; }
.lhr-mic-btn.lhr-listening {
    background: var(--lhr-gold);
    color: var(--lhr-navy);
    border-color: var(--lhr-gold);
    animation: lhr-mic-pulse 1.2s ease-in-out infinite;
}
@keyframes lhr-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}
.lhr-mic-btn svg,
.lhr-send-btn svg { width: 18px; height: 18px; display: block; }

.lhr-send-btn {
    background: var(--lhr-navy);
    color: var(--lhr-gold);
}
.lhr-send-btn:hover { background: var(--lhr-navy-light); transform: scale(1.06); }
.lhr-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---- Footer ----------------------------------------- */
.lhr-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 10px;
    background: var(--lhr-white);
    border-top: 1px solid #eceae4;
    flex-shrink: 0;
}

/* Voice toggle */
.lhr-voice-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.lhr-voice-check { display: none; }
.lhr-toggle-track {
    width: 36px;
    height: 20px;
    background: #d1c9b8;
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.lhr-voice-check:checked + .lhr-toggle-track { background: var(--lhr-gold); }
.lhr-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--lhr-white);
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.lhr-voice-check:checked + .lhr-toggle-track .lhr-toggle-thumb { transform: translateX(16px); }
.lhr-toggle-label { font-size: 12px; color: var(--lhr-text-muted); }

/* Typing indicator */
.lhr-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}
.lhr-typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lhr-gold);
    animation: lhr-bounce 1.2s ease-in-out infinite;
}
.lhr-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.lhr-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lhr-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%            { transform: translateY(-6px); }
}

/* ---- Responsive ------------------------------------- */
@media (max-width: 480px) {
    .lhr-float-drawer {
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        max-height: 90vh;
        border-radius: var(--lhr-radius) var(--lhr-radius) 0 0;
    }
    .lhr-float-trigger {
        bottom: 18px;
        right: 18px;
    }
}

/* ---- Accessibility ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .lhr-float-trigger,
    .lhr-float-drawer,
    .lhr-send-btn,
    .lhr-mic-btn,
    .lhr-pulse,
    .lhr-typing-indicator span {
        animation: none !important;
        transition: none !important;
    }
}

/* ---- Markdown rendering inside bubbles ------------- */
.lhr-msg-bubble .lhr-p {
    margin: 0 0 8px 0;
    line-height: 1.6;
}
.lhr-msg-bubble .lhr-p:last-child { margin-bottom: 0; }

.lhr-msg-bubble strong { color: #0A1628; font-weight: 700; }
.lhr-msg--user .lhr-msg-bubble strong { color: #fff; }

.lhr-msg-bubble em { font-style: italic; }

.lhr-msg-bubble .lhr-list {
    margin: 6px 0 8px 0;
    padding-left: 0;
    list-style: none;
}
.lhr-msg-bubble .lhr-ul-item,
.lhr-msg-bubble .lhr-ol-item {
    padding: 3px 0 3px 18px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}
.lhr-msg-bubble .lhr-ul-item::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--lhr-gold);
    font-weight: 700;
}
.lhr-msg-bubble .lhr-li-num {
    color: var(--lhr-gold);
    font-weight: 700;
    margin-right: 2px;
}

/* ---- Voice Stage (replaces message area) ----------- */
.lhr-voice-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    gap: 20px;
    background: var(--lhr-off-white);
    min-height: 220px;
}

/* Orb */
.lhr-voice-orb {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}
.lhr-orb-core {
    position: relative;
    z-index: 3;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--lhr-gold);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(201,168,76,0.3);
    transition: box-shadow 0.3s ease;
}
.lhr-orb-core svg { width: 72px; height: 72px; display: block; }

.lhr-orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(201,168,76,0.25);
    width: 90px;
    height: 90px;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%) scale(1);
    opacity: 0;
    z-index: 1;
}
.lhr-orb-ring--2 {
    width: 110px;
    height: 110px;
    border-color: rgba(201,168,76,0.12);
}

/* Idle */
.lhr-orb--idle .lhr-orb-ring { opacity: 0; animation: none; }

/* Listening */
.lhr-orb--listening .lhr-orb-ring {
    opacity: 1;
    animation: lhr-orb-pulse 1.2s ease-out infinite;
}
.lhr-orb--listening .lhr-orb-ring--2 {
    animation: lhr-orb-pulse 1.2s ease-out infinite 0.4s;
}
.lhr-orb--listening .lhr-orb-core {
    border-color: #34D399;
    box-shadow: 0 0 0 4px rgba(52,211,153,0.2), 0 4px 20px rgba(52,211,153,0.25);
}

/* Thinking */
.lhr-orb--thinking .lhr-orb-ring {
    opacity: 1;
    animation: lhr-orb-spin 1.8s linear infinite;
}
.lhr-orb--thinking .lhr-orb-ring--2 {
    animation: lhr-orb-spin 2.4s linear infinite reverse;
}
.lhr-orb--thinking .lhr-orb-core {
    box-shadow: 0 0 0 4px rgba(201,168,76,0.15), 0 4px 24px rgba(201,168,76,0.2);
}

/* Speaking */
.lhr-orb--speaking .lhr-orb-ring {
    opacity: 1;
    animation: lhr-orb-breathe 0.9s ease-in-out infinite;
}
.lhr-orb--speaking .lhr-orb-ring--2 {
    animation: lhr-orb-breathe 0.9s ease-in-out infinite 0.3s;
}
.lhr-orb--speaking .lhr-orb-core {
    border-color: var(--lhr-gold-light);
    box-shadow: 0 0 0 6px rgba(201,168,76,0.2), 0 4px 28px rgba(201,168,76,0.3);
}

@keyframes lhr-orb-pulse {
    0%   { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%,-50%) scale(1.4); opacity: 0; }
}
@keyframes lhr-orb-spin {
    from { transform: translate(-50%,-50%) rotate(0deg) scale(1); opacity: 0.5; }
    to   { transform: translate(-50%,-50%) rotate(360deg) scale(1); opacity: 0.5; }
}
@keyframes lhr-orb-breathe {
    0%, 100% { transform: translate(-50%,-50%) scale(1);   opacity: 0.5; }
    50%       { transform: translate(-50%,-50%) scale(1.25); opacity: 0.8; }
}

/* Stage label */
.lhr-voice-stage-label {
    font-size: 13px;
    color: var(--lhr-text-muted);
    text-align: center;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.lhr-orb--listening ~ .lhr-voice-stage-label { color: #15803d; }
.lhr-orb--speaking  ~ .lhr-voice-stage-label { color: var(--lhr-gold-muted); }

/* ---- Duila real photo avatar ----------------------- */
.lhr-avatar-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--lhr-gold);
    object-fit: cover;
    object-position: center top;
    display: block;
}

.lhr-orb-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Float trigger — update icon to match */
.lhr-float-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 2px solid var(--lhr-gold);
}

/* ====================================================
   Live Property Search Map — v10.0.0
   ==================================================== */

/* Map panel */
.lhr-map-panel {
    display: none;
    background: var(--lhr-navy);
    border-radius: 12px;
    margin: 10px 10px 0;
    overflow: hidden;
    flex-shrink: 0;
    animation: lhr-map-slide-in 0.4s ease;
}
.lhr-map-panel--active { display: block; }

@keyframes lhr-map-slide-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Map header */
.lhr-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(201,168,76,0.1);
    border-bottom: 1px solid rgba(201,168,76,0.2);
}
.lhr-map-location-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lhr-map-flag { font-size: 20px; line-height: 1; }
.lhr-map-location-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--lhr-gold);
    letter-spacing: 0.02em;
}
.lhr-map-title {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Map container */
.lhr-map-container {
    position: relative;
    height: 180px;
    width: 100%;
    background: #0d1f3c;
}

/* Prospect counter bar */
.lhr-prospect-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(201,168,76,0.15);
}
.lhr-prospect-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lhr-prospect-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--lhr-gold);
    line-height: 1;
    min-width: 32px;
    transition: transform 0.15s ease;
}
.lhr-count-pop { transform: scale(1.4); }
.lhr-prospect-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.02em;
}
.lhr-prospect-status {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-align: right;
    max-width: 160px;
    line-height: 1.3;
}

/* Match found banner */
.lhr-map-found {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(52,211,153,0.1);
    border-top: 1px solid rgba(52,211,153,0.2);
}
.lhr-map-found-dot {
    width: 8px; height: 8px;
    background: #34D399;
    border-radius: 50%;
    flex-shrink: 0;
    animation: lhr-pulse 1.2s ease-in-out infinite;
}
.lhr-map-found-text {
    font-size: 11px;
    color: #34D399;
    font-weight: 600;
    line-height: 1.35;
}

/* Leaflet marker override */
.lhr-map-marker {
    position: relative;
    width: 40px !important;
    height: 40px !important;
}
.lhr-marker-dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    background: #e63946;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(230,57,70,0.6);
}
.lhr-marker-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid #e63946;
    animation: lhr-marker-expand 1.6s ease-out infinite;
    opacity: 0;
}
.lhr-marker-pulse--2 { animation-delay: 0.8s; }

@keyframes lhr-marker-expand {
    0%   { transform: translate(-50%,-50%) scale(0.3); opacity: 0.8; }
    100% { transform: translate(-50%,-50%) scale(1.5); opacity: 0; }
}

/* Radar SVG positioned inside map */
#lhr-radar-svg { border-radius: 0; }

/* ====================================================
   v11 — Bottom Nav Bar + Full Panel
   ==================================================== */

/* Push page content up so nav doesn't overlap */
body.lhr-panel-open { overflow: hidden; }
body { padding-bottom: 68px !important; }

/* ---- Bottom navigation bar ------------------------- */
.lhr-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: var(--lhr-navy);
    border-top: 1.5px solid rgba(201,168,76,0.25);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 99900;
    padding: 0 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.lhr-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    text-decoration: none;
    color: rgba(255,255,255,0.45);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.2s;
    font-family: inherit;
}
.lhr-nav-item:hover { color: var(--lhr-gold); }

.lhr-nav-icon svg {
    width: 22px; height: 22px; display: block;
}

.lhr-nav-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
}

/* Duila center button */
.lhr-nav-duila {
    flex: 1.2;
    position: relative;
}
.lhr-duila-btn-wrap {
    position: relative;
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}
.lhr-duila-nav-face {
    width: 46px; height: 46px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2.5px solid var(--lhr-gold);
    position: relative;
    z-index: 2;
    display: block;
}
.lhr-duila-nav-face--svg {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 2.5px solid var(--lhr-gold);
    overflow: hidden;
    position: relative; z-index: 2;
}
.lhr-duila-nav-face--svg svg { width: 46px; height: 46px; }

/* Call ripple effect */
.lhr-duila-ripple {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid var(--lhr-gold);
    animation: lhr-call-ripple 2s ease-out infinite;
    opacity: 0;
    z-index: 1;
}
.lhr-duila-ripple--2 { animation-delay: 1s; }
@keyframes lhr-call-ripple {
    0%   { transform: translate(-50%,-50%) scale(0.9); opacity: 0.7; }
    100% { transform: translate(-50%,-50%) scale(1.7); opacity: 0; }
}
.lhr-nav-label--duila { color: var(--lhr-gold); font-weight: 600; }

/* ---- Panel overlay --------------------------------- */
.lhr-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99910;
    backdrop-filter: blur(2px);
}

/* ---- Duila full panel ------------------------------ */
.lhr-duila-panel {
    position: fixed;
    bottom: 64px; left: 0; right: 0;
    height: calc(100vh - 64px);
    background: var(--lhr-off-white);
    z-index: 99920;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lhr-panel-up 0.3s ease;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
@keyframes lhr-panel-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Panel header */
.lhr-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--lhr-navy);
    padding: 12px 16px;
    border-bottom: 2px solid var(--lhr-gold-muted);
    flex-shrink: 0;
}
.lhr-panel-header-left { display: flex; align-items: center; gap: 10px; }
.lhr-panel-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--lhr-gold);
}
.lhr-panel-header-info { display: flex; flex-direction: column; gap: 1px; }
.lhr-panel-name  { font-size: 15px; font-weight: 700; color: var(--lhr-gold); }
.lhr-panel-role  { font-size: 11px; color: rgba(255,255,255,0.5); }
.lhr-panel-close {
    background: none; border: none;
    color: rgba(255,255,255,0.5);
    font-size: 26px; line-height: 1;
    cursor: pointer; padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s;
}
.lhr-panel-close:hover { color: var(--lhr-gold); }

/* Map inside panel — always visible */
.lhr-map-panel {
    display: block !important;
    margin: 0;
    border-radius: 0;
    flex-shrink: 0;
}
.lhr-map-container { height: 160px; }

/* Voice stage inside panel */
.lhr-voice-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 14px;
    min-height: 0;
}

/* Panel footer */
.lhr-panel-footer {
    background: var(--lhr-white);
    border-top: 1px solid #e5e0d5;
    padding: 10px 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lhr-panel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hide old floating trigger */
.lhr-float-trigger,
.lhr-float-drawer { display: none !important; }
