/* Additional custom styling beyond Bootstrap */

/* Main container spacing */
body {
    padding-bottom: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card styling */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Toggle switch styling */
.form-check-input:checked {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

/* Form field focus */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Travel time cards */
.border-success {
    border-width: 2px !important;
}

.border-warning {
    border-width: 2px !important;
}

/* Mobile menu button improvements */
.mobile-menu-btn {
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    z-index: 1050 !important;
    touch-action: manipulation !important;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05) !important;
}

.mobile-menu-btn:active {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(0.95) !important;
}

.mobile-menu-btn .navbar-toggler-icon {
    width: 24px !important;
    height: 24px !important;
    background-size: 100% 100% !important;
}

/* Ensure proper touch targets on mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        min-width: 56px !important;
        min-height: 56px !important;
        padding: 16px !important;
        margin-left: 8px !important;
    }
    
    .navbar-nav {
        margin-top: 1rem !important;
        padding: 1rem 0 !important;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1.1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .nav-link:last-child {
        border-bottom: none !important;
    }
}

/* Footer styling */
.footer {
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Make icons pop with subtle animation */
.fas {
    transition: transform 0.2s;
}

.card:hover .fas,
.btn:hover .fas {
    transform: scale(1.2);
}

/* Style for Google Places autocomplete dropdown */
.pac-container {
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-secondary);
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1050;
}

.pac-item {
    padding: 8px 12px;
    color: var(--bs-light);
    border-bottom: 1px solid var(--bs-secondary);
}

.pac-item:hover {
    background-color: var(--bs-primary);
    cursor: pointer;
}

.pac-item-query {
    color: var(--bs-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-footer .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-footer .text-muted {
        margin-bottom: 0.5rem;
    }
}
