/* Global Styles */
html {
    scroll-behavior: smooth;
}

/*
  Custom DaisyUI Theme Override
*/
html[data-theme="light"] {
    --p: 358 92% 60%;  /* Primary color: #F87171 */
    --pf: 358 92% 55%; /* Primary-focus color: #F76161 */
    --pc: 255 255 255; /* Primary-content: white */
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-scale-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale-premium:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom Scrollbar for Branch List */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-sticky-bar.visible {
    transform: translateY(0);
}

/* Typography Enhancements */
.text-balance {
    text-wrap: balance;
}

.tracking-tight-premium {
    letter-spacing: -0.03em;
}

/* Leaflet Map Customization */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.leaflet-popup-content {
    font-family: 'Inter', sans-serif;
}

/* Announcement Bar Animation */
.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Infinite Logo Scroll Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); } /* Adjust based on item width * count */
}

.logo-slider {
    display: flex;
    width: calc(250px * 14); /* Width of all items (original + duplicate) */
    animation: scroll 40s linear infinite;
}

.logo-slider:hover {
    animation-play-state: paused;
}

/* Utility */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Premium Minimalist Enhancements */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Refined Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

/* Smooth Gradient Text */
.text-gradient-premium {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #ef4444, #f59e0b);
}
/* Vehicle css */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 2rem)); } /* Adjust for gap */
}

.animate-infinite-scroll {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

/* Pause the slider when the user hovers over the container */
.logo-slider-container:hover .animate-infinite-scroll {
    animation-play-state: paused;
}