
/* modals.css */
#addressModal .modal-content {
    border-radius: 16px;
}

.address-search-container .input-group {
    border: 1px solid #eee;
    transition: border-color 0.2s;
}

.address-search-container .input-group:focus-within {
    border-color: var(--ifood-red);
    background: #fff !important;
}

.address-item {
    cursor: pointer;
    transition: background 0.2s;
}

.address-item:hover {
    background-color: var(--ifood-light-gray);
}

.btn-current-location {
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #eee !important;
    transition: all 0.2s;
}

.btn-current-location:hover {
    background-color: #fff1f2;
    border-color: var(--ifood-red) !important;
}



#map-container {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Faz o modal crescer conforme o conteúdo */
.modal-content {
    transition: all 0.3s ease;
}

#form-final-address input {
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

#form-final-address input:focus {
    border-color: var(--ifood-red);
    box-shadow: none;
}


.address-item:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6 !important;
}

.btn-delete-address {
    text-decoration: none;
    transition: transform 0.2s;
    z-index: 5;
}

.btn-delete-address:hover {
    transform: scale(1.2);
    color: #dc3545 !important;
}



/* Customização do Autocomplete do Google */
.pac-container {
    z-index: 2147483647 !important; /* Mantém acima do modal */
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-top: 5px;
    font-family: inherit;
}

.pac-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px; /* Aumenta a fonte geral */
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

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

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

/* Nome da rua/local (Texto Principal) */
.pac-item-query {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-right: 5px;
}

/* Cidade/Estado (Texto Secundário) */
.pac-matched {
    color: #ea1d2c; /* Destaque na cor do tema (Vermelho) */
}

/* Ícone de localização que aparece ao lado da sugestão */
.pac-icon {
    margin-top: 2px;
}

/* Esconde a logo "powered by Google" se quiser um visual mais limpo */
.hdpi.pac-logo:after {
    padding: 10px;
    background-size: 100px;
}


/* Overlay do Loader */
#map-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: 20;
    display: none; /* Escondido por padrão */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.spinner-location {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #dc3545; /* Cor danger do Bootstrap */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}