/**
 * MetForm Address Autocomplete Styles
 */

/* Style pour les suggestions d'adresse Google */
.pac-container {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 1px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-top: -30px !important;
    padding-top: 0 !important;
    overflow: hidden;
    z-index: 9999 !important;
}

.pac-container:after {
    background-image: none !important;
    height: 0;
}

.pac-item {
    cursor: pointer;
    padding: 8px 12px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.5;
    font-size: 14px;
    color: #000;
    background-color: #fff;
    border-top: 1px solid #e6e6e6;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: #f5f5f5;
    color: #000;
}

.pac-item-selected,
.pac-item-selected:hover {
    background-color: #f0f0f0;
    color: #000;
}

.pac-matched {
    font-weight: 600;
    color: #000;
}

.pac-item-query {
    font-size: 14px;
    color: #000;
    padding-right: 3px;
}

.pac-icon {
    width: 15px;
    height: 20px;
    margin-right: 7px;
    margin-top: 6px;
    display: inline-block;
    vertical-align: top;
    background-image: url(https://maps.gstatic.com/mapfiles/api-3/images/autocomplete-icons.png);
    background-size: 34px;
}

.hdpi .pac-icon {
    background-image: url(https://maps.gstatic.com/mapfiles/api-3/images/autocomplete-icons_hdpi.png);
}

.pac-icon-marker {
    background-position: -1px -161px;
}

/* Ajustements pour MetForm */
.mf-input-wrapper input.mf-input {
    position: relative;
}

/* Style pour les popups Elementor */
.elementor-popup-modal .pac-container {
    z-index: 10000 !important;
}

/* Amélioration visuelle du champ avec autocomplétion active */
.mf-input.mfaa-autocomplete-active {
    border-color: #4285f4;
    box-shadow: 0 0 0 1px rgba(66, 133, 244, 0.3);
}

/* Animation de chargement */
@keyframes mfaa-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.mf-input.mfaa-loading {
    animation: mfaa-pulse 1.5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .pac-container {
        max-width: 100%;
        font-size: 16px;
    }
    
    .pac-item {
        padding: 12px 15px;
    }
}

/* Support pour les thèmes sombres - désactivé pour forcer le mode clair */
@media (prefers-color-scheme: dark) {
    .pac-container {
        background-color: #fff !important;
        border-color: rgba(0, 0, 0, 0.15) !important;
    }
    
    .pac-item {
        color: #000 !important;
        background-color: #fff !important;
        border-top-color: #e6e6e6 !important;
    }
    
    .pac-item:hover {
        background-color: #f5f5f5 !important;
        color: #000 !important;
    }
    
    .pac-item-selected,
    .pac-item-selected:hover {
        background-color: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .pac-matched {
        color: #000 !important;
    }
    
    .pac-item-query {
        color: #000 !important;
    }
}

