/* Safari-themed enhancements for African Roar Safaris */

/* Safari badge - gold pill label used on all section headers */
.safari-badge {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Section underline - gold accent line under headings */
.section-underline {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Safari divider - decorative gold line */
.safari-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--earth));
    margin: 0 auto;
    border-radius: 2px;
}

/* Enhanced hero sections with safari imagery */
.safari-hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(139,69,19,0.4)), url('../img/bg-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0;
    text-align: center;
}

/* Pricing cards with safari theming */
.safari-pricing-card {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.safari-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.safari-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.25);
}

.safari-price {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.safari-price-label {
    font-size: 0.9em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Conservation fee styling */
.conservation-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.conservation-notice h4 {
    color: #856404;
    margin-bottom: 15px;
    font-weight: 600;
}

.conservation-notice ul {
    margin-bottom: 0;
}

.conservation-notice li {
    color: #856404;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Booking policy styling */
.booking-policy {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-left: 4px solid #17a2b8;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 10px 10px 0;
}

.booking-policy h5 {
    color: #0c5460;
    margin-bottom: 15px;
    font-weight: 600;
}

.booking-policy p {
    color: #0c5460;
    margin-bottom: 10px;
    font-weight: 500;
}

.booking-policy strong {
    color: #17a2b8;
}

/* Safari container styling */
.safari-container {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.safari-container:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.safari-container h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.safari-time {
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* Enhanced image gallery */
.safari-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.safari-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.safari-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}


/* Safari stats styling */
.safari-stats {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 50px 0;
    margin: 40px 0;
}

.safari-stat-item {
    text-align: center;
    padding: 20px;
}

.safari-stat-number {
    font-size: 3em;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.safari-stat-label {
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .safari-hero {
        padding: 80px 0;
        background-attachment: scroll;
    }
    
    .safari-pricing-card {
        margin-bottom: 15px;
    }
    
    .safari-gallery {
        grid-template-columns: 1fr;
    }
    
    .safari-gallery img {
        height: 200px;
    }
    
    .safari-stat-number {
        font-size: 2.5em;
    }
}

/* Enhanced navbar for safari theme */
.navbar-safari {
    background: rgba(26, 30, 34, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Safari icon enhancements */
.safari-icon {
    color: var(--primary);
    font-size: 1.2em;
    margin-right: 8px;
}

/* Enhanced testimonials */
.safari-testimonial {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-left: 4px solid var(--primary);
    padding: 25px;
    border-radius: 0 15px 15px 0;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Animal gallery enhancements */
.animal-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.animal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.animal-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.animal-card:hover img {
    transform: scale(1.1);
}

.animal-card-body {
    padding: 20px;
}

.animal-card h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Enhanced pricing cards with safari theming */
.pricing-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-weight: 600;
}

.pricing-list li:last-child {
    border-bottom: none;
}

.price-highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1em;
}

/* Safari overview card styling */
.safari-overview-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.safari-features {
    list-style: none;
    padding-left: 0;
}

.safari-features li {
    padding: 8px 0;
    color: #495057;
    position: relative;
    padding-left: 25px;
}

.safari-features li::before {
    content: '🦁';
    position: absolute;
    left: 0;
    top: 8px;
}

/* Entry fee card styling */
.entry-fee-card {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.fee-details p {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.fee-price {
    color: #856404;
    font-weight: 700;
}

/* Enhanced booking card */
.booking-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3) !important;
    transition: all 0.3s ease;
}

.booking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.4) !important;
}

.booking-features small {
    opacity: 0.9;
    margin-bottom: 3px;
}

.booking-features i {
    color: #fff;
    margin-right: 8px;
}

/* Enhanced testimonial styling for believability */
.testimonial-item {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin: 0 15px;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Owl carousel visibility improvements */
.owl-carousel .owl-stage-outer {
    padding: 40px 0; /* give breathing room */
}

/* Dim and slightly scale down non-active slides to focus the center one */
.owl-carousel .owl-item {
    /* Slight dim for non-active slides but remove blur for clarity */
    opacity: 0.65;
    transform: scale(0.97);
    transition: all 350ms cubic-bezier(.2,.8,.2,1);
    filter: none; /* removed blur */
    pointer-events: none;
}

.owl-carousel .owl-item.active,
.owl-carousel .owl-item.center {
    opacity: 1;
    transform: scale(1.02);
    filter: none;
    pointer-events: auto;
}

/* Put active testimonial on top and strengthen visual emphasis */
.owl-carousel .owl-item.active .testimonial-item,
.owl-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
    border-radius: 18px;
    transform: translateY(-6px);
}

/* Make testimonial text highly readable */
.testimonial-text {
    background: #ffffff; /* ensure full opacity */
    color: #343a40;
    padding: 26px;
    border-radius: 10px;
}

.testimonial-text p {
    color: #333333;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center !important;
}

/* Avatar styles */
.testimonial-item img {
    display: none;
}

/* Owl nav/dots styling */
.owl-nav { position: absolute; width: 100%; top: 48%; left: 0; pointer-events: none; }
.owl-nav button { pointer-events: auto; background: rgba(255,255,255,0.9); border: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.owl-nav button.owl-prev { position: absolute; left: 10px; }
.owl-nav button.owl-next { position: absolute; right: 10px; }
.owl-nav button i { color: var(--primary); font-size: 18px; }
.owl-dots { margin-top: 20px; }
.owl-dot span { width: 10px; height: 10px; background: #e9ecef; display: inline-block; border-radius: 50%; }
.owl-dot.active span { background: var(--primary); box-shadow: 0 6px 14px rgba(var(--primary-rgb),0.25); }

/* Responsive tweaks */
@media (max-width: 992px) {
    .owl-carousel .owl-item { opacity: 1; transform: none; filter: none; pointer-events: auto; }
    .testimonial-text p { text-align: left !important; }
}

/* Responsive testimonial adjustments */
@media (max-width: 768px) {
    .testimonial-text p {
        font-size: 0.9rem;
    }
    
    .testimonial-item {
        margin: 0 10px;
    }
}

/* Accessibility / contrast fixes for testimonial carousel
   - Ensure testimonial text is readable when carousel styles conflict
   - Default: dark text on light background
   - Center (active) slide: green background with white text
*/
.testimonial-carousel .owl-item .testimonial-text * {
    color: #333333 !important; /* default readable color */
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--light) !important; /* active slide uses light gray */
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #333333 !important; /* default readable color */
}

/* ============ NATURE ELEMENTS ============ */
.nature-divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.nature-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--earth-light), transparent);
}

.nature-divider span {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: var(--white);
    color: var(--earth);
    font-size: 1.2rem;
}

/* Earth-tone section backgrounds */
.section-earth {
    background: linear-gradient(180deg, var(--white) 0%, #f5f0eb 100%);
}

.section-warm {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0eb 100%);
}

/* Gold accent bar */
.gold-bar {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--earth));
    border-radius: 2px;
    margin: 15px 0;
}

/* Nature card hover */
.nature-card {
    background: var(--white);
    border: 1px solid rgba(139,94,60,0.1);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s ease;
}

.nature-card:hover {
    border-color: var(--earth-light);
    box-shadow: var(--shadow-md);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Touch targets - 44px minimum */
.btn, .nav-link, .dropdown-item, .form-control, .form-select {
    min-height: 44px;
}

/* ============ GREEN LEAF DECORATIVE ELEMENTS ============ */

/* Leaf section divider — subtle vine strip */
.leaf-divider {
    width: 100%;
    height: 30px;
    background: url('../img/leaf-vine.svg') repeat-x center;
    background-size: auto 30px;
    margin: 1rem 0;
    opacity: 0.6;
}

/* Leaf accent — for section headers */
.leaf-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.leaf-accent::before,
.leaf-accent::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

/* Facts/stats section — subtle leaf texture */
.facts {
    position: relative;
    overflow: hidden;
}

.facts::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/leaf-scatter.svg') repeat;
    background-size: 300px 300px;
    opacity: 0.04;
    pointer-events: none;
}

/* Visiting hours section — subtle leaf texture */
.visiting-hours {
    position: relative;
    overflow: hidden;
}

.visiting-hours::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/leaf-scatter.svg') repeat;
    background-size: 300px 300px;
    opacity: 0.04;
    pointer-events: none;
}

/* Leaf card accent — green left border */
.leaf-card-accent {
    border-left: 4px solid var(--primary);
    border-image: linear-gradient(180deg, var(--primary), var(--leaf), var(--primary)) 1;
}

/* Gallery section — subtle leaf background */
.gallery-section {
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/leaf-scatter.svg') repeat;
    background-size: 400px 400px;
    opacity: 0.03;
    pointer-events: none;
}

/* Leaf sway animation */
@keyframes leafSway {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(2deg) translateY(-3px); }
    75% { transform: rotate(-2deg) translateY(3px); }
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-cinematic-container .hero-image {
        animation: none !important;
    }
}

/* ============ NATURE-RESONATING LIVE DESIGN ============ */

/* Subtle leaf float animation for hero */
@keyframes leafDrift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(-2deg); }
}

/* Warm golden glow effect for sections */
.section-glow {
    position: relative;
}

.section-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb),0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Earth texture overlay for organic feel */
.earth-texture {
    position: relative;
}

.earth-texture::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(139,94,60,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(46,125,50,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(var(--primary-rgb),0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Live pulse animation for CTA buttons */
.btn-live {
    position: relative;
    overflow: hidden;
}

.btn-live::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-live:hover::before {
    width: 300px;
    height: 300px;
}

/* Savanna gradient backgrounds */
.bg-savanna {
    background: linear-gradient(180deg, #faf6f1 0%, #f5efe8 50%, #faf6f1 100%);
}

.bg-bush {
    background: linear-gradient(180deg, #f0f7f0 0%, #e8f2e8 50%, #f0f7f0 100%);
}

/* Nature card hover lift */
.nature-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.nature-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* Organic border radius for images */
.organic-shape {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Subtle parallax feel for sections */
.parallax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Warm shadow for cards */
.shadow-warm {
    box-shadow: 0 8px 30px rgba(139,94,60,0.12);
}

.shadow-warm:hover {
    box-shadow: 0 15px 50px rgba(139,94,60,0.18);
}

/* Gold accent line */
.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--earth));
    border-radius: 2px;
}

/* Nature-inspired section backgrounds */
.bg-nature-gradient {
    background: linear-gradient(135deg, rgba(46,125,50,0.03) 0%, rgba(139,94,60,0.02) 50%, rgba(var(--primary-rgb),0.03) 100%);
}