
/* =========================================================
   CARIPULSE TOURS
========================================================= */

.tours-page {
    width: 100%;
    background: #FFFFFF;
    color: #081221;
    font-family: "Poppins", sans-serif;
}

.tours-page *,
.tours-page *::before,
.tours-page *::after {
    box-sizing: border-box;
}

.tours-page [hidden] {
    display: none !important;
}

.tours-page button,
.tours-page input,
.tours-page select {
    font-family: inherit;
}

/* =========================================================
   HERO
========================================================= */

.tours-search-hero {
    position: relative;
    padding: 70px 0 72px;
    background-color: #081221;
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 18, 33, .94) 0%,
            rgba(8, 18, 33, .76) 55%,
            rgba(8, 18, 33, .55) 100%
        ),
        url("/assets/images/CariPulse-Tours.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tours-hero-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px;
}

.tours-hero-copy {
    max-width: 800px;
}

.tours-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #FDB52B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.tours-hero-copy h1 {
    margin: 0 0 13px;
    color: #FFFFFF;
    font-size: clamp(42px, 5vw, 60px);
    line-height: 1.08;
    font-weight: 800;
}

.tours-hero-copy p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.75;
}

/* =========================================================
   SEARCH
========================================================= */

.tours-search-panel {
    display: grid;
    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 16px;
    align-items: end;
    width: 100%;
    min-width: 0;
    padding: 25px;
    border-radius: 22px;
    background: #FFFFFF;
}

.tours-search-field {
    min-width: 0;
}

.tours-search-field label,
.tours-filter-field label {
    display: block;
    margin-bottom: 8px;
    color: #596273;
    font-size: 12px;
    font-weight: 600;
}

.tours-input-control,
.tours-select-control {
    position: relative;
}

.tours-input-control > i,
.tours-select-control > i {
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: #FF0F7B;
    font-size: 14px;
    pointer-events: none;
}

.tours-input-control input,
.tours-select-control select {
    width: 100%;
    height: 54px;
    padding: 0 15px 0 44px;
    border: 1px solid #DFE4EC;
    border-radius: 14px;
    outline: none;
    background: #FFFFFF;
    color: #081221;
    font-size: 13px;
    transition: border-color .2s ease;
}

.tours-select-control select {
    cursor: pointer;
}

.tours-input-control input:focus,
.tours-select-control select:focus,
.tours-filter-field select:focus {
    border-color: #FF0F7B;
}

.tours-search-action button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #FDB52B, #FF0F7B);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================
   BRANDED DROPDOWNS — MATCH EVENTS PAGE
========================================================= */

.tours-search-hero,
.tours-search-panel,
.tours-results-section,
.tours-filters,
.tours-filter-field {
    overflow: visible;
}

.tours-search-panel {
    position: relative;
    z-index: 20;
}

.tours-dropdown {
    position: relative;
    width: 100%;
    min-width: 0;
}

.tours-dropdown-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.tours-dropdown-button {
    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
    padding: 0 18px;

    border: 1px solid #DFE4EC;
    border-radius: 15px;

    background: #FFFFFF;
    color: #081221;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: left;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.tours-dropdown-button:hover {
    border-color: #CCD3DE;
}

.tours-dropdown.is-open .tours-dropdown-button {
    border-color: #FF0F7B;
}

.tours-dropdown-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tours-dropdown-button > i {
    flex-shrink: 0;
    color: #6F7887;
    font-size: 11px;
    transition: transform .2s ease;
}

.tours-dropdown.is-open .tours-dropdown-button > i {
    transform: rotate(180deg);
}

/* MENU */

.tours-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;

    z-index: 120;
    display: none;

    max-height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 7px;

    border: 1px solid #E3E7EE;
    border-radius: 15px;

    background: #FFFFFF;

    scrollbar-width: thin;
    scrollbar-color: #FF0F7B transparent;
}

.tours-dropdown.is-open .tours-dropdown-menu {
    display: block;
}

.tours-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.tours-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.tours-dropdown-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #FF0F7B;
}

.tours-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #E60069;
}

/* OPTIONS */

.tours-dropdown-option {
    width: 100%;
    min-height: 44px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 13px;

    border: none;
    border-radius: 10px;

    background: transparent;
    color: #4E5867;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.tours-dropdown-option:hover {
    background: #F5F7FA;
    color: #081221;
}

.tours-dropdown-option.is-selected {
    background: #FFF0F6;
    color: #FF0F7B;
    font-weight: 600;
}

.tours-dropdown-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ISLAND FLAGS */

.tours-island-flag,
.tours-island-selected-flag {
    display: block;
    width: 24px;
    height: 16px;
    flex-shrink: 0;

    object-fit: cover;
    border-radius: 2px;
}

.tours-island-selected-flag[hidden] {
    display: none !important;
}

.tours-island-button-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* RESULTS FILTER DROPDOWNS */

.tours-filter-field {
    position: relative;
}

.tours-filter-field .tours-dropdown-button {
    min-height: 48px;
    font-size: 13px;
}

/* KEYBOARD ACCESSIBILITY */

.tours-dropdown-button:focus-visible,
.tours-dropdown-option:focus-visible {
    outline: 2px solid #FF0F7B;
    outline-offset: 2px;
}

/* =========================================================
   RESULTS
========================================================= */

.tours-results-section {
    padding: 60px 0 85px;
    background: #FFFFFF;
}

.tours-results-heading,
.tours-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.tours-results-heading {
    margin-bottom: 26px;
}

.tours-results-heading h2,
.tours-section-heading h2 {
    margin: 0;
    color: #081221;
    font-size: clamp(23px, 2.5vw, 30px);
    line-height: 1.3;
    font-weight: 800;
}

.tours-results-heading p {
    margin: 8px 0 0;
    color: #687280;
    font-size: 13px;
}

.tours-clear-search {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid #DFE4EC;
    border-radius: 12px;
    background: #FFFFFF;
    color: #081221;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.tours-clear-search i {
    color: #FF0F7B;
}

.tours-filters {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1.272727fr)
        minmax(0, 1.272727fr);

    grid-column: 1 / -1;
    gap: 16px;
    margin: 0;
    min-width: 0;
}

.tours-filter-field {
    min-width: 0;
}

.tours-filter-field select {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #DFE4EC;
    border-radius: 12px;
    outline: none;
    background: #FFFFFF;
    color: #081221;
    font-size: 12px;
    cursor: pointer;
}

/* =========================================================
   STATES
========================================================= */

.tours-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 65px 25px;
    border: 1px solid #E7EBF1;
    border-radius: 18px;
    background: #FAFBFD;
    text-align: center;
}

.tours-state > i {
    color: #FF0F7B;
    font-size: 35px;
}

.tours-state strong {
    color: #081221;
    font-size: 17px;
}

.tours-state span {
    color: #687280;
    font-size: 13px;
    line-height: 1.7;
}

.tours-state button,
.tours-load-more-wrap button {
    padding: 13px 25px;
    border: 0;
    border-radius: 12px;
    background: #00053D;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================
   FEATURED
========================================================= */

.tours-featured-section {
    margin-bottom: 50px;
}

.tours-featured-section .tours-section-heading {
    margin-bottom: 20px;
}

.tours-carousel-actions {
    display: flex;
    gap: 10px;
}

.tours-carousel-actions button {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid #DFE4EC;
    border-radius: 50%;
    background: #FFFFFF;
    color: #081221;
    cursor: pointer;
}

.tours-carousel-actions button:hover {
    border-color: #FF0F7B;
    color: #FF0F7B;
}

.tours-featured-track {
    display: grid;
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.tours-featured-track::-webkit-scrollbar {
    display: none;
}

.tours-featured-slide {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border-radius: 20px;
    background: #081221;
    scroll-snap-align: start;
    cursor: pointer;
}

.tours-featured-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tours-featured-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(8, 18, 33, .94),
        rgba(8, 18, 33, .12) 80%
    );
    pointer-events: none;
}

.tours-featured-content {
    position: absolute;
    z-index: 1;
    right: 30px;
    bottom: 28px;
    left: 30px;
    color: #FFFFFF;
}

.tours-featured-content h3 {
    margin: 0 0 12px;
    color: #FFFFFF;
    font-size: clamp(22px, 3vw, 32px);
}

.tours-featured-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: #FFFFFF;
    font-size: 13px;
}

.tours-featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tours-featured-meta i {
    color: #FDB52B;
}

.tours-featured-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.tours-featured-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #CBD1DB;
    cursor: pointer;
}

.tours-featured-dots button.is-active {
    width: 25px;
    border-radius: 8px;
    background: #FF0F7B;
}

/* =========================================================
   TOUR GRID
========================================================= */

#tours-companies-heading {
    margin-bottom: 24px;
}

#tours-count {
    color: #FF0F7B;
    font-size: 13px;
    font-weight: 700;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tours-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    overflow: hidden;

    border: 1px solid #E7EBF1;
    border-radius: 18px;

    background: #FFFFFF;
}

.tours-card-image {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: #EEF1F5;
}

.tours-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.tours-card:hover .tours-card-image img {
    transform: scale(1.04);
}

.tours-featured-pill {
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 30px;
    background: #FF0F7B;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
}

.tours-card-body {
    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 0;

    padding: 22px;
}

.tours-card-body h3 {
    margin: 0 0 12px;
    color: #081221;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.tours-card-type {
    margin-bottom: 14px;
    color: #687280;
    font-size: 12px;
}

.tours-card-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0;
    color: #596273;
    font-size: 12px;
    line-height: 1.5;
}

.tours-card-meta i {
    width: 17px;
    flex-shrink: 0;
    color: #FF0F7B;
}

.tours-card-meta .fa-star {
    color: #FDB52B;
}

.tours-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 17px 0;
    color: #687280;
    font-size: 12px;
    line-height: 1.8;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tours-card-action {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;
    min-height: 45px;

    margin-top: auto;

    border: 0;
    border-radius: 12px;

    background: #00053D;
    color: #FFFFFF;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.tours-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

/* =========================================================
   DETAILS
========================================================= */

.tours-detail-view {
    padding: 40px 0 85px;
}

.tours-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 12px 18px;
    border: 1px solid #DFE4EC;
    border-radius: 12px;
    background: #FFFFFF;
    color: #081221;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.tours-detail-back i {
    color: #FF0F7B;
}

.tours-detail-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 410px;
    overflow: hidden;
    border-radius: 20px;
    background-color: #081221;
    background-size: cover;
    background-position: center;
}

.tours-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(8, 18, 33, .92),
        rgba(8, 18, 33, .1)
    );
}

.tours-detail-hero-overlay {
    position: relative;
    z-index: 1;
    padding: 35px;
    color: #FFFFFF;
}

.tours-detail-hero h1 {
    margin: 0 0 12px;
    color: #FFFFFF;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
}

#tours-detail-hero-meta {
    color: #FFFFFF;
    font-size: 13px;
}

.tours-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
    gap: 25px;
    margin-top: 28px;
    align-items: start;
}

.tours-detail-primary {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.tours-detail-card {
    min-width: 0;
    padding: 27px;
    border: 1px solid #E7EBF1;
    border-radius: 18px;
    background: #FFFFFF;
}

.tours-detail-card h2 {
    margin: 0 0 20px;
    color: #081221;
    font-size: 21px;
    font-weight: 700;
}

#tours-detail-description {
    margin: 0;
    color: #596273;
    font-size: 13px;
    line-height: 1.9;
    white-space: pre-line;
}

.tours-detail-info-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 16px 0;
    color: #596273;
    font-size: 12px;
    line-height: 1.7;
}

.tours-detail-info-row i {
    width: 18px;
    margin-top: 3px;
    color: #FF0F7B;
}

.tours-detail-actions {
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

.tours-detail-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #DFE4EC;
    border-radius: 12px;
    background: #FFFFFF;
    color: #081221;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.tours-detail-actions a:hover {
    border-color: #FF0F7B;
    color: #FF0F7B;
}

.tours-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tours-gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #EEF1F5;
    cursor: pointer;
}

.tours-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tours-detail-packages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.tours-package-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E7EBF1;
    border-radius: 14px;
    background: #FFFFFF;
}

.tours-package-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.tours-package-body {
    padding: 17px;
}

.tours-package-body h3 {
    margin: 0 0 9px;
    color: #081221;
    font-size: 15px;
}

.tours-package-body p {
    margin: 8px 0;
    color: #687280;
    font-size: 12px;
    line-height: 1.7;
}

.tours-package-price {
    color: #FF0F7B !important;
    font-weight: 700;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.tours-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 70px 25px 30px;
    background: rgba(0, 0, 0, .94);
}

.tours-lightbox img {
    display: block;
    max-width: calc(100% - 110px);
    max-height: 100%;
    object-fit: contain;
}

.tours-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
}

.tours-lightbox-close,
.tours-lightbox-nav {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: transparent;
    color: #FFFFFF;
    cursor: pointer;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .tours-search-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tours-search-field:first-child {
        grid-column: 1 / -1;
    }

    .tours-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tours-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {

    .tours-search-hero {
        padding: 48px 0;
    }

    .tours-hero-top {
        margin-bottom: 25px;
    }

    .tours-hero-copy p {
        font-size: 13px;
    }

    .tours-search-panel,
    .tours-filters,
    .tours-detail-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .tours-search-panel {
        padding: 18px;
        gap: 14px;
    }

    .tours-search-field:first-child {
        grid-column: auto;
    }

    .tours-filters {
        grid-column: 1;
        gap: 14px;
    }

    .tours-results-section {
        padding: 42px 0 65px;
    }

    .tours-grid {
        grid-template-columns: 1fr;
    }

    .tours-featured-slide {
        min-height: 280px;
    }

    .tours-featured-content {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }

    .tours-detail-hero {
        min-height: 280px;
    }

    .tours-detail-hero-overlay {
        padding: 22px;
    }

    .tours-detail-card {
        padding: 20px;
    }

    .tours-detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tours-detail-packages {
        grid-template-columns: 1fr;
    }

    .tours-lightbox {
        gap: 6px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .tours-lightbox img {
        max-width: calc(100% - 90px);
    }

}


/* =========================================================
   TOUR OPERATOR ENTRY
========================================================= */

.tours-operator-entry {
    width: 100%;
    max-width: 340px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    background: rgba(8, 18, 33, .8);
    color: #FFFFFF;
}

.tours-operator-entry-label {
    display: block;
    margin-bottom: 10px;
    color: #FDB52B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}

.tours-operator-entry p {
    margin: 0 0 20px;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.7;
}

.tours-operator-entry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #FDB52B, #FF0F7B);
    color: #FFFFFF;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s ease;
}

.tours-operator-entry-button:hover {
    color: #FFFFFF;
    text-decoration: none;
    opacity: .9;
}

.tours-operator-entry-button:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .tours-hero-top {
        flex-direction: column;
        align-items: stretch;
    }

    .tours-operator-entry {
        max-width: none;
    }
}



