/* [kt_blog_tour_suggestions] -- tour + Airport Fast Track block under every
   /travel-guide/ blog post. Enqueued from inc/blog-tour-suggestions.php on
   single posts (and whenever the shortcode renders). Everything is scoped under
   .kt-blog-suggest so it cannot leak into the article or the rest of the page.

   Colours match the site so this block reads as the same product line as the
   homepage:
   - tabs = the homepage HCM|Da Nang pills (assets/css/homepage-dn-tabs.css):
     pink #e5397d, centred, filled when active;
   - cards = the canonical image-forward tour cards
     (assets/css/tour-card-colors.css): a solid per-tour colour with the photo
     fading into it and white text on top. Each card's colour arrives as the
     `--kt-c` custom property ("R,G,B") set inline by the renderer.
   - the Airport Fast Track block uses the site's fast-track teal so the two
     services stay visually distinct. Its rules are NOT in this file: since
     2026-09-15 they live in kisstour_blog_suggest_ft_css() and are emitted
     inline with that block's markup, because it rendered unstyled on
     production when this stylesheet was not the current version there. */

.kt-blog-suggest {
    padding: 46px 0 8px;
    margin-top: 32px;
    border-top: 1px solid #f0d7e2;
}

.kt-blog-suggest__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.kt-blog-suggest__h2 {
    text-align: center;
    color: #b11857;
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 22px;
}

/* --- Tabs: match the homepage HCM|Da Nang pills --- */
.kt-blog-suggest__tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.kt-blog-suggest__tab {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    padding: 11px 24px;
    border-radius: 999px;
    border: 2px solid #e5397d;
    background: #ffffff;
    color: #e5397d;
    transition: background 0.18s ease, color 0.18s ease;
}

.kt-blog-suggest__tab:hover,
.kt-blog-suggest__tab:focus-visible {
    background: #fde5ef;
}

.kt-blog-suggest__tab.is-active {
    background: #e5397d;
    border-color: #e5397d;
    color: #ffffff;
}

/* --- Panels --- */
.kt-blog-suggest__panel[hidden] {
    display: none;
}

.kt-blog-suggest__panel-label {
    text-align: center;
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 600;
    color: #7a7a7a;
}

/* --- Tour cards grid --- */
.kt-blog-suggest__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Image-forward coloured card, matching tour-card-colors.css. */
.kt-blog-suggest__card {
    --kt-c: 128, 0, 0; /* fail-safe maroon if the inline var is missing */
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: rgb(var(--kt-c));
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kt-blog-suggest__card:hover,
.kt-blog-suggest__card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.kt-blog-suggest__card-img {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.kt-blog-suggest__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo fades into the card colour at its bottom edge (seamless, like the
   site cards) so the white text below always sits on solid colour. */
.kt-blog-suggest__card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(
        rgba(var(--kt-c), 0) 40%,
        rgba(var(--kt-c), 0.45) 70%,
        rgba(var(--kt-c), 0.9) 90%,
        rgb(var(--kt-c)) 100%
    );
}

.kt-blog-suggest__card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px 20px;
    flex: 1 1 auto;
}

.kt-blog-suggest__card-name {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #ffffff;
}

.kt-blog-suggest__card-desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kt-blog-suggest__card-price {
    margin-top: auto;
    padding-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.kt-blog-suggest__card-per {
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Airport Fast Track block: styled by kisstour_blog_suggest_ft_css() in
   inc/blog-tour-suggestions.php, which inlines those rules with the markup so
   the block never depends on this file being the current version. --- */

/* --- Responsive --- */
@media (max-width: 991px) {
    .kt-blog-suggest__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .kt-blog-suggest__grid {
        grid-template-columns: 1fr;
    }
    .kt-blog-suggest__h2 {
        font-size: 24px;
    }
    .kt-blog-suggest__card {
        min-height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kt-blog-suggest__card,
    .kt-blog-suggest__tab {
        transition: none;
    }
    .kt-blog-suggest__card:hover,
    .kt-blog-suggest__card:focus-visible {
        transform: none;
    }
}
