/* Custom Styles & Utilities for Turplan */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar for side panel */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5); /* gray-400 with opacity */
    border-radius: 20px;
}

/* Hide scrollbar for horizontal sections (mobile cards) */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Hover effect on cards */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
}

/* Safe area for mobile bottom nav (PWA style) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .pb-safe {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

/* Glass panel effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Map Handle interaction */
#map-container {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-minimized {
    height: 120px !important; /* Minimized height on mobile */
}
.map-maximized {
    height: calc(100vh - 4rem - 60px) !important; /* Max height taking up screen minus header/nav */
}
