/* /assets/css/featured-destinations-widget.css */
/* DEFINITIVE & FINAL VERSION */

.featured-destinations-widget { 
    position: relative; 
}
.featured-destinations-widget .widget-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    flex-wrap: wrap; 
}
.featured-destinations-widget .header-content { 
    flex-grow: 1; 
}
.featured-destinations-widget .widget-title { 
    margin: 0; 
    font-size: 28px; 
}
.featured-destinations-widget .widget-subtitle { 
    margin: 5px 0 0; 
    color: #555; 
}
.featured-destinations-widget .slider-nav { 
    display: flex; 
    margin-left: 20px; 
}
.featured-destinations-widget .swiper-button-prev, 
.featured-destinations-widget .swiper-button-next { 
    position: static; 
    width: 40px; 
    height: 40px; 
    margin-top: 0; 
    background-color: #f1f1f1; 
    border-radius: 50%; 
    border: 1px solid #e0e0e0; 
}
.featured-destinations-widget .swiper-button-prev:after, 
.featured-destinations-widget .swiper-button-next:after { 
    font-size: 16px; 
    color: #333; 
    font-weight: bold; 
}
.featured-destinations-widget .swiper-button-prev { 
    margin-right: 10px; 
}

/* --- START: CRITICAL FIX --- */
/* This is the missing code that forces the slider to be horizontal. */
.featured-destinations-slider .swiper-wrapper {
    display: flex;
    align-items: stretch; /* Ensures cards are same height if content varies */
}
.featured-destinations-slider .swiper-slide {
    flex-shrink: 0; /* Prevents slides from shrinking */
    width: 100%;
    height: auto;
}
/* --- END: CRITICAL FIX --- */

.destination-card { 
    position: relative; 
    border-radius: 15px; 
    overflow: hidden; 
    display: block; 
    height: 100%; /* Make card fill the slide height */
}
.destination-card-link { 
    display: block; 
    text-decoration: none; 
    height: 100%;
}
.destination-card-image { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.3s ease; 
}
.destination-card:hover .destination-card-image { 
    transform: scale(1.05); 
}
.destination-card-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%); 
}
.destination-card-title { 
    position: absolute; 
    bottom: 20px; 
    left: 20px; 
    color: #fff; 
    font-size: 22px; 
    margin: 0; 
}