/* Custom Tascapades Tours Styles */

:root {
    --primary-color: #4a90e2;          /* Lighter, more professional blue */
    --primary-light: #6ba3e8;         /* Even lighter variant */
    --primary-dark: #357abd;           /* Darker variant for hover states */
    --primary-subtle: #e8f2ff;        /* Very light blue for backgrounds */
    --secondary-color: #6c757d;
    --accent-color: #34d399;           /* Fresh teal accent */
    --success-color: #10b981;
    --info-color: #38bdf8;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --text-muted: #64748b;
    --border-subtle: #e2e8f0;
    
    /* New gradient variables */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--primary-subtle) 0%, #ffffff 100%);
    
    /* Hero background image variables */
    --hero-bg-image: none;
    --hero-overlay-opacity: 0.7;
    --hero-overlay-color: rgba(30, 41, 59, var(--hero-overlay-opacity));
    
    /* Responsive background size variables */
    --hero-bg-size-mobile: 80%;
    --hero-bg-size-tablet: 90%;
    --hero-bg-size-desktop: cover;
    --hero-bg-size-large: 110%;
    --hero-bg-size-ultrawide: 120%;
    
    /* Shadow variables for consistency */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Section - Enhanced with fade-in and fade-out animation support */
.hero-section {
    background: var(--hero-bg-image), var(--gradient-primary);
    background-size: var(--hero-bg-size-desktop);
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Animated hero section - covers entire viewport with WHITE background and starts hidden for fade-in */
.hero-section.hero-animated {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; /* WHITE background instead of blue */
    color: white; /* Keep text white for better readability */
    opacity: 0; /* Start hidden for fade-in effect */
    transform: translateY(30px); /* Start slightly below for smooth entrance */
}

.hero-section.hero-animated .container {
    padding: 0 15px;
    z-index: 10000;
    position: relative;
}

/* White text with shadow for hero title on white background */
.hero-section.hero-animated .hero-title {
    color: white; /* White text instead of dark */
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8); /* Strong shadow for visibility on white background */
}

/* Hide navbar and footer when hero is active */
body:has(.hero-section.hero-animated) .navbar {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out, transform 0.5s ease-out;
}

body:has(.hero-section.hero-animated) footer {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out, transform 0.5s ease-out;
}

/* Initially hide main content when hero is active */
body:has(.hero-section.hero-animated) #main-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Alternative approach for browsers that don't support :has() - show navbar and footer by default */
.navbar {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out, transform 0.5s ease-out;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

footer {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out, transform 0.5s ease-out;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Alternative approach for browsers that don't support :has() */
#main-content {
    margin-top: 0;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out, transform 0.5s ease-out, margin-top 0.5s ease-out;
    /* Remove global hiding - let JavaScript handle this per page */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Class to show main content after hero animation */
#main-content.hero-complete {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Only hide main content when hero section is present */
body:has(.hero-section.hero-animated) #main-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Hero section with background image support */
.hero-section.hero-with-image {
    background-image: var(--hero-bg-image);
    background-size: var(--hero-bg-size-desktop);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Background overlay for better text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: var(--hero-overlay-color);*/
    opacity: 0.5;
    z-index: 1;
}

/* When no background image is set, use subtle texture */
.hero-section:not(.hero-with-image)::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    /*opacity: 0.5;*/
}

/* Enhanced overlay for background images */
.hero-section.hero-with-image::before {
    /*background: var(--hero-overlay-color);*/
    /*opacity: 1;*/
}

/* Content container positioning */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,1);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,1);
}

/* Enhanced text shadows for image backgrounds */
.hero-section.hero-with-image .hero-title {
    text-shadow: 3px 3px 6px rgba(0,0,0,1);
}

.hero-section.hero-with-image .hero-subtitle {
    text-shadow: 2px 2px 4px rgba(0,0,0,1);
}

/* Button styling improvements for image backgrounds */
.hero-section.hero-with-image .btn {
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-section.hero-with-image .btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
}

.hero-section.hero-with-image .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-section.hero-with-image .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Enhanced Card Styles */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

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

/* Tour Card Specific */
.tour-card .card-img-top {
    height: 200px;
}

.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

/* Section Spacing */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1.5rem auto 0;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

/* Show the decorative line after content is fully loaded */
.section-title.loaded::after,
#main-content.hero-complete .section-title::after,
body:not(:has(.hero-section.hero-animated)) .section-title::after {
    opacity: 1;
    transform: scaleX(1);
}

/* For pages without hero animation, show immediately after a brief delay */
.section-title {
    animation: titleLoadDelay 0.1s ease-out forwards;
}

@keyframes titleLoadDelay {
    0% {
        --title-decoration-opacity: 0;
    }
    100% {
        --title-decoration-opacity: 1;
    }
}

/* Alternative approach for browsers that don't support CSS has() */
.section-title::after {
    animation: decorationFadeIn 0.6s ease-out 1s forwards;
}

@keyframes decorationFadeIn {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Ensure decoration is hidden initially during hero animation */
.hero-section.hero-animated ~ main .section-title::after {
    opacity: 0;
    transform: scaleX(0);
    animation: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Show decoration when hero animation completes */
#main-content.hero-complete .section-title::after {
    opacity: 1;
    transform: scaleX(1);
    animation: none;
    transition: opacity 0.6s ease-out 0.5s, transform 0.6s ease-out 0.5s;
}

/* Prevent flash during initial load */
.section-title::after {
    will-change: opacity, transform;
}

/* For reduced motion users, show immediately without animation */
@media (prefers-reduced-motion: reduce) {
    .section-title::after {
        opacity: 1 !important;
        transform: scaleX(1) !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Enhanced Feature Icons */
.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--primary-subtle);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Carousel Customization - Fixed positioning for accessibility */
.carousel-item {
    height: 500px;
    position: relative;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

/* Base carousel caption positioning - defaults to bottom left */
.carousel-caption {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    bottom: 20px;
    left: 20px;
    right: auto;
    text-align: left;
    max-width: 300px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: absolute;
    z-index: 10;
}

/* Flexible carousel caption positioning classes */

/* Top left positioning modifier */
.carousel-caption.caption-top-left,
.carousel.caption-top-left .carousel-caption {
    top: 20px !important;
    bottom: auto !important;
    left: 20px;
    right: auto;
}

/* Bottom left positioning modifier (default behavior) */
.carousel-caption.caption-bottom-left,
.carousel.caption-bottom-left .carousel-caption {
    bottom: 20px !important;
    top: auto !important;
    left: 20px;
    right: auto;
}

/* About page carousel captions positioned at top left by default */
#aboutCarousel .carousel-caption {
    top: 20px;
    bottom: auto;
    left: 20px;
    right: auto;
}

/* Override for specific positioning on about carousel - higher specificity */
#aboutCarousel .carousel-caption.caption-bottom-left,
#aboutCarousel.caption-bottom-left .carousel-caption {
    bottom: 20px !important;
    top: auto !important;
}

/* Override for top positioning on about carousel - explicit override */
#aboutCarousel .carousel-caption.caption-top-left,
#aboutCarousel.caption-top-left .carousel-caption {
    top: 20px !important;
    bottom: auto !important;
}

#aboutCarousel .carousel-caption:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.carousel-caption:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.carousel-caption h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    position: relative;
    z-index: 11;
}

.carousel-caption p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    line-height: 1.4;
    position: relative;
    z-index: 11;
}

/* Enhanced button accessibility */
.carousel-caption .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
    z-index: 15;
    pointer-events: all;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Enhanced focus states for accessibility */
.carousel-caption .btn:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(74, 144, 226, 0.5);
    border-color: #fff;
    transform: scale(1.05);
}

.carousel-caption .btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(74, 144, 226, 0.5);
}

/* Ensure button is properly interactive */
.carousel-caption .btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.carousel-caption .btn:active {
    transform: translateY(0) scale(0.98);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .carousel-caption {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid #fff;
    }
    
    .carousel-caption .btn {
        border: 2px solid #fff;
        background: var(--primary-color);
    }
    
    .carousel-caption .btn:focus {
        outline: 4px solid #ffff00;
        background: #fff;
        color: #000;
    }
}

/* Ensure carousel controls don't interfere with caption buttons */
.carousel-control-prev,
.carousel-control-next {
    z-index: 5;
}

.carousel-indicators {
    z-index: 6;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .carousel-caption {
        transition: none;
    }
    
    .carousel-caption .btn {
        transition: none;
    }
    
    .carousel-caption:hover {
        transform: none;
    }
    
    .hero-section {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    .hero-section.hero-animated {
        transition: none !important;
        animation: none !important;
    }
    
    #main-content {
        transition: none !important;
    }
    
    .card,
    .btn,
    * {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* Dark mode and contrast support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f8fafc;
        --light-color: #1e293b;
        --text-muted: #94a3b8;
    }
}

@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-color);
    }
    
    .btn-primary {
        border: 2px solid var(--dark-color);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
        min-height: 50vh;
    }
    
    /* Mobile: Animated hero adjustments with WHITE background and fade-in support */
    .hero-section.hero-animated {
        min-height: 100vh;
        padding: 40px 0;
        background-color: #ffffff; /* WHITE background */
        color: white; /* Keep text white */
        opacity: 0; /* Start hidden for fade-in */
        transform: translateY(30px); /* Start below for smooth entrance */
    }
    
    .hero-section.hero-animated .hero-title {
        font-size: 1.75rem;
        padding: 0 20px;
        color: white; /* White text */
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8); /* Strong shadow for mobile */
    }
    
    /* Only hide navbar and footer on mobile when hero is present */
    body:has(.hero-section.hero-animated) .navbar {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
    }
    
    body:has(.hero-section.hero-animated) footer {
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
    }
    
    /* Only hide main content on mobile when hero is present */
    body:has(.hero-section.hero-animated) #main-content {
        opacity: 0;
        visibility: hidden;
    }
    
    /* Mobile: Smaller background size for better readability */
    .hero-section.hero-with-image {
        background-size: 80%;
        background-attachment: scroll;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .price-badge {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Mobile: Flexible carousel caption positioning */
    .carousel-caption {
        position: absolute;
        bottom: 10px;
        left: 10px;
        padding: 0.5rem 0.75rem;
        max-width: 200px;
        background: rgba(0, 0, 0, 0.4);
        z-index: 10;
    }
    
    /* Mobile: Top left positioning modifier */
    .carousel-caption.caption-top-left,
    .carousel.caption-top-left .carousel-caption {
        top: 10px !important;
        bottom: auto !important;
        left: 10px;
    }
    
    /* Mobile: Bottom left positioning modifier */
    .carousel-caption.caption-bottom-left,
    .carousel.caption-bottom-left .carousel-caption {
        bottom: 10px !important;
        top: auto !important;
        left: 10px;
    }
    
    /* About page carousel captions on mobile - positioned at top left by default */
    #aboutCarousel .carousel-caption {
        position: absolute;
        top: 10px;
        bottom: auto;
        left: 10px;
        padding: 0.5rem 0.75rem;
        max-width: 200px;
        background: rgba(0, 0, 0, 0.4);
        z-index: 10;
    }
    
    /* Override for bottom positioning on about carousel mobile - higher specificity */
    #aboutCarousel .carousel-caption.caption-bottom-left,
    #aboutCarousel.caption-bottom-left .carousel-caption {
        bottom: 10px !important;
        top: auto !important;
    }
    
    /* Override for top positioning on about carousel mobile - explicit override */
    #aboutCarousel .carousel-caption.caption-top-left,
    #aboutCarousel.caption-top-left .carousel-caption {
        top: 10px !important;
        bottom: auto !important;
    }
    
    .carousel-caption h5 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        z-index: 11;
    }
    
    .carousel-caption p {
        display: none; /* Hide description on mobile for minimal look */
    }
    
    .carousel-caption .btn {
        font-size: 0.75rem;
        padding: 4px 8px;
        z-index: 15;
        pointer-events: all;
        cursor: pointer;
        min-height: 32px; /* Ensure minimum touch target size */
        min-width: 44px;
    }
    
    /* Enhanced mobile focus states */
    .carousel-caption .btn:focus {
        outline: 2px solid #fff;
        outline-offset: 2px;
        box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.6);
        transform: scale(1.1);
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 80px 0;
        min-height: 60vh;
    }
    
    /* Tablet: Animated hero adjustments with WHITE background and fade-in support */
    .hero-section.hero-animated {
        min-height: 100vh;
        padding: 60px 0;
        background-color: #ffffff; /* WHITE background */
        color: white; /* Keep text white */
        opacity: 0; /* Start hidden for fade-in */
        transform: translateY(30px); /* Start below for smooth entrance */
    }
    
    .hero-section.hero-animated .hero-title {
        font-size: 2.25rem;
        color: white; /* White text */
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8); /* Strong shadow for tablet */
    }
    
    /* Only hide navbar and footer on tablet when hero is present */
    body:has(.hero-section.hero-animated) .navbar {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
    }
    
    body:has(.hero-section.hero-animated) footer {
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
    }
    
    /* Only hide main content on tablet when hero is present */
    body:has(.hero-section.hero-animated) #main-content {
        opacity: 0;
        visibility: hidden;
    }
    
    /* Tablet Portrait: Medium background size */
    .hero-section.hero-with-image {
        background-size: 90%;
        background-attachment: scroll;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    /* Tablet: Enhanced accessibility for captions with absolute positioning */
    .carousel-caption {
        position: absolute;
        bottom: 15px;
        left: 15px;
        padding: 0.75rem 1rem;
        max-width: 250px;
        z-index: 10;
    }
    
    /* Tablet: Top left positioning modifier */
    .carousel-caption.caption-top-left,
    .carousel.caption-top-left .carousel-caption {
        top: 15px;
        bottom: auto;
        left: 15px;
    }
    
    /* Tablet: Bottom left positioning modifier */
    .carousel-caption.caption-bottom-left,
    .carousel.caption-bottom-left .carousel-caption {
        bottom: 15px;
        top: auto;
        left: 15px;
    }
    
    /* About page carousel captions on tablet - positioned at top left */
    #aboutCarousel .carousel-caption {
        position: absolute;
        top: 15px;
        bottom: auto;
        left: 15px;
        padding: 0.75rem 1rem;
        max-width: 250px;
        z-index: 10;
    }
    
    .carousel-caption h5 {
        font-size: 1.1rem;
        z-index: 11;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
        z-index: 11;
    }
    
    .carousel-caption .btn {
        z-index: 15;
        pointer-events: all;
        cursor: pointer;
        min-height: 36px; /* Ensure adequate touch target */
    }
    
    .carousel-caption .btn:focus {
        outline: 3px solid #fff;
        outline-offset: 2px;
        box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.5);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        border-radius: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .hero-section {
        min-height: 70vh;
    }
    
    /* Tablet Landscape/Small Desktop: Standard cover size */
    .hero-section.hero-with-image {
        background-size: 90%;
        background-attachment: scroll;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-section {
        min-height: 80vh;
    }
    
    /* Large Desktop: Full cover with fixed attachment */
    .hero-section.hero-with-image {
        background-size: 90%;
        background-attachment: fixed;
    }
}

@media (min-width: 1400px) and (max-width: 1919px) {
    .hero-section {
        min-height: 85vh;
    }
    
    /* Extra Large Desktop: Slightly larger than cover */
    .hero-section.hero-with-image {
        background-size: 90%;
        background-attachment: fixed;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .hero-section {
        min-height: 90vh;
    }
    
    /* Ultra-wide: Larger background to fill wide screens */
    .hero-section.hero-with-image {
        background-size: 90%;
        background-attachment: fixed;
    }
}

/* Hero Background Image Utility Classes */

/* Example background image classes */
.hero-bg-tasmania {
    --hero-bg-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&h=1080&q=80');
}

.hero-bg-mountains {
    --hero-bg-image: url('https://images.unsplash.com/photo-1464822759844-d150baef493e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&h=1080&q=80');
}

.hero-bg-local {
    --hero-bg-image: url('/images/hero-background.jpg');
}

.hero-bg-logo-white {
    --hero-bg-image: url('/images/logo-white.png');
}

/* Overlay intensity variations */
.hero-overlay-light {
    --hero-overlay-opacity: 0.4;
}

.hero-overlay-medium {
    --hero-overlay-opacity: 0.6;
}

.hero-overlay-dark {
    --hero-overlay-opacity: 0.8;
}

.hero-overlay-none {
    --hero-overlay-opacity: 0;
}

/* Responsive Background Size Utility Classes */

/* Mobile-specific sizing */
.hero-bg-size-mobile-small {
    background-size: 60% !important;
}

.hero-bg-size-mobile-medium {
    background-size: 80% !important;
}

.hero-bg-size-mobile-large {
    background-size: 90% !important;
}

/* Tablet-specific sizing */
.hero-bg-size-tablet-small {
    background-size: 70% !important;
}

.hero-bg-size-tablet-medium {
    background-size: 80% !important;
}

.hero-bg-size-tablet-large {
    background-size: 90% !important;
}

/* Desktop-specific sizing */
.hero-bg-size-desktop-contain {
    background-size: 70% !important;
}

.hero-bg-size-desktop-cover {
    background-size: 80% !important;
}

.hero-bg-size-desktop-large {
    background-size: 90% !important;
}

/* Responsive background size classes that change based on screen size */
@media (max-width: 576px) {
    .hero-bg-responsive-small {
        background-size: 70% !important;
    }
    
    .hero-bg-responsive-medium {
        background-size: 80% !important;
    }
    
    .hero-bg-responsive-large {
        background-size: 90% !important;
    }
}

@media (min-width: 577px) and (max-width: 1199px) {
    .hero-bg-responsive-small {
        background-size: 70% !important;
    }
    
    .hero-bg-responsive-medium {
        background-size: 80% !important;
    }
    
    .hero-bg-responsive-large {
        background-size: 90% !important;
    }
}

@media (min-width: 1200px) {
    .hero-bg-responsive-small {
        background-size: 70% !important;
    }
    
    .hero-bg-responsive-medium {
        background-size: 80% !important;
    }
    
    .hero-bg-responsive-large {
        background-size: 90% !important;
    }
}

/* Animation for loading states */
@keyframes shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: shimmer 1.5s ease-in-out infinite;
}

/* Original Blazor Styles (updated colors) */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success-color);
}

.invalid {
    outline: 1px solid var(--danger-color);
}

.validation-message {
    color: var(--danger-color);
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fef3cd;
    bottom: 0;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 3px solid var(--warning-color);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI26LjUwNiA9NUwyNjQuNzE3IDUgMjY1LjgxMyA1MS40ODM3IDI2Ni42MDA2IDUyLjI2NTU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA6MjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzEuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA6NTUxLjQ4Mzc0NTQuMjM5NiA1MS4yNjU4MTI2NS4wMzM2IDEwLjI1NTctMjUuMjU4IDEwLjI1NTU2NDYuMjM3MyA1Mi4yNjU4MTMzMC4wMzM2IDEyLjM0NS00LjYwNTU0IDExLjUwMDA0OTUuMjM5NiA1My42MjA4IDEyLjM0NTMyOS40OTUgNTcuNjY5MzUgMjU5LjI3NDkuOTk5IDI0LjUwMDA0OTUuMjM5NiA3Mi4yODA3OS42MDYgMTguNTMzNiA3Mi4yODE0LjMwNC4wMjY5OSAzNTYuMDMzIDczLjA6MTUuMjA0OSAzNTcuNDI1IDcuNzY5MzUgMjE3LjI3NTUuMjM5NiA2Mi44NzU5MS42MDYgNjMuNzEyMS4zMzU3IDcyLjA3MzYgMTc3LjAxNjAuNjY2NiA1My42MjA4IDEyLjM0NTQgMTQuNjc4MyAxMi4zNDU1LjMwMzU3QzEyLjM0NTQ0MjAuNjInIC8+PC9nPjx0ZXh0IHg9IjUiIHk9IjQ5IiBjbGFzcz0ic3BhbGxlciIgZmlsbD0id2hpdGUiIGZvbnQtZmFtaWx5PSJBcmlhbCIgLz48L2c+PC9zdmc+)
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 8px;
    margin: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

code {
    color: var(--primary-dark);
    background: var(--primary-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.form-floating > .form-control-plaintext::placeholder, 
.form-floating > .form-control::placeholder {
    color: var(--text-muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, 
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Navigation Enhancement - Brighter nav-link colors */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem !important;
    margin: 0 0.25rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Active state styling for Blazor NavLink component */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link[aria-current="page"] {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Enhanced navbar brand styling */
.navbar-dark .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:focus {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Bootstrap Icons in nav-links with enhanced brightness */
.navbar-dark .navbar-nav .nav-link i {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover i,
.navbar-dark .navbar-nav .nav-link:focus i,
.navbar-dark .navbar-nav .nav-link.active i {
    opacity: 1;
}

/* Mobile navbar enhancements */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.85) !important;
        padding: 0.75rem 1rem !important;
        margin: 0.125rem 0;
        border-radius: 0.5rem;
    }
    
    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link:focus {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.08);
    }
    
    .navbar-dark .navbar-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.12);
        color: #ffffff !important;
        font-weight: 600;
    }
}

/* Navbar toggler enhanced brightness */
.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

.navbar-dark .navbar-toggler:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-dark .navbar-toggler-icon {
    filter: brightness(1.1);
}