/* Base Styles */
.min-text {font-size: 14px;}
.bg-europamundo {background-color: #fd0;}

/* FontAwesome Icons */
#footer [class^="fa"] {font-size: 30px;width: 30px;}
[class^="fa"] {text-align: center;text-decoration: none;}
[class^="fa"]:hover {opacity: 0.7;}

.card{cursor: pointer;}
a{text-decoration: none;}
#google-search-results h3{font-size: 18px;}

/* Back to top */
.back-top {
    bottom:0;
    z-index:999;
    padding:10px;
    background-color:#fff;
    opacity:0.9;
    box-shadow:0 -2px 10px rgba(0,0,0,0.1);
    display:none;
    position: fixed;
    width: 100%;
    left: 0;
}
.back-top img{width:50px;height:50px;margin-right:10px}
.back-top .btn i{margin-right:5px}

/* Promo styles */
.promo-text{font-size:14px; line-height:16px; letter-spacing:.08px;}
@media screen and (max-width: 768px){.promo-text{font-size:12px; line-height:14px; letter-spacing:.06px;}}
@media screen and (max-width: 500px){.promo-text{font-size:10px; line-height:12px; letter-spacing:.04px;}}

/* Favorite button styles */
.fav {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    background: none;
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav:hover {
    transform: scale(1.1);
}

.fav.text-danger {
    color: #dc3545 !important;
}

.fav.text-white {
    color: #6c757d !important;
}

/* Card and Favorite Button Fixes */
.card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

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

.travel-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.travel-card .fav {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
    font-size: 1.1em;
    z-index: 10;
    transition: all 0.3s ease;
}

.travel-card .fav:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 1);
}

.travel-card .fav.text-danger {
    color: #dc3545 !important;
}

.travel-card .fav.text-white {
    color: #6c757d !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Range Slider Fixes */
section.range-slider {
    position: relative;
    width: 100%;
    height: 60px;
    text-align: center;
    margin-bottom: 20px;
}

section.range-slider input {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 15px;
    width: 100%;
    height: 5px;
    margin: 0;
    padding: 0;
    outline: 0;
    background: transparent;
    -webkit-appearance: none;
}

section.range-slider input::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    outline: 0;
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #dc3545;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

section.range-slider input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #c82333;
}

section.range-slider input::-moz-range-thumb {
    pointer-events: all;
    position: relative;
    z-index: 10;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dc3545;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

section.range-slider input::-webkit-slider-track {
    height: 5px;
    background: #dee2e6;
    border-radius: 3px;
}

section.range-slider input::-moz-range-track {
    height: 5px;
    background: #dee2e6;
    border-radius: 3px;
    border: 0;
}

.rangeValues {
    margin-bottom: 10px;
}

.range-filter-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Modal Fixes */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

.offer-modal-body {
    padding: 0;
    height: 100vh;
    background-color: #f8f9fa;
    position: relative;
}

.offer-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #007bff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

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

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

.close-btn {
    transition: all 0.3s ease;
    border: none;
    background-color: rgba(248, 249, 250, 0.9);
    color: #6c757d;
    font-size: 1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    transform: scale(1.1);
    background-color: #dc3545;
    color: #fff;
}

/* Tooltip Fixes */
.tooltip {
    z-index: 9999;
}

.tooltip .tooltip-inner {
    background-color: #333;
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
    max-width: 300px;
}

/* Back to Top Mobile Bar */
.back-top {
    bottom: 0;
    z-index: 999;
    padding: 12px 0;
    background-color: #fff;
    opacity: 0.98;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: none;
    position: fixed;
    width: 100%;
    left: 0;
    backdrop-filter: blur(10px);
}

.back-top img {
    width: 45px;
    height: 45px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.back-top .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 16px;
}

/* Responsive Range Slider */
@media (max-width: 768px) {
    .d-flex.gap-5.justify-content-between {
        flex-direction: column;
        gap: 2rem !important;
    }

    .range-filter-container {
        padding: 1rem;
    }

    section.range-slider {
        height: 50px;
    }

    .rangeValues {
        font-size: 0.9rem;
    }
}

/* Favorite Modal Improvements */
#siteList .alert {
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

#siteList .alert:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Price and Duration Filter Layout */
@media (max-width: 576px) {
    .rangeValues {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .rangeValues div {
        width: 100%;
    }

    .price-badge,
    .duration-text {
        font-size: 0.8rem;
    }
}

/* Card Text Improvements */
.card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
}

.min-text {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #666;
}

.bg-europamundo {
    background-color: #fd0;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.price-badge {
    font-size: 0.9rem;
    white-space: nowrap;
}

.departure-badge,
.type-badge {
    font-size: 0.8rem;
}

/* Collapse Animation */
.collapse {
    transition: all 0.3s ease;
}

/* Toast Improvements */
.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-header {
    border-radius: 8px 8px 0 0;
}

/* Favorites Counter */
#favorites-container a {
    transition: all 0.3s ease;
    text-decoration: none;
}

#favorites-container a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.badge {
    font-size: 0.7em;
    margin-left: 4px;
}

/* FAQ Section */
.faq-section {
    border-left: 4px solid #007bff;
}

/* Related Categories */
.related-categories .badge {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-categories .badge:hover {
    background-color: #007bff !important;
    color: white !important;
    transform: translateY(-2px);
    border-color: #007bff;
}

/* Results Counter */
#results-counter {
    border-left: 4px solid #17a2b8;
}

/* No Results Message */
#noResultsMessage .alert {
    border-left: 4px solid #ffc107;
}

/* Card Layout Improvements */
.travel-card .card-body {
    flex: 1;
}

.travel-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.125);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .back-top,
    .fav,
    .range-filter-container,
    #results-counter,
    .modal {
        display: none !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }

    .bg-europamundo {
        background-color: #000;
        color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .card,
    .fav,
    .close-btn,
    .tooltip {
        transition: none;
    }

    .loader {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .card-title {
        color: #e2e8f0;
    }

    .min-text {
        color: #cbd5e0;
    }

    .range-filter-container {
        background-color: #2d3748;
        border-color: #4a5568;
    }
}