/* Homepage only: two columns with the existing tour-card markup. */
.home-fit-packages #tour-list-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 20px;
}
.home-fit-packages #tour-list-container > .tourPackageItem {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    container-type: inline-size;
    --title-size: clamp(10px, 2.2cqw, 14px);
    --subtitle-size: clamp(8px, 1.7cqw, 11px);
    --detail-size: clamp(5px, 1.5cqw, 10px);
    --button-size: clamp(9px, 1.9cqw, 12px);
    --price-size: clamp(10px, 2.2cqw, 15px);
}
/* Flex all wrappers so short/online-only cards fill their grid row too. */
.home-fit-packages #tour-list-container .left-side,
.home-fit-packages #tour-list-container .lms-tickets {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
}
.home-fit-packages #tour-list-container .lmst-ticket.new {
    display: flex;
    flex: 1;
    height: auto;
    min-width: 0;
    margin-bottom: 0;
}
.home-fit-packages #tour-list-container .newDesignToursItem .lmstt-left {
    width: 30%;
    min-width: 0;
    flex: 0 0 30%;
    padding: 12px 8px;
}
.home-fit-packages #tour-list-container .newDesignToursItem .lmst-ticket.new .lmstt-right {
    width: 70%;
    min-width: 0;
    padding: 14px 8px;
}
.home-fit-packages #tour-list-container .newDesignToursItem .lmsttr-inner-grid > .col-lg-2 {
    flex: 0 0 12%;
    max-width: 12%;
}
.home-fit-packages #tour-list-container .newDesignToursItem .lmsttr-inner-grid > .col-lg-6 {
    flex: 0 0 60%;
    max-width: 60%;
    min-width: 0;
}
.home-fit-packages #tour-list-container .newDesignToursItem .lmsttr-inner-grid > .col-lg-4 {
    flex: 0 0 28%;
    max-width: 28%;
    min-width: 0;
}
.home-fit-packages #tour-list-container .lmsttrig-inner {
    padding: 0 4px;
    min-width: 0;
}
.home-fit-packages #tour-list-container .airline-pic {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: none;
    flex-shrink: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover !important;
    object-position: center;
    padding: 0 !important;
    margin-left: 0;
}
.home-fit-packages #tour-list-container .lmsttrig-inner h3.customTitle {
    font-size: var(--title-size);
    font-weight: 700;
    white-space: nowrap;
}
.home-fit-packages #tour-list-container .subTitlePackage,
.home-fit-packages #tour-list-container .mobileMiddle {
    font-size: var(--subtitle-size);
    white-space: nowrap;
}
.home-fit-packages #tour-list-container .airline-hotel,
.home-fit-packages #tour-list-container .daynights,
.home-fit-packages #tour-list-container .daynights div,
.home-fit-packages #tour-list-container .lmsttl-price .customTitle,
.home-fit-packages #tour-list-container .lmsttl-price .value,
.home-fit-packages #tour-list-container .lmsttl-price .value strong,
.home-fit-packages #tour-list-container .lmsttl-price .value i {
    font-size: var(--detail-size);
    white-space: nowrap;
}
.home-fit-packages #tour-list-container .newDesignToursItem .packageInfoList .ehotel {
    margin-left: 4px;
}
.home-fit-packages #tour-list-container .lmsttl-price .value strong {
    font-size: var(--price-size);
    line-height: 1.4;
}
.home-fit-packages #tour-list-container .lmsttl-price .value > span {
    font-size: inherit;
}
.home-fit-packages #tour-list-container .daynights {
    gap: 2px;
}
.home-fit-packages #tour-list-container .airline-hotel {
    margin-right: 2px;
}
.home-fit-packages #tour-list-container .infoStarsNights i {
    font-size: var(--detail-size);
}
.home-fit-packages #tour-list-container .lmsttrig-inner .packageTags {
    flex-wrap: nowrap;
    gap: 3px;
}
.home-fit-packages #tour-list-container .lmsttrig-inner .packageTags span {
    font-size: clamp(6px, 1.3cqw, 9px) !important;
    padding: 4px;
    white-space: nowrap;
}
.home-fit-packages #tour-list-container .lmstt-left > .d-flex {
    flex-wrap: wrap;
    gap: 5px !important;
    min-width: 0;
}
.home-fit-packages #tour-list-container .lmstt-left .btn,
.home-fit-packages #tour-list-container .lmstt-left .def-btn.soldOut {
    width: 100% !important;
    min-width: 0;
    min-height: 34px;
    padding: 8px 2px;
    flex: 0 0 100%;
    justify-content: center;
    text-align: center;
    font-size: var(--button-size);
    white-space: nowrap;
}
.home-fit-packages #tour-list-container .lmstt-left .btn span,
.home-fit-packages #tour-list-container .lmstt-left .def-btn.soldOut span {
    font-size: inherit;
}
.home-fit-packages #tour-list-container .lmstt-left .def-btn.soldOut {
    flex: none;
}
/* The server renders separate mobile markup; stretch both halves vertically. */
.home-fit-packages #tour-list-container .newDesignToursItemMobile {
    --title-size: clamp(8px, 5cqw, 14px);
    --subtitle-size: clamp(7px, 4cqw, 11px);
    --detail-size: clamp(6px, 3.4cqw, 10px);
    --button-size: clamp(8px, 4.8cqw, 12px);
    --price-size: clamp(10px, 6cqw, 14px);
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmst-ticket.new {
    flex-direction: column;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmst-ticket.new .lmstt-right {
    width: 100%;
    flex: 1 0 auto;
    padding: 10px 6px;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .mobileTop {
    margin: 0;
    gap: 3px;
    padding: 0 0 6px;
    border-bottom: 0;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmsttr-inner-grid > div,
.home-fit-packages #tour-list-container .newDesignToursItemMobile .fade-border-bottom {
    border: 0;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .mobileTop h3.customTitle {
    width: auto;
    max-width: none;
}
.home-fit-packages #tour-list-container .packageAirLineMobile .airline-pic {
    width: 24px;
    height: 24px;
    min-width: 24px;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .mobileMiddle {
    margin: 0 0 10px;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .infoStarsNights {
    margin: 0;
    gap: 5px;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmsttr-inner-grid > div:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmsttrig-inner {
    padding: 0;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmsttrig-inner .packageTags {
    margin: 0;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmsttrig-inner .packageTags span {
    font-size: clamp(6px, 3.4cqw, 9px) !important;
    padding: 3px;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmstt-left {
    width: 100%;
    min-width: 0;
    min-height: 106px;
    flex: 0 0 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 6px;
    border-right: 0;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmstt-left > .d-flex,
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmstt-left > .def-btn.soldOut {
    margin-top: auto !important;
}
/* With no numeric price, center the action in the blue half of the card. */
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmstt-left:not(.soldOut):not(:has(.value strong)) > .d-flex {
    margin-block: auto !important;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmstt-left::before,
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmstt-left::after {
    width: 20px;
    height: 20px;
    top: -11px;
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmstt-left::before {
    right: -11px;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.home-fit-packages #tour-list-container .newDesignToursItemMobile .lmstt-left::after {
    right: auto;
    left: -11px;
    bottom: auto;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
@media (max-width: 1199.98px) {
    .home-fit-packages #tour-list-container {
        gap: 12px;
    }
}
@container (max-width: 160px) {
    .home-fit-packages #tour-list-container .newDesignToursItemMobile .airline-hotel {
        font-size: 3.6cqw;
    }
    .home-fit-packages #tour-list-container .newDesignToursItemMobile .lmsttrig-inner .packageTags span {
        font-size: 3.2cqw !important;
    }
}
@container (max-width: 380px) {
    .home-fit-packages #tour-list-container .newDesignToursItem .lmstt-left .btn {
        font-size: 2.4cqw;
    }
}
