/* === Refinement Chat === */
.results-map {
    display: flex !important;
    flex-direction: column;
}

#map {
    flex: 1;
    min-height: 0;
}

/* === Refinement Chat (Compact) === */
.refinement-chat {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.refinement-header {
    display: none;
    /* Hide header to save space, use placeholders instead */
}

.refinement-title {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--primary-accent);
}

.refinement-warning {
    color: #ff4444;
    font-size: 0.8em;
    background: rgba(255, 68, 68, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.refinement-input-wrapper {
    position: relative;
    width: 100%;
}

.refinement-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.refinement-textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    /* Pill shape */
    color: var(--text-light);
    padding: 10px 16px;
    resize: none;
    height: 42px;
    /* Fixed height for single line */
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.refinement-textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.btn-refine {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: var(--primary-accent);
    border: none;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-refine:hover {
    transform: scale(1.05);
    background: #00b8e6;
    box-shadow: 0 6px 15px rgba(0, 212, 255, 0.4);
}

.btn-refine span {
    display: none;
    /* Hide text */
}

.btn-refine::after {
    content: "➤";
    /* Use icon instead of text */
    font-size: 1rem;
    margin-left: 2px;
}

/* Warning Toast style inside input */
.refinement-warning-tooltip {
    font-size: 0.75rem;
    color: #ff9e9e;
    margin-top: 4px;
    margin-left: 12px;
    display: block;
    opacity: 0.8;
}