/* 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;
    --header-height: 66px;
}

/* 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;
}

/* Fix sticky positioning to scroll under header */
.navbar, header.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.info-card.sticky-top {
    top: calc(var(--header-height) + 16px) !important;
    z-index: 1 !important;
}

/* Buy Tickets Button - Custom affiliate button styling */
.btn-buy-tickets {
    --bs-btn-color: #2d5a3d;
    --bs-btn-bg: #e6941a;
    --bs-btn-border-color: #2d5a3d;
    --bs-btn-border-width: 2px;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #2d5a3d;
    --bs-btn-hover-border-color: #2d5a3d;
    --bs-btn-focus-shadow-rgb: 45, 90, 61;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #1f3d28;
    --bs-btn-active-border-color: #1f3d28;
    --bs-btn-disabled-color: #2d5a3d;
    --bs-btn-disabled-bg: #e6941a;
    --bs-btn-disabled-border-color: #2d5a3d;
    --bs-btn-disabled-opacity: 0.5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-buy-tickets:hover,
.btn-buy-tickets:focus,
.btn-buy-tickets:active {
    text-decoration: none;
}

/* Favorite Button Styling */
.btn-favorite {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-favorite-active {
    background-color: var(--logo-orange);
    color: white;
    border: 2px solid var(--logo-orange);
    transition: all 0.3s ease;
}

.btn-favorite-active:hover {
    background-color: white;
    color: var(--logo-orange);
    border-color: var(--logo-orange);
}

.btn-favorite.loading,
.btn-favorite-active.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Improved button styling */
.btn-cta {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    border-radius: 25px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45,90,61,0.25);
    transition: all 0.2s ease;
}

.btn-cta:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,90,61,0.3);
}

.btn-cta .me-2 {
    margin-right: 0.5rem !important;
}

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

/* =================================================================
   TARGETED DARK MODE PREVENTION FOR DASHBOARD
   ================================================================= */

/* CSS CONTAINMENT - FORCE LIGHT MODE GLOBALLY */
html {
    color-scheme: light !important;
}

/* REMOVED: Dark mode override now handled by light-foundation.css */

/* SCOPED TEXT COLOR OVERRIDE - DASHBOARD ONLY */
.dashboard-content h1, .dashboard-content h2, .dashboard-content h3, 
.dashboard-content h4, .dashboard-content h5, .dashboard-content h6,
.dashboard-content p, .dashboard-content span, .dashboard-content div,
.dashboard-content li, .dashboard-content td, .dashboard-content th {
    color: #2d5a3d !important;
}

/* SCOPED TEXT CONSISTENCY - DASHBOARD ONLY */

/* DASHBOARD-SCOPED TEXT UTILITIES */
.dashboard-content .text-dark, .dashboard-content .text-body, .dashboard-content .text-reset {
    color: #2d5a3d !important;
}

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



/* =================================================================
   DASHBOARD-SPECIFIC STYLING (SCOPED APPROACH)
   ================================================================= */

/* Dashboard Content Cards - Scoped Styling */
.dashboard-content .stat-card,
.dashboard-content .favorite-zoo-card,
.dashboard-content .recommendation-card,
.dashboard-content .event-card,
.dashboard-content .news-card {
    background-color: white !important;
    color: #2d5a3d !important;
    border-color: #dee2e6 !important;
}

/* Dashboard Cards - Preserve Bootstrap Button Functionality */
.dashboard-content .card,
.dashboard-content .card-header,
.dashboard-content .card-body,
.dashboard-content .card-footer,
.dashboard-content .card-title,
.dashboard-content .card-text {
    background-color: white !important;
    color: #2d5a3d !important;
}

/* REMOVED: Dashboard dark mode prevention now handled by light-foundation.css */

/* =================================================================
   TARGETED FORM CONTROLS (DASHBOARD SCOPED)
   ================================================================= */

/* Dashboard Form Elements Only */
.dashboard-content input,
.dashboard-content textarea,
.dashboard-content select,
.dashboard-content .form-control,
.dashboard-content .form-select,
.dashboard-content .form-check-input {
    background-color: white !important;
    color: #2d5a3d !important;
    border-color: #dee2e6 !important;
}

/* Dashboard Form Labels */
.dashboard-content .form-label,
.dashboard-content .form-text,
.dashboard-content .form-check-label,
.dashboard-content label {
    color: #2d5a3d !important;
}

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

/* DASHBOARD-SCOPED CARD TEXT ELEMENTS */
.dashboard-content .card h1, .dashboard-content .card h2, .dashboard-content .card h3, 
.dashboard-content .card h4, .dashboard-content .card h5, .dashboard-content .card h6 {
    color: #2d5a3d !important;
}

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

/* DASHBOARD-SCOPED NAVIGATION */
.dashboard-content .nav-link, .dashboard-content .navbar-nav .nav-link {
    color: #2d5a3d !important;
}

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

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

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

/* DASHBOARD-SCOPED LIST ELEMENTS */
.dashboard-content ul, .dashboard-content ol, .dashboard-content li {
    color: #2d5a3d !important;
}

/* DASHBOARD-SCOPED PARAGRAPHS AND TEXT */
.dashboard-content p, .dashboard-content span, .dashboard-content div {
    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 */
/* DASHBOARD-SCOPED LINKS */
.dashboard-content a:not(.btn) {
    color: var(--primary-color) !important;
}

.dashboard-content a:not(.btn):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 ONLY FOR MAIN CONTENT */
.hero-section .hero-content, .hero-section .hero-content *, .hero-section .hero-content h1, .hero-section .hero-content h2, .hero-section .hero-content p, .hero-section .hero-content .lead, .hero-section .hero-content .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;
}

/* DASHBOARD-SPECIFIC BUTTON FIXES ONLY */
.dashboard-content .btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background: transparent !important;
}

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

.dashboard-content .btn-outline-light {
    color: white !important;
    border-color: white !important;
    background: transparent !important;
}

.dashboard-content .btn-outline-light:hover {
    color: var(--primary-color) !important;
    background: white !important;
    border-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);
}

/* Admin CMS Form Styling - REMOVED DARK THEME RULES 
 * All .admin-cms-form styling now handled by admin-overrides.css for consistent light theme
 */

/* Admin CMS Preview Panel - REMOVED DARK THEME RULES 
 * All .admin-cms-form preview styling now handled by admin-overrides.css for consistent light theme
 */

/* 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;
}

/* 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);
    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 rotation - apply only to homepage hero, not animal cards */
.hero-section .hero-image {
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

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

/* Fix slanted animal thumbnails - permanent level state - UPDATED SELECTORS */
.species-detail .animal-card {
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.species-detail .animal-card img,
.species-detail .animal-card .img-fluid,
.species-detail .img-fluid.rounded {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    transform: none !important;
    rotate: 0deg !important;
    transition: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
}

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

.floating-card {
    background: rgba(255, 255, 255, 0.95);
    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;
}

.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 {
    background-color: white !important;
    color: var(--primary-color) !important;
    border-color: white !important;
}

.zoo-card:not(.featured-zoo) .btn:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: white !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: 60px;
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: top;
}

/* Navbar default state - solid white */
.navbar.navbar-light.sticky-top {
    background-color: #fff !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    min-height: auto !important;
    transition: all 0.3s ease !important;
}

.navbar.navbar-light {
    background-color: #fff !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
}

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

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

/* Solid white background on scroll - consistent with default state */
.navbar.scrolled {
    background-color: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

/* Ensure white background on all states */
.navbar.sticky-top {
    background-color: #fff !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
}

/* Remove any default sticky behavior backgrounds - except navbar */
.sticky-top:not(.navbar) {
    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;
        padding: 12px 0 !important;
    }
    
    .navbar > .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        background-color: #fff !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .navbar-brand {
        margin: 0 !important;
        padding: 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% - 60px) !important;
        height: 60px !important;
        max-height: 60px !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;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-top: 80px;
        padding-bottom: 60px;
        visibility: hidden;
        opacity: 0;
        overscroll-behavior: contain;
    }
    
    .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: 16px 0 40px 0;
        margin-top: 16px;
        margin-bottom: 40px;
    }
    
    .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;
}

/* Zoo card Bootstrap-compliant styling */
.zoo-card.card {
    --bs-card-border-radius: 12px;
    --bs-card-inner-border-radius: calc(var(--bs-card-border-radius) - var(--bs-card-border-width));
    border-radius: var(--bs-card-border-radius);
}

.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-top-left-radius: var(--bs-card-inner-border-radius);
    border-top-right-radius: var(--bs-card-inner-border-radius);
    display: block;
    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);
}

/* Featured zoo card buttons - yellow background with green text */
.featured-zoo-card .btn-primary,
.featured-zoo .btn-primary {
    background-color: var(--logo-orange) !important;
    border-color: var(--logo-orange) !important;
    color: var(--primary-color) !important;
}

/* Basic zoo cards - smaller and minimal */
.zoo-card:not(.featured-zoo) {
    max-height: 280px;
    border: 1px solid #e5e5e5;
    background-color: #f8f9fa;
}

/* Mobile responsive improvements for zoo cards */
@media (max-width: 768px) {
    .zoo-card:not(.featured-zoo) {
        max-height: none;
    }
    
    .zoo-card:not(.featured-zoo) .card-img-top {
        height: 180px !important;
    }
    
    .zoo-card .card-img-top {
        height: 200px !important;
    }
    
    .zoo-card .card-body {
        padding: 1rem;
    }
    
    .zoo-card .card-title {
        font-size: 1.1rem;
    }
}

.zoo-card:not(.featured-zoo) .card-img-top {
    height: 120px !important;
    object-fit: cover;
}

.zoo-card:not(.featured-zoo) .card-body {
    padding: 0.75rem;
    background-color: #f8f9fa;
}

.zoo-card:not(.featured-zoo) .card-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #666;
}

.zoo-card:not(.featured-zoo) .card-text {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #888;
}

.zoo-card:not(.featured-zoo) .card-footer {
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
}

.zoo-card:not(.featured-zoo) .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.zoo-card:not(.featured-zoo) .btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
}


.featured-zoo-card .btn-primary:hover,
.featured-zoo .btn-primary:hover {
    background-color: var(--logo-orange) !important;
    border-color: var(--logo-orange) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 148, 26, 0.3);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background-color: #fff !important;
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.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: box-shadow 0.2s ease;
}

.animal-card .card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 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);
}

.step-number span {
    color: white !important;
}

.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;
    }
}

/* Ensure white text in green call-to-action section */
.bg-success.text-white h2,
.bg-success.text-white p,
.bg-success.text-white .lead,
.bg-success.text-white .display-5 {
    color: white !important;
}

/* Button styling in green call-to-action section */
.bg-success .btn-light {
    color: var(--primary-color) !important;
    background-color: white !important;
    border-color: white !important;
}

.bg-success .btn-light:hover {
    color: white !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* ULTIMATE FIX - Remove ALL transforms from ALL levels of animal cards - v20250913-FINAL */
.species-detail .animal-card,
.species-detail .animal-card *,
.species-detail .animal-card .card,
.species-detail .animal-card .card *,
.species-detail .animal-card .img-wrapper,
.species-detail .animal-card .img-wrapper *,
.species-detail .animal-card .card-img,
.species-detail .animal-card .card-img-top,
.species-detail .animal-card img,
.species-detail .animal-card .img-fluid,
.species-detail .img-fluid.rounded,
.species-detail .col-md-6 .animal-card,
.species-detail .col-lg-4 .animal-card,
.species-detail .col-md-6 .animal-card *,
.species-detail .col-lg-4 .animal-card * {
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
    rotate: 0deg !important;
    skew: 0deg !important;
    animation: none !important;
    perspective: none !important;
    transform-style: flat !important;
    backface-visibility: visible !important;
}

/* Ensure images display properly */
.species-detail .animal-card img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Card styling without transforms */
.species-detail .animal-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
}

/* Accessible subtle claim widget */
.card.claim-widget { 
    background-color: #1f2326; 
    color: #e9eef3; 
    border: 1px solid rgba(255,255,255,0.06); 
    border-radius: .5rem; 
}

.card.claim-widget .card-body { 
    padding: .75rem .75rem; 
}

.card.claim-widget .heading { 
    font-size: .95rem; 
    font-weight: 600; 
    color: #70C970; 
    margin-bottom: .25rem; 
}

.card.claim-widget .subtext, 
.card.claim-widget .text-muted { 
    color: #c9d1d9 !important; 
}

.card.claim-widget .icon { 
    color: #b6c2cf; 
    font-size: .95rem; 
}

.card.claim-widget .status-success { 
    color: #7ee787; 
}

.card.claim-widget .status-pending { 
    color: #f2cc60; 
}

.card.claim-widget .status-error { 
    color: #ffa198; 
}

/* Buttons tuned for dark bg */
.card.claim-widget .btn-outline-warning { 
    color: #e6941a !important; 
    border-color: #e6941a !important; 
}

.card.claim-widget .btn-outline-warning:hover, 
.card.claim-widget .btn-outline-warning:focus { 
    background-color: #e6941a !important; 
    color: #121417 !important; 
    border-color: #e6941a !important; 
}

.card.claim-widget .btn-sm { 
    font-size: .9rem; 
}

/* Links */
.card.claim-widget a { 
    color: #9dd1ff; 
    text-decoration: none; 
}

.card.claim-widget a:hover { 
    color: #c3e4ff; 
    text-decoration: underline; 
}

/* Claim widget heading green, override all */
.zoo-detail .claim-widget .card-title,
.zoo-detail .claim-widget .claim-title,
.claim-widget .card-title,
.claim-widget .claim-title,
.claim-widget .heading {
  color: #70C970 !important;
  opacity: 1 !important; /* neutralize muted/opacity */
}

/* Membership section styling */
.membership-tier {
    position: relative;
    padding: 0.75rem 0;
}

.membership-tier:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin: -0.5rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.membership-tier .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    min-width: 80px;
    text-align: center;
}

.membership-tier h6 {
    font-weight: 600;
    font-size: 1rem;
    color: #e9eef3 !important;
}

.membership-tier .list-unstyled li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.membership-tier .list-unstyled .fas.fa-check {
    color: #7ee787 !important;
    width: 12px;
    text-align: center;
}

.membership-tier .list-unstyled .fas.fa-plus {
    color: #f2cc60 !important;
    width: 12px;
    text-align: center;
}

/* Price display styling */
.membership-tier .badge.bg-warning {
    background-color: var(--logo-orange) !important;
    color: #000 !important;
    font-weight: 700;
}

/* Membership section button styling */
.card:has(.membership-tier) .btn-outline-warning {
    border-color: var(--logo-orange);
    color: var(--logo-orange);
    font-size: 0.875rem;
    font-weight: 500;
}

.card:has(.membership-tier) .btn-outline-warning:hover,
.card:has(.membership-tier) .btn-outline-warning:focus {
    background-color: var(--logo-orange);
    border-color: var(--logo-orange);
    color: #000;
}

/* Species Name Styling - Zoo Detail Page */
/* This rule must be at the end to override all Bootstrap and other CSS */
.zoo-detail .species-name,
.zoo-detail a .species-name {
    color: #cc7a0f !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
}
