/* ==========================================================================
   Tripsopedia — safari itinerary + destination page styles
   Extracted from the inline <style> blocks that used to be copy-pasted into
   every park page, plus the new itinerary/listing layouts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page heroes (destination + safari share the same treatment)
   -------------------------------------------------------------------------- */
.tsp-park-hero,
.tsp-safari-hero {
    background-color: #23232c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 70px;
    text-align: center;
    color: #fff;
    position: relative;
}
.tsp-park-hero h1,
.tsp-safari-hero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 42px;
    margin-bottom: 12px;
    /* Bootstrap sets h1 { color:#2C3E50 }, which painted hero titles dark navy
       over a dark photo overlay. The hero owns its own colour. */
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.tsp-park-hero p,
.tsp-safari-hero p { max-width: 720px; margin: 0 auto; color: rgba(255, 255, 255, 0.85); }
.tsp-hero-kicker { display: inline-block; margin-bottom: 12px; }

.tsp-park-stats,
.tsp-safari-hero .tsp-park-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 26px;
}
.tsp-park-stats div { text-align: center; }
.tsp-park-stats strong { display: block; font-size: 20px; color: #FFD700; }
.tsp-park-stats span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Safari hero meta strip */
.tsp-safari-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}
.tsp-safari-meta span {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.tsp-safari-meta span i { color: #FFD700; margin-right: 7px; }

/* --------------------------------------------------------------------------
   Sticky sub-nav
   -------------------------------------------------------------------------- */
.tsp-subnav-wrap {
    position: sticky;
    top: 0;
    z-index: 998;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.tsp-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
}
.tsp-subnav a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tsp-subnav a:hover { background: rgba(196, 146, 3, 0.1); color: var(--primary); }
.tsp-subnav a.active { background: var(--primary); color: #ffffff; }

/* --------------------------------------------------------------------------
   Sections & copy
   -------------------------------------------------------------------------- */
.tsp-park-section,
.tsp-safari-section { padding: 64px 0; scroll-margin-top: 76px; }
.tsp-park-section.alt,
.tsp-safari-section.alt { background: #F8F6F1; }

.tsp-park-copy p {
    font-size: 15.5px;
    line-height: 1.85;
    color: #4a4a4a;
    margin-bottom: 18px;
}
.tsp-park-copy h3 { font-weight: 700; margin: 30px 0 14px; }
.tsp-park-copy h3:first-child { margin-top: 0; }
.tsp-park-copy ul { padding-left: 20px; color: #4a4a4a; line-height: 1.9; font-size: 15.5px; }
.tsp-park-copy li { margin-bottom: 6px; }

/* Lead paragraph */
.tsp-lead {
    font-size: 18px;
    line-height: 1.8;
    color: #3a3a3a;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Day-by-day itinerary timeline
   -------------------------------------------------------------------------- */
.tsp-days { position: relative; padding-left: 0; margin: 0; list-style: none; }
.tsp-days li {
    position: relative;
    padding: 0 0 26px 76px;
}
.tsp-day-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(196, 146, 3, 0.3);
}
.tsp-day-badge small { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; opacity: 0.85; }
.tsp-day-badge b { font-size: 19px; }
.tsp-days li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 58px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), rgba(196, 146, 3, 0.18));
}
.tsp-day-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    height: 100%;
}
.tsp-day-card h5 { font-weight: 700; margin-bottom: 8px; color: #222; }
.tsp-day-card h5 .tsp-day-where {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 3px;
}
.tsp-day-card p { font-size: 14.8px; line-height: 1.8; color: #4a4a4a; margin-bottom: 10px; }
.tsp-day-card p:last-child { margin-bottom: 0; }
.tsp-day-stay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #555;
    background: #F8F6F1;
    border-radius: 30px;
    padding: 7px 15px;
}
.tsp-day-stay i { color: var(--primary); }

/* --------------------------------------------------------------------------
   Inclusion / exclusion
   -------------------------------------------------------------------------- */
.tsp-inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tsp-inc-card {
    border-radius: 12px;
    padding: 28px 30px;
    height: 100%;
}
.tsp-inc-card.in { background: #F3F9F1; border: 1px solid #d8ecd4; }
.tsp-inc-card.out { background: #FBF3F0; border: 1px solid #f0dcd4; }
.tsp-inc-card h5 { font-weight: 800; margin-bottom: 16px; font-size: 17px; }
.tsp-inc-card.in h5 { color: #2f7a34; }
.tsp-inc-card.out h5 { color: #b4552f; }
.tsp-inc-card ul { list-style: none; padding: 0; margin: 0; }
.tsp-inc-card li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 14.8px;
    line-height: 1.7;
    color: #444;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
.tsp-inc-card li:last-child { border-bottom: 0; }
.tsp-inc-card li i { position: absolute; left: 0; top: 9px; font-size: 13px; }
.tsp-inc-card.in li i { color: #3c9142; }
.tsp-inc-card.out li i { color: #cf6a3f; }

/* --------------------------------------------------------------------------
   Accommodation table
   -------------------------------------------------------------------------- */
.tsp-stay-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tsp-stay-table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 14.5px; }
.tsp-stay-table th {
    text-align: left;
    padding: 12px 14px;
    background: #14141f;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tsp-stay-table td { padding: 12px 14px; border-bottom: 1px solid #eee; color: #4a4a4a; vertical-align: top; }
.tsp-stay-table tr:nth-child(even) td { background: #F8F6F1; }
.tsp-stay-table .tsp-budget { color: var(--primary); font-weight: 700; }

/* --------------------------------------------------------------------------
   Highlight cards / info chips / activity blocks
   -------------------------------------------------------------------------- */
.tsp-region-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 26px 26px 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    height: 100%;
}
.tsp-region-card h4 { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.tsp-region-card .tsp-region-tag {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 14px;
}
.tsp-family-row { border-top: 1px solid #f0eee7; padding: 14px 0; }
.tsp-family-row:first-of-type { border-top: none; padding-top: 0; }
.tsp-family-row strong { display: block; font-size: 15px; color: #222; margin-bottom: 4px; }
.tsp-family-row span { font-size: 14px; color: #666; line-height: 1.7; }

.tsp-activity-block { display: flex; gap: 18px; margin-bottom: 26px; }
.tsp-activity-block i {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(196, 146, 3, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.tsp-activity-block h5 { font-weight: 700; margin-bottom: 6px; }
.tsp-activity-block p { color: #4a4a4a; font-size: 15px; line-height: 1.8; margin-bottom: 0; }

.tsp-info-chip {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.tsp-info-chip i { font-size: 24px; color: var(--primary); margin-bottom: 12px; }
.tsp-info-chip h5 { font-weight: 700; margin-bottom: 8px; }
.tsp-info-chip p { font-size: 14.5px; color: #4a4a4a; margin-bottom: 0; line-height: 1.75; }

.tsp-route-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 20px 22px;
    margin-bottom: 14px;
}
.tsp-route-card strong { color: var(--primary); }

/* "Why this trip" list */
.tsp-why-list { list-style: none; padding: 0; margin: 0; }
.tsp-why-list li {
    position: relative;
    padding: 16px 0 16px 52px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.tsp-why-list li:last-child { border-bottom: 0; }
.tsp-why-list i {
    position: absolute;
    left: 0;
    top: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(196, 146, 3, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.tsp-why-list strong { display: block; font-size: 16px; color: #222; margin-bottom: 3px; }
.tsp-why-list span { font-size: 14.5px; color: #666; line-height: 1.75; }

/* Quick facts bar */
.tsp-factbar {
    background: var(--dark, #14141f);
    padding: 34px 0;
}
.tsp-factbar .row > div { text-align: center; }
.tsp-factbar strong { display: block; font-size: 22px; color: #FFD700; font-weight: 800; }
.tsp-factbar span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enquiry strip */
.tsp-enquire-strip {
    background: linear-gradient(135deg, #c49203, #fe8800);
    color: #fff;
    padding: 54px 0;
    text-align: center;
}
.tsp-enquire-strip h2 { font-weight: 800; margin-bottom: 10px; }
.tsp-enquire-strip p { color: rgba(255, 255, 255, 0.9); max-width: 640px; margin: 0 auto 24px; }
.tsp-enquire-strip .btn {
    background: #fff;
    color: #14141f;
    font-weight: 800;
    padding: 14px 38px;
    border: 0;
    text-transform: uppercase;
    font-size: 15px;
}
.tsp-enquire-strip .btn:hover { background: #14141f; color: #fff; }

/* --------------------------------------------------------------------------
   Listing page filters
   -------------------------------------------------------------------------- */
.tsp-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.tsp-experience-filter-bar { margin-bottom: 36px; }
.tsp-filter {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tsp-filter:hover { border-color: var(--primary); color: var(--primary); }
.tsp-filter.active,
.tsp-filter[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.tsp-filter-reset {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.tsp-safari-country-group { margin-bottom: 48px; scroll-margin-top: 134px; }
.tsp-safari-group-heading { margin-bottom: 24px; }
.tsp-safari-group-heading h2 {
    margin-bottom: 8px;
    font-weight: 800;
}
.tsp-country-title-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.tsp-country-title-button:hover { color: var(--primary); }
.tsp-country-title-button.active { color: var(--primary); }
.tsp-country-title-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}
.tsp-safari-group-heading p {
    max-width: 720px;
    margin-bottom: 8px;
    color: #6b6b6b;
}
.tsp-country-background {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr);
    gap: 24px;
    align-items: center;
    margin: 0 0 32px;
    padding: 18px;
    border: 1px solid #e5e1d8;
    border-radius: 8px;
    background: #f8f6f1;
}
.tsp-country-background img {
    display: block;
    width: 100%;
    height: 220px;
    border-radius: 6px;
    object-fit: cover;
}
.tsp-country-background h3 {
    margin: 0 0 10px;
    color: #14141f;
    font-size: 1.3rem;
    font-weight: 800;
}
.tsp-country-background p {
    margin-bottom: 12px;
    color: #4a4a4a;
    line-height: 1.75;
}
.tsp-country-background a { font-weight: 700; }
.tsp-rwanda-guide {
    display: flow-root;
    margin-bottom: 32px;
    color: #4a4a4a;
    font-size: 15.5px;
    line-height: 1.85;
}
.tsp-rwanda-facts,
.tsp-rwanda-park-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 32px;
}
.tsp-rwanda-facts > div,
.tsp-rwanda-park-grid > article {
    padding: 18px;
    border: 1px solid #e5e1d8;
    border-radius: 8px;
    background: #fff;
}
.tsp-rwanda-park-figure { margin: -18px -18px 18px; }
.tsp-rwanda-park-photo {
    display: flex;
    aspect-ratio: 3 / 2;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-bottom: 1px dashed #c9c4b8;
    background: linear-gradient(135deg, #f1eee6, #e4e9e1);
    color: #536457;
    text-align: center;
}
.tsp-rwanda-park-photo span {
    padding: 8px 14px;
    border: 1px dashed currentColor;
    border-radius: 5px;
    font-weight: 700;
}
.tsp-rwanda-park-photo-nyungwe { background: linear-gradient(135deg, #e1eadf, #c9d8c8); }
.tsp-rwanda-park-photo-akagera { background: linear-gradient(135deg, #eee8d7, #d9dfc5); }
.tsp-rwanda-park-figure figcaption {
    padding: 9px 14px 0;
    color: #6b6b6b;
    font-size: 13px;
    line-height: 1.5;
}
.tsp-rwanda-facts strong,
.tsp-rwanda-facts span {
    display: block;
}
.tsp-rwanda-facts strong {
    margin-bottom: 4px;
    color: #14141f;
    font-weight: 800;
}
.tsp-rwanda-facts span { color: #6b6b6b; }
.tsp-rwanda-guide-section {
    padding: 22px 0;
    border-bottom: 1px solid #e5e1d8;
    scroll-margin-top: 134px;
}
.tsp-rwanda-guide-section:first-of-type { padding-top: 0; }
.tsp-rwanda-guide-section:last-of-type { border-bottom: 0; }
.tsp-rwanda-guide h3,
.tsp-rwanda-packages-heading {
    margin: 28px 0 12px;
    color: #14141f;
    font-size: 1.35rem;
    font-weight: 800;
}
.tsp-rwanda-guide h3:first-of-type { margin-top: 0; }
.tsp-rwanda-guide p { margin-bottom: 14px; }
.tsp-rwanda-guide ul { padding-left: 22px; margin-bottom: 18px; }
.tsp-rwanda-park-grid h4 {
    margin: 0 0 10px;
    color: #14141f;
    font-size: 1.05rem;
    font-weight: 800;
}
.tsp-rwanda-park-grid p:last-child { margin-bottom: 0; }
.tsp-rwanda-plan {
    padding: 24px;
    border: 0;
    border-radius: 8px;
    background: #f8f6f1;
}
.tsp-rwanda-guide-image {
    float: right;
    width: min(34%, 360px);
    height: auto;
    margin: 0 0 24px 32px;
    border-radius: 8px;
    object-fit: cover;
}
.tsp-rwanda-package-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: linear-gradient(135deg, #173b2b, #687b52);
}
.tsp-rwanda-package-label {
    max-width: 13ch;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.tsp-rwanda-packages-heading { margin-top: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .tsp-park-hero, .tsp-safari-hero { padding: 70px 0 54px; }
    .tsp-park-hero h1, .tsp-safari-hero h1 { font-size: 31px; }
    .tsp-park-section, .tsp-safari-section { padding: 46px 0; }
    .tsp-inc-grid { grid-template-columns: 1fr; gap: 18px; }
    .tsp-rwanda-guide-image { width: min(42%, 320px); }
    .tsp-rwanda-facts,
    .tsp-rwanda-park-grid { grid-template-columns: 1fr; }
    .tsp-days li { padding-left: 62px; }
    .tsp-day-badge { width: 46px; height: 46px; }
    .tsp-days li:not(:last-child)::before { left: 22px; top: 50px; }
    .tsp-subnav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .tsp-subnav a { font-size: 13px; padding: 8px 14px; }
}

/* On desktop the navbar becomes position:fixed as soon as you scroll past
   45px, so the sticky sub-nav has to start below it or it is hidden. */
@media (min-width: 992px) {
    .tsp-subnav-wrap { top: 70px; }
    .tsp-park-section, .tsp-safari-section { scroll-margin-top: 134px; }
}
@media (max-width: 991.98px) {
    .tsp-park-section, .tsp-safari-section { scroll-margin-top: 76px; }
    .tsp-safari-country-group { scroll-margin-top: 76px; }
}
@media (max-width: 575.98px) {
    .tsp-country-background {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 14px;
    }
    .tsp-country-background img { height: 200px; }
}
@media (max-width: 575.98px) {
    .tsp-filter { padding: 9px 16px; }
    .tsp-rwanda-guide-section { scroll-margin-top: 76px; }
    .tsp-rwanda-guide-image {
        float: none;
        display: block;
        width: 100%;
        max-height: 280px;
        margin: 0 0 22px;
    }
}
@media (max-width: 575.98px) {
    .tsp-safari-meta span { font-size: 11.5px; padding: 7px 14px; }
    .tsp-stay-table { font-size: 13.5px; }
    .tsp-stay-table th, .tsp-stay-table td { padding: 10px 10px; }
}