
/* ==========================================================================
   Section: chatbot_ui.css | Lines 3385 to 3532
   ========================================================================== */
/* ===== 챗봇 위젯 ===== */
.chatbot-toggle {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(99,102,241,0.4);
    transition: all 0.3s ease;
    animation: chatPulse 2s ease-in-out infinite;
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-toggle.hidden { display: none; }
@keyframes chatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(99,102,241,0.4); }
    50% { box-shadow: 0 4px 30px rgba(99,102,241,0.7); }
}

.chatbot-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    max-height: 520px;
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    z-index: 201;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.chatbot-window.active { display: flex; }

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}
.chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-avatar { font-size: 28px; }
.chatbot-name { font-size: 14px; font-weight: 700; }
.chatbot-status { font-size: 10px; color: #4ade80; }
.chatbot-close {
    background: rgba(255,255,255,0.2);
    border: none; color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.bot { justify-content: flex-start; }
.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
}
.chat-msg.user .chat-bubble {
    background: #6366f1;
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-msg.bot .chat-bubble {
    background: rgba(255,255,255,0.08);
    color: var(--surface-200);
    border-bottom-left-radius: 4px;
}

.chatbot-quick {
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.quick-btn {
    padding: 9px 16px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px;
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.quick-btn:hover { background: rgba(99,102,241,0.3); color: white; }

.chatbot-input-area {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.chatbot-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: var(--surface-200);
    font-size: 13px;
    outline: none;
}
.chatbot-input:focus { border-color: #6366f1; }
.chatbot-send {
    padding: 10px 16px;
    background: #6366f1;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.chatbot-send:hover { background: #5558e6; }

@media (max-width: 480px) {
    .chatbot-window { width: calc(100% - 20px); right: 10px; bottom: 10px; max-height: 70vh; }
    .chatbot-toggle { bottom: 80px; right: 16px; width: 50px; height: 50px; font-size: 22px; }
}


/* ==========================================================================
   Section: chatbot_ui.css | Lines 4011 to 4113
   ========================================================================== */
/* ===== 추가 커스텀 스타일 ===== */
/* ===== [고도화 20260725] 단지 지도 마커 — 유리질감 캡슐 + 테마색 액센트 + 개수 배지 + 핀 꼬리 ===== */
.custom-map-marker-bottom {
    --cx: var(--accent-400);
    transform: translate(-50%, -100%);
    transform-origin: center bottom;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(20, 26, 40, 0.92), rgba(30, 38, 58, 0.92));
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 5px 6px 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}
.custom-map-marker-bottom::before {   /* 테마색 액센트 도트 */
    content: '';
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cx);
    box-shadow: 0 0 8px var(--cx);
}
.custom-map-marker-bottom .cx-count {   /* 개수 원형 배지(테마색) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: var(--cx);
    color: #0b1220;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.custom-map-marker-bottom .cx-tail {   /* 핀 꼬리(좌표를 가리킴) */
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%) rotate(45deg);
    width: 9px;
    height: 9px;
    background: rgba(28, 36, 56, 0.92);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.custom-map-marker-bottom:hover, .custom-map-marker-bottom.active {
    transform: translate(-50%, -100%) scale(1.07);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 22px var(--cx);
    border-color: var(--cx);
    z-index: 1000 !important;
}

.map-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    color: var(--primary-900);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(230, 184, 77, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}
.map-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(230, 184, 77, 0.4);
    background: linear-gradient(135deg, var(--accent-400), var(--accent-300));
}
.map-action-btn:active {
    transform: translateY(0);
}


/* 지도 FAB */
.fab-map {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
}

/* 지도 프리미엄 톤 보정 */
#complexMap {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    filter: grayscale(15%) contrast(1.05) brightness(0.95);
}

/* 챗봇 말풍선 자동 링크 색상 보정 */
.chat-bubble a {
    color: #60a5fa !important;
    text-decoration: underline !important;
    font-weight: 600;
}
.chat-bubble a:hover {
    color: #93c5fd !important;
}

/* ===== 대분류/소분류/단지 필터 탭 스타일 추가 ===== */
.minor-tab, .complex-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: var(--surface-300);
    font-family: var(--font-family);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.minor-tab:hover, .complex-tab:hover {
    color: var(--surface-100);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.minor-tab.active, .complex-tab.active {
    color: #ffffff;
    background: rgba(246, 211, 101, 0.15);
    border-color: var(--accent-400);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(246, 211, 101, 0.1);
}
