/* public/css/home.css */

/* Container for the entire home page */
.home-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Hero Section */
.hero-section {
    background-image: url('https://maroctravelservice.com/public/images/homepage/Cyan-Light-Green-Modern-Time-to-Travel-Banner-1392-x-560-px-1.png');
    background-size: cover;
    background-position: center;
    height: 600px;
    border-radius: 15px;
    /* No overflow: hidden to allow dropdowns to be visible */
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.hero-content {
    max-width: 680px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding-left: 60px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Search Box */
.search-box {
    background-color: white;
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    position: relative;
    z-index: 10;
}

.search-input {
    flex: 1;
    position: relative !important;
    padding: 0 10px;
    z-index: 10 !important;
}

.search-divider {
    width: 1px;
    height: 35px;
    background-color: #eee;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    z-index: 1;
}

.search-input input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
    cursor: pointer;
}

#date-input {
    cursor: pointer !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
}

.search-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 5px;
}

.search-btn:hover {
    background-color: #991e2a;
}

/* Location suggestions styling */
.location-suggestions {
    position: absolute;
    bottom: 100%; /* Position above the input */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    margin-bottom: 10px; /* Space between dropdown and input */
    padding: 8px 0;
}

/* Show more suggestions with a scrollbar */
@media (min-width: 768px) {
    .location-suggestions {
        max-height: 350px;
    }
}

.suggestion-item {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f9f9f9;
}

.suggestion-icon {
    color: var(--primary-color);
    font-size: 16px;
    margin-right: 12px;
}

.suggestion-content {
    flex: 1;
}

.suggestion-city {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.suggestion-country {
    font-size: 0.8rem;
    color: #777;
}

/* Custom styling for datepicker */
.ui-datepicker {
    width: 350px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    background: #fff !important;
    position: absolute !important;
}

/* Header styling */
.ui-datepicker-header {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 12px !important;
    position: relative !important;
    z-index: 10 !important;
}

.ui-datepicker-title {
    font-weight: 600 !important;
    font-size: 16px !important;
}

/* Prev/Next buttons */
.ui-datepicker .ui-datepicker-prev, 
.ui-datepicker .ui-datepicker-next {
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    top: 12px !important;
}

.ui-datepicker .ui-datepicker-prev span, 
.ui-datepicker .ui-datepicker-next span {
    display: inline-block !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    position: static !important;
    transform: none !important;
    filter: brightness(0) invert(1) !important; /* Make icon white */
}

.ui-datepicker .ui-datepicker-prev:hover, 
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(255,255,255,0.3) !important;
    border: none !important;
    border-radius: 0 !important; /* Square hover effect */
}

.ui-datepicker-prev {
    left: 2px !important;
}

.ui-datepicker-next {
    right: 2px !important;
}

/* Calendar table */
.ui-datepicker table {
    margin: 0 !important;
    font-size: 14px !important;
    border-collapse: collapse !important;
}

.ui-datepicker th {
    background: #f8f9fa !important;
    color: #555 !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 10px 0 !important;
}

/* Day cells */
.ui-datepicker td {
    padding: 2px !important;
    border: none !important;
}

.ui-datepicker td a {
    text-align: center !important;
    border-radius: 6px !important;
    border: none !important;
    padding: 8px 6px !important;
    background: transparent !important;
    color: #333 !important;
    font-weight: normal !important;
}

/* Selected date */
.ui-datepicker td a.ui-state-active {
    background: var(--primary-color) !important;
    color: white !important;
    font-weight: bold !important;
    position: relative;
    z-index: 2;
}

/* Hover state */
.ui-datepicker td a:hover {
    background: #f0f0f0 !important;
}

/* Today */
.ui-datepicker td a.ui-state-highlight {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: bold !important;
}

/* Past dates (disabled) */
.ui-datepicker td.ui-datepicker-unselectable span.ui-state-default {
    color: #ccc !important;
    background: transparent !important;
    cursor: default !important;
}

/* Range selection controls */
.date-range-controls {
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.range-mode-switch {
    display: flex;
    align-items: center;
}

.range-label {
    margin-left: 10px;
    font-weight: 500;
    font-size: 14px;
}

/* Toggle switch for range mode */
.range-switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 22px;
}

.range-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: white;
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--primary-color);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Date instructions */
.date-instructions {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: bold;
    border-top: 1px solid #eee;
}

/* Date range highlighting */
.range-start a, 
.range-end a,
td a.ui-state-active {
    background-color: var(--primary-color) !important;
    color: white !important;
    position: relative;
    z-index: 2;
    font-weight: bold !important;
    border-radius: 6px !important;
}

.range-between {
    background-color: rgba(181, 44, 58, 0.1) !important;
}

.range-between::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(181, 44, 58, 0.1) !important;
    z-index: 0 !important;
}

/* Don't allow datepicker to be hidden when open */
.ui-datepicker {
    position: absolute !important;
}

/* Ensure the datepicker stays above other elements */
#ui-datepicker-div {
    z-index: 9999 !important;
}

/* Clear button styling */
#clear-date-btn {
    color: #999;
    transition: color 0.2s;
}

#clear-date-btn:hover {
    color: var(--primary-color);
}

/* Selection in progress visual indicator */
#date-input.selecting-range {
    background-color: rgba(181, 44, 58, 0.05) !important;
}

/* Featured Sections */
.featured-section {
    padding: 50px 0;
}

.featured-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.destination-card {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.destination-card:hover .destination-overlay {
    transform: translateY(0);
}

.destination-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.btn-outline {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Mobile specific styles */
body.mobile-view .hero-content {
    text-align: center;
    padding: 0 20px;
    max-width: 100%;
}

body.mobile-view .search-box {
    margin: 0 auto;
}

/* Mobile overlay for datepicker */
.datepicker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.datepicker-overlay.active {
    display: block;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content {
        padding-left: 40px;
    }
    
    .ui-datepicker {
        max-width: 500px !important;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content {
        padding-left: 30px;
    }
    
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ui-datepicker {
        max-width: 400px !important;
    }
    
    /* Fix for calendar on smaller screens */
    .ui-datepicker-calendar {
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding-left: 25px;
        max-width: 80%;
        text-align: center;
    }
    
    .search-box {
        flex-direction: column;
        padding: 7px 15px;
        margin: 0 auto;
        max-width: 90%;
        border-radius: 20px;
    }
    
    .search-input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .search-divider {
        display: none;
    }
    
    .search-btn {
        margin: 10px auto 0;
    }
    
    .hero-section {
        height: 500px;
        margin-bottom: 70px; /* Add more bottom margin to allow space for date picker */
    }
    
    /* Mobile date picker styling */
    .ui-datepicker {
        width: 90% !important;
        max-width: 350px !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 9999 !important;
    }
    
    /* Make location suggestions more mobile-friendly */
    .location-suggestions {
        position: fixed;
        bottom: auto;
        top: 0;
        left: 0;
        width: 100%;
        max-height: 50vh;
        border-radius: 0 0 15px 15px;
        margin-bottom: 0;
        z-index: 9999;
        padding: 10px 0;
    }
    
    .suggestion-item {
        padding: 15px;
    }
    
    /* Fix for inputs on mobile */
    .search-input input {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px 12px 12px 40px;
    }
    
    .input-icon {
        left: 15px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-section {
        padding: 30px 0;
    }
    
    .featured-section h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        height: 450px;
        margin-bottom: 50px;
    }
    
    .home-container {
        padding: 15px;
    }
}
/* COMPONENT homeContentSection */
/* public/css/home.css */

/* --- Features Section --- */
.features-section {
    padding: 4rem 0; /* Add vertical padding above and below the section */
    background-color: var(--white); /* Assuming a white background */
}

.features-grid {
    display: flex;
    justify-content: space-between; /* Distribute items across the container */
    align-items: flex-start; /* Align items to the top */
    flex-wrap: wrap; /* Allow items to wrap onto the next line on smaller screens */
    gap: 2rem; /* Creates space between the feature items */
}

.feature-item {
    flex-basis: calc(25% - 1.5rem); /* Aim for 4 columns, adjusting for the gap */
    /* For calc: (100% / 4 columns) - ( (4-1)/4 * gap ) = 25% - (3/4 * 2rem) = 25% - 1.5rem */
    flex-grow: 0; /* Don't allow items to grow */
    flex-shrink: 0; /* Don't allow items to shrink initially */
    text-align: center; /* Center the icon, title, and description */
    display: flex;         /* Use flexbox for internal alignment */
    flex-direction: column; /* Stack icon, title, description vertically */
    align-items: center;   /* Center items horizontally within the flex column */
}

.feature-icon {
    margin-bottom: 1.5rem; /* Space below the icon */
    line-height: 0; /* Prevent extra space sometimes added below SVGs */
}


.feature-title {
    /* Using h4 from global.css (Syne font, font-weight: 600) */
    font-size: 1.25rem; /* Adjust size if needed */
    color: var(--dark-gray); /* Use a dark color */
    margin-bottom: 0.75rem; /* Space below the title */
}

.feature-description {
    /* Using p from global.css (Poppins font) */
    font-size: 0.9rem; /* Slightly smaller text */
    color: #555; /* A slightly lighter gray than the default text */
    line-height: 1.6; /* Adjust line height for readability */
    margin-bottom: 0; /* Remove default paragraph margin if items have uneven text length */
    max-width: 250px; /* Optional: constrain width for better text flow */
}


/* --- Responsive Adjustments --- */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .feature-item {
        flex-basis: calc(50% - 1rem); /* Go to 2 columns, adjust gap compensation */
        margin-bottom: 2rem; /* Add space below rows when they wrap */
    }
    .features-grid {
        justify-content: space-around; /* Adjust justification for 2 columns */
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .features-section {
        padding: 2.5rem 0; /* Reduce padding on smaller screens */
    }
    .feature-item {
        flex-basis: 100%; /* Go to 1 column */
        margin-bottom: 2.5rem; /* Increase spacing between stacked items */
    }
    .feature-item:last-child {
        margin-bottom: 0; /* Remove margin from the last item */
    }
    .features-grid {
        gap: 0; /* Remove gap when stacking vertically (using margin instead) */
        justify-content: center; /* Center the single column */
    }
     .feature-description {
         max-width: 350px; /* Allow description to be a bit wider */
     }
}

/* COMPONENT twoCardSection.blade.php */

/* public/css/home.css */

/* --- Trip Ideas Section --- */
.trip-ideas-section {
    padding: 4rem 0;
    background-color: var(--light-bg); /* Or white, depending on your overall design */
}

.trip-ideas-section .container {
    max-width: 1300px;
}

.trip-ideas-section .section-title {
    /* Inherits h2 styles from global.css (Syne font) */
    font-size: 2.2rem; /* Adjust size as needed */
    font-weight: 700; /* Make it bolder */
    color: var(--dark-gray);
    text-align: left; /* Align title to the left as per image */
    margin-bottom: 2.5rem; /* More space below title */
}

.trip-ideas-grid {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 2rem; /* Space between cards */
    justify-content: center; /* Center cards if they wrap */
}

.trip-idea-card {
    flex: 1 1 calc(50% - 1rem); /* Each card takes up half width minus gap compensation */
    min-width: 300px; /* Minimum width before wrapping */
    min-height: 350px; /* Minimum height for the card */
    border-radius: 20px; /* Rounded corners */
    overflow: hidden; /* Keep content within rounded corners */
    position: relative; /* Needed for the overlay effect if using pseudo-elements (alternative) */
    background-size: cover;
    background-position: center center;
    color: var(--white); /* Default text color for cards */
    display: flex; /* Use flex to position content */
    transition: transform 0.3s ease; /* Add subtle hover effect */
}

.trip-idea-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

/* Overlay and Content Styling */
.trip-idea-card__content {
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button towards bottom if needed */
    align-items: flex-start; /* Align content to the left */
    z-index: 2; /* Ensure content is above background */
    position: relative; /* Needed if using pseudo-element overlay */
}

/* Apply overlay using background blend modes or pseudo-elements */
/* Method 1: Using pseudo-element for overlay (More flexible) */
.trip-idea-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit; /* Inherit border-radius */
    z-index: 1; /* Place overlay between background and content */
    opacity: 0.85; /* Adjust overall opacity */
    transition: opacity 0.3s ease;
}

/* Specific Card Overlays */
.trip-idea-card--north::before {
    /* Approximate green gradient from image */
    background: linear-gradient(to bottom, rgba(16, 148, 124, 0.8), rgba(10, 108, 91, 0.95));
}

.trip-idea-card--beyond::before {
     /* Use primary color or approximate red gradient */
    background: linear-gradient(to bottom, rgba(181, 44, 58, 0.75), rgba(143, 30, 43, 0.9)); /* Using --primary-color base */
}

/* Alternatively, hover effect on overlay */
/* .trip-idea-card:hover::before {
    opacity: 0.75;
} */


.trip-idea-card__title {
    /* Inherits h3 styles from global.css (Syne font) */
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.trip-idea-card__description {
    /* Inherits p styles from global.css (Poppins font) */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem; /* Space before button */
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    max-width: 400px; /* Limit width for readability */
}

.trip-idea-card__button {
    background-color: var(--white);
    color: #B52C3A; /* Default RED text color for buttons */
    border-radius: 50px;
    font-size: 14px;
    padding: 16px 16px 16px 16px; /* Note: 4 values same is redundant, use 16px */
    /* padding: 16px; */ /* Cleaner */
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
    transition: all 0.3s ease;
}


.trip-idea-card__button:hover {
    background-color: #B52C3A; /* Default RED background on hover */
    color: #FFFFFF;           /* Default WHITE text on hover */
    transform: translateY(-8px);
}

.trip-idea-card--north .trip-idea-card__button {
    color: #01AA90; /* Override text color for the north card button */
    /* Background remains white from the general rule */
}

.trip-idea-card--north .trip-idea-card__button:hover {
    background-color: #01AA90; /* Override background color on hover for north card */
    color: #FFFFFF; /* Ensure text is white (already set, but explicit) */
    /* Transform is inherited from the general hover rule */
}

/* --- Responsive Adjustments --- */

/* Small devices (landscape phones, tablets in portrait, less than 768px) */
@media (max-width: 767.98px) {
    .trip-ideas-grid {
        gap: 1.5rem; /* Reduce gap */
    }
    .trip-idea-card {
        flex-basis: 100%; /* Stack cards vertically */
        min-height: 300px; /* Adjust min-height if needed */
    }
    .trip-ideas-section .section-title {
        font-size: 1.8rem; /* Reduce title size */
        text-align: center; /* Center title */
    }
    .trip-idea-card__title {
        font-size: 1.6rem;
    }
     .trip-idea-card__content {
        padding: 1.5rem; /* Reduce padding */
    }
}

/* ============================================= */
/* == Full Width Continuous Image Slider == */
/* ============================================= */

/* --- Section Container --- */
.image-slider-section-full {
    width: 100%;
    /* ADD vertical padding for space above and below */
    padding: 3rem 0;
    overflow: hidden; /* Prevent potential horizontal scroll */
    background-color: var(--light-bg); /* Optional: set a background if needed */
}

/* --- Swiper Container --- */
.image-swiper-full {
    width: 100%;
    /* KEEP the height definition */
    height: 200px; /* Default height */
}

/* --- Individual Slide Styling --- */
.image-swiper-full .swiper-slide {
    height: 100%;
    overflow: hidden;
    /* No border-radius */
    /* No spaceBetween needed */
}

/* --- Image Styling within Slide --- */
.image-swiper-full .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- Responsive Height Adjustments (Keep these) --- */

/* Medium devices (tablets, less than 768px) */
@media (max-width: 767.98px) {
    .image-slider-section-full {
        padding: 2rem 0; /* Adjust padding for smaller screens */
    }
    .image-swiper-full {
        height: 160px;
    }
}

/* Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
     .image-slider-section-full {
        padding: 1.5rem 0; /* Further adjust padding */
    }
    .image-swiper-full {
        height: 120px;
    }
}

/* ============================================= */
/* == End Full Width Continuous Image Slider == */
/* ============================================= */

/* ============================================= */
/* == FAQ Section == */
/* ============================================= */

.faq-section {
    padding: 4rem 0;
    background-color: var(--light-bg); /* Or #fdfafa if you want that pinkish tint */
}

.faq-grid {
    display: flex;
    flex-wrap: wrap; /* Wrap columns on smaller screens */
    gap: 2rem; /* Space between columns */
}

.faq-column {
    flex: 1; /* Each column takes equal space */
    min-width: 300px; /* Minimum width before wrapping */
}

.faq-item {
    background-color: var(--white);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--light-gray);
    transition: border-color 0.3s ease;
    overflow: hidden; /* Important for max-height transition */
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item.active {
    border-color: var(--primary-color); /* Red border when active */
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary-color); /* Red text when active */
}

.faq-question span {
    flex-grow: 1;
    padding-right: 1rem; /* Space between text and icon */
    line-height: 1.4;
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--dark-gray); /* Default icon color */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color); /* Red icon when active (up arrow) */
}

.faq-item .faq-icon {
     color: #01AA90; /* Green icon when inactive (down arrow) */
}


.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease-out, margin-top 0.3s ease-out;
    padding: 0 1.5rem; /* Horizontal padding is consistent */
    margin-top: 0;
}

.faq-answer p {
    margin-bottom: 0; /* Remove default bottom margin if answer is just one p */
    padding-bottom: 1.5rem; /* Add padding at the bottom *inside* the p if needed, or adjust .faq-answer padding */
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
}

/* Add padding and margin *when active* - handled by JS now */
/* .faq-item.active .faq-answer { */
    /* padding-top: 0.5rem; */
    /* padding-bottom: 1.5rem; */
    /* margin-top: 0.5rem; */ /* Creates visual separation */
/* } */


/* --- Responsive Adjustments --- */
@media (max-width: 767.98px) {
    .faq-grid {
        flex-direction: column; /* Stack columns */
        gap: 0; /* Remove gap when stacked */
    }
    .faq-column {
        margin-bottom: 1.5rem; /* Add space between stacked columns */
    }
     .faq-column:last-child {
        margin-bottom: 0;
    }
    .faq-question {
         padding: 1rem 1.25rem;
    }
     .faq-answer {
         padding: 0 1.25rem;
    }
}

/* ============================================= */
/* == End FAQ Section == */
/* ============================================= */

/* Styles specific to the Trip Card Row Component */

.trip-card-row-section {
    padding: 2rem 0; /* Add vertical spacing around the section */
    /* Add margin-bottom if needed before the next section */
    margin-bottom: 1rem;
}

.trip-row-title {
    text-align: center;
    font-size: 1.8rem; /* Adjust size as needed */
    font-weight: 600;
    margin-bottom: 2rem; /* Space between title and cards */
    color: var(--dark-gray); /* Use your theme's color */
}

/* Optional: Minor adjustments for the grid in this specific context */
.trip-row-grid {
    /* You might potentially limit the max-width or add specific padding here */
    /* but often relying on the container's width is sufficient. */
    /* Example: max-width: 1200px; margin: 0 auto; */
}


.show-more-button-container {
    text-align: center;
    margin-top: 2.5rem; /* Space between cards and button */
}

.btn-show-more {
    /* Inherits styles from .btn and .btn-primary */
    /* Add specific overrides here if necessary */
    padding: 0.8rem 2rem; /* Example: adjust padding */
    font-size: 1rem;
}

/* Responsive Adjustments for the title */
@media (max-width: 768px) {
    .trip-row-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .trip-card-row-section {
        padding: 1.5rem 0;
    }
    .show-more-button-container {
        margin-top: 2rem;
    }
}

/* =============================================== */
/* == CARD STYLES (from your filter.css code) == */
/* =============================================== */
/* This CSS should be loaded on any page that uses */
/* the <x-trip-card-row> component OR the filter page. */
/* Do NOT duplicate this if it already exists in your project CSS. */

.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Base: 1 column */
    gap: 1.5rem; /* Gap between cards */
}

.product-card {
    background-color: var(--white); /* Use CSS variables if defined */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Ensure link doesn't have underline */
    color: inherit; /* Inherit text color */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-image {
    position: relative;
    line-height: 0; /* Remove extra space below image */
}

.card-image img {
    width: 100%;
    height: 200px; /* Default height, adjust as needed */
    object-fit: cover; /* Crop image nicely */
    display: block;
}

.card-content {
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow content to fill space */
    border-top: 1px solid #eee; /* Use var(--light-gray) if defined */
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333; /* Use var(--dark-gray) if defined */
    margin-bottom: 0.75rem;
    line-height: 1.4;
    /* Limit title to 2 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em; /* Ensure space for two lines */
}

.card-footer {
    margin-top: auto; /* Push footer to bottom */
    padding-top: 0.75rem;
    border-top: 1px solid #eee; /* Use var(--light-gray) if defined */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
}

.card-price {
    font-weight: 600;
    color: #B52C3A; /* Use var(--primary-color) if defined */
    font-size: 15px;
}

.card-price span {
    font-weight: 500;
    font-size: 0.85em;
    color: #666;
}

.card-duration {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #555; /* Match footer text color */
}

.card-duration i { /* Style for the clock icon */
    margin-right: 5px;
    color: #888; /* Slightly lighter icon color */
}


/* =============================================== */
/* == RESPONSIVE GRID COLUMNS (from filter.css) == */
/* =============================================== */
/* These control how many cards appear per row */

@media (min-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Optional: Adjust image height on larger screens */
    .card-image img {
        height: 220px;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.75rem; /* Slightly larger gap */
    }
}

@media (min-width: 1200px) {
    /* Adjust max columns based on your design preference */
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Specific height override from filter.css - review if needed for component */
@media (max-width: 992px) {
    .card-image img {
         /* height: 281px; <-- You might want to remove or adjust this specific override */
         /* Let's stick to the 200px/220px heights defined above unless */
         /* you specifically need this larger height on medium screens */
    }
}