:root {
    --primary-orange: #ff6d00;
    --primary-orange-hover: #e65100;
    --primary-blue: #0047bb;
    --secondary-blue: #003580;
    --success-green: #22c55e;
    --discount-red: #e60000;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

#hero {
    background-image: linear-gradient(rgba(0, 53, 128, 0.4), rgba(0, 53, 128, 0.4)), url('img/fundo.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.shadow-text {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Tabs Styling */
.active-tab {
    border-bottom: 3px solid var(--primary-orange) !important;
    color: var(--primary-blue) !important;
    background-color: white !important;
}

/* Form Inputs */
input[type="text"],
input[type="date"],
input[type="number"],
select {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.1);
}

/* Custom Buttons */
.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(255, 109, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.5) sepia(1) saturate(5) hue-rotate(200deg);
    cursor: pointer;
}

/* Autocomplete Styles */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #374151;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

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

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.suggestion-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Scrollbar styling for suggestions */
.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-suggestions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Mobile Menu */
@media (max-width: 768px) {
    #mobile-nav.mobile-menu-open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 50;
    }

    #mobile-nav.mobile-menu-open a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s;
    }
    
    #mobile-nav.mobile-menu-open a:hover {
        background: rgba(59, 130, 246, 0.2);
    }

    #mobile-nav.mobile-menu-open div {
        width: 100%;
    }

    #mobile-nav.mobile-menu-open select {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .autocomplete-suggestions {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .suggestion-item {
        padding: 14px 16px;
    }
    
    /* Fix hero section to prevent text under menu */
    #hero {
        padding-top: 100px;
        min-height: 600px;
    }
    
    #hero h1 {
        margin-top: 20px;
        font-size: 2rem !important;
        line-height: 1.2;
        padding: 0 1rem;
    }
    
    /* Ajustes no formulário de busca mobile */
    #hero .max-w-4xl {
        margin-top: 1.5rem;
    }
    
    /* Header ajustado para mobile */
    header {
        position: fixed;
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    /* Logo menor em mobile */
    header img {
        height: 3rem;
    }
    
    /* Botão hamburguer maior para facilitar o toque */
    .md\:hidden button {
        padding: 0.5rem;
        font-size: 1.5rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    #hero {
        padding-top: 80px;
        min-height: 500px;
    }
    
    #hero h1 {
        font-size: 1.75rem !important;
    }
    
    header img {
        height: 2.5rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 15px;
        right: 15px;
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 123milhas style badges */
.badge-discount {
    background: #e60000;
    color: white;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}


