/* ==========================================================================
   Onward — small additions on top of the generated onward.css
   (states the static mock-ups didn't need: server notices, loading/empty
   results, real airline logos, crypto pay control, dark autocomplete).
   ========================================================================== */

/* ---- home: server-side notices (PayPal/Stripe return, errors) ---------- */
body.pg-home .sys-messages { position: relative; z-index: 3; padding-top: 24px; }
body.pg-home .sys-msg {
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-light);
}
body.pg-home .sys-msg.success { background: rgba(111,214,168,0.10); border-color: rgba(111,214,168,0.45); }
body.pg-home .sys-msg.error   { background: rgba(217,87,107,0.12); border-color: rgba(217,87,107,0.50); color: #ffb3bf; }
body.pg-home .sys-msg a { color: var(--gold-soft); text-decoration: underline; }

/* ---- book: easyAutocomplete dropdown on the dark card ------------------- */
body.pg-book .pill-input .easy-autocomplete { flex: 1; min-width: 0; width: auto !important; }
body.pg-book .pill-input .easy-autocomplete input { width: 100%; }
body.pg-book .easy-autocomplete-container { z-index: 20; left: -41px; right: -8px; width: auto !important; min-width: 260px; }
body.pg-book .easy-autocomplete-container ul li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pg-book .easy-autocomplete-container ul li i.flag { display: none; }
body.pg-book .easy-autocomplete-container ul {
  background: var(--teal-mid);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,0.7);
  overflow: hidden;
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
}
body.pg-book .easy-autocomplete-container ul li {
  background: transparent;
  border-color: var(--line);
  color: var(--text-light);
  font-size: 0.92rem;
}
body.pg-book .easy-autocomplete-container ul li div { padding: 10px 12px; }
body.pg-book .easy-autocomplete-container ul li.selected,
body.pg-book .easy-autocomplete-container ul li:hover { background: rgba(232,163,61,0.16); }
body.pg-book .easy-autocomplete-container ul li b { color: var(--gold-soft); }
body.pg-book .pill-input input[type="date"] { color-scheme: dark; }

/* ---- results: loading / empty / real logos ------------------------------ */
body.pg-results .results-loading,
body.pg-results .results-empty {
  background: var(--glass);
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  padding: 26px 24px;
  color: var(--text-light-soft);
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 12px;
  animation: riseIn 0.5s var(--ease) both;
}
body.pg-results .results-empty a { color: var(--gold-soft); }
body.pg-results .results-loading .spinner {
  width: 18px; height: 18px; flex: none;
  border: 2px solid var(--line-strong);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: op-spin 0.9s linear infinite;
}
@keyframes op-spin { to { transform: rotate(360deg); } }
body.pg-results #results-title .ellipsis { color: var(--gold-soft); }

body.pg-results .airline .badge { position: relative; overflow: hidden; }
body.pg-results .airline .badge img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 5px;
  background: #f6efe0;
  border-radius: 11px;
}
body.pg-results .airline .badge img[src=""] { display: none; }

/* ---- checkout: crypto control, notes, stripe surface --------------------- */
body.pg-checkout a.pay-btn { text-decoration: none; }
body.pg-checkout .pay-note { text-align: center; font-size: 0.8rem; color: var(--text-light-soft); margin: 10px 0 0; }
body.pg-checkout .d-none { display: none !important; }
body.pg-checkout #stripe-payment-form { margin-top: 14px; }
body.pg-checkout #card-element { background: var(--paper); border: 1.5px solid var(--line); border-radius: 11px; padding: 14px; }
body.pg-checkout #card-errors { color: #ffb3bf; font-size: 0.86rem; margin-top: 8px; }
body.pg-checkout .errorMessage { margin-bottom: 14px; }
body.pg-checkout .errorMessage p { color: #ffb3bf; font-size: 0.88rem; margin: 0 0 4px; }
body.pg-checkout .field-add { margin-bottom: 14px; }
body.pg-checkout .pax-controls button:disabled { opacity: 0.3; cursor: not-allowed; }
body.pg-checkout .sample-link { text-align: center; font-size: 0.82rem; color: var(--text-light-soft); margin-top: 12px; }
body.pg-checkout .sample-link a { color: var(--gold-soft); text-decoration: underline; }
body.pg-checkout .specimen-grid { max-height: 280px; overflow: auto; }

/* ---- country landing pages: the country's own SEO copy inside a dossier --- */
body.pg-home .country-copy h2,
body.pg-home .country-copy h3 { font-size: 1.2rem; margin: 26px 0 10px; }
body.pg-home .country-copy h2:first-child,
body.pg-home .country-copy h3:first-child,
body.pg-home .country-copy p:first-child { margin-top: 0; }
body.pg-home .country-copy p { color: var(--text-light-soft); max-width: 70ch; margin: 0 0 12px; }
body.pg-home .country-copy ul { color: var(--text-light-soft); max-width: 70ch; padding-left: 20px; margin: 0 0 14px; }
body.pg-home .country-copy li { margin-bottom: 6px; }
body.pg-home .country-copy a { color: var(--gold-soft); }

/* ==========================================================================
   Date picker (public/frontend/js/onward-datepicker.js)
   ========================================================================== */
body.pg-book #date-wrap { cursor: pointer; }
body.pg-book #date-wrap input[readonly] { cursor: pointer; }
body.pg-book #date-wrap.dp-open { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232,163,61,0.16); background: rgba(242,237,224,0.09); }
body.pg-book #date-wrap .dp-caret { flex: none; width: 34px; height: 34px; margin-right: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-light-soft); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
body.pg-book #date-wrap .dp-caret svg { width: 14px; height: 14px; }
body.pg-book #date-wrap.dp-open .dp-caret { transform: rotate(180deg); color: var(--gold); }

.op-datepicker {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  background: rgba(15,49,52,0.96);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid rgba(232,163,61,0.35);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 30px 70px -22px rgba(0,0,0,0.75);
  animation: cardIn 0.25s var(--ease) both;
  font-family: 'Work Sans', sans-serif;
  max-width: 360px;
}
.op-datepicker[hidden] { display: none; }
.op-datepicker .dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.op-datepicker .dp-title { font-family: 'Newsreader', serif; font-size: 1.1rem; font-weight: 600; color: var(--text-light); }
.op-datepicker .dp-nav {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--gold);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.op-datepicker .dp-nav svg { width: 16px; height: 16px; }
.op-datepicker .dp-nav:hover:not(:disabled) { background: rgba(232,163,61,0.14); }
.op-datepicker .dp-nav:active:not(:disabled) { transform: scale(0.9); }
.op-datepicker .dp-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.op-datepicker .dp-days, .op-datepicker .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.op-datepicker .dp-days span { text-align: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light-soft); padding: 4px 0 6px; }
.op-datepicker .dp-cell { aspect-ratio: 1 / 1; min-height: 34px; }
.op-datepicker .dp-day {
  width: 100%; height: 100%; border-radius: 10px; border: 1.5px solid transparent;
  background: transparent; color: var(--text-light);
  font-family: 'Space Mono', monospace; font-size: 0.86rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.op-datepicker .dp-day:hover:not(:disabled) { background: rgba(232,163,61,0.16); border-color: rgba(232,163,61,0.4); }
.op-datepicker .dp-day:active:not(:disabled) { transform: scale(0.94); }
.op-datepicker .dp-today { border-color: var(--line-strong); }
.op-datepicker .dp-day.dp-today::after { content: ''; position: absolute; }
.op-datepicker .dp-selected,
.op-datepicker .dp-selected:hover { background: var(--gold) !important; border-color: var(--gold-dark) !important; color: var(--teal-deep); box-shadow: 0 10px 22px -10px rgba(232,163,61,0.6); }
.op-datepicker .dp-disabled { color: rgba(169,183,178,0.35); cursor: not-allowed; text-decoration: line-through; }
.op-datepicker .dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.op-datepicker .dp-foot .dp-today {
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent;
  color: var(--gold-soft); font-family: 'Work Sans', sans-serif; font-size: 0.8rem; font-weight: 700;
  padding: 7px 14px; cursor: pointer; transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.op-datepicker .dp-foot .dp-today:hover { background: rgba(232,163,61,0.14); border-color: var(--gold); }
.op-datepicker .dp-hint { font-size: 0.72rem; color: var(--text-light-soft); text-align: right; }
@media (max-width: 560px) {
  .op-datepicker { max-width: none; padding: 12px 10px 10px; }
  .op-datepicker .dp-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .op-datepicker { animation: none; } }

/* ---- Brand logo (dummyticket247) ---------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.brand-logo {
  height: 34px;
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.brand:hover .brand-logo {
  opacity: 0.92;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .brand-logo {
    height: 28px;
    max-width: 190px;
  }
}
@media (max-width: 480px) {
  .brand-logo {
    height: 24px;
    max-width: 160px;
  }
}
