/* Extracted from views/pages/trip-planner/index.blade.php */

/* Trip Planner Card - Trip.com Style */
.trip-planner-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.starting-from h5 {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Force dropdown button text to be visible */
.starting-from .dropdown-toggle,
.starting-from .dropdown-toggle:link,
.starting-from .dropdown-toggle:visited,
.starting-from .dropdown-toggle:active,
.starting-from .dropdown-toggle:focus,
.starting-from .btn-link,
.starting-from .btn-link:link,
.starting-from .btn-link:visited,
.starting-from .btn-link:active,
.starting-from .btn-link:focus {
    font-size: 1.1rem !important;
    text-decoration: none !important;
    color: #000000 !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-weight: bold !important;
    opacity: 1 !important;
}

.starting-from .dropdown-toggle:hover,
.starting-from .dropdown-toggle:focus,
.starting-from .btn-link:hover,
.starting-from .btn-link:focus {
    color: #3b82f6 !important;
    background-color: transparent !important;
    background: transparent !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

.starting-from .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

/* Force dropdown items to be visible */
.starting-from .dropdown-item,
.starting-from .dropdown-item:link,
.starting-from .dropdown-item:visited,
.starting-from .dropdown-item:active,
.starting-from .dropdown-item:focus,
.starting-from .dropdown-menu a,
.starting-from .dropdown-menu a:link,
.starting-from .dropdown-menu a:visited,
.starting-from .dropdown-menu a:active,
.starting-from .dropdown-menu a:focus {
    color: #000000 !important;
    background-color: #ffffff !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    opacity: 1 !important;
    display: block !important;
}

.starting-from .dropdown-item:hover,
.starting-from .dropdown-item:focus,
.starting-from .dropdown-menu a:hover,
.starting-from .dropdown-menu a:focus {
    background-color: #f3f4f6 !important;
    color: #000000 !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

.starting-from .dropdown-item:active,
.starting-from .dropdown-menu a:active {
    background-color: #e5e7eb !important;
    color: #000000 !important;
    opacity: 1 !important;
}

.form-field {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    min-height: 100px;
}

.form-field:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.form-field:focus-within {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field-icon {
    color: #6b7280;
    font-size: 1.25rem;
    margin-top: 2px;
}

.field-content {
    flex: 1;
}

.field-label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-field input,
.form-field select {
    background: transparent !important;
    border: none !important;
    font-size: 1rem;
    color: #6b7280;
    outline: none !important;
    box-shadow: none !important;
}

.form-field input:focus,
.form-field select:focus {
    color: #1f2937;
}

.form-field input::placeholder {
    color: #9ca3af;
}

.preferences-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.preferences-section .btn-link {
    color: #1f2937 !important;
    text-decoration: none !important;
    font-weight: 500;
}

.preferences-section .btn-link:hover {
    color: #3b82f6 !important;
}

.action-buttons .btn {
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    border-width: 2px;
}

.action-buttons .btn-outline-primary {
    color: #3b82f6;
    border-color: #3b82f6;
    background: white;
}

.action-buttons .btn-outline-primary:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    color: white;
}

.action-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.smart-suggestion-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.smart-suggestion-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .trip-planner-card {
        padding: 25px;
        border-radius: 15px;
    }
    
    .form-field {
        padding: 15px;
        min-height: 80px;
    }
    
    .field-label {
        font-size: 0.9rem;
    }
    
    .action-buttons .btn {
        font-size: 0.9rem;
    }
}

/* Trip Planner Fixed Layout Styles */
.filter-wrapper {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.filter-section {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Travel Style Buttons */
.travel-style-btn {
    height: 80px;
    transition: all 0.3s ease;
    border: 2px solid;
}

.travel-style-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Budget Options */
.budget-options .form-check {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.budget-options .form-check:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.budget-options .form-check-input:checked + .form-check-label {
    color: #017b6e;
    font-weight: 600;
}

.budget-options .form-check.selected {
    background: #e6fffa;
    border-color: #017b6e;
}

/* Trip Summary Section */
.current-trip-status {
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.current-trip-status:hover {
    border-color: #017b6e;
    box-shadow: 0 4px 20px rgba(1, 123, 110, 0.1);
}

.trip-info h5 {
    color: #1e293b;
    font-weight: 700;
}

.trip-details span {
    font-size: 0.9rem;
}

/* Itinerary Preview */
.itinerary-preview {
    border: 2px solid #e2e8f0;
    max-height: 500px;
    overflow-y: auto;
}

.timeline-item {
    padding: 15px 20px;
    border-left: 3px solid #017b6e;
    margin-left: 10px;
    background: #f8fafc;
    border-radius: 0 10px 10px 0;
    margin-bottom: 15px;
}

.timeline-item h6 {
    color: #017b6e;
    font-weight: 700;
}

/* Map Placeholder */
.trip-map {
    border: 2px dashed #cbd5e1;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* AI Suggestions */
.ai-suggestions-list .suggestion-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.ai-suggestions-list .suggestion-card:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateX(5px);
    border-color: #017b6e;
}

/* Popular Destinations */
.destination-card {
    transition: transform 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-hover:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-wrapper {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .travel-style-btn {
        height: 70px;
    }
    
    .current-trip-status .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .trip-details {
        flex-direction: column !important;
        gap: 8px !important;
    }
}
