/* Override lexxy-content heading sizes to be smaller and match place title color */

.lexxy-content h1 {
  font-size: 1.3rem;  /* 24px - reduced from default */
  line-height: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.7rem;
  color: #111827; /* gray-900 */
}

.lexxy-content h2 {
  font-size: 1.25rem; /* 20px - reduced from default */
  line-height: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #111827; /* gray-900 */
}

.lexxy-content h3 {
  font-size: 1.125rem; /* 18px - reduced from default */
  line-height: 1.2rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  color: #111827; /* gray-900 */
}

.lexxy-content h4 {
  font-size: 1rem;     /* 16px - reduced from default */
  line-height: 1.2rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  color: #111827; /* gray-900 */
}

.lexxy-content h5 {
  font-size: 0.875rem; /* 14px - reduced from default */
  line-height: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: #111827; /* gray-900 */
}

.lexxy-content h6 {
  font-size: 0.75rem;  /* 12px - reduced from default */
  line-height: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: #111827; /* gray-900 */
}

/* ── Geocoder width ───────────────────────────────────────────────────────────
   Vendor defaults: input = 246px, alternatives list = 272px.
   Adjust these two values together to resize the whole search widget.        */
.leaflet-control-geocoder-form input {
  width: 300px;
}

/* Tighten left padding on geocoder result items now that each name is
   prefixed with an emoji — the default 8px feels too wide with the icon. */
.leaflet-control-geocoder-alternatives li {
  padding-left: 4px;
}

/* Make the results list scrollable when there are too many items to fit.
   Width matches icon (26px) + input width (280px) = 306px.
   The max-height is overridden by JS via visualViewport when the iOS keyboard
   is open; 210px is the desktop / fallback value. */
.leaflet-control-geocoder-alternatives {
  width: 326px;
  max-height: 210px;
  overflow-y: auto;
  touch-action: pan-y;        /* lets iOS treat vertical swipes as scroll, not tap */
  overscroll-behavior: contain; /* prevents scroll chaining to the map */
}
