/*
 * Safari package card (3.9.652) – one design for every safari package card on the website.
 * Rendered by TSE_DAE\Components\Safari_Card. Brand: Jost, Safari Gold #b68830 (ink #87641c), Safari Green #68a522.
 * Selectors are doubled (.tse-sc.tse-sc) where older card stylesheets could otherwise win on the same element.
 */
.tse-sc {
    --sc-ink: #1c2620;
    --sc-text: #5a6158;
    --sc-muted: #7a8077;
    --sc-line: #ece6da;
    --sc-gold: #b68830;
    --sc-gold-ink: #87641c;
    --sc-gold-hover: #6f5216;
    --sc-radius: 6px;
    --sc-ratio: 4 / 3;
    --sc-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.tse-sc.tse-sc {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    background: #fff;
    box-shadow: 0 1px 2px rgba(28, 38, 32, .05);
    color: var(--sc-text);
    font-family: var(--sc-sans);
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    transform: none;
    transition: box-shadow .25s ease, transform .25s ease;
}
.tse-sc *, .tse-sc *::before, .tse-sc *::after { box-sizing: border-box; }
.tse-sc.tse-sc:hover { box-shadow: 0 12px 28px rgba(28, 38, 32, .12); transform: translateY(-3px); }
.tse-sc.tse-sc:focus-within { box-shadow: 0 0 0 2px var(--sc-gold); }
.tse-sc .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ------------------------------------------------------------ image (fixed ratio, no layout shift) */
.tse-sc .tse-sc__media { position: relative; flex: none; width: 100%; aspect-ratio: var(--sc-ratio); margin: 0; overflow: hidden; background: #efe9dd; }
.tse-sc .tse-sc__media-link { position: absolute; inset: 0; display: block; }
.tse-sc .tse-sc__media img,
.tse-sc .tse-sc__placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}
.tse-sc .tse-sc__placeholder { background: linear-gradient(135deg, #efe6d3 0%, #e2d4b6 55%, #d4c39c 100%); }
.tse-sc.tse-sc:hover .tse-sc__media img { transform: scale(1.04); }

.tse-sc .tse-sc__pill {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 24px);
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    pointer-events: none;
}
.tse-sc .tse-sc__pill--price { top: 12px; left: 12px; background: rgba(255, 255, 255, .95); color: var(--sc-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tse-sc .tse-sc__pill--badge { top: 12px; right: 12px; background: var(--sc-gold-ink); color: #fff; font-size: 12.5px; }
.tse-sc .tse-sc__pill--duration { right: 12px; bottom: 12px; background: rgba(24, 22, 18, .72); color: #fff; font-size: 12.5px; }
.tse-sc .tse-sc__pill--duration .tse-sc__icon { width: 13px; height: 13px; }
.tse-sc .tse-sc__pill .tse-price-money { color: inherit; font: inherit; }

/* ------------------------------------------------------------ body */
.tse-sc .tse-sc__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: 18px 18px 20px; }
.tse-sc .tse-sc__eyebrow { margin: 0 0 6px; color: var(--sc-gold-ink); font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.tse-sc .tse-sc__title {
    display: -webkit-box;
    margin: 0 0 8px;
    padding: 0;
    overflow: hidden;
    color: var(--sc-ink);
    font-family: var(--sc-sans);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.3;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.tse-sc .tse-sc__title a { color: inherit; text-decoration: none; background: none; box-shadow: none; }
.tse-sc .tse-sc__title a:hover { color: var(--sc-gold-ink); }
.tse-sc .tse-sc__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tse-sc .tse-sc__title a:focus-visible { outline: none; }
.tse-sc .tse-sc__desc {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--sc-text);
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.tse-sc .tse-sc__dest { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0 0 14px; color: var(--sc-muted); font-size: 12.5px; line-height: 1.4; }
.tse-sc .tse-sc__dest .tse-sc__icon { flex: none; color: var(--sc-gold); }
.tse-sc .tse-sc__dest > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ footer: price left, action right, pinned to the bottom */
.tse-sc .tse-sc__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sc-line); }
.tse-sc .tse-sc__price { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; min-height: 60px; margin: 0; }
.tse-sc .tse-sc__from { color: var(--sc-muted); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.tse-sc .tse-sc__amount { color: var(--sc-gold-ink); font-size: 22px; font-weight: 500; line-height: 1.2; }
.tse-sc .tse-sc__amount .tse-price-money { color: inherit; font: inherit; }
.tse-sc .tse-sc__range { color: var(--sc-muted); font-size: 14px; font-weight: 400; }
.tse-sc .tse-sc__amount--text { color: var(--sc-ink); font-size: 17px; }
.tse-sc .tse-sc__basis { color: var(--sc-muted); font-size: 12px; line-height: 1.4; }
.tse-sc .tse-sc__cta {
    position: relative;
    z-index: 2;
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sc-gold-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.tse-sc .tse-sc__cta:hover, .tse-sc .tse-sc__cta:focus-visible { color: var(--sc-gold-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ small screens: readable text, easy tapping */
@media (max-width: 520px) {
    .tse-sc .tse-sc__body { padding: 16px 16px 18px; }
    .tse-sc .tse-sc__title { font-size: 18px; }
    .tse-sc .tse-sc__amount { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .tse-sc.tse-sc, .tse-sc .tse-sc__media img { transition: none; }
    .tse-sc.tse-sc:hover { transform: none; }
    .tse-sc.tse-sc:hover .tse-sc__media img { transform: none; }
}

/* ------------------------------------------------------------ grids that hold cards: equal heights per row */
.tse-sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (min-width: 1600px) { .tse-sc-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .tse-sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 640px) { .tse-sc-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.tse-tours-filter-grid > .tse-sc, .tseia-grid > .tse-sc, .tse-recommended-tours-grid > .tse-sc, .tse-related-safaris__grid > .tse-sc { height: auto; align-self: stretch; }
.tse-sc.tse-sc.is-hidden, .tse-sc.tse-sc[hidden] { display: none !important; }

/* ------------------------------------------------------------ existing Elementor colour settings (Related Safaris) */
.tse-related-safaris .tse-sc.tse-sc { background: var(--tse-related-card-background, #fff); border-color: var(--tse-related-card-border-color, var(--sc-line)); }
.tse-related-safaris .tse-sc .tse-sc__title { color: var(--tse-related-card-title-color, var(--sc-ink)); }
