/**
 * Forminator – Comunas de Chile
 * comunas-v26.css — nombre nuevo para romper caché
 */

.fcc-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.fcc-wrap .fcc-input {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Dropdown siempre debajo */
.fcc-wrap .fcc-list {
    display: none;
    position: absolute;
    top: calc(100% + 2px) !important;
    bottom: auto !important;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #1e1e1e;
    border: 1px solid #444;
    border-top: 2px solid #f0b429;
    border-radius: 0 0 4px 4px;
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

/* Cada ítem en una sola línea */
.fcc-wrap .fcc-list li {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    padding: 9px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.12s;
    white-space: nowrap;
    overflow: hidden;
}

.fcc-wrap .fcc-list li:last-child { border-bottom: none; }

.fcc-wrap .fcc-list li:hover,
.fcc-wrap .fcc-list li.fcc-active {
    background: rgba(240,180,41,0.12);
}

/* Nombre de la comuna */
.fcc-wrap .fcc-list .fcc-comuna-name {
    font-size: 14px;
    font-weight: 500;
    color: #f0f0f0;
    flex-shrink: 0;
}

/* Separador · */
.fcc-wrap .fcc-list .fcc-sep {
    font-size: 12px;
    color: #555;
    flex-shrink: 0;
}

/* Región */
.fcc-wrap .fcc-list .fcc-region-name {
    font-size: 11px;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

/* Resaltado dorado */
.fcc-wrap .fcc-list mark.fcc-hl {
    background: rgba(240,180,41,0.3);
    color: #f0b429;
    font-weight: 700;
    padding: 0 1px;
    border-radius: 2px;
}

/* Sin resultados */
.fcc-wrap .fcc-empty {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin: 6px 0 0;
}

/* Scrollbar */
.fcc-wrap .fcc-list::-webkit-scrollbar       { width: 4px; }
.fcc-wrap .fcc-list::-webkit-scrollbar-track { background: transparent; }
.fcc-wrap .fcc-list::-webkit-scrollbar-thumb { background: #555; border-radius: 2px; }
