/* Zoo Directory Custom Styles */
:root {
    --primary-color: #2d5a3d;
    --secondary-color: #4a7c59;
    --accent-color: #7fb069;
    --light-green: #8bc34a;
    --warm-white: #fefefe;
    --soft-gray: #f8f9fa;
    --earth-tone: #8b5a2b;
    --logo-orange: #e6941a;
}

/* Override Bootstrap text colors to use site colors */
.text-primary {
    color: var(--primary-color) !important;
}

/* Override Bootstrap warning text color to use logo orange */
.text-warning,
h1.text-warning,
h2.text-warning,
h3.text-warning,
h4.text-warning,
h5.text-warning,
h6.text-warning,
.card-title.text-warning {
    color: var(--logo-orange) !important;
}

/* Search form labels styling for better visibility on dark backgrounds */
.form-label {
    color: var(--light-green) !important;
    font-weight: 500;
}

/* Breadcrumb Styling */
.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--secondary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
    font-weight: 500;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d5a3d !important;
    background-color: #f8f9fa !important;
}

/* GLOBAL TEXT COLOR OVERRIDE - CONSISTENT ACROSS ALL DEVICES */
*, *::before, *::after {
    color: #2d5a3d !important;
}

h1, h2, h3, h4, h5, h6, p, span, div, li, td, th, a, button, input, textarea, select, label {
    color: #2d5a3d !important;
}

/* MUTED TEXT STYLING */
.text-muted, .text-light, .text-secondary {
    color: #666 !important;
}

/* FORCE WHITE BACKGROUNDS ON CARDS AND CONTENT */
.card, .card-body {
    background-color: white !important;
    color: #2d5a3d !important;
}

/* FORCE CONSISTENT BODY BACKGROUND */
body {
    background-color: #f8f9fa !important;
    color: #2d5a3d !important;
}

/* ENSURE ALL PAGE SECTIONS HAVE PROPER BACKGROUNDS */
.container, .container-fluid, section, main, article {
    background-color: transparent !important;
}

/* FORCE CARD CONTENT VISIBILITY */
.card-title, .card-text, .card-header, .card-footer {
    color: #2d5a3d !important;
}

/* ABOUT SECTIONS AND AMENITIES - FORCE DARK TEXT ON WHITE */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: #2d5a3d !important;
}

.card p, .card div, .card span, .card li {
    color: #2d5a3d !important;
}

/* NAVIGATION LINKS - ENSURE VISIBILITY */
.nav-link, .navbar-nav .nav-link {
    color: #2d5a3d !important;
}

.nav-link:hover, .navbar-nav .nav-link:hover {
    color: #e6941a !important;
}

/* MOBILE NAV OVERLAY FIXES */
.mobile-nav-overlay, .mobile-nav, .mobile-nav-item {
    background-color: white !important;
    color: #2d5a3d !important;
}

.mobile-nav-text {
    color: #2d5a3d !important;
}

/* DROPDOWN MENU FIXES */
.dropdown-menu, .dropdown-item {
    background-color: white !important;
    color: #2d5a3d !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #2d5a3d !important;
}

/* FORCE ALL LIST ELEMENTS TO BE VISIBLE */
ul, ol, li {
    color: #2d5a3d !important;
}

/* FORCE ALL PARAGRAPHS AND TEXT TO BE VISIBLE */
p, span, div:not(.hero-section):not(.hero-section *) {
    color: #2d5a3d !important;
}

/* ZOO DETAILS PAGE FIXES - WEB LINKS AND ICONS */
.zoo-detail .card-body a {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

.zoo-detail .card-body a:hover {
    color: var(--logo-orange) !important;
}

/* AMENITY LIST ITEMS AND ICONS */
.amenity-item, .amenity-item * {
    color: #2d5a3d !important;
}

/* HOURS SECTION */
.hours-section, .hours-section * {
    color: #2d5a3d !important;
}

/* GENERAL LINK STYLING FOR ZOO PAGES */
a:not(.btn):not(.hero-section a) {
    color: var(--primary-color) !important;
}

a:not(.btn):not(.hero-section a):hover {
    color: var(--logo-orange) !important;
}

/* ANIMAL CARD SPECIFIC FIXES */
.animal-card, .species-card {
    background-color: white !important;
}

.animal-card *, .species-card * {
    color: #2d5a3d !important;
}

/* SPECIES CARD BUTTON FIXES - ENSURE BOTH BUTTONS ARE VISIBLE */
.species-card .btn {
    color: white !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.species-card .btn-outline-primary {
    color: var(--primary-color) !important;
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
}

.species-card .btn-outline-primary:hover {
    color: white !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* FORCE CARD FOOTER BUTTONS TO BE VISIBLE - OVERRIDE GLOBAL RULES */
.animal-highlight-card-horizontal .card-footer .btn-light {
    color: #333 !important;
    background-color: white !important;
    border-color: #ddd !important;
}

.animal-highlight-card-horizontal .card-footer .btn-light:hover {
    color: #333 !important;
    background-color: #f8f9fa !important;
    border-color: #ddd !important;
}

.animal-highlight-card-horizontal .card-footer .btn-primary {
    color: white !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* HERO SECTION EXCEPTIONS - KEEP WHITE TEXT */
.hero-section, .hero-section *, .hero-section h1, .hero-section h2, .hero-section p, .hero-section .lead, .hero-section .display-4 {
    color: white !important;
}

.hero-section .btn {
    color: white !important;
}

.hero-section .btn:hover {
    color: #2d5a3d !important;
}

/* ADVENTURE TEXT SHOULD BE YELLOW/ORANGE */
.hero-section .adventure-text {
    color: #e6941a !important;
}

/* BUTTON TEXT FIXES - FORCE WHITE TEXT ON ALL BUTTONS */
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-danger, .btn-info, .btn-light, .btn-dark, .btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-warning, .btn-outline-danger, .btn-outline-info, .btn-outline-light, .btn-outline-dark {
    color: white !important;
}

.btn:hover, .btn-primary:hover, .btn-secondary:hover, .btn-success:hover, .btn-warning:hover, .btn-danger:hover, .btn-info:hover, .btn-light:hover, .btn-dark:hover {
    color: white !important;
}

.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-success:hover, .btn-outline-warning:hover, .btn-outline-danger:hover, .btn-outline-info:hover, .btn-outline-light:hover, .btn-outline-dark:hover {
    color: white !important;
}

/* Admin Dashboard Styles */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%) !important;
}

.admin-header-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Admin CMS Form Styling */
.admin-cms-form .card {
    background: #2b2b2b !important;
    border: none !important;
}

.admin-cms-form .card-body {
    background: #2b2b2b !important;
}

.admin-cms-form h1 {
    color: var(--light-green) !important;
}

.admin-cms-form h5 {
    color: var(--light-green) !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.admin-cms-form .form-label {
    color: var(--light-green) !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

.admin-cms-form .form-control {
    background: #404040 !important;
    border: 1px solid #555 !important;
    color: #fff !important;
}

.admin-cms-form .form-control:focus {
    background: #404040 !important;
    border-color: var(--light-green) !important;
    box-shadow: 0 0 0 0.25rem rgba(139, 195, 74, 0.25) !important;
    color: #fff !important;
}

.admin-cms-form .form-control::placeholder {
    color: #999 !important;
}

.admin-cms-form .form-check-label {
    color: var(--light-green) !important;
    font-weight: 500 !important;
}

.admin-cms-form .form-check-input:checked {
    background-color: var(--light-green) !important;
    border-color: var(--light-green) !important;
}

.admin-cms-form .btn-primary {
    background-color: var(--light-green) !important;
    border-color: var(--light-green) !important;
    color: #333 !important;
    font-weight: 600 !important;
}

.admin-cms-form .btn-primary:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #333 !important;
}

.admin-cms-form .btn-outline-light {
    border-color: var(--light-green) !important;
    color: var(--light-green) !important;
}

.admin-cms-form .btn-outline-light:hover {
    background-color: var(--light-green) !important;
    border-color: var(--light-green) !important;
    color: #333 !important;
}

/* Admin CMS Preview Panel */
.admin-cms-form .preview-panel {
    background: #2b2b2b !important;
    border: 1px solid #555 !important;
    border-radius: 8px !important;
}

.admin-cms-form .preview-panel .card-header {
    background: #333 !important;
    border-bottom: 1px solid #555 !important;
    color: var(--light-green) !important;
    font-weight: 600 !important;
}

/* CDN Upload Styling */
.cdn-upload-container {
    position: relative;
}

.cdn-drop-zone {
    border: 2px dashed #555 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    text-align: center !important;
    background: #404040 !important;
    color: #ccc !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.cdn-drop-zone:hover {
    border-color: var(--light-green) !important;
    background: #4a4a4a !important;
    color: var(--light-green) !important;
}

.cdn-drop-zone.drag-over {
    border-color: var(--light-green) !important;
    background: rgba(139, 195, 74, 0.1) !important;
    color: var(--light-green) !important;
}

.cdn-file-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

/* Upload Progress */
#cdn-upload-progress {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    background: #333;
    color: var(--light-green);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Flash Messages for CDN */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    min-width: 300px;
}

.flash-messages .alert {
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* CDN Gallery */
.cdn-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.cdn-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #555;
}

.cdn-gallery-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.cdn-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cdn-gallery-item:hover .cdn-gallery-overlay {
    opacity: 1;
}

.cdn-delete-btn {
    font-size: 0.8rem;
    padding: 4px 8px;
}

/* CDN Test Button */
.cdn-test-btn {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #333 !important;
}

.cdn-test-btn:hover {
    background: var(--light-green) !important;
    border-color: var(--light-green) !important;
}
    backdrop-filter: blur(10px);
}

/* Admin Cards Enhancement */
.admin-stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* View Toggle Buttons Enhancement */
.btn-group .btn {
    font-weight: 500;
    border-width: 1.5px;
    transition: all 0.2s ease;
}

.btn-group .btn.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.3);
}

.btn-group .btn:not(.active):hover {
    background-color: rgba(45, 90, 61, 0.1);
    transform: translateY(-1px);
}

/* Enhanced Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #2c5530 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(230, 148, 26, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(22, 163, 74, 0.1) 0%, transparent 50%);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.adventure-text {
    position: relative;
    color: var(--logo-orange);
}

.handwritten-underline {
    position: absolute;
    bottom: -25px;
    left: -5px;
    right: -5px;
    height: 30px;
    background: url('/static/images/underline-brush.png') no-repeat left center;
    background-size: 100% contain;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    animation: drawUnderline 0.4s ease-out 1.2s both;
    filter: invert(1) drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.6));
    z-index: 999;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}



.hero-actions {
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-cta {
    background: var(--logo-orange);
    border: none;
    box-shadow: 0 4px 15px rgba(230, 148, 26, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
}

.hero-cta:hover {
    background: #d68319;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 148, 26, 0.6);
}

.hero-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-image-container {
    position: relative;
    animation: slideInRight 1s ease-out 0.3s both;
}

.hero-image {
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.floating-elements {
    position: absolute;
    top: 20px;
    right: -20px;
    animation: float 3s ease-in-out infinite;
}

.floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
}

.mobile-hero-image {
    max-width: 300px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Search form styling - keep light background always */
.form-control, .form-select {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 61, 0.25) !important;
    color: #333 !important;
}

.form-control::placeholder {
    color: #888 !important;
    opacity: 1;
}

/* Featured Zoos section styling */
.featured-zoos-title {
    color: var(--logo-orange) !important;
    font-size: 2.5em !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Recently Added section title styling */
section .container .row .col-12 h2.display-5 {
    color: var(--primary-color) !important;
}

/* Zoo card title styling */
.zoo-card .card-title {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Zoo card description styling - Featured zoos */
.zoo-card.featured-zoo .card-text {
    color: #333 !important;
}

/* Non-featured zoo cards styling */
.zoo-card:not(.featured-zoo) .card-title {
    color: white !important;
    font-weight: 600;
}

.zoo-card:not(.featured-zoo) .card-text {
    color: white !important;
}

.zoo-card:not(.featured-zoo) {
    background: var(--primary-color) !important;
    color: white !important;
}

.zoo-card:not(.featured-zoo) .card-body {
    background: transparent !important;
}

.zoo-card:not(.featured-zoo) .card-footer {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.zoo-card:not(.featured-zoo) .btn {
    color: white !important;
    border-color: white !important;
}

.zoo-card:not(.featured-zoo) .btn:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* Amenity icon styling for consistent alignment and performance */
.icon-svg {
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle;
    display: inline-block;
    fill: #2d5a3d !important;
    color: #2d5a3d !important;
    /* Add caching headers for better performance */
    image-rendering: auto;
    /* Preload critical icons */
    will-change: auto;
}

/* Directory page zoo cards styling */
.directory-zoo-card {
    background: linear-gradient(135deg, #2d5331 0%, #3a6b40 100%) !important;
    color: white !important;
}

.directory-zoo-card .card-body {
    background: transparent !important;
}

.directory-zoo-card .card-title {
    color: white !important;
    font-weight: 600;
}

.directory-zoo-card .text-white {
    color: white !important;
}

.directory-zoo-card .text-warning {
    color: #ffc107 !important;
}

.directory-zoo-card a.text-white:hover {
    color: #ffc107 !important;
    text-decoration: underline !important;
}

.directory-zoo-card .btn-primary {
    background-color: #4a8056 !important;
    border-color: #4a8056 !important;
    color: white !important;
}

.directory-zoo-card .btn-primary:hover {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #2d5331 !important;
}

/* Baby Animals horizontal scrolling section */
.horizontal-scroll-container {
    position: relative;
}

.scroll-wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.baby-animal-card-horizontal {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.baby-animal-card-horizontal:hover {
    transform: translateY(-5px);
}

.baby-animal-card-horizontal .card {
    border: none;
    transition: box-shadow 0.3s ease;
}

.baby-animal-card-horizontal:hover .card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.baby-details {
    background-color: #f5f0e8 !important;
    color: #333 !important;
    border-radius: 6px;
    padding: 8px;
    margin-top: 8px;
}

.baby-details strong {
    color: #333 !important;
}

.baby-details * {
    color: #333 !important;
}

/* FORCE BABY DETAILS ICONS TO BE DARK - OVERRIDE CARD BODY WHITE TEXT */
.baby-details i {
    color: #333 !important;
}

.baby-details .fas {
    color: #333 !important;
}

.baby-details div i {
    color: #333 !important;
}

/* Baby animal card body with orange background for title area */
.baby-animal-card-horizontal .card-body {
    background-color: var(--logo-orange) !important;
    color: white !important;
}

.baby-animal-card-horizontal .card-title {
    color: white !important;
}

.baby-animal-card-horizontal .card-subtitle {
    color: var(--primary-color) !important;
}

/* FORCE BABY ANIMAL CARD TITLE TO BE WHITE - OVERRIDE GLOBAL RULE */
.baby-animal-card-horizontal .card-body * {
    color: white !important;
}

.baby-animal-card-horizontal .card-body h5 {
    color: white !important;
}

.baby-animal-card-horizontal .card-body h6 {
    color: var(--primary-color) !important;
}

/* EXCEPTION - BABY DETAILS SECTION SHOULD HAVE DARK TEXT AND ICONS */
.baby-animal-card-horizontal .card-body .baby-details {
    background-color: #f5f0e8 !important;
    color: #333 !important;
}

.baby-animal-card-horizontal .card-body .baby-details * {
    color: #333 !important;
}

.baby-animal-card-horizontal .card-body .baby-details i {
    color: #333 !important;
}

.baby-animal-card-horizontal .card-body .baby-details .fas {
    color: #333 !important;
}

/* Animal Highlights Section - same styling as baby animals */
.animal-highlight-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.animal-highlight-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.animal-highlight-scroll::-webkit-scrollbar {
    height: 8px;
}

.animal-highlight-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.animal-highlight-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.animal-highlight-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.animal-highlight-card-horizontal {
    min-width: 320px;
    max-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animal-highlight-card-horizontal:hover {
    transform: translateY(-5px);
}

.animal-highlight-card-horizontal:hover .card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.animal-highlight-details {
    background-color: #f5f0e8;
    color: #333;
    border-radius: 6px;
    padding: 8px;
    margin-top: 8px;
}

.animal-highlight-details strong {
    color: #333;
}

/* Animal highlight card styling - simplified approach */
.animal-highlight-card-horizontal .card-body {
    background-color: var(--logo-orange) !important;
    color: white !important;
}

.animal-highlight-card-horizontal .card-title {
    color: white !important;
}

.animal-highlight-card-horizontal .card-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

.animal-highlight-card-horizontal .species-details {
    color: white !important;
}

/* FORCE SPECIES CARD ORANGE SECTION TO HAVE WHITE TEXT - OVERRIDE GLOBAL RULE */
.animal-highlight-card-horizontal .card-body * {
    color: white !important;
}

.animal-highlight-card-horizontal .card-body h5 {
    color: white !important;
}

.animal-highlight-card-horizontal .card-body .species-details * {
    color: white !important;
}

.animal-highlight-card-horizontal .card-body strong {
    color: white !important;
}

.animal-highlight-card-horizontal .card-body i {
    color: white !important;
}

.baby-details i {
    width: 14px;
    height: 14px;
    color: #333 !important;
}

/* RED ICON FIX - ENSURE BABY BADGE IS VISIBLE */
.baby-animal-card-horizontal .badge.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

/* ENSURE CARD FOOTER IS TRANSPARENT BACKGROUND */
.baby-animal-card-horizontal .card-footer {
    background-color: transparent !important;
    border-top: none !important;
}

.animal-highlight-card-horizontal .card-footer {
    background-color: transparent !important;
    border-top: none !important;
}



.logo-img {
    height: 80px;
    width: auto;
    border-radius: 8px;
}

.navbar-logo {
    height: auto;
    width: auto;
    border-radius: 0;
    object-fit: contain;
    max-height: 50px;
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: top;
}

/* Force navbar to be completely transparent in all states */
.navbar.navbar-light.sticky-top {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    min-height: auto !important;
}

.navbar.navbar-light {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
}

.navbar-light .container {
    background-color: transparent !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar-brand {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* Ensure no background on scroll states */
.navbar.sticky-top {
    background-color: transparent !important;
    background: transparent !important;
}

/* Remove any default sticky behavior backgrounds */
.sticky-top {
    background-color: transparent !important;
}

/* Override Bootstrap navbar defaults for minimal spacing */
.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
}

.navbar > .container {
    align-items: center !important;
    min-height: 50px !important;
    display: flex !important;
}

/* Modern Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar {
        background-color: #fff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    .navbar > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        background-color: #fff !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .navbar-brand {
        margin: 0 !important;
        padding: 15px 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    .navbar-logo {
        margin: 0 !important;
        max-width: calc(100% - 80px) !important;
        height: 50px !important;
    }
    
    /* Custom mobile hamburger button */
    .custom-mobile-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        width: 30px;
        height: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        z-index: 1001;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
    }
    
    .custom-mobile-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .custom-mobile-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .custom-mobile-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile navigation overlay - Hidden by default */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-top: 80px;
        visibility: hidden;
        opacity: 0;
    }
    
    .mobile-nav-overlay.show {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }
    
    /* Modern hamburger button */
    .navbar-toggler {
        border: none !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        background-color: #f8f9fa !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-toggler:hover {
        background-color: #e9ecef !important;
        transform: scale(1.05) !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.25) !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 90, 61, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Style mobile navbar-collapse */
    .navbar-collapse {
        background-color: transparent !important;
        margin-top: 15px !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Hide only the desktop navigation on mobile - but keep space for logo and hamburger */
    .d-none.d-lg-flex {
        display: none !important;
    }
    
    /* Hide Bootstrap navbar toggler since we use custom */
    .navbar-toggler {
        display: none !important;
    }
    
    /* Mobile user navigation styling */
    .mobile-user-nav {
        border-top: 1px solid #e9ecef;
        padding-top: 16px;
        margin-top: 16px;
    }
    
    .mobile-user-nav .mobile-nav-item {
        background-color: #f8f9fa;
        margin: 4px 16px;
        border-radius: 8px;
    }
    
    .mobile-user-nav .mobile-nav-item:hover {
        background-color: #e9ecef;
    }
}
    
    /* Adjust navbar-nav container height */
    .navbar-nav {
        height: 90% !important;
        margin: 2.5px 0 !important;
        align-self: center !important;
    }
    
    .navbar-nav .nav-item {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.zoo-card {
    position: relative;
}

.zoo-card .card-img-top {
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
}

.zoo-card:hover .card-img-top {
    transform: scale(1.05);
}

.featured-zoo {
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.featured-zoo .card-body {
    background: rgba(255, 249, 230, 0.5);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav {
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
}

/* Desktop navigation specific alignment - No gaps */
@media (min-width: 992px) {
    .navbar {
        padding: 0 !important;
        min-height: auto !important;
    }
    
    .navbar > .container {
        display: flex !important;
        align-items: center !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        min-height: 50px !important;
        justify-content: space-between !important;
    }
    
    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-grow: 0 !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .navbar-logo {
        height: 50px !important;
        width: auto !important;
        margin: 0 !important;
    }
    
    .navbar-nav {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }
    
    .navbar-nav .nav-item {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }
    
    .navbar-nav .nav-link {
        display: flex !important;
        align-items: center !important;
        padding: 0.5rem 1rem !important;
        margin: 0 0.25rem !important;
        line-height: 1 !important;
        background: none !important;
        border-radius: 0 !important;
    }
    
    .navbar-nav .nav-link:hover {
        background: none !important;
        transform: none !important;
    }
    
    /* Show desktop navigation on desktop */
    .navbar-nav,
    .nav-item,
    .nav-link {
        display: flex !important;
    }
    
    .nav-item.dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        min-width: 160px;
        padding: 0.5rem 0;
        margin: 0;
        background-color: #fff;
        border: 1px solid rgba(0,0,0,.15);
        border-radius: 0.375rem;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown-menu.show {
        display: block;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    display: flex !important;
    align-items: center !important;
    background: none !important;
    border-radius: 0 !important;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    background: none !important;
    transform: none !important;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-height: 44px; /* Mobile-friendly touch target */
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 61, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Stats Cards */
.stat-card {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    margin-bottom: 1rem;
}

/* Search Results */
.search-results {
    min-height: 400px;
}

.search-filters {
    background-color: var(--soft-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Footer */
footer {
    background-color: var(--soft-gray);
    color: #666;
}

footer h5, footer h6 {
    color: var(--primary-color);
    font-weight: 600;
}

footer a {
    color: #666;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .search-filters {
        padding: 1rem;
    }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 1px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
    }
    
    .btn-outline-primary {
        color: #000;
        border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* DARK MODE DISABLED - FORCE LIGHT BACKGROUND DARK TEXT */
/* REMOVED DARK MODE MEDIA QUERY - SITE SHOULD LOOK SAME REGARDLESS OF DEVICE SETTINGS */
/* All styling is now forced to consistent zoo theme colors */

/* Hero Section Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes drawUnderline {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    20% {
        opacity: 1;
        clip-path: inset(0 70% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0% 0 0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-10px);
    }
    70% {
        transform: translateX(-50%) translateY(-5px);
    }
    90% {
        transform: translateX(-50%) translateY(-2px);
    }
}

/* Mobile Hero Optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
    }
    

    
    .hero-cta, .hero-secondary {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}


/* Modern Mobile Navigation Styles */
.mobile-nav {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e9ecef;
    max-height: 60vh;
    min-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.mobile-nav::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-nav::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 8px;
}

.mobile-nav::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.mobile-nav-level {
    display: none;
    padding: 16px 0;
    background-color: #fff;
    border-radius: 16px;
}

.mobile-nav-level.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin: 4px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
    border: none;
}

.mobile-nav-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-nav-item:active {
    transform: translateX(2px) scale(0.98);
}

.mobile-nav-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    flex-grow: 1;
}

.mobile-nav-arrow {
    color: #6c757d;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    transition: all 0.2s ease;
    user-select: none;
}

.mobile-nav-item:hover .mobile-nav-arrow {
    color: var(--primary-color);
    transform: translateX(2px);
}

.mobile-nav-back {
    padding: 12px 20px;
    margin: 8px 16px 12px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-bottom: none;
}

.mobile-nav-back:hover {
    background-color: #e9ecef;
    transform: none;
    box-shadow: none;
}

.mobile-nav-back .mobile-nav-text {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.mobile-nav-title {
    display: block;
    padding: 8px 20px 16px 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid #e9ecef;
    margin: 0 16px 12px 16px;
}

.mobile-nav-highlight {
    background-color: rgba(45, 90, 61, 0.08);
    border: 1px solid rgba(45, 90, 61, 0.15);
}

.mobile-nav-highlight .mobile-nav-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* Navbar collapse styling to prevent opacity issues */
.navbar-collapse {
    background-color: white;
    opacity: 1;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-collapse.show {
    opacity: 1;
    background-color: white;
}

/* Scroll indicators */
.mobile-nav-container {
    position: relative;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.scroll-indicator-top {
    top: 15px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.85) 40%, rgba(255,255,255,0.2) 80%, transparent 100%);
    padding: 3px 20px 8px 20px;
    color: var(--primary-color);
    height: 25px;
    border-radius: 0 0 15px 15px;
}

.scroll-indicator-bottom {
    bottom: 15px;
    background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.85) 40%, rgba(255,255,255,0.2) 80%, transparent 100%);
    padding: 8px 20px 3px 20px;
    color: var(--primary-color);
    height: 25px;
    border-radius: 15px 15px 0 0;
}

.scroll-indicator.hidden {
    opacity: 0;
}

/* Enhanced mobile responsiveness */
@media (max-width: 991.98px) {
    .mobile-nav-text {
        font-size: 1.1rem;
    }
    
    .mobile-nav-item {
        padding: 18px 20px;
        margin: 6px 16px;
    }
    
    /* Main category items - larger */
    #mainCategories .mobile-nav-item {
        padding: 20px 20px;
    }
    
    #mainCategories .mobile-nav-text {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    /* Subcategory items - slightly smaller */
    .mobile-nav-level:not(#mainCategories) .mobile-nav-item:not(.mobile-nav-back) {
        padding: 16px 20px;
    }
    
    .mobile-nav-level:not(#mainCategories) .mobile-nav-item:not(.mobile-nav-back) .mobile-nav-text {
        font-size: 1rem;
    }
    
    .mobile-nav {
        max-height: 65vh;
        min-height: 320px;
        margin-top: 25px;
        margin-bottom: 25px;
    }
}

/* Ensure main categories are always visible for different screen sizes */
@media (max-width: 991.98px) and (max-height: 700px) {
    .mobile-nav {
        min-height: 300px;
    }
    
    .mobile-nav-item {
        padding: 20px 15px;
    }
    
    .mobile-nav-level:not(#mainCategories) .mobile-nav-item:not(.mobile-nav-back) {
        padding: 14px 15px;
    }
}

@media (max-width: 991.98px) and (max-height: 600px) {
    .mobile-nav {
        min-height: 280px;
    }
    
    .mobile-nav-item {
        padding: 18px 15px;
    }
    
    .mobile-nav-level:not(#mainCategories) .mobile-nav-item:not(.mobile-nav-back) {
        padding: 12px 15px;
    }
}

/* For very tall phones like iPhone Pro Max */
@media (max-width: 991.98px) and (min-height: 800px) {
    .mobile-nav {
        min-height: 350px;
    }
}

/* Zoo detail page styling - allow white text on dark backgrounds */

/* Animals horizontal scrolling */
.animals-scroll-container {
    overflow: hidden;
    margin: 0 -15px;
}

.animals-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 0 15px;
    scrollbar-width: thin;
    scrollbar-color: #e6941a #2c2c2c;
}

.animals-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.animals-scroll-wrapper::-webkit-scrollbar-track {
    background: #2c2c2c;
    border-radius: 4px;
}

.animals-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #e6941a;
    border-radius: 4px;
}

.animals-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #d18517;
}

.animal-card {
    flex: 0 0 250px;
    max-width: 250px;
}

.animal-card .card {
    transition: transform 0.2s ease;
}

.animal-card .card:hover {
    transform: translateY(-5px);
}

/* Horizontal Scrolling Zoo Cards */
.horizontal-scroll-container {
    position: relative;
    overflow: hidden;
}

.scroll-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--logo-orange) transparent;
    padding-bottom: 1rem;
}

.scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(230, 148, 26, 0.1);
    border-radius: 4px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--logo-orange);
    border-radius: 4px;
}

.scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #d18517;
}

.zoo-card-horizontal {
    flex-shrink: 0;
    width: 320px;
    transition: transform 0.3s ease;
}

.zoo-card-horizontal:hover {
    transform: translateY(-5px);
}

.zoo-card-horizontal .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.zoo-card-horizontal .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.zoo-card-horizontal .card-img-top {
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zoo-card-horizontal .card:hover .card-img-top {
    transform: scale(1.05);
}

.zoo-card-horizontal .card-body {
    padding: 1.25rem;
    background: white;
}

.zoo-card-horizontal .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color) !important;
}

.zoo-card-horizontal .card-text {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.zoo-card-horizontal .card-footer {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.distance-info {
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Responsive adjustments for horizontal scrolling */
@media (max-width: 768px) {
    .zoo-card-horizontal {
        width: 280px;
    }
    
    .zoo-card-horizontal .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .zoo-card-horizontal .card-text {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .zoo-card-horizontal .card-body {
        padding: 1rem;
    }
    
    .zoo-card-horizontal .card-footer {
        padding: 0.75rem 1rem;
    }
    
    .scroll-wrapper {
        gap: 1rem !important;
    }
    
    .horizontal-scroll-container {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile typography for zoo cards section */
    .card-body h3.card-title {
        font-size: 1.5rem !important;
    }
    
    .input-group .form-control {
        font-size: 0.9rem;
    }
    
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .zoo-card-horizontal {
        width: 260px;
    }
    
    .zoo-card-horizontal .card-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .zoo-card-horizontal .card-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .zoo-card-horizontal .card-body {
        padding: 0.875rem;
    }
    
    .zoo-card-horizontal .card-footer {
        padding: 0.625rem 0.875rem;
    }
    
    .zoo-card-horizontal .card-footer small {
        font-size: 0.7rem;
    }
    
    /* Extra small mobile adjustments */
    .card-body h3.card-title {
        font-size: 1.25rem !important;
    }
    
    .input-group .form-control {
        font-size: 0.875rem;
    }
    
    .input-group .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Autocomplete Dropdown Styles */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item.selected {
    background-color: var(--logo-orange);
    color: white;
}

.autocomplete-item i {
    margin-right: 8px;
    opacity: 0.6;
}

.autocomplete-item .item-text {
    flex: 1;
}

.autocomplete-item .item-type {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 8px;
}

/* Mobile autocomplete adjustments */
@media (max-width: 768px) {
    .autocomplete-dropdown {
        max-height: 200px;
    }
    
    .autocomplete-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}
/* What is Zoos.com Section Styling */
.what-is-section {
    min-height: 600px;
}

.feature-badge {
    background: #f8f9fa;
    color: var(--primary-color);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature-badge:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 90, 61, 0.2);
}

.feature-badge:hover i {
    color: white !important;
}

.mission-visual {
    border: 2px solid rgba(230, 148, 26, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.mission-visual:hover {
    border-color: rgba(230, 148, 26, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(230, 148, 26, 0.15);
}

.journey-step {
    transition: all 0.3s ease;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.journey-step:hover {
    background: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(45, 90, 61, 0.15);
    border-color: var(--primary-color) !important;
}

.journey-step h5 {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.step-number {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.journey-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Desktop enhancements */
@media (min-width: 992px) {
    .what-is-section .container {
        max-width: 1200px;
    }
    
    .mission-visual {
        min-height: 300px;
    }
    
    .journey-step {
        min-height: 250px;
    }
}

/* Mobile responsiveness for What is Zoos.com */
@media (max-width: 768px) {
    .feature-badge {
        margin-bottom: 10px;
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .mission-visual {
        margin-top: 30px;
        min-height: auto;
    }
    
    .journey-step {
        margin-bottom: 20px;
        min-height: auto;
    }
    
    .what-is-section h2 {
        font-size: 1.8rem;
    }
    
    .what-is-section .lead {
        font-size: 1rem;
    }
    
    .journey-step h5 {
        font-size: 1.1rem;
    }
    
    .what-is-section {
        min-height: auto;
    }
}

/* Clear browser cache */
