/* ============================================================
   MLW UX FIXES — Feb 2026
   Fix #1: Form validation + date row animation
   Fix #4: City not found link
   ============================================================ */

/* --- Inline error message --- */
.mlw-form-error {
  margin: 6px 0 2px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  animation: mlw-shake 0.3s ease;
}

@keyframes mlw-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* --- Input error highlight --- */
body.home #layover-form .mlw-input-error,
body.front-page #layover-form .mlw-input-error,
body.page-template-front-page #layover-form .mlw-input-error,
body.page-template-front-page-php #layover-form .mlw-input-error {
  border-color: rgba(239, 68, 68, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3) !important;
}

/* --- Date row animation on checkbox toggle --- */
.mlw-date-row {
  transition: opacity 0.25s ease, max-height 0.3s ease, margin 0.25s ease;
  max-height: 200px;
  opacity: 1;
  overflow: hidden;
}

.mlw-date-row.is-hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none;
}

/* --- Date field labels --- */
body.home #layover-form .mlw-date-row .field,
body.front-page #layover-form .mlw-date-row .field,
body.page-template-front-page #layover-form .mlw-date-row .field,
body.page-template-front-page-php #layover-form .mlw-date-row .field {
  margin-bottom: 0;
}

/* --- City not found link --- */
.mlw-city-not-found {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.85);
}

.mlw-city-not-found a {
  color: rgba(125, 211, 252, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.mlw-city-not-found a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================
   Fix #3: Quick-services pill row (layovers page)
   ============================================================ */

.mlw-quick-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.mlw-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.mlw-quick-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(148, 163, 184, 0.4);
  color: #fff;
  text-decoration: none;
}

.mlw-quick-pill__icon {
  font-size: 1.1rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2em;
  height: 1.2em;
}

/* Responsive: scroll on narrow screens */
@media (max-width: 560px) {
  .mlw-quick-services {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
}
