/* plan-trip.css — "Plan your dive trip" affiliate module (flights / stays /
   experiences / transfers). Scoped to .pt-* so it can't collide with other
   modules. Reuses the site gradient + card system. */

.pt-module { margin: 0; }
.pt-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 760px) { .pt-grid { grid-template-columns: 1fr 1fr; } }

.pt-block {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px; padding: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}
.pt-block-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.pt-block-head i {
  font-size: 17px; width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #10b981, #06b6d4);
}
.pt-block-head h3 {
  margin: 0; font: 600 16px/1.2 'Josefin Sans', sans-serif; letter-spacing: .02em; color: var(--text, #0f172a);
}
.pt-block-sub {
  font: 400 12.5px/1.5 'Roboto', sans-serif; color: var(--muted, #64748b); margin: 0 0 12px;
}

.pt-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Secondary buttons — glassmorphic frosted pill (matches homepage filters) */
.pt-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font: 600 13px/1 'Roboto', sans-serif; letter-spacing: .01em;
  color: var(--text, #334155);
  background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.55) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
          backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 10px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.pt-btn:hover {
  border-color: rgba(6,182,212,.5); color: var(--primary, #0e7490);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(6,182,212,.16), inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Primary buttons — the "Plan with Laila" gradient pill (with shine sweep) */
.pt-btn-primary {
  position: relative; overflow: hidden;
  color: #fff;
  /* exact homepage / "Plan with Laila" header CTA gradient */
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 22px rgba(29, 78, 216, 0.32),
    0 4px 12px rgba(16, 185, 129, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.pt-btn-primary:hover {
  color: #fff; transform: translateY(-1px);
  box-shadow:
    0 14px 32px rgba(29, 78, 216, 0.45),
    0 6px 16px rgba(16, 185, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pt-btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: skewX(-18deg); transition: left .7s ease; pointer-events: none;
}
.pt-btn-primary:hover::after { left: 140%; }
.pt-btn i { font-size: 13px; }
.pt-btn-ext { font-size: 10px; opacity: .7; }

/* Frosted-glass fallback where backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pt-btn { background: #fff; border-color: var(--border, #e2e8f0); }
}

.pt-chips-label {
  font: 600 11px/1 'Josefin Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted, #94a3b8); margin: 12px 0 7px;
}

/* Experience cards (when fetch-experiences.js has populated data) */
.pt-exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pt-exp {
  display: block; text-decoration: none; color: inherit; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border, #e2e8f0); background: #fff; transition: transform .15s ease, box-shadow .15s ease;
}
.pt-exp:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,.12); }
.pt-exp-img { height: 84px; background-size: cover; background-position: center; background-color: var(--primary-soft, #ecfdf5); }
.pt-exp-body { padding: 8px 10px 10px; }
.pt-exp-name { font: 600 12px/1.3 'Roboto', sans-serif; color: var(--text, #0f172a); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-exp-meta { margin-top: 5px; font: 600 12px/1 'Josefin Sans', sans-serif; color: var(--primary, #0e7490); }
.pt-exp-meta span { color: var(--muted, #94a3b8); font-weight: 500; }

.pt-disclosure {
  margin: 14px 0 0; font: 400 11px/1.5 'Roboto', sans-serif; color: var(--muted, #94a3b8);
}

/* A block that hosts a full-width inline search widget spans both columns */
.pt-block--full { grid-column: 1 / -1; }

/* Glass wrapper around a third-party search widget (flights/transfers/cars).
   The partner renders its own styled box inside; this just frames it on-brand. */
.pt-widget {
  margin-top: 10px;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.55) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
          backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 10px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
  padding: 8px;
}
.pt-widget iframe { max-width: 100%; border: 0; display: block; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pt-widget { background: #fff; }
}

/* Compact variant (course pages): single column, flights + stays only */
.pt-module--compact .pt-grid { grid-template-columns: 1fr; }

/* ─────────────────────────────────────────────────────────────────────────
   .pt-glass — dive-trip "Plan your trip": a WHITE section that blends with
   the rest of the page (no boxed background), just larger type and a custom
   glassmorphic flight search form + gradient CTAs. Opt-in via `pt-glass` on
   the host <section>.
   ──────────────────────────────────────────────────────────────────────── */
.pt-glass { margin: 40px 0; }
.pt-glass > h2 {
  margin: 0 0 6px; color: var(--text, #0f172a);
  font: 600 clamp(24px, 3vw, 33px)/1.1 'Josefin Sans', sans-serif; letter-spacing: -0.02em;
}
.pt-glass .cdtd-lede {
  color: var(--muted, #64748b);
  font: 400 15px/1.6 'Roboto', sans-serif; max-width: 700px; margin: 0 0 24px;
}
.pt-glass .pt-grid { gap: 20px; }
.pt-glass .pt-block { padding: 24px; border-radius: 20px; }
.pt-glass .pt-block-head { gap: 13px; }
.pt-glass .pt-block-head i { font-size: 20px; width: 42px; height: 42px; border-radius: 12px; }
.pt-glass .pt-block-head h3 { font-size: 20px; letter-spacing: -0.01em; }
.pt-glass .pt-block-sub { font-size: 13.5px; }
.pt-glass .pt-btns { gap: 11px; }
.pt-glass .pt-btn { padding: 13px 22px; font-size: 14.5px; }

/* ── Custom glassmorphic flight search form (.ptf) — built in-house so the
   dropdowns match the homepage hero filters and the CTA is our exact gradient
   (the Travelpayouts embed can't do either). Submits a tracked Skyscanner
   deep-link. Rendered where planTrip() is called with { flightForm:true }. ── */
.ptf {
  margin-top: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f2fbfa 0%, #ffffff 72%);
  border: 1px solid rgba(6,182,212,0.16);
  box-shadow: 0 12px 32px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.75);
}
.ptf-tabs {
  display: inline-flex; gap: 6px; align-self: flex-start;
  background: rgba(6,182,212,0.09); padding: 5px; border-radius: 999px;
}
.ptf-tab {
  border: 0; cursor: pointer; padding: 9px 18px; border-radius: 999px;
  font: 600 13px/1 'Roboto', sans-serif; color: var(--muted, #64748b);
  background: transparent; transition: all .2s ease;
}
.ptf-tab:hover { color: var(--primary, #0e7490); }
.ptf-tab.is-active {
  color: #fff; background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #1d4ed8 100%);
  box-shadow: 0 6px 16px rgba(29,78,216,0.28);
}
.ptf-row { display: grid; gap: 12px; }
.ptf-row-2 { grid-template-columns: 1fr 1fr; }
.ptf-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.ptf-lab {
  font: 600 10px/1 'Josefin Sans', sans-serif; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted, #94a3b8);
}
.ptf-control {
  width: 100%; box-sizing: border-box; color: var(--text, #0f172a);
  padding: 12px 14px; border-radius: 12px;
  font: 500 14.5px/1.2 'Roboto', sans-serif;
  border: 1.5px solid rgba(15,23,42,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  appearance: none; -webkit-appearance: none; cursor: pointer; transition: all .2s ease;
}
select.ptf-control {
  padding-right: 34px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2306b6d4' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  background-repeat: no-repeat, no-repeat;
  background-position: right 14px center, center;
  background-size: 10px 6px, cover;
}
.ptf-control:hover { border-color: rgba(6,182,212,0.5); }
.ptf-control:focus { border-color: #06b6d4; outline: none; box-shadow: 0 0 0 3px rgba(6,182,212,0.16); }
.ptf-control:disabled { cursor: default; opacity: 1; color: var(--text, #0f172a); background: rgba(241,245,249,0.72); }
.ptf-control::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }
.ptf-submit {
  width: 100%; justify-content: center; border: 0; cursor: pointer; margin-top: 2px;
  padding: 15px 22px; border-radius: 14px; font-size: 15.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 9px;
}
.ptf-note { margin: 1px 0 0; text-align: center; font: 400 11.5px/1.4 'Roboto', sans-serif; color: var(--muted, #94a3b8); }
@media (max-width: 560px) { .ptf-row-2 { grid-template-columns: 1fr; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ptf-control { background: #fff; }
  select.ptf-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2306b6d4' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 14px center; background-size: 10px 6px; }
}
