/* Modern Locations Page Styles */

/* Hide scrollbars for horizontal scroll areas */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Safe area support for mobile devices */
.safe-area-inset-top {
    padding-top: env(safe-area-inset-top);
}

.pb-safe-area {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Focus states for search */
.group.focused .absolute.inset-0 {
    opacity: 1;
}

/* Line clamp utility for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Touch target improvements */
@media (max-width: 768px) {

    /* Ensure minimum 44px touch targets */
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improve text sizing on mobile */
    .text-lg {
        font-size: 1.25rem;
    }

    .text-sm {
        font-size: 0.95rem;
    }
}

/* Smooth transitions for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Custom animation for cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in-up {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Backdrop blur support check */
@supports (backdrop-filter: blur(12px)) {
    .backdrop-blur-xl {
        backdrop-filter: blur(12px);
    }

    .backdrop-blur-sm {
        backdrop-filter: blur(4px);
    }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .backdrop-blur-xl {
        background-color: rgba(255, 255, 255, 0.95);
    }

    .backdrop-blur-sm {
        background-color: rgba(255, 255, 255, 0.9);
    }
}

/* Screen reader only content */
.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;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-white\/90 {
        background-color: white;
    }

    .text-gray-600 {
        color: #000;
    }

    .border-gray-200 {
        border-color: #000;
    }
}

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

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}

/* Print styles */
@media print {

    .fixed,
    .sticky {
        position: static !important;
    }

    .shadow-lg,
    .shadow-xl {
        box-shadow: none !important;
    }

    .bg-gradient-to-br {
        background: white !important;
    }
}