/* ============================================================
   Brit Hall Finder — Custom CSS
   ============================================================ */

/* ── Typography ── */
html, body {
  font-family: 'Heebo', sans-serif;
  direction: rtl;
}

/* ── Smooth scrollbar (webkit) ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

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

/* ── Animated checkmark (submitted.php) ── */
@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.animate-pop-in {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Slow spin (submitted.php hourglass) ── */
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spinSlow 2s linear infinite;
}

/* ── Toast bounce ── */
@keyframes bounceOnce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  30%       { transform: translateX(-50%) translateY(-8px); }
}
.animate-bounce-once {
  animation: bounceOnce 0.4s ease-out;
}

/* ── Accent star color ── */
.text-accent-400 { color: #fbbf24; }
.text-accent-500 { color: #f59e0b; }
/* Legacy gold aliases */
.text-gold-400 { color: #fbbf24; }
.text-gold-500 { color: #f59e0b; }

/* ── Map container ── */
#map {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* ── Google Maps InfoWindow RTL fix ── */
.gm-style .gm-style-iw-c {
  direction: rtl;
  text-align: right;
}
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}

/* ── Radio time selector ── */
input[type="radio"].peer:checked + div {
  border-color: #0d9478;
  background-color: #0d9478;
  color: #fff;
}

/* ── Form inputs RTL ── */
input[type="date"],
input[type="tel"] {
  direction: ltr;
  text-align: right;
}

/* ── Sticky cards panel on search page ── */
#cards-panel {
  scroll-behavior: smooth;
}

/* ── Featured hall image zoom on hover ── */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ── Responsive: hide sidebar on small screens ── */
@media (max-width: 1024px) {
  aside.hidden.lg\:block {
    display: none;
  }
}

/* ── Selection counter animation ── */
[data-selection-count] {
  transition: transform 0.2s;
}
[data-selection-count]:not(:empty) {
  transform: scale(1);
}

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

/* ── Custom scrollbars & Range slider for Search UI ── */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 2px solid #0d9478; /* primary-600 */
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  margin-top: -6px;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #e2e8f0;
  border-radius: 2px;
}

/* ============================================================
   BUTTON TAXONOMY
   ============================================================ */

/* Primary — filled accent gold, pill shape */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background-color: #f59e0b;
  color: #1c1917;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}
.btn-primary:active {
  transform: scale(0.97);
}

/* Secondary — outlined teal */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background-color: transparent;
  color: #0d9478;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid #0d9478;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  background-color: #f0fdf9;
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: scale(0.97);
}

/* Tertiary — text only with underline on hover */
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: none;
  color: #0d9478;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  transition: color 0.2s, text-decoration 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.btn-tertiary:hover {
  color: #0a7562;
  text-decoration: underline;
}

/* ============================================================
   CARD SYSTEM
   ============================================================ */

/* Hall card — used in search/city/index */
.card-hall {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hall:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

/* City card — flat, border-color change on hover */
.card-city {
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.card-city:hover {
  border-color: #5ceaca;
  background-color: #f0fdf9;
  transform: translateY(-2px);
}

/* Testimonial card — no border, shadow only */
.card-testimonial {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

/* Info card — thin border, no hover */
.card-info {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ============================================================
   DOT GRID PATTERN
   ============================================================ */
.section-pattern {
  position: relative;
}
.section-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(13,148,120,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}
.section-pattern > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   MOBILE HERO IMPROVEMENTS
   ============================================================ */

/* Input labels uppercase style */
.hero-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* Smooth scale on city circles */
.card-city:hover .city-circle {
  transform: scale(1.1);
}

/* Hall card link — full clickable area on title */
.card-hall a {
  text-decoration: none;
}

/* Form input focus glow */
.hero-input:focus {
  box-shadow: 0 0 0 3px rgba(13,148,120,0.15);
}

/* Mobile nav drawer: ensure search CTA is always visible at bottom */
@media (max-width: 767px) {
  /* Make the hero section text slightly smaller on very small screens */
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 3rem);
  }

  /* Stats bar: 2 cols on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* FAQ accordion on mobile */
  details summary {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* ============================================================
   FEATURED HALL CARDS — "הוסיפו לרשימה" button touch area
   ============================================================ */
.card-hall form button {
  min-height: 36px;
  min-width: 44px; /* WCAG touch target */
}

/* ============================================================
   ACCENT BG CLASSES (Tailwind CDN sometimes misses these)
   ============================================================ */
.bg-accent-50  { background-color: #fffbeb; }
.bg-accent-100 { background-color: #fef3c7; }
.bg-accent-500 { background-color: #f59e0b; }
.bg-accent-600 { background-color: #d97706; }
.border-accent-200 { border-color: #fde68a; }
.text-accent-600 { color: #d97706; }
.text-accent-700 { color: #b45309; }
