/* Google Maps Autocomplete Styles */
.pac-container {
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.05);
    font-family: 'Montserrat', sans-serif;
    margin-top: 15px;
    background-color: #ffffff;
    z-index: 9999;
    /* Dropdown'ın çok dar olmasını engelle */
    min-width: 350px !important; 
    padding: 10px 0;
}

.pac-item {
    padding: 12px 20px;
    cursor: pointer;
    border-top: 1px solid #f5f5f5;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

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

.pac-item:hover {
    background-color: #f0fdf9; /* Çok açık yeşil tonu */
}

/* İkon (Pin) */
.pac-icon {
    display: none; /* Google'ın standart ikonunu gizle */
}

/* Kendi ikonumuzu ekleyelim (CSS ile) */
.pac-item::before {
    content: '\f3c5'; /* FontAwesome map-marker-alt */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Sorgu Metni (Ana Başlık) */
.pac-item-query {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 600;
    display: inline-block;
    margin-right: 5px;
}

/* Eşleşen Kısım */
.pac-matched {
    font-weight: 700;
    color: var(--primary-color);
    display: inline !important; /* Görünürlüğü zorla */
}

/* Adres Detayı (İkinci satır gibi görünen kısım) - GİZLENDİ */
/* Dikkat: Bu kural tüm spanları gizler, bu yüzden query ve matched için override etmeliyiz */
.pac-item span {
    display: none;
}

/* Ana başlığı tekrar görünür yap */
.pac-item .pac-item-query {
    display: inline-block;
}

/* Mobilde dropdown ayarları */
@media (max-width: 768px) {
    .pac-container {
        width: 90% !important; /* Mobilde ekranın %90'ını kaplasın */
        left: 5% !important; /* Ortalamak için */
        min-width: auto !important;
        margin-top: 5px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
}
