/* v1.0.8: recommendations are displayed after category content and before the footer. */
.tm-active-tours-alternatives-heading {
    color: #292929;
    font-family: Arimo, Arial, sans-serif;
    font-size: clamp(19px, 2.2vw, 27px);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 24px;
    padding: 0;
}
@media (max-width: 600px) {
    .tm-active-tours-alternatives-heading { margin-bottom: 18px; }
}


/* v1.0.8: original country-category card design, moved below the category content.
   Scoped to the empty tour category fallback; other pages are not restyled. */
section.tm-active-country-recommendations .tm-active-country-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 22px;
    width: 100%;
    margin: 0 0 54px;
}
section.tm-active-country-recommendations .tm-active-country-grid .tm-active-country-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 215px;
    margin: 0;
    padding: 5px;
    box-sizing: border-box;
}
section.tm-active-country-recommendations .tm-active-country-card > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
section.tm-active-country-recommendations .tm-active-country-card .vnt-str {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #3a2f6a;
    background-size: cover;
    background-position: center;
}
section.tm-active-country-recommendations .tm-active-country-card .vnt-str::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.32), transparent 58%);
    pointer-events: none;
}
section.tm-active-country-recommendations .tm-active-country-card .titl-cat {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    width: auto;
    height: auto;
    min-height: 34px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    padding: 8px 14px;
}
section.tm-active-country-recommendations .tm-active-country-card > a:focus-visible {
    outline: 3px solid #fe9f53;
    outline-offset: 3px;
    border-radius: 15px;
}
@media (max-width: 991px) {
    section.tm-active-country-recommendations .tm-active-country-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 18px;
    }
}
@media (max-width: 520px) {
    section.tm-active-country-recommendations .tm-active-country-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
    section.tm-active-country-recommendations .tm-active-country-grid .tm-active-country-card { height: 218px; }
}

/* Keep this section in normal document flow, below all archive content.
   Scoped to the empty-category recommendations only. */
section.tm-active-country-recommendations {
    display: block;
    clear: both;
    width: 100%;
    padding: 38px 0 28px;
    box-sizing: border-box;
}
section.tm-active-country-recommendations > .cont {
    box-sizing: border-box;
}
section.tm-active-country-recommendations .tm-active-country-grid {
    margin-bottom: 0;
}
@media (max-width: 600px) {
    section.tm-active-country-recommendations { padding: 26px 0 34px; }
}
