/* ============================================
   Home Best / More Tours — home4 mockup
   Card styles scoped to .home-tour-card so every
   page using the partial matches homepage 100%.
   ============================================ */

.best-tours-section {
    --hbt-navy: #0d1b2a;
    --hbt-heading: #1e3a53;
    --hbt-gold: #c18a2b;
    --hbt-gold-light: #d5a64b;
    --hbt-text: #3d4f5f;
    --hbt-sub: #2f4458;
    --hbt-muted: #455463;
    --hbt-title: #1e3a53;
    --hbt-border: #ebe5dc;
    --hbt-bg: #f4efe6;
    --hbt-card: #ffffff;

    padding: 2rem 0 2.25rem !important;
    background: #f4efe6 !important;
    box-shadow: none !important;
    border: none !important;
}

.best-tours-section.section-vintage-green,
.best-tours-section.section-vintage-blue {
    background: #f4efe6 !important;
}

.best-tours-section + .best-tours-section {
    padding-top: 1rem !important;
    margin-top: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
}

.best-tours-section + .tour-styles-section,
.tour-styles-section {
    margin-top: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
}

.best-tours-section .section-header {
    margin: 0 auto 1.25rem;
    max-width: 52rem;
    text-align: center;
}

.best-tours-section .section-title {
    position: relative;
    margin: 0 0 0.55rem !important;
    font-family: "Manrope", sans-serif !important;
    font-weight: 800 !important;
    font-size: 2rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--hbt-heading) !important;
    line-height: 1.15 !important;
}

.best-tours-section .section-title::after {
    content: "" !important;
    display: block !important;
    width: 48px !important;
    max-width: 48px !important;
    height: 3px !important;
    border-radius: 999px;
    background: #c18a2b !important;
    margin: 0.7rem auto 0 !important;
}

.best-tours-section .section-description {
    margin: 0 auto !important;
    max-width: 44rem;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-size: 1.15rem !important;
    line-height: 1.55 !important;
    color: #2f4458 !important;
}

.best-tours-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin-top: 0 !important;
    align-items: stretch;
}

.best-tours-grid > *,
.best-tours-grid__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ----- Card (shared: home + country + style + group + destination + tour detail) ----- */

.home-tour-card.tour-card {
    --hbt-navy: #0d1b2a;
    --hbt-heading: #1e3a53;
    --hbt-gold: #c18a2b;
    --hbt-text: #3d4f5f;
    --hbt-muted: #455463;
    --hbt-border: #ebe5dc;
    --hbt-card: #ffffff;

    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    background: var(--hbt-card) !important;
    border: 1px solid var(--hbt-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.08) !important;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-tour-card.tour-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(13, 27, 42, 0.12) !important;
}

.home-tour-card .tour-card__link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    color: inherit;
    text-decoration: none !important;
}

.home-tour-card .tour-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e2d8;
}

.home-tour-card .tour-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.home-tour-card:hover .tour-card__image img {
    transform: scale(1.04);
}

.home-tour-card .tour-card__badge--country {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
    max-width: calc(100% - 24px);
    padding: 0.35rem 0.7rem !important;
    border-radius: 999px !important;
    background: var(--hbt-navy) !important;
    font-family: "Manrope", sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.25;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(13, 27, 42, 0.18);
}

.home-tour-card .tour-card__footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--hbt-border);
}

.home-tour-card .tour-card__badge--duration {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    max-width: none;
    padding: 0 0 0 0.75rem !important;
    border: none !important;
    border-left: 2px solid var(--hbt-gold) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: "Manrope", sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1.2;
    color: var(--hbt-gold) !important;
    -webkit-text-fill-color: var(--hbt-gold) !important;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

.home-tour-card .tour-card__badge--duration .bi,
.home-tour-card .tour-card__badge--duration i {
    color: var(--hbt-gold) !important;
    -webkit-text-fill-color: var(--hbt-gold) !important;
    font-size: 0.95em;
}

.home-tour-card .tour-card__content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
    gap: 0.5rem;
    min-height: 0;
    padding: 0.85rem 1rem 1rem !important;
    background: var(--hbt-card) !important;
}

.home-tour-card .tour-card__route {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 0.25rem 0.35rem;
    margin: 0 !important;
    padding: 1.75rem 0.9rem 0.75rem !important;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.88) 0%, rgba(13, 27, 42, 0.35) 55%, transparent 100%) !important;
    font-family: "Manrope", sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    line-height: 1.4;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    white-space: normal;
    overflow: visible;
}

.home-tour-card .tour-card__route .bi,
.home-tour-card .tour-card__route i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    flex-shrink: 0;
    margin-top: 0.12em !important;
}

.home-tour-card .tour-card__route .tour-card__destinations-visible {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    min-width: 0;
    flex: 1 1 calc(100% - 1.4rem);
    word-break: break-word;
}

.home-tour-card .tour-card__route .tour-card__destinations-more {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    white-space: nowrap;
    flex: 0 0 auto;
}

.home-tour-card .tour-card__title,
.home-tour-card h3.tour-card__title {
    position: relative !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0.7rem !important;
    font-family: "Newsreader", Georgia, serif !important;
    font-weight: 500 !important;
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    color: #1e3a53 !important;
    -webkit-text-fill-color: #1e3a53 !important;
    text-align: left !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    background-image: linear-gradient(#c18a2b, #c18a2b) !important;
    background-repeat: no-repeat !important;
    background-position: left bottom !important;
    background-size: 40px 3px !important;
    background-color: transparent !important;
}

.home-tour-card:hover .tour-card__title,
.home-tour-card.tour-card:hover .tour-card__title {
    font-weight: 500 !important;
    color: #1e3a53 !important;
    -webkit-text-fill-color: #1e3a53 !important;
    text-decoration: none !important;
}

.home-tour-card .tour-card__title::after {
    content: none !important;
    display: none !important;
}

.home-tour-card .tour-card__highlights {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin: 0.15rem 0 0.25rem !important;
    min-height: 0 !important;
    width: 100%;
}

.home-tour-card .tour-card__highlights:empty {
    display: none;
    min-height: 0 !important;
    margin: 0 !important;
}

.home-tour-card .tour-hl-item {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
    color: var(--hbt-gold);
}

.home-tour-card .tour-hl-item i {
    font-size: 0.95rem !important;
    width: auto;
    line-height: 1;
    color: var(--hbt-gold) !important;
    -webkit-text-fill-color: var(--hbt-gold) !important;
    flex-shrink: 0;
    -webkit-text-stroke: 0;
}

.home-tour-card .tour-hl-item__text,
.home-tour-card .tour-hl-item span:not(i) {
    display: block;
    max-width: 100%;
    font-family: "Manrope", sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25;
    color: var(--hbt-text) !important;
    -webkit-text-fill-color: var(--hbt-text) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-tour-card .tour-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.45rem;
    margin: 0 !important;
    padding: 0 !important;
    border-top: none !important;
    min-width: 0;
}

.home-tour-card .tour-card__price-label {
    font-family: "Manrope", sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hbt-muted) !important;
    -webkit-text-fill-color: var(--hbt-muted) !important;
}

.home-tour-card .tour-card__price-value {
    font-family: "Manrope", sans-serif !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    color: var(--hbt-heading) !important;
    -webkit-text-fill-color: var(--hbt-heading) !important;
    line-height: 1;
}

.home-tour-card .tour-card__price-unit {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-weight: 600 !important;
    font-style: italic !important;
    font-size: 15px !important;
    color: #3d4f5f !important;
    -webkit-text-fill-color: #3d4f5f !important;
}

.home-tour-card .tour-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: var(--hbt-navy) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: "Manrope", sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 1.2;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-tour-card:hover .tour-card__cta {
    background: #152536 !important;
}

.best-tours-section .view-more-wrap {
    margin-top: 1.25rem;
    text-align: center;
}

.best-tours-section .btn-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1.5rem !important;
    border-radius: 8px !important;
    border: none !important;
    background: var(--hbt-navy) !important;
    color: #ffffff !important;
    font-family: "Manrope", sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    box-shadow: none !important;
    height: auto !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.best-tours-section .btn-view-more:hover {
    background: #152536 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

@media (min-width: 992px) {
    .home-tour-card .tour-card__footer {
        margin-top: auto;
    }
}

@media (max-width: 991px) {
    .best-tours-section {
        overflow-x: clip;
    }

    .best-tours-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
        align-items: start !important;
        overflow-x: clip;
        width: 100%;
        max-width: 100%;
    }

    .home-tour-card.tour-card {
        flex: 0 1 auto !important;
        height: auto !important;
        max-width: 100%;
        animation: none !important;
        touch-action: pan-y;
    }

    .home-tour-card .tour-card__link,
    .home-tour-card .tour-card__content {
        flex: 0 1 auto !important;
        height: auto !important;
        touch-action: pan-y;
    }

    .home-tour-card .tour-card__route {
        overflow: hidden;
    }

    .home-tour-card .tour-card__highlights {
        flex-wrap: wrap;
        row-gap: 0.35rem;
        overflow: hidden;
    }

    .home-tour-card .tour-hl-item {
        flex: 1 1 calc(33.333% - 0.35rem);
        min-width: 0;
    }

    .home-tour-card .tour-card__footer {
        margin-top: 0.5rem !important;
    }
}

@media (hover: none) {
    .home-tour-card.tour-card:hover,
    .home-tour-card.tour-card:active {
        transform: none !important;
        box-shadow: 0 8px 24px rgba(13, 27, 42, 0.08) !important;
    }

    .home-tour-card:hover .tour-card__image img {
        transform: none;
    }
}

@media (max-width: 575px) {
    .best-tours-section {
        padding: 1.5rem 0 1.75rem !important;
    }

    .best-tours-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .home-tour-card .tour-card__badge--country {
        font-size: 12px !important;
    }
}
