/* AgeBound Trip Links Bar */

.ab-trip-bar {
  margin: 1.5rem 0 2rem;
  padding: 1.3rem 1.5rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Desktop: align form with the top of the text block */
.ab-trip-bar-main {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.ab-trip-bar-text {
  flex: 1 1 220px;
  min-width: 0;
}

.ab-trip-bar-title {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.ab-trip-bar-city {
  white-space: nowrap;
}

.ab-trip-bar-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Form */
.ab-trip-bar-form {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ab-trip-bar-input {
  min-width: 210px;
  height: 42px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  background-color: #ffffff;
  color: #111827;          /* darker field text */
  font-weight: 500;
}

.ab-trip-bar-input::placeholder {
  color: #6b7280;          /* darker placeholder */
}

.ab-trip-bar-input:focus {
  border-color: #22c55e;
  outline: none;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

.ab-trip-bar-submit {
  height: 42px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.4);
}

.ab-trip-bar-form.ab-trip-loading .ab-trip-bar-submit,
.ab-trip-bar-submit:disabled {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
}

/* Buttons row */
.ab-trip-bar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.ab-trip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  text-align: center;      /* better multi-line centering */
  line-height: 1.25;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.ab-trip-btn:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.ab-trip-link-hotels {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.ab-trip-link-hotels:hover {
  background: #020617;
}

.ab-trip-bar-footer {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
}

.ab-trip-powered {
  opacity: 0.85;
}

/* Local SR-only helper in case theme doesn't define it */
.ab-trip-bar .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================== Responsive tweaks ================== */

@media (max-width: 768px) {
  .ab-trip-bar {
    padding: 1.05rem 1rem 0.9rem;
  }

  .ab-trip-bar-main {
    align-items: flex-start;
  }

  .ab-trip-bar-title {
    font-size: 1.0rem;
  }

  /* Hide subtitle on mobile */
  .ab-trip-bar-subtitle {
    display: none;
  }

  .ab-trip-bar-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .ab-trip-bar-input {
    min-width: 0;
    width: 100%;
  }

  .ab-trip-bar-submit {
    width: 100%;
    margin-top: 0.3rem;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .ab-trip-bar-buttons {
    margin-top: 0.85rem;
    justify-content: space-between;
  }

  /* 2x2 buttons, slightly smaller text for nicer wrapping */
  .ab-trip-btn {
    flex: 1 1 calc(50% - 0.4rem);
    font-size: 0.85rem;
  }
}
