/* ============================================================
   Genex Safaris — subtle UI enhancements
   Layered on top of the theme (loaded last). Intentionally light:
   micro-interactions, depth and clearer focus — no redesign.
   ============================================================ */

:root {
    --gx-accent: #e8a020;          /* brand gold */
    --gx-accent-dark: #c8841a;
    --gx-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Smooth, GPU-friendly transitions on interactive cards ---- */
.tour-box-items,
.amazing-tour-items,
.trending-destinations-card-items {
    transition: transform .35s var(--gx-ease), box-shadow .35s var(--gx-ease);
    will-change: transform;
}
.tour-box-items:hover,
.amazing-tour-items:hover,
.trending-destinations-card-items:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -18px rgba(20, 25, 40, .35);
}

/* ---- Gentle image zoom + depth inside card thumbs ---- */
.tour-box-items .thumb,
.amazing-tour-items .thumb,
.trending-destinations-card-items .destinations-img {
    overflow: hidden;
}
.tour-box-items .thumb img,
.amazing-tour-items .thumb img,
.trending-destinations-card-items .destinations-img img {
    transition: transform .6s var(--gx-ease);
}
.tour-box-items:hover .thumb img,
.amazing-tour-items:hover .thumb img,
.trending-destinations-card-items:hover .destinations-img img {
    transform: scale(1.06);
}

/* Subtle bottom gradient so overlaid titles stay legible on any photo */
.trending-destinations-card-items .destinations-img::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(15, 20, 30, .55), transparent);
    pointer-events: none;
}

/* ---- CTAs: a touch more prominence + tactile hover ---- */
.theme-btn {
    transition: transform .2s var(--gx-ease), box-shadow .2s var(--gx-ease), background-color .2s var(--gx-ease);
}
.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(232, 160, 32, .6);
}
.theme-btn:active { transform: translateY(0); }

/* ---- Modern form focus states (accessible, brand-aligned) ---- */
.form-control:focus,
.form-clt input:focus,
.form-clt textarea:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--gx-accent) !important;
    box-shadow: 0 0 0 3px rgba(232, 160, 32, .18) !important;
}

/* ---- Lazy images fade in once decoded (no layout shift) ---- */
img[loading="lazy"] {
    background: #f1f2f6;
}

/* ---- Respect users who prefer reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .tour-box-items,
    .amazing-tour-items,
    .trending-destinations-card-items,
    .tour-box-items .thumb img,
    .amazing-tour-items .thumb img,
    .trending-destinations-card-items .destinations-img img,
    .theme-btn {
        transition: none !important;
    }
    .tour-box-items:hover,
    .amazing-tour-items:hover,
    .trending-destinations-card-items:hover { transform: none; }
    .tour-box-items:hover .thumb img,
    .amazing-tour-items:hover .thumb img,
    .trending-destinations-card-items:hover .destinations-img img { transform: none; }
}

/* ============================================================
   Card hierarchy & polish (tours / packages)
   ============================================================ */

/* ---- Uniform card images so rows align regardless of photo size ---- */
.amazing-tour-items .thumb {
    height: 250px;
    overflow: hidden;
}
.amazing-tour-items .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tour-box-items .thumb {
    height: 220px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}
.tour-box-items .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Depth: gentle shadow on tour cards, lifted on hover ---- */
.amazing-tour-items,
.tour-box-items {
    border-radius: 10px;
    box-shadow: 0 6px 18px -12px rgba(20, 25, 40, .25);
}

/* ---- Price badge: a touch of depth on the brand circle ---- */
.amazing-tour-items .thumb .post-box {
    box-shadow: 0 6px 16px -6px rgba(232, 160, 32, .55);
}

/* ---- Content spacing & clearer hierarchy ---- */
.amazing-tour-items .content {
    padding: 22px 20px 24px;
}
.amazing-tour-items .content .location-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--gx-accent);
    margin-bottom: 8px;
}
.amazing-tour-items .content > h4 {
    margin-bottom: 12px;
    line-height: 1.35;
}

/* ---- Meta row: duration + parks, with accent icons ---- */
.gx-tour-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 18px;
    padding: 0;
}
.gx-tour-meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    color: #5a6072;
}
.gx-tour-meta li i {
    color: var(--gx-accent);
    font-size: .85rem;
}

/* ---- Primary CTA accent (stronger weight, gradient sheen) ---- */
.gx-cta {
    background-image: linear-gradient(135deg, var(--gx-accent) 0%, var(--gx-accent-dark) 100%);
    font-weight: 600;
    letter-spacing: .02em;
}

/* ============================================================
   Form styling: labels + inputs
   ============================================================ */

/* Sidebar booking labels (the "Full Name:", "Email:" text) */
.tour-sidebar-items .form-list > li {
    font-size: .8rem;
    font-weight: 600;
    color: #2d3142;
    letter-spacing: .01em;
}

/* Consistent, modern input look across the site */
.form-clt input,
.form-clt textarea,
.tour-sidebar-items .form-control {
    border-radius: 8px;
    transition: border-color .2s var(--gx-ease), box-shadow .2s var(--gx-ease);
}

/* Subtle hover affordance before focus */
.form-clt input:hover,
.form-clt textarea:hover,
.form-control:hover {
    border-color: #cdd2de;
}

/* ============================================================
   Tour detail page
   ============================================================ */

/* ---- Hero image: constrained height, depth, rounded ---- */
.gx-detail-thumb {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 45px -22px rgba(20, 25, 40, .45);
}
.gx-detail-thumb img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
@media (max-width: 575px) {
    .gx-detail-thumb img { height: 260px; }
}

/* Zone | theme eyebrow above the title */
.tour-details-items .details-content .location-icon {
    color: var(--gx-accent);
    font-weight: 600;
    letter-spacing: .02em;
}

/* ---- Quick facts bar ---- */
.gx-quick-facts {
    list-style: none;
    margin: 22px 0 26px;
    padding: 18px 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    border-top: 1px solid #ececf1;
    border-bottom: 1px solid #ececf1;
}
.gx-quick-facts li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
}
.gx-quick-facts li i {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(232, 160, 32, .12);
    color: var(--gx-accent);
    font-size: 1.05rem;
}
.gx-quick-facts .gx-fact-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a90a0;
    line-height: 1.2;
}
.gx-quick-facts .gx-fact-value {
    font-size: .92rem;
    font-weight: 600;
    color: #2d3142;
    line-height: 1.25;
}

/* ---- Internal-link lists (parks) inherit theme color, not browser blue ---- */
.gx-linked-list li a {
    color: inherit;
    transition: color .18s var(--gx-ease);
}
.gx-linked-list li a:hover {
    color: var(--gx-accent);
    text-decoration: underline;
}

/* ---- Accent underline on detail section headings ---- */
.tour-details-items .details-content .destination-list-item > h4,
.tour-details-items .faq-items > h4 {
    position: relative;
    padding-bottom: 10px;
}
.tour-details-items .details-content .destination-list-item > h4::after,
.tour-details-items .faq-items > h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--gx-accent);
}

/* ---- Booking sidebar price banner ---- */
.gx-sidebar-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(232, 160, 32, .12), rgba(232, 160, 32, .04));
    border: 1px solid rgba(232, 160, 32, .25);
}
.gx-sidebar-price .gx-price-from {
    font-size: .8rem;
    color: #6b7180;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.gx-sidebar-price .gx-price-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gx-accent-dark);
    line-height: 1;
}
.gx-sidebar-price .gx-price-unit {
    font-size: .85rem;
    color: #6b7180;
}

/* ---- Accordion (Tour Plan) active state accent ---- */
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--gx-accent-dark);
}

/* ============================================================
   Park / destination detail page
   ============================================================ */

/* Accent underline on this page's section headings (they use <h2>/<h4>) */
.destination-details-section .details-content > .faq-items > h2,
.destination-details-section .details-content > .map-area > h2,
.destination-details-section .details-content .destination-list-item > h4 {
    position: relative;
    padding-bottom: 10px;
}
.destination-details-section .details-content > .faq-items > h2::after,
.destination-details-section .details-content > .map-area > h2::after,
.destination-details-section .details-content .destination-list-item > h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--gx-accent);
}

.destination-details-section .details-content .location-icon {
    color: var(--gx-accent);
    font-weight: 600;
    letter-spacing: .02em;
}

/* ---- "Safari tours visiting this park" — clickable rows ---- */
.gx-related-tours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gx-related-tour {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 14px;
    padding: 16px 18px;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    background: #fff;
    color: #2d3142;
    transition: border-color .2s var(--gx-ease), box-shadow .2s var(--gx-ease), transform .2s var(--gx-ease);
}
.gx-related-tour:hover {
    border-color: var(--gx-accent);
    box-shadow: 0 10px 24px -16px rgba(20, 25, 40, .4);
    transform: translateY(-2px);
    color: #2d3142;
}
.gx-related-tour .gx-rt-title {
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.3;
}
.gx-related-tour .gx-rt-meta {
    grid-column: 1;
    font-size: .82rem;
    color: #6b7180;
}
.gx-related-tour > i {
    grid-row: 1 / span 2;
    grid-column: 2;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(232, 160, 32, .12);
    color: var(--gx-accent);
    transition: background .2s var(--gx-ease), color .2s var(--gx-ease);
}
.gx-related-tour:hover > i {
    background: var(--gx-accent);
    color: #fff;
}

