/* ============================================
   CUSTOM STYLES - MOBILE FIRST RESPONSIVE
   ============================================ */

/* Safe horizontal scroll prevent */
html, body { overflow-x: hidden; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Line clamp utility */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Mobile touch friendly dropdowns */
#heroCityDropdown div, #cityDropdown div, #areaDropdown div {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
    border-bottom: 1px solid #f3f4f6;
}
#heroCityDropdown div:last-child, #cityDropdown div:last-child, #areaDropdown div:last-child { border-bottom: none; }
#heroCityDropdown div:hover, #cityDropdown div:hover, #areaDropdown div:hover { background: #eff6ff; color: #2563eb; }

/* Range slider styling */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; background: #e2e8f0; border-radius: 3px; outline: none; width: 100%; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #2563eb; cursor: pointer; border: 3px solid white; box-shadow: 0 2px 6px rgba(37,99,235,0.3); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #2563eb; cursor: pointer; border: 3px solid white; box-shadow: 0 2px 6px rgba(37,99,235,0.3); }

input[type="file"]::file-selector-button { border: none; cursor: pointer; }

/* Animations */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
#flash-msg { animation: slideInRight 0.3s ease-out; }

/* Admin sidebar active */
.admin-nav-link.active { background: #eff6ff; color: #2563eb; border-right: 3px solid #2563eb; }

/* Responsive fixes for Tables (Admin) */
@media (max-width: 768px) {
    /* Force tables to not break layout */
    .overflow-x-auto { -webkit-overflow-scrolling: touch; }
    
    /* Adjust modal width */
    .max-w-lg { width: 95%; margin: auto; }
}

/* Print styles */
@media print {
    nav, footer, .no-print { display: none !important; }
    .print-only { display: block !important; }
}