/* cinegrafista-filter.css */

#cinegrafista-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.filtro-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filtro-form h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #007cba;
}

.endereco-input-container {
    position: relative;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item .location-icon {
    font-size: 16px;
    opacity: 0.7;
}

.suggestion-item:hover .location-icon {
    opacity: 1;
}

.filtro-form button {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filtro-form button:hover {
    background: #005a87;
}

#mapa-container {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.resultados-cinegrafistas h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.card-cinegrafista {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-cinegrafista:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card-header h4 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.distancia-badge {
    background: #007cba;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.card-body {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-row .label {
    font-weight: bold;
    min-width: 120px;
    color: #555;
}

.info-row .value {
    color: #333;
}

.preco-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.preco-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.preco-item:last-child {
    margin-bottom: 0;
}

.preco-item .label {
    font-weight: bold;
    color: #555;
}

.preco-item .preco {
    font-weight: bold;
    color: #007cba;
    font-size: 16px;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-contato {
    background: #25d366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-contato:hover {
    background: #1eb855;
}

.btn-mapa {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.btn-mapa:hover {
    background: #545b62;
}

.popup-cinegrafista {
    min-width: 250px;
}

.popup-cinegrafista h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.popup-cinegrafista p {
    margin: 5px 0;
    font-size: 14px;
}

/* Responsivo */
@media (max-width: 768px) {
    #cinegrafista-filter-container {
        padding: 10px;
    }
    
    .filtro-form {
        padding: 20px;
    }
    
    .suggestions-container {
        max-height: 200px;
    }
    
    .suggestion-item {
        padding: 10px;
        font-size: 14px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .btn-contato, .btn-mapa {
        width: 100%;
        text-align: center;
    }
    
    .preco-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-row .label {
        min-width: auto;
    }
}

/* Estilos para o Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-tip {
    background: white;
}