/* Cotlas Travel Desk Frontend Styles */

/* Gallery Grid Layout (1 Big, 3 Small) */
.ctd-gallery-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Left, 50% Right */
    grid-template-rows: 410px; /* Fixed height for the whole block */
    gap: 10px;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

/* LEFT COLUMN: Item 1 (Big Image) */
.ctd-gallery-grid-layout .item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: 100%;
}

/* RIGHT COLUMN: Nested Grid for Items 2, 3, 4 */
/* We can't nest easily without changing HTML structure, so we use grid-row/column spanning tricks */

/* Re-define grid for the container to handle the right side split */
.ctd-gallery-grid-layout {
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-rows: 200px 200px; /* Two rows of 200px */
    gap: 10px;
}

/* Item 1: Left Column (Spans 2 rows) */
.ctd-gallery-grid-layout .item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Item 2: Right Column, Top Row (Wide) */
.ctd-gallery-grid-layout .item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    border-top-right-radius: 12px;
}

/* To split the bottom right into two, we need to adjust the grid to have more columns implicitly or change HTML. 
   Since HTML is flat list of items, we need a 4-column grid? 
   No, let's use a 2x2 grid on the right. 
   So total grid: 2 columns? No.
   Let's make it a 4-column grid:
   Col 1-2: Big Image
   Col 3-4: Right side stuff.
*/

.ctd-gallery-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 Columns */
    grid-template-rows: 230px 230px; /* 2 Rows */
    gap: 20px;
}

/* Item 1: Left Half (Spans Cols 1-2, Rows 1-2) */
.ctd-gallery-grid-layout .item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Item 2: Right Top (Spans Cols 3-4, Row 1) */
.ctd-gallery-grid-layout .item-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
    border-radius: 12px;
}

/* Item 3: Right Bottom Left (Col 3, Row 2) */
.ctd-gallery-grid-layout .item-3 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* Item 4: Right Bottom Right (Col 4, Row 2) */
.ctd-gallery-grid-layout .item-4 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    position: relative;
    border-bottom-right-radius: 12px;
}

/* Common Image Styles */
.ctd-gallery-grid-layout .ctd-gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.ctd-gallery-grid-layout .ctd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.ctd-gallery-grid-layout .ctd-gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Overlay Button */
.ctd-gallery-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 2;
}

.ctd-gallery-btn {
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.2s;
}

.ctd-gallery-btn:hover {
    background: #4CAF50;
    color: #ffffff;
}

.ctd-gallery-btn svg {
    width: 18px;
    height: 18px;
    color: inherit;
}
.ctd-gallery-btn svg:hover {
    color: inherit;
}
/* Responsive adjustments - CAROUSEL MODE */

/* Hide cloned items on desktop to prevent grid breakage */
@media (min-width: 1025px) {
    .ctd-gallery-grid-layout .ctd-cloned {
        display: none !important;
    }
}

/* Tablet & Mobile Base Styles (Carousel) */
@media (max-width: 1024px) {
    .ctd-gallery-grid-layout {
        display: flex;
        overflow-x: auto;
        grid-template-columns: unset;
        grid-template-rows: unset;
        height: 300px; /* Fixed height for carousel */
        gap: 10px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .ctd-gallery-grid-layout::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    /* Reset all items to be slider slides */
    .ctd-gallery-grid-layout .ctd-gallery-item {
        height: 100%;
        border-radius: 12px; /* Restore rounded corners for all */
        margin: 0;
        
        /* Default to 2 columns (Tablet) */
        flex: 0 0 calc(50% - 5px);
        width: calc(50% - 5px);
        min-width: calc(50% - 5px);
    }

    /* Reset Grid Positioning */
    .ctd-gallery-grid-layout .item-1,
    .ctd-gallery-grid-layout .item-2,
    .ctd-gallery-grid-layout .item-3,
    .ctd-gallery-grid-layout .item-4 {
        grid-column: unset;
        grid-row: unset;
        border-radius: 12px;
    }
    
    /* Ensure images fill the card */
    .ctd-gallery-grid-layout .ctd-gallery-item img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* Hide Gallery Button in Mobile/Tablet */
    .ctd-gallery-overlay {
        display: none;
    }
}

/* Mobile Specific (1 Column Carousel) */
@media (max-width: 767px) {
    .ctd-gallery-grid-layout {
        height: 250px; /* Slightly shorter on mobile */
    }
    
    .ctd-gallery-grid-layout .ctd-gallery-item {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
    }
}

/* Slider Dots */
.ctd-gallery-dots {
    display: none; /* Hidden on desktop */
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    /* Position absolutely at bottom if needed, or just below */
    position: absolute;
    bottom: 10px;
    left: 0;
    z-index: 10;
}

@media (max-width: 1024px) {
    /* Wrap gallery to separate it from dots */
    .ctd-gallery-grid-layout {
        position: relative; 
        padding-bottom: 0; 
        margin-bottom: 10px; /* Space between slider and dots */
        scroll-behavior: smooth; /* Native smooth scroll */
    }
    
    .ctd-gallery-dots {
        display: flex;
        justify-content: center; 
        width: 100%;
        margin-top: 15px;
        margin-bottom: 20px;
        position: relative; /* Ensure it stays in flow */
        z-index: 5;
    }
    
    /* Disable pointer events on links in mobile/tablet to prevent lightbox */
    .ctd-gallery-grid-layout .ctd-gallery-item a {
        pointer-events: none;
        cursor: default;
    }
}

.ctd-dot {
    width: 8px;
    height: 8px;
    background: #ccc; 
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ctd-dot.active {
    background: #333; /* Dark active color */
    transform: scale(1.2);
}
.ctd-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ctd-highlights-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}
.ctd-highlights-list li svg {
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    color: #046c78; /* Example Color */
    flex-shrink: 0;
}

.ctd-includes-list,
.ctd-excludes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 10px;
    column-gap: 10px;
}
.ctd-includes-list li,
.ctd-excludes-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}
.ctd-includes-list li svg,
.ctd-excludes-list li svg {
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.ctd-includes-list li svg {
    color: #2e7d32;
}
.ctd-excludes-list li svg {
    color: #b32d2e;
    display: block;
    fill: currentColor;
}

/* Itinerary - Timeline Redesign */
.ctd-itinerary-container {
    width: 100%;
}

.ctd-itinerary-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ctd-itinerary-main-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.ctd-expand-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctd-switch-label {
    font-size: 16px;
    color: #666;
    cursor: pointer;
}

/* Switch Toggle (iOS style) */
.ctd-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.ctd-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ctd-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.ctd-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .ctd-slider {
    background-color: #046c78; /* Theme Teal */
}

input:focus + .ctd-slider {
    box-shadow: 0 0 1px #046c78;
}

input:checked + .ctd-slider:before {
    transform: translateX(18px);
}

.ctd-slider.round {
    border-radius: 34px;
}

.ctd-slider.round:before {
    border-radius: 50%;
}

/* Timeline List */
.ctd-itinerary-wrapper {
    position: relative;
    /* Dotted Line on the left */
    border-left: 2px dashed #046c78;
    margin-left: 20px;
    padding-left: 40px;
}

.ctd-itinerary-item {
    margin-bottom: 30px;
    position: relative;
}

.ctd-itinerary-item:last-child {
    margin-bottom: 0;
}

/* Markers */
.ctd-itinerary-marker {
    position: absolute;
    left: -62px; /* Adjust to center on line */
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff; /* Mask line behind marker */
}

/* Inactive Circle */
.ctd-marker-circle {
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid #046c78;
    border-radius: 50%;
    background: #fff;
}

/* Active Pin */
.ctd-marker-pin {
    display: none;
    width: 42px;
    height: 42px;
    background: #046c78;
    border-radius: 50%;
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ctd-marker-pin svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

/* Active State Styles */
.ctd-itinerary-item.active .ctd-marker-circle {
    display: none;
}
.ctd-itinerary-item.active .ctd-marker-pin {
    display: flex;
}
/* Adjust marker position when pin is shown to center it correctly */
.ctd-itinerary-item.active .ctd-itinerary-marker {
    left: -61px;
    top: -3px;
}

.ctd-itinerary-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ctd-itinerary-item.active .ctd-itinerary-header {
    border-bottom: none;
}

.ctd-itinerary-day-title {
    margin: 0;
    font-size: 18px;
    line-height: 2;
    font-weight: 700;
}

.ctd-itinerary-content {
    display: none; /* Collapsed by default */
    color: #666;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ctd-itinerary-toggle-icon {
    transition: transform 0.3s ease;
}

.ctd-itinerary-item.active .ctd-itinerary-content {
    display: block;
}

.ctd-itinerary-item.active .ctd-itinerary-toggle-icon {
    transform: rotate(180deg);
}

/* Itinerary Flex Layout (Image Left, Text Right) */
.ctd-itinerary-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ctd-itinerary-image {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
}

.ctd-itinerary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.ctd-itinerary-text {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: #0f1d23;
}

/* Mobile Responsive for Itinerary */
@media (max-width: 767px) {
    .ctd-itinerary-flex {
        flex-direction: column;
    }
    
    .ctd-itinerary-image {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .ctd-itinerary-image img {
        height: 100%;
        max-height: 300px;
    }
}


/* FAQs - Accordion */
.ctd-faqs-wrapper {
    /* border: 1px solid #e5e5e5; */
    border-radius: 4px;
}
.ctd-faq-item {
    /* border-bottom: 1px solid #e5e5e5; */
    margin-bottom: 21px;
}
.ctd-faq-item:last-child {
    border-bottom: none;
}
.ctd-faq-header {
    padding: 15px 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.ctd-faq-content {
    display: none;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
}
.ctd-faq-item.active .ctd-faq-content {
    display: block;
}
.ctd-faq-icon {
    transition: transform 0.3s ease;
}
.ctd-faq-item.active .ctd-faq-icon {
    transform: rotate(180deg);
}

/* Extra Services */
.ctd-extra-services {
    display: grid;
    gap: 15px;
}
.ctd-service-item {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
}
.ctd-service-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Downloads */
.ctd-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ctd-download-item a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Overview & More Info */
.ctd-section-title {
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: bold;
}
.gb-text.price {
    font-size: 1.25em;
    font-weight: 700;
}
.gb-text.price .pricing-type {
    font-size: 0.85em;
    font-weight: 500;
    margin-left: 6px;
}
.service-description p {
    margin-bottom: 5px;
}
.three-line {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Controls number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4; /* Adjust based on your font */
    max-height: calc(1.4em * 3); /* line-height × number of lines */
}
.four-line {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Change to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: calc(1.4em * 4); /* line-height × 4 */
}

/* Responsive Map Iframe */
.ctd-map-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
}
.ctd-map-iframe iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Search Bar */
.ctd-search-form {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.ctd-search-bar {
    display: flex;
    align-items: center;
    background: #ffffffa8;
    border-radius: 50px;
    box-shadow: 0px 1px 8px rgb(171 171 171 / 75%);;
    padding: 6px 6px;
    flex-wrap: wrap;
    position: relative;
    gap: 20px;
}

.ctd-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 4px;
    position: relative;
    border-right: 1px solid #eee;
    min-width: 250px;
}
.ctd-search-field.ctd-search-destination, .ctd-search-field.ctd-search-activity, .ctd-search-field.ctd-search-triptype{
    padding: 4px 8px;
    border-radius: 4px;
}
@media (max-width: 1024px) {
    .ctd-search-field {
        min-width: 150px;
    }
}
.ctd-search-field:last-child {
    border-right: none;
}

.ctd-search-field i,
.ctd-search-field svg {
    color: var(--primary-text);
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.ctd-search-field input,
.ctd-search-field select {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 15px;
    color: #333;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
}

.ctd-search-field input::placeholder {
    color: #888;
}

/* Remove default select styling if possible, or style nicely */
.ctd-search-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.ctd-search-submit {
    padding-left: 10px;
}

.ctd-search-submit button {
    background: var(--accent);
    padding: 10px 25px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.ctd-search-submit button:hover {
    background: var(--white) !important;
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .ctd-search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        gap: 15px;
    }
    
    .ctd-search-field {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
    
    .ctd-search-submit {
        width: 100%;
        padding-left: 0;
        margin-top: 10px;
    }
    
    .ctd-search-submit button {
        width: 100%;
    }
}

/* =========================================
   NEW ADDITIONS: SELECT2 & FILTERS
   ========================================= */

/* Select2 Customization for Search Bar */
.ctd-search-field .select2-container {
    width: 100% !important;
    flex: 1;
}

.ctd-search-field .select2-container--default .select2-selection--single {
    background-color: transparent;
    border: none;
    height: auto;
    padding: 0;
    display: flex;
    align-items: center;
}

.ctd-search-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    line-height: 1.5;
    padding-left: 0;
    font-size: 15px;
    font-weight: 500;
}

.ctd-search-field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 0;
    position: relative;
    width: 20px;
}

.ctd-search-field .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    margin-top: -2px;
}

/* Dropdown Styling */
.select2-dropdown {
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 15px;
    z-index: 9999;
    padding: 10px;
    border: none;
}

.select2-search--dropdown {
    padding: 5px 10px 10px 10px;
}

.select2-search__field {
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    outline: none;
}

.select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 2px;
    color: #555;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #fff8ee;
    color: #f7a028; /* Fallback */
    color: var(--primary, #f7a028);
    font-weight: 500;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f7a028; /* Fallback */
    background-color: var(--primary, #f7a028);
    color: white;
}

/* Filter Sidebar */
.ctd-filter-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ctd-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ctd-filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.ctd-clear-all {
    font-size: 13px;
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
}

.ctd-filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 20px;
}

.ctd-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ctd-filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ctd-filter-group.active .ctd-accordion-icon::after {
    transform: rotate(180deg);
}

.ctd-filter-content {
    display: block; /* Default open */
}

.ctd-filter-group.closed .ctd-filter-content {
    display: none;
}

.ctd-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctd-filter-list li {
    margin-bottom: 10px;
}

.ctd-hidden-item {
    display: none;
}

.ctd-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    justify-content: space-between;
    width: 100%;
}

.ctd-checkbox-label input {
    display: none;
}

.ctd-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

.ctd-checkbox-label input:checked + .ctd-checkbox-custom {
    background: #046c78;
    border-color: #046c78;
}

.ctd-checkbox-label input:checked + .ctd-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ctd-term-name {
    flex-grow: 1;
}

.ctd-term-count {
    color: #999;
    font-size: 12px;
}

.ctd-show-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #046c78;
    text-decoration: none;
    font-weight: 500;
}

/* Range Slider */
.ctd-range-slider {
    margin: 15px 5px;
    height: 4px;
    background: #e0e0e0;
    border: none;
}

.ctd-range-slider .ui-slider-range {
    background: #046c78;
}

.ctd-range-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #046c78;
    border-radius: 50%;
    top: -6px;
    cursor: pointer;
    outline: none;
}

.ctd-range-inputs {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ctd-apply-filters-btn {
    width: 100%;
    background: #046c78;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.ctd-apply-filters-btn:hover {
    background: #035660;
}

/* Sort Dropdown */
.ctd-sort-dropdown select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 200px;
}

/* Archive Search */
.ctd-archive-search {
    position: relative;
    max-width: 100%;
}

.ctd-archive-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ctd-archive-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Taxonomy Slider */
.ctd-taxonomy-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.ctd-taxonomy-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.ctd-taxonomy-slider::-webkit-scrollbar {
    display: none;
}

.ctd-taxonomy-slide {
    flex: 0 0 calc(25% - 15px); /* 4 columns default */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4; /* Portrait cards */
    
}

.ctd-tax-card {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.ctd-tax-image {
    width: 100%;
    height: 100%;
    background: #eee;
}

.ctd-tax-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.ctd-tax-card:hover .ctd-tax-image img {
    transform: scale(1.1);
}

.ctd-tax-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.ctd-tax-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.ctd-tax-count {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fallback for no image */
.ctd-no-image {
    width: 100%;
    height: 100%;
    background-color: #046c78;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ctd-no-image::after {
    content: '\f3c5'; /* Map pin or similar */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 40px;
    color: rgba(255,255,255,0.2);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .ctd-taxonomy-slide {
        flex: 0 0 calc(33.333% - 14px); /* 3 columns for tablet landscape */
    }
}

@media (max-width: 768px) {
    .ctd-taxonomy-slide {
        flex: 0 0 calc(50% - 10px); /* 2 columns for tablet portrait */
    }
    .ctd-tax-title {
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    .ctd-taxonomy-slide {
        flex: 0 0 100%; /* 1 column mobile */
    }
}

/* Style 2 - Cleaner Look (No Count, different overlay) */
.ctd-taxonomy-slider-wrapper.style-2 .ctd-tax-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 20px;
    justify-content: flex-end;
}

.ctd-taxonomy-slider-wrapper.style-2 .ctd-tax-title {
    font-size: 20px;
    font-weight: 600;
    text-transform: none; /* Keep original case */
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 0;
}

/* Optional: Different hover effect for Style 2 */
.ctd-taxonomy-slider-wrapper.style-2 .ctd-tax-card:hover .ctd-tax-title {
    color: #f7a028; /* Highlight color on hover */
    transition: color 0.3s ease;
}

/* =========================================
   SWIPER TAXONOMY SLIDER STYLES
   ========================================= */

.ctd-taxonomy-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    padding-bottom: 40px; /* Space for pagination */
}

.ctd-swiper-instance {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

.ctd-swiper-instance .swiper-slide {
    background-position: center;
    background-size: cover;
    /* Common slide sizing */
    width: 300px; 
    height: 400px;
}

/* Style 1: Coverflow Specifics */
.ctd-taxonomy-slider-container.style-1 .swiper-slide {
    width: 300px;
    height: 400px; /* Portrait aspect ratio */
}

@media (min-width: 768px) {
    .ctd-taxonomy-slider-container.style-1 .swiper-slide {
        width: 350px;
        height: 450px;
    }
}

/* Card Styling (Shared) */
.ctd-tax-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: #fff;
}

.ctd-tax-media {
    width: 100%;
    height: 100%;
}

.ctd-tax-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ctd-tax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ctd-tax-card:hover .ctd-tax-img {
    transform: scale(1.1);
}

.ctd-tax-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
    z-index: 2;
    pointer-events: none; /* Let clicks pass to link */
}

.ctd-tax-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.ctd-tax-title a {
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
}

.ctd-tax-count {
    display: block;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Style 2 Overrides (Grid/Standard) */
.ctd-taxonomy-slider-container.style-2 .swiper-slide {
    height: 350px; /* Slightly shorter */
    width: auto; /* Allow swiper to handle width based on slidesPerView */
}

/* Navigation Arrows */
.ctd-swiper-prev,
.ctd-swiper-next {
    color: #333; /* Dark arrow */
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    
    top: 50%;
    transform: translateY(-50%);
}

.ctd-swiper-prev::after,
.ctd-swiper-next::after {
    font-size: 18px;
    font-weight: bold;
}

.ctd-swiper-prev:hover,
.ctd-swiper-next:hover {
    background: #046c78; /* Theme Color */
    color: #fff;
}

/* Pagination Bullets */
.ctd-swiper-pagination {
    bottom: 0 !important;
}

.ctd-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s;
}

.ctd-swiper-pagination .swiper-pagination-bullet-active {
    background: #046c78; /* Theme Color */
    width: 24px; /* Elongated active bullet */
    border-radius: 5px;
}

/* Force display block to prevent disappearances */
.ctd-swiper-instance {
    overflow: hidden; /* Important for swiper */
    visibility: visible;
}

/* Fix for disappearing images in Swiper Coverflow */
.ctd-taxonomy-slider-container.style-1 .swiper-slide {
    /* Ensure 3D transform works */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.ctd-taxonomy-slider-container.style-1 .swiper-wrapper {
    /* Ensure wrapper doesn't collapse */
    align-items: center;
}

/* Style 2 Fixes */
.ctd-taxonomy-slider-container.style-2 .ctd-tax-content {
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ctd-taxonomy-slider-container.style-2 .ctd-tax-title {
    font-size: 20px;
    margin-bottom: 5px;
}

/* Ensure figure doesn't mess up layout */
.ctd-tax-figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

/* Style 1 Specific Adjustments */
.ctd-taxonomy-slider-container.style-1 .swiper-slide {
    width: 300px;
    height: 400px;
    transition: transform 0.3s;
    /* Add padding/margin to simulate spacing if not handled by spaceBetween */
    /* Swiper spaceBetween doesn't work well with coverflow sometimes, but let's try via JS config or here */
}

/* Ensure only 5 slides visible logic (approximate via CSS/JS width) */
/* On desktop, we want: [2 left] [CENTER] [2 right] = 5 visible */
@media (min-width: 1200px) {
    .ctd-taxonomy-slider-container.style-1 .swiper-slide {
        width: 300px; /* Adjust based on container width to fit 5 */
    }
}

/* Hide bullets for Style 1 if present */
.ctd-taxonomy-slider-container.style-1 .swiper-pagination {
    display: none !important;
}

/* Hide arrows for Style 2 if present */
.ctd-taxonomy-slider-container.style-2 .ctd-swiper-prev,
.ctd-taxonomy-slider-container.style-2 .ctd-swiper-next {
    display: none !important;
}

/* Mobile: Single Image Slider for Style 1 */
@media (max-width: 767px) {
    .ctd-taxonomy-slider-container.style-1 .swiper-slide {
        width: 85%; /* Peek effect */
        height: 350px;
    }
}

/* Style 1 - Ensure 5 slides visible on desktop */
@media (min-width: 1200px) {
    .ctd-taxonomy-slider-container.style-1 .swiper-slide {
        /* If container is 1200px, 5 slides = 240px each approx */
        /* But coverflow overlaps. We need them to be roughly 1/3 or 1/4 of container */
        width: 30%; 
        max-width: 400px;
    }
}

/* Ensure Navigation Arrows are Visible */
.ctd-taxonomy-slider-container.style-1 .ctd-swiper-prev,
.ctd-taxonomy-slider-container.style-1 .ctd-swiper-next {
    display: flex !important;
    z-index: 50 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute;
}

/* Move arrows outside if needed, or ensure they overlap content */
.ctd-taxonomy-slider-container.style-1 .ctd-swiper-prev {
    left: 10px;
}
.ctd-taxonomy-slider-container.style-1 .ctd-swiper-next {
    right: 10px;
}

/* Spacing between images in Style 1 */
/* Coverflow handles overlap via depth/rotate, but margin can help */
.ctd-taxonomy-slider-container.style-1 .swiper-slide {
    margin-right: 0px; /* Swiper handles space via gap usually, but coverflow ignores it mostly */
    /* To add "padding between images", we might need inner padding */
}

.ctd-taxonomy-slider-container.style-1 .ctd-tax-card {
    /* Add scale transition */
    transition: transform 0.3s;
}

/* Style 2 - Hide Arrows */
.ctd-taxonomy-slider-container.style-2 .ctd-swiper-prev,
.ctd-taxonomy-slider-container.style-2 .ctd-swiper-next {
    display: none !important;
}

/* Style 1 - Fixed Widths for Coverflow */
.ctd-taxonomy-slider-container.style-1 .swiper-slide {
    width: 85%; /* Mobile Default */
    height: 400px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .ctd-taxonomy-slider-container.style-1 .swiper-slide {
        width: 40%; /* Tablet: ~3 visible */
    }
}

@media (min-width: 1200px) {
    .ctd-taxonomy-slider-container.style-1 .swiper-slide {
        width: 25%; /* Desktop: ~5 visible (20% * 5 = 100%, but 25% allows overlap) */
        max-width: 350px;
    }
}

/* Ensure Active Slide is on Top */
.ctd-taxonomy-slider-container.style-1 .swiper-slide-active {
    z-index: 10;
}

/* Navigation Arrows Positioning - Centered vertically, outside or on edge */
.ctd-taxonomy-slider-container.style-1 .ctd-swiper-prev,
.ctd-taxonomy-slider-container.style-1 .ctd-swiper-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    cursor: pointer;
    color: #333;
}

.ctd-taxonomy-slider-container.style-1 .ctd-swiper-prev {
    left: 10px;
}

.ctd-taxonomy-slider-container.style-1 .ctd-swiper-next {
    right: 10px;
}

.ctd-taxonomy-slider-container.style-1 .ctd-swiper-prev::after,
.ctd-taxonomy-slider-container.style-1 .ctd-swiper-next::after {
    font-size: 20px;
}

/* Style 1 - Override for Swiper 8 + Coverflow */
.ctd-taxonomy-slider-container.style-1 .swiper-slide {
    /* Reset margins that might conflict */
    margin: 0 !important;
    /* Ensure proper box model */
    box-sizing: border-box;
    /* Width logic remains from previous steps (25% desktop, etc) */
}

/* Ensure the wrapper allows 3D */
.ctd-taxonomy-slider-container.style-1 .swiper-wrapper {
    transform-style: preserve-3d;
}

/* Fix Navigation Arrows Z-Index again just in case */
.ctd-taxonomy-slider-container.style-1 .ctd-swiper-prev,
.ctd-taxonomy-slider-container.style-1 .ctd-swiper-next {
    z-index: 99 !important;
}

/* Taxonomy Slider - Navigation & Pagination */
.ctd-taxonomy-slider-wrapper {
    /* Ensure wrapper has space for arrows */
    padding: 0 50px; /* Space for absolute arrows */
    box-sizing: border-box;
}

.ctd-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #eee;
    
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.ctd-slider-nav:hover {
    background-color: #046c78;
    color: #fff;
    border-color: #046c78;
}

.ctd-prev {
    left: 0;
}

.ctd-next {
    right: 0;
}

.ctd-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.ctd-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ctd-slider-dot.active {
    background-color: #046c78;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .ctd-taxonomy-slider-wrapper {
        padding: 0; /* Remove side padding on mobile */
    }
    .ctd-slider-nav {
        display: none; /* Hide arrows on mobile, swipe is better */
    }
    .ctd-taxonomy-slider {
        padding-bottom: 20px; /* Space for scrollbar if visible, though we hide it */
    }
}

/* Taxonomy Slider - Updated Navigation & Mobile Bullets */

/* Navigation Container (Split Left/Right) */
.ctd-slider-nav-container {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    z-index: 20;
    pointer-events: none; /* Allow clicks to pass through */
    padding: 0 0px; /* Offset from edges */
    box-sizing: border-box;
}

/* Adjust wrapper padding to accommodate controls */
.ctd-taxonomy-slider-wrapper {
    padding-left: 50px; 
    padding-right: 50px;
}

/* Override previous absolute positioning of individual buttons */
.ctd-slider-nav {
    position: static; /* Let flexbox handle layout */
    transform: none;
    margin: 0;
    pointer-events: auto; /* Re-enable clicks */
}

/* Ensure mobile bullets are visible */
@media (max-width: 768px) {
    .ctd-taxonomy-slider-wrapper {
        padding-left: 0; 
        padding-right: 0;
    }
    .ctd-slider-nav-container {
        display: none; /* Hide arrows on mobile */
    }
    .ctd-slider-dots {
        display: flex !important; /* Force show */
        margin-top: 20px;
        padding-bottom: 10px;
    }
}

/* =========================================
   Trip Card Styles (Slider & Grid)
   ========================================= */

.ctd-trip-card {
    background: #fff;
    border: 1px solid #cfd8e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Image Section */
.ctd-trip-image {
    position: relative;
    padding-top: 65%; /* Aspect Ratio */
    overflow: hidden;
}

.ctd-trip-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ctd-trip-card:hover .ctd-trip-image img {
    transform: scale(1.1);
}

/* Badges */
.ctd-trip-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ctd-badge {
    background: #ff6b00;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Wishlist Button */
.ctd-wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #C6C6C6;
    transition: all 0.2s ease;
}

.ctd-wishlist-btn:hover {
    background: #fff;
    color: #ff4d4d;
    transform: scale(1.1);
}

/* Content Section */
.ctd-trip-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ctd-trip-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ctd-trip-location i,
.ctd-trip-location svg {
    color: #999;
}

.ctd-trip-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
    /* Limit lines if desired, or let it grow */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em; /* Fixed height for title alignment */
}

.ctd-trip-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}

.ctd-trip-title a:hover {
    color: #046c78;
}

/* Meta Info (Duration etc) */
.ctd-trip-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
}

.ctd-meta-item i,
.ctd-meta-item svg {
    color: #046c78;
    margin-right: 5px;
}

.ctd-meta-item svg {
    width: 16px;
    height: 16px;
}

/* Footer (Price) */
.ctd-trip-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px; /* Ensure space even if elements wrap */
}

/* Ensure title doesn't push footer out excessively but allows growth */
.ctd-trip-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
    /* Limit lines if desired, or let it grow */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* Fixed height for title alignment */
}

.ctd-meta-item.duration {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
}

.ctd-trip-price .from-text {
    font-size: 13px;
    color: #777;
}

.ctd-trip-price .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.ctd-trip-price .current-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

/* =========================================
   Trip Grid Layout
   ========================================= */

.ctd-trip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .ctd-trip-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ctd-trip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .ctd-trip-grid {
        grid-template-columns: 1fr;
    }
}

/* Load More Button */
.ctd-load-more-container {
    text-align: center;
    margin-top: 20px;
}

.ctd-load-more-btn {
    background: #046c78;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ctd-load-more-btn:hover {
    background: #035660;
}

.ctd-load-more-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Slider Overrides for Trip Card */
/* Ensure slide wrapper handles card height */
.ctd-trip-slide {
    height: auto;
    padding-bottom: 20px; /* Shadow space increased to prevent footer clipping */
    margin-bottom: 5px;
    aspect-ratio: auto !important; /* Allow content to dictate height */
    overflow: visible; /* Allow shadow to show */
}

/* Slider Width Fix */
.ctd-taxonomy-slider-wrapper {
    max-width: var(--gb-container-width, 100%) !important; /* Use variable with fallback */
    width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
    margin-left: auto; /* Center if container allows */
    margin-right: auto;
}

/* Ensure inner slider doesn't overflow */
.ctd-taxonomy-slider {
    width: 100%;
    box-sizing: border-box;
}

/* Fix double shadow */
.ctd-taxonomy-slide {
    box-shadow: none !important; /* Remove shadow from slide wrapper */
}

/* Ensure cards inside have shadow */
.ctd-trip-card, .ctd-tax-card {
    box-shadow: none;
}

/* Google Reviews Slider */
.ctd-google-reviews-wrapper {
    position: relative;
    padding: 20px 0;
}
.ctd-google-reviews-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
}
.ctd-google-reviews-slider::-webkit-scrollbar {
    display: none;
}
.ctd-review-item {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .ctd-review-item {
        width: 85%;
    }
}
.ctd-review-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ctd-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.ctd-review-author-img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}
.ctd-review-author-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.ctd-review-author-info {
    flex: 1;
}
.ctd-review-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    line-height: 1.2;
}
.ctd-review-date {
    font-size: 12px;
    color: #888;
}
.ctd-review-google-logo {
    width: 24px;
    height: 24px;
}
.ctd-review-stars {
    color: #fbbc05;
    font-size: 14px;
    margin-bottom: 10px;
}
.ctd-review-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
/* Grid Style */
.ctd-google-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.ctd-google-reviews-grid .ctd-review-item {
    width: auto;
}

/* Updated Google Reviews Layout - Badge + Slider */
.ctd-google-reviews-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Left Badge */
.ctd-google-badge {
    flex: 0 0 200px;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid #eee;
}
.ctd-badge-title {
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.ctd-badge-stars {
    color: #fbbc05;
    font-size: 24px;
    margin-bottom: 5px;
}
.ctd-badge-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}
.ctd-badge-logo svg {
    display: inline-block;
    height: 24px;
    width: auto;
}

/* Right Slider */
.ctd-reviews-slider-container {
    flex: 1;
    min-width: 0; /* Important for flex child to shrink */
    position: relative;
    padding-left: 20px;
}
.ctd-reviews-slider-container .ctd-slider-nav-container {
    position: absolute;
    left: -20px; /* Overlap the border/padding area */
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 40px);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}
.ctd-reviews-slider-container .ctd-slider-nav {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.ctd-reviews-slider-container .ctd-slider-nav:hover {
    background: #fbbc05;
    border-color: #fbbc05;
    color: #fff;
}
.ctd-reviews-slider-container .ctd-prev {
    transform: translateX(-50%);
}
.ctd-reviews-slider-container .ctd-next {
    transform: translateX(50%);
}

/* Card Updates */
.ctd-review-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
}
.ctd-review-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}
.ctd-mini-g-logo {
    margin-left: auto;
}
.ctd-review-text {
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}
.ctd-read-more {
    color: #aaa;
    font-size: 12px;
    text-decoration: none;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .ctd-google-reviews-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        text-align: center;
    }
    .ctd-google-badge {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
        flex: auto;
    }
    .ctd-reviews-slider-container {
        padding-left: 0;
    }
}

/* =========================================
   SINGLE IMAGE / FEATURED IMAGE FALLBACK
   ========================================= */

.ctd-gallery-grid-layout.ctd-single-image-gallery {
    display: block; /* Disable grid */
    grid-template-columns: unset;
    grid-template-rows: unset;
    height: 450px; /* Nice hero height */
    width: 100%;
}

.ctd-gallery-grid-layout.ctd-single-image-gallery .ctd-gallery-item {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Ensure Item 1 (the only item) spans full width/height properly */
.ctd-gallery-grid-layout.ctd-single-image-gallery .item-1 {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
    height: 100%;
}

.ctd-gallery-grid-layout.ctd-single-image-gallery img {
    object-fit: cover;
    object-position: center; /* Center the image */
    width: 100%;
    height: 100%;
}

/* On desktop, increase height to show more image */
@media (min-width: 1025px) {
    .ctd-gallery-grid-layout.ctd-single-image-gallery {
        height: 550px!important; /* Increased from 450px */
    }
}

/* Video Button Styling */
.ctd-video-btn {
    margin-left: 10px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.ctd-video-btn:hover {
    background: #FF0000; /* YouTube Red */
    color: #fff;
    border-color: #FF0000;
}

.ctd-video-btn svg {
    margin-right: 5px;
}

/* Adjust overlay for single image to be more prominent? */
.ctd-gallery-grid-layout.ctd-single-image-gallery .ctd-gallery-overlay {
    bottom: 20px;
    right: 20px;
}

/* Responsive adjust for single image */
@media (max-width: 768px) {
    .ctd-gallery-grid-layout.ctd-single-image-gallery {
        height: 300px;
    }
}
