/*
Theme Name: Tanzania Small Five
Theme URI: https://tanzaniasmall5safaris.com/
Author: TECH56
Description: WordPress conversion of the legacy Tanzania Small Five EJS frontend.
Version: 1.0.0
Text Domain: ts5
*/

html {
    overflow-x: hidden;
}

body,
.page-wrapper {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.golden-ratio-area {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.destination-item .image,
.blog-item .image {
    overflow: hidden;
}

.destination-item .content h4,
.destination-item .content h6,
.blog-item .content h4,
.blog-item .content h6 {
    overflow-wrap: anywhere;
}

.destination-item.tour-grid,
.blog-item {
    height: 100%;
}

.web-slides:not(.slick-initialized) > *:not(:first-child) {
    display: none !important;
}

.web-slides {
    min-height: 100vh;
    overflow: hidden;
    background: #111;
}

.web-slides.slick-initialized {
    min-height: 0;
}

.ts5-hero-slide {
    min-height: 720px;
}

.ts5-hero-copy {
    max-width: 760px;
}

.ts5-hero-copy h2 {
    margin-bottom: 4px;
    font-size: clamp(32px, 4.5vw, 72px);
    line-height: 0.95;
}

.ts5-hero-copy h1 {
    max-width: 850px;
    margin-bottom: 16px;
    font-size: clamp(44px, 7vw, 112px);
    line-height: 0.92;
}

.ts5-hero-destination {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 11px 16px;
    margin: 0 0 22px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.ts5-hero-destination:hover {
    color: #161616;
    background: #f6c945;
    border-color: #f6c945;
}

.ts5-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.ts5-hero-slide .html-content {
    max-width: 720px;
    overflow-wrap: anywhere;
}

.ts5-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.ts5-hero-link:hover {
    color: #f6c945;
}

.ts5-hero-itinerary {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0;
    max-width: 520px;
    margin-left: auto;
    overflow: hidden;
    color: #172317;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    text-decoration: none;
    backdrop-filter: blur(12px);
    transform: translateY(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ts5-hero-itinerary:hover {
    color: #172317;
    transform: translateY(4px);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.ts5-hero-itinerary__image {
    min-height: 180px;
}

.ts5-hero-itinerary__content {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 22px;
}

.ts5-hero-itinerary__kicker {
    color: #71951e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ts5-hero-itinerary strong {
    color: #172317;
    font-size: 20px;
    line-height: 1.2;
}

.ts5-hero-itinerary__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #596258;
    font-weight: 700;
}

.web-slides .slick-dots {
    position: absolute;
    right: 6vw;
    bottom: 44px;
    display: flex !important;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 5;
}

.web-slides .slick-dots button {
    width: 36px;
    height: 4px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    background: rgba(255, 255, 255, 0.42);
    border: 0;
    border-radius: 999px;
}

.web-slides .slick-dots .slick-active button {
    background: #f6c945;
}

.main-menu .navigation > li > a {
    text-decoration: none !important;
}

.main-menu .navigation > li > a:before,
.main-menu .navigation > li > a:after {
    display: none !important;
}

.main-menu .navigation > li > a:hover,
.main-menu .navigation > li.current-menu-item > a,
.main-menu .navigation > li.active > a {
    color: #71951e !important;
}

.main-menu .navigation > li > a {
    transition: color 0.2s ease, background-color 0.2s ease;
}

.ts5-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ts5-contact-details li i {
    flex: 0 0 18px;
    margin-top: 5px;
    text-align: center;
}

.ts5-contact-details li span {
    min-width: 0;
}

.ts5-footer-about {
    max-width: 310px;
    line-height: 1.65;
}

.ts5-consent-field label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.ts5-consent-field input {
    width: auto;
    min-width: 18px;
    margin-top: 4px;
}

.ts5-hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ts5-booking-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.ts5-booking-heading {
    margin-bottom: 22px;
}

.ts5-booking-heading p {
    max-width: 680px;
    margin: 0;
    color: #5f665f;
    line-height: 1.6;
}

.ts5-booking-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #71951e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ts5-booking-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.ts5-booking-progress span {
    height: 6px;
    background: #e1e5dc;
    border-radius: 999px;
}

.ts5-booking-progress span.is-active,
.ts5-booking-progress span.is-complete {
    background: #b9d531;
}

.ts5-booking-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 22px;
    color: #172317;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
}

.ts5-booking-summary i {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: #1d3525;
    border-radius: 50%;
}

.ts5-booking-summary span,
.ts5-traveler-total span {
    display: block;
    color: #697069;
    font-size: 13px;
}

.ts5-booking-summary strong,
.ts5-traveler-total strong {
    display: block;
    color: #172317;
    line-height: 1.35;
}

.ts5-booking-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
    color: #172317;
    font-weight: 800;
}

.ts5-booking-section-title i {
    color: #71951e;
}

.ts5-booking-form label {
    display: block;
    margin-bottom: 7px;
    color: #172317;
    font-size: 14px;
    font-weight: 700;
}

.ts5-booking-form input,
.ts5-booking-form select,
.ts5-booking-form textarea {
    border-color: #e0e4dc;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ts5-booking-form input:focus,
.ts5-booking-form select:focus,
.ts5-booking-form textarea:focus {
    border-color: #b9d531;
    box-shadow: 0 0 0 4px rgba(185, 213, 49, 0.18);
}

.ts5-traveler-total {
    min-height: 58px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e0e4dc;
    border-radius: 6px;
}

.ts5-booking-status {
    display: none;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 6px;
    line-height: 1.5;
}

.ts5-booking-status[data-status="loading"],
.ts5-booking-status[data-status="success"],
.ts5-booking-status[data-status="error"] {
    display: block;
}

.ts5-booking-status[data-status="loading"] {
    color: #172317;
    background: #f5f7ed;
}

.ts5-booking-status[data-status="success"] {
    color: #12351f;
    background: #e8f7ea;
    border: 1px solid #b8e2be;
}

.ts5-booking-status[data-status="error"] {
    color: #741f1f;
    background: #fff0f0;
    border: 1px solid #f1c5c5;
}

.ts5-booking-form .theme-btn.is-loading {
    cursor: wait;
    opacity: 0.72;
}

.ts5-cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: min(680px, calc(100vw - 32px));
    padding: 18px;
    color: #ffffff;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.ts5-cookie-consent,
.ts5-cookie-consent * {
    box-sizing: border-box;
}

.ts5-cookie-consent[hidden] {
    display: none;
}

.ts5-cookie-consent__text {
    display: grid;
    gap: 4px;
    font-size: 14px;
    line-height: 1.45;
}

.ts5-cookie-consent__actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.ts5-cookie-consent__button {
    min-height: 42px;
    padding: 0 18px;
    color: #161616;
    font-weight: 700;
    background: #f6c945;
    border: 1px solid #f6c945;
    border-radius: 6px;
}

.ts5-cookie-consent__button--ghost {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.36);
}

@media (max-width: 991px) {
    .header-inner {
        min-height: 74px;
    }

    .logo-outer {
        flex: 0 0 120px;
        max-width: 120px;
    }

    .menu-btns .theme-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .main-menu .navbar-collapse {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .golden-ratio-area {
        min-height: 200px;
    }

    .ts5-hero-slide {
        min-height: 760px;
        padding: 120px 0 70px;
    }

    .ts5-hero-itinerary {
        grid-template-columns: 120px 1fr;
        max-width: 100%;
        margin: 34px 0 0;
    }

    .ts5-hero-itinerary__image {
        min-height: 150px;
    }

    .footer-widget {
        margin-bottom: 34px;
    }

    .footer-widget.footer-links,
    .footer-widget.footer-links.ms-sm-5,
    .footer-widget.footer-links.ms-md-4,
    .footer-widget.footer-links.ms-lg-4 {
        margin-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .page-banner-area .breadcrumb {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .page-banner-area .banner-inner {
        overflow: hidden;
    }

    .contact-form {
        padding: 24px 18px !important;
    }

    .contact-form select,
    .contact-form input,
    .contact-form textarea {
        min-height: 52px;
        width: 100%;
    }

    .destination-header,
    .destination-footer {
        gap: 8px;
        flex-wrap: wrap;
    }

    .ts5-hero-slide {
        min-height: 760px;
    }

    .ts5-hero-copy h1 {
        font-size: 46px;
    }

    .ts5-hero-copy h2 {
        font-size: 34px;
    }

    .ts5-hero-itinerary {
        grid-template-columns: 1fr;
    }

    .ts5-hero-itinerary__image {
        min-height: 170px;
    }

    .web-slides .slick-dots {
        right: auto;
        left: 30px;
        bottom: 28px;
    }

    .ts5-cookie-consent {
        right: 16px;
        bottom: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .ts5-cookie-consent__actions {
        width: 100%;
    }

    .ts5-cookie-consent__button {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 12px;
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .golden-ratio-area {
        min-height: 190px;
    }

    .menu-btns .theme-btn {
        display: none;
    }

    .footer-bottom-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .ts5-hero-actions .theme-btn {
        width: 100%;
        max-width: calc(100vw - 64px);
        justify-content: center;
    }
}
