:root {
    --theme-color: #d39f2a;
    --secondary-color: #031833;
    --title-color: #031833;
}

.shared-brand-logo img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
}

/* Limit hero logo image size to avoid overly large visuals */
.hero__logo img {
    max-width: 12rem;
    width: 100%;
    height: auto;
    display: block;
}

.main-header .header-lower {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-header .header-lower > .header-brand-logo {
    flex: 0 0 118px;
}

.main-header .header-lower > .header-brand-logo a {
    display: block;
}

.main-header .header-lower > .header-brand-logo img {
    display: block;
    width: 118px;
    height: 118px;
    border-radius: 0;
    object-fit: contain;
}

.main-header .header-lower > .outer-box {
    flex: 1 1 auto;
    min-width: 0;
}

.sticky-header .sticky-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sticky-header .sticky-brand-logo {
    flex: 0 0 96px;
}

.sticky-header .sticky-brand-logo a {
    display: block;
}

.sticky-header .sticky-brand-logo img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 0;
    object-fit: contain;
}

.sticky-header .sticky-header-inner > .outer-box {
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-menu .shared-brand-logo img {
    width: 112px;
    height: 112px;
}

.shared-footer-logo img {
    width: 128px;
    height: 128px;
    border-radius: 18px;
    object-fit: cover;
}

.mobile-nav-toggler,
.mobile-menu .close-btn {
    cursor: pointer;
}

.shared-contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 13px;
}

.shared-contact-list i {
    color: var(--theme-color);
}

.shared-contact-list a,
.shared-contact-list span,
.shared-tagline {
    color: var(--text-color);
}

.shared-include-error {
    padding: 16px;
    color: #b42318;
    background: #fef3f2;
    text-align: center;
}

@media only screen and (max-width: 767px) {
    .header-top .top-inner {
        padding: 10px 15px;
    }

    .header-top .top-inner p span,
    .header-top .right-column .info-list li:nth-child(2) {
        display: none;
    }

    .main-header .outer-box .shared-brand-logo {
        display: block;
    }

    .main-header .shared-brand-logo img {
        width: 54px;
        height: 54px;
    }

    .main-header .header-lower {
        gap: 12px;
    }

    .main-header .header-lower > .header-brand-logo {
        flex-basis: 70px;
    }

    .main-header .header-lower > .header-brand-logo img {
        width: 70px;
        height: 70px;
    }

    .main-header .outer-box {
        gap: 12px;
        padding-block: 16px;
    }

    .main-header .menu-right-content .theme-btn {
        gap: 0;
        padding: 10px 15px;
        font-size: 15px;
        line-height: 24px;
    }

    .main-header .menu-right-content .theme-btn i {
        display: none;
    }

    .shared-tagline {
        display: none;
    }
}

@media only screen and (max-width: 575px) {
    .main-header .header-lower {
        position: relative;
    }

    .main-header .header-lower > .outer-box {
        position: static;
    }

    .main-header .header-lower > .outer-box > .menu-area {
        width: 50px;
        flex: 0 0 50px;
        margin-left: auto;
    }

    .main-header .header-lower .menu-area .mobile-nav-toggler {
        position: absolute;
        top: 50%;
        right: 0;
        z-index: 2;
        float: none;
        transform: translateY(-50%);
    }

    .main-header .header-lower > .outer-box > .menu-right-content .btn-box {
        display: none;
    }
}

/* Equal-height cards: "Travel the Way You Want To" (categories-section)
   and "Explore South Africa" (destinations-section) on the home page. */
.categories-section .categories-block-one,
.destinations-section .destinations-block-one {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.categories-section .categories-block-one .image-box img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.categories-section .categories-block-one .lower-content {
    flex: 1 1 auto;
}

.destinations-section .destinations-block-one .image-box .image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.destinations-section .destinations-block-one .lower-content {
    margin-top: auto;
}

/* Trip Vibes carousel: the theme's mask shape assumes a fixed 270:422
   portrait photo, so crop our images to match instead of leaving gaps. */
.vibes-block-one .image-box .image img {
    aspect-ratio: 270 / 422;
    object-fit: cover;
}

/* Travel package cards: keep photos a consistent size and cards an equal
   height whether they sit in the homepage carousel or the packages grid. */
.package-block-one .image-box .image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.packages-carousel .package-block-one,
.packages-grid .package-block-one {
    height: 100%;
}

.packages-carousel .package-block-one .inner-box,
.packages-grid .package-block-one .inner-box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.packages-carousel .package-block-one .lower-content,
.packages-grid .package-block-one .lower-content {
    margin-top: auto;
}

/* Homepage packages: reuse the mountain treatment from the original Tour
   Categories section while keeping the package cards easy to read. */
.package-section--mountains {
    position: relative;
    isolation: isolate;
}

.package-section--mountains .bg-layer {
    position: absolute;
    z-index: -2;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

.package-section--mountains .bg-layer::before {
    position: absolute;
    inset: 0;
    background-color: var(--secondary-color);
    content: "";
    opacity: 0.75;
}

.package-section--mountains .shape {
    position: absolute;
    z-index: -1;
    right: 140px;
    bottom: 30px;
    width: 100px;
    height: 198px;
}

.package-section--mountains .sec-title.light p,
.package-section--mountains .packages-carousel > .swiper-wrapper > p {
    color: #b0bfc8;
}

.package-section--mountains .package-block-one {
    background-color: #fff;
}

/* Keep every fading hero slide the same height so inactive slides cannot show below it. */
.banner-carousel .swiper-wrapper {
    align-items: stretch;
}

.banner-carousel .swiper-slide {
    height: auto;
}

.banner-carousel .slide-item {
    height: 100%;
}

/* Tour experience cards: large editorial imagery with category accents. */
.tour-options-section {
    padding: 105px 0 120px;
    background: #fbfaf8;
}

.tour-options-heading {
    margin-bottom: 34px;
}

.tour-options-heading span {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    color: var(--theme-color);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tour-options-heading span::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 86px;
    height: 2px;
    background: currentColor;
    content: "";
}

.tour-options-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 22px;
}

.tour-option-card {
    --tour-card-accent: #d39f2a;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e2e5e8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(3, 24, 51, 0.1);
    transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.tour-option-card:hover {
    border-color: var(--tour-card-accent);
    box-shadow: 0 18px 40px rgba(3, 24, 51, 0.14);
    transform: translateY(-5px);
}

.tour-option-card__media {
    position: relative;
    overflow: hidden;
    margin: 6px 6px 0;
    aspect-ratio: 1.12 / 1;
    border-radius: 15px 15px 0 0;
    background: #fff;
}

.tour-option-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.tour-option-card__media img[src$=".png"] {
    height: calc(100% + 28px);
}

.tour-option-card:hover .tour-option-card__media img {
    transform: scale(1.035);
}

.tour-option-card__badge {
    position: absolute;
    bottom: 12px;
    left: 17px;
    display: inline-flex;
    max-width: calc(100% - 34px);
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    background: var(--tour-card-accent);
    box-shadow: 0 5px 14px rgba(3, 24, 51, 0.16);
    font-size: 13px;
    line-height: 18px;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.tour-option-card__badge i {
    flex: 0 0 auto;
    font-size: 18px;
}

.tour-option-card__content {
    flex: 1 1 auto;
    padding: 25px 28px 23px;
    border-bottom: 1px solid #e7e8ea;
}

.tour-option-card__content h3 {
    margin-bottom: 16px;
    color: var(--secondary-color);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.16;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tour-option-card__content p {
    color: #59616c;
    font-size: 15px;
    line-height: 1.65;
}

.tour-option-card__footer {
    padding: 15px 26px 17px;
}

.tour-option-card__footer a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    color: var(--tour-card-accent);
}

.tour-option-card__footer span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1;
    font-style: italic;
}

.tour-option-card__footer i {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--tour-card-accent);
    font-size: 20px;
    transition: transform 250ms ease;
}

.tour-option-card__footer a:hover i {
    transform: translateX(3px);
}

.tour-option-card--wildlife { --tour-card-accent: #507c3d; }
.tour-option-card--heritage { --tour-card-accent: #b75029; }
.tour-option-card--adventure { --tour-card-accent: #286f98; }
.tour-option-card--education { --tour-card-accent: #76569d; }
.tour-option-card--research { --tour-card-accent: #287e74; }
.tour-option-card--leisure { --tour-card-accent: #bd5a70; }

@media only screen and (max-width: 991px) {
    .tour-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
    .tour-options-section {
        padding: 75px 0 90px;
    }

    .tour-options-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 499px) {
    .tour-option-card__content {
        padding: 22px 21px 20px;
    }

    .tour-option-card__content h3 {
        font-size: 24px;
    }

    .tour-option-card__badge {
        left: 12px;
        max-width: calc(100% - 24px);
        padding: 8px 13px;
        font-size: 11px;
    }

    .tour-option-card__footer {
        padding-right: 21px;
        padding-left: 21px;
    }
}


/* Packages listing page: highlight the active category filter. */
.package-sidebar .category-widget .category-list li a.active {
    color: var(--theme-color);
}

.package-sidebar .category-widget .category-list li a.active::before {
    border-color: var(--theme-color);
}

.package-sidebar .category-widget .category-list li a.active::after {
    background-color: var(--theme-color);
}

/* Package details: elevated three-column booking summary. */
.package-details-layout {
    position: relative;
    padding: 0 0 105px;
    background: #f7f9fa;
}

.package-summary-card {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(360px, 1fr) minmax(270px, 0.8fr);
    gap: 36px;
    margin-top: -46px;
    padding: 22px;
    border: 1px solid #e2e7ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(3, 24, 51, 0.14);
}

.package-summary-card__media {
    min-height: 270px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

.package-summary-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-summary-card__main {
    display: flex;
    flex-direction: column;
    padding: 12px 0 8px;
}

.package-summary-card__category {
    margin-bottom: 24px;
}

.package-summary-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
    color: #526071;
    font-size: 15px;
    font-weight: 600;
}

.package-summary-card__meta > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-summary-card__meta i {
    color: #607386;
    font-size: 17px;
}

.package-summary-card__summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 18px 0;
    color: #6a7785;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.package-summary-card__booking {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    margin-top: auto;
}

.package-summary-card__price span,
.package-summary-card__price strong,
.package-summary-card__price b {
    display: block;
}

.package-summary-card__price span {
    margin-bottom: 1px;
    color: #8a96a3;
    font-size: 13px;
}

.package-summary-card__price strong {
    display: inline;
    color: var(--secondary-color);
    font-size: 25px;
    line-height: 1.1;
}

.package-summary-card__price b {
    display: inline;
    margin-left: 4px;
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
}

.package-summary-card__trip {
    position: relative;
    padding: 8px 42px 8px 34px;
    border-left: 1px solid #dce2e7;
}

.package-summary-card__list + .package-summary-card__list {
    margin-top: 20px;
}

.package-summary-card__list h3 {
    margin-bottom: 9px;
    color: var(--secondary-color);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.package-summary-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 7px;
    color: #526071;
    font-size: 14px;
    line-height: 1.4;
}

.package-summary-card__list li i {
    position: relative;
    top: 2px;
    color: var(--theme-color);
    font-size: 11px;
}

.package-summary-card__list--included li i {
    color: #738393;
}

.package-summary-card__toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid var(--theme-color);
    border-radius: 50%;
    color: var(--theme-color);
}

.package-summary-card__toggle:hover {
    color: #fff;
    background: var(--theme-color);
}

.package-about {
    max-width: 850px;
    padding-top: 80px;
}

.package-about > p {
    color: #526071;
    font-size: 17px;
    line-height: 1.8;
}

@media only screen and (max-width: 1199px) {
    .package-summary-card {
        grid-template-columns: 230px 1fr;
    }

    .package-summary-card__trip {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 24px 55px 8px 0;
        border-top: 1px solid #dce2e7;
        border-left: 0;
    }

    .package-summary-card__list + .package-summary-card__list {
        margin-top: 0;
    }
}

@media only screen and (max-width: 767px) {
    .package-summary-card {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: -28px;
        padding: 16px;
    }

    .package-summary-card__media {
        min-height: 320px;
    }

    .package-summary-card__trip {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .package-summary-card__meta {
        grid-template-columns: 1fr;
    }

    .package-summary-card__list + .package-summary-card__list {
        margin-top: 8px;
    }

    .package-about {
        padding-top: 60px;
    }
}

@media only screen and (max-width: 499px) {
    .package-summary-card__media {
        min-height: 250px;
    }

    .package-summary-card__meta {
        grid-template-columns: 1fr;
    }

    .package-summary-card__booking {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media only screen and (max-width: 499px) {
    .header-top .right-column .info-list li {
        margin-top: 4px;
    }

    .menu-area .mobile-nav-toggler {
        padding: 9px;
    }
}

/* Form validation: red highlight + inline message on invalid fields. */
.form-group.field-invalid input,
.form-group.field-invalid select,
.form-group.field-invalid textarea,
.form-group.field-invalid .nice-select {
    border-color: #e04141 !important;
    background-color: #fff5f5 !important;
}

.field-error-message {
    display: block;
    margin-top: 6px;
    color: #e04141;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* Honeypot field: present for bots, invisible and unreachable for people. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
