/* GeoPlaceInput — @{place} mention UI. Teal accent to distinguish from asset [tags]. */

.gpi-chip-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
    width: 100%;
}

/* Align the geo chip strip with the asset-tag row in each layout context.
   The strip lives INSIDE .ati-container (block flow, below the textarea + asset chips),
   so its horizontal inset must match the asset-tag row of the surrounding card. */
.prompt-card .gpi-chip-strip {
    padding: 0 12px;
}

.prompt-input-section .gpi-chip-strip,
.prompt-input-wrapper .gpi-chip-strip,
.detail-modal-prompt-box .gpi-chip-strip {
    padding: 0;
}

.gpi-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}

.gpi-chip-fill {
    background: #ccfbf1;          /* teal-100 */
    color: #115e59;              /* teal-800 */
    border-color: #5eead4;       /* teal-300 */
}

.gpi-chip-pin {
    background: #e0f2fe;          /* sky-100 */
    color: #075985;             /* sky-800 */
    border-color: #7dd3fc;       /* sky-300 */
}

.gpi-chip-unresolved {
    background: #fef3c7;          /* amber-100 */
    color: #92400e;             /* amber-800 */
    border-color: #fcd34d;       /* amber-300 */
}

.gpi-chip-role {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.05rem 0.35rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.08);
}

.gpi-chip-toggle {
    margin-left: 0.15rem;
    font-size: 0.6875rem;
    padding: 0.05rem 0.4rem;
    border-radius: 9999px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.75;
}
.gpi-chip-toggle:hover { opacity: 1; }

/* Autocomplete dropdown */
.gpi-autocomplete {
    position: fixed;
    z-index: 9999;
    display: none;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 0.25rem;
}
.gpi-autocomplete.gpi-autocomplete-visible { display: block; }

.gpi-ac-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #1f2937;
}
.gpi-ac-item:hover,
.gpi-ac-item.gpi-ac-active { background: #f0fdfa; }

.gpi-ac-badge {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
}
.gpi-badge-fill { background: #ccfbf1; color: #115e59; }
.gpi-badge-pin { background: #e0f2fe; color: #075985; }

.gpi-ac-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.gpi-ac-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gpi-ac-kind {
    font-size: 0.6875rem;
    color: #9ca3af;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gpi-ac-empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}
