/* DevFinder — custom styles */

/* Smooth flash message auto-dismiss */
.flash-msg {
  animation: slideIn 0.25s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* View toggle button active state */
.view-btn.active,
.view-btn.bg-white {
  background: white;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mapbox popup override */
.mapboxgl-popup-content {
  border-radius: 12px !important;
  padding: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.15) !important;
  border: 1px solid #e2e8f0 !important;
  min-width: 220px;
}
.mapboxgl-popup-close-button {
  font-size: 18px;
  padding: 4px 8px;
  color: #64748b;
}

/* Gallery image transition */
.gallery-slide {
  transition: opacity 0.4s ease-in-out;
}

/* Autocomplete dropdown */
#hero-autocomplete > div:first-child { border-top: none; }
#hero-autocomplete > div { border-top: 1px solid #f1f5f9; }
#hero-autocomplete > div:first-child { border-top: none; }

/* Sticky nav scrolled shadow */
nav {
  transition: box-shadow 0.2s;
}

/* Custom scrollbar for sidebar */
.overflow-y-auto::-webkit-scrollbar { width: 4px; }
.overflow-y-auto::-webkit-scrollbar-track { background: transparent; }
.overflow-y-auto::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
.overflow-y-auto::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* Availability matrix row hover */
tbody tr { transition: background-color 0.1s; }

/* Tab transition */
.tab-content { animation: fadeIn 0.15s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Print styles */
@media print {
  nav, footer, .enquiry-sidebar, button { display: none !important; }
  body { background: white; }
}
