/* Nº 9 Trip Planner — Waterford AI itinerary wizard
   Brand: primary #0082A4, navy #003A57, light #EDF4F9, accent #C8DCE8 */

.n9-tp-hero {
  background-color: #3E8FBB;
  background-image: var(--vri-wave-dark);
  background-repeat: repeat;
  background-size: 240px 80px;
  padding: 72px 24px 64px;
  text-align: center;
}
.n9-tp-hero__title {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
}
.n9-tp-hero__sub {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,58,87,.28);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

.n9-tp-wizard {
  max-width: 860px;
  margin: -36px auto 64px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 58, 87, 0.12);
  padding: 32px clamp(18px, 4vw, 44px) 40px;
  position: relative;
}

/* Progress */
.n9-tp-progress { margin-bottom: 28px; }
.n9-tp-progress__bar {
  height: 6px;
  background: #EDF4F9;
  border-radius: 3px;
  overflow: hidden;
}
.n9-tp-progress__fill {
  height: 100%;
  width: 16.6%;
  background: #0082A4;
  border-radius: 3px;
  transition: width 0.35s ease;
}
.n9-tp-progress__label {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5a7a8a;
}

/* Steps */
.n9-tp-step { display: none; animation: n9TpFade 0.3s ease; }
.n9-tp-step--active { display: block; }
@keyframes n9TpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.n9-tp-step h2 { color: #003A57; font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 8px; }
.n9-tp-step > p { color: #5a7a8a; margin: 0 0 22px; }
.n9-tp-subq { color: #003A57; font-weight: 600; margin: 26px 0 12px; }

/* Option buttons */
.n9-tp-options { display: flex; flex-wrap: wrap; gap: 12px; }
.n9-tp-opt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 2px solid #C8DCE8;
  background: #fff;
  color: #003A57;
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.n9-tp-opt i { font-size: 1.25rem; color: #0082A4; }
.n9-tp-opt:hover { border-color: #0082A4; transform: translateY(-1px); }
.n9-tp-opt--selected { border-color: #0082A4; background: #EDF4F9; }
.n9-tp-opt--lg { flex: 1 1 calc(50% - 12px); justify-content: flex-start; padding: 17px 20px; }
@media (max-width: 560px) { .n9-tp-opt--lg { flex-basis: 100%; } }

/* Dates */
.n9-tp-dates { display: flex; gap: 16px; flex-wrap: wrap; }
.n9-tp-date { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.n9-tp-date span { font-size: 0.82rem; font-weight: 700; color: #003A57; text-transform: uppercase; letter-spacing: 0.04em; }
.n9-tp-date input {
  border: 2px solid #C8DCE8;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  color: #003A57;
  background: #fff;
}
.n9-tp-date input:focus { outline: none; border-color: #0082A4; }
.n9-tp-dates__hint { margin-top: 12px; font-size: 0.9rem; color: #0082A4; font-weight: 600; min-height: 1.3em; }
.n9-tp-dates__hint--err { color: #dc2626; }

/* Stepper */
.n9-tp-stepper { display: flex; align-items: center; gap: 22px; justify-content: center; padding: 18px 0; }
.n9-tp-stepper-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid #C8DCE8;
  background: #fff;
  color: #0082A4;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s;
}
.n9-tp-stepper-btn:hover { border-color: #0082A4; }
.n9-tp-stepper-val { font-size: 2.2rem; font-weight: 700; color: #003A57; min-width: 64px; text-align: center; }

/* Nav buttons */
.n9-tp-step__nav { margin-top: 28px; display: flex; justify-content: flex-end; }
.n9-tp-next, .n9-tp-generate, .n9-tp-restart, .n9-tp-error__retry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #0082A4;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.n9-tp-next:hover, .n9-tp-generate:hover, .n9-tp-restart:hover, .n9-tp-error__retry:hover { background: #006d8a; transform: translateY(-1px); }
.n9-tp-generate { font-size: 1.05rem; padding: 16px 32px; }
.n9-tp-generate--shake { animation: n9TpShake 0.4s ease; }
@keyframes n9TpShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.n9-tp-back {
  position: absolute;
  top: 30px;
  right: clamp(18px, 4vw, 44px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #5a7a8a;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.n9-tp-back:hover { color: #0082A4; }

/* Loading */
.n9-tp-loading { text-align: center; padding: 28px 0 12px; }
.n9-tp-loading__icon { font-size: 3rem; color: #0082A4; animation: n9TpPulse 1.6s ease infinite; }
@keyframes n9TpPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.7; } }
.n9-tp-loading h2 { margin: 16px 0 6px; }
.n9-tp-loading__steps { max-width: 420px; margin: 26px auto 0; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.n9-tp-loading__step { display: flex; align-items: center; gap: 10px; color: #9ab2bf; font-size: 0.92rem; transition: color 0.3s; }
.n9-tp-loading__step i { font-size: 1.15rem; }
.n9-tp-loading__step--active { color: #003A57; font-weight: 600; }
.n9-tp-loading__step--active i { animation: n9TpSpin 1.2s linear infinite; color: #0082A4; }
.n9-tp-loading__step--done { color: #0082A4; }
@keyframes n9TpSpin { to { transform: rotate(360deg); } }
.n9-tp-loading__elapsed { margin-top: 22px; font-size: 0.84rem; color: #5a7a8a; min-height: 1.3em; }

/* Result */
.n9-tp-itin__title { color: #003A57; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 10px; }
.n9-tp-itin__summary { color: #5a7a8a; font-size: 1.02rem; line-height: 1.6; margin: 0 0 26px; }

.n9-tp-day {
  border: 1px solid #C8DCE8;
  border-radius: 16px;
  margin-bottom: 18px;
  overflow: hidden;
}
.n9-tp-day__hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #EDF4F9;
  padding: 13px 18px;
}
.n9-tp-day__num {
  background: #0082A4;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 5px 11px;
  white-space: nowrap;
}
.n9-tp-day__theme { color: #003A57; font-weight: 700; font-size: 1.02rem; }

.n9-tp-slot { display: flex; gap: 14px; padding: 14px 18px; border-top: 1px solid #EDF4F9; }
.n9-tp-slot__icon {
  flex: 0 0 72px;
  width: 72px; height: 72px;
  border-radius: 12px;
  background: #EDF4F9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.n9-tp-slot__icon.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.n9-tp-slot__icon.has-img i { display: none; }
.n9-tp-slot__icon i { font-size: 1.25rem; color: #0082A4; }
.n9-tp-slot__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #0082A4; }
.n9-tp-slot__name { color: #003A57; font-weight: 700; font-size: 1rem; margin-top: 2px; }
.n9-tp-slot__loc { color: #5a7a8a; font-size: 0.84rem; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.n9-tp-slot__why { color: #41606f; font-size: 0.9rem; margin-top: 4px; line-height: 1.5; }

.n9-tp-departure-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px;
  border-top: 1px solid #EDF4F9;
  color: #41606f;
}
.n9-tp-departure-note i { font-size: 1.4rem; color: #0082A4; }
.n9-tp-departure-note strong { display: block; color: #003A57; }
.n9-tp-departure-note span { font-size: 0.88rem; }

/* Tips */
.n9-tp-tips {
  background: #EDF4F9;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 26px 0;
}
.n9-tp-tips h3 { color: #003A57; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.1rem; }
.n9-tp-tips h3 i { color: #0082A4; }
.n9-tp-tips ul { margin: 0; padding-left: 20px; color: #41606f; line-height: 1.7; }

/* Room picks */
.n9-tp-picks { margin: 30px 0 8px; }
.n9-tp-picks h3 { color: #003A57; font-size: 1.2rem; margin: 0 0 6px; }
.n9-tp-picks__note { color: #5a7a8a; font-size: 0.92rem; margin: 0 0 14px; }
.n9-tp-picks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.n9-tp-pickcard {
  border: 1px solid #C8DCE8;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.1s;
  background: #fff;
}
.n9-tp-pickcard:hover { box-shadow: 0 8px 24px rgba(0, 58, 87, 0.14); transform: translateY(-2px); }
.n9-tp-pickcard__img { height: 140px; background: #EDF4F9; }
.n9-tp-pickcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.n9-tp-pickcard__body { padding: 12px 14px 14px; }
.n9-tp-pickcard__name { color: #003A57; font-size: 1rem; margin: 0 0 6px; }
.n9-tp-pickcard__stats { display: flex; gap: 12px; color: #5a7a8a; font-size: 0.84rem; }
.n9-tp-pickcard__stats i { color: #0082A4; }

/* Email box */
.n9-tp-email {
  border: 2px dashed #C8DCE8;
  border-radius: 16px;
  padding: 20px 22px;
  margin-top: 28px;
}
.n9-tp-email__hdr { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.n9-tp-email__hdr i { font-size: 1.6rem; color: #0082A4; }
.n9-tp-email__hdr strong { display: block; color: #003A57; }
.n9-tp-email__hdr span { color: #5a7a8a; font-size: 0.88rem; }
.n9-tp-email__form { display: flex; gap: 10px; flex-wrap: wrap; }
.n9-tp-email__form input[type="email"] {
  flex: 1 1 240px;
  border: 2px solid #C8DCE8;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.96rem;
  color: #003A57;
}
.n9-tp-email__form input[type="email"]:focus { outline: none; border-color: #0082A4; }
.n9-tp-email__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #003A57;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
}
.n9-tp-email__btn:hover { background: #00293d; }
.n9-tp-email__msg { margin-top: 10px; font-size: 0.9rem; min-height: 1.3em; }
.n9-tp-email__msg--ok { color: #16a34a; font-weight: 600; }
.n9-tp-email__msg--err { color: #dc2626; font-weight: 600; }

/* Error */
.n9-tp-error { text-align: center; padding: 24px 0 8px; }
.n9-tp-error__icon { font-size: 3rem; color: #dc2626; }
.n9-tp-error h2 { margin: 14px 0 6px; }
.n9-tp-error__actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.n9-tp-error__startover {
  background: none;
  border: 2px solid #C8DCE8;
  border-radius: 14px;
  color: #003A57;
  padding: 14px 28px;
  font-weight: 700;
  cursor: pointer;
}
.n9-tp-error__startover:hover { border-color: #0082A4; }

/* Restart row */
.n9-tp-restart { background: #fff; color: #0082A4; border: 2px solid #0082A4; }
.n9-tp-restart:hover { background: #EDF4F9; }

@media (max-width: 560px) {
  .n9-tp-wizard { padding: 24px 16px 30px; margin: -28px 12px 44px; }
  .n9-tp-hero { padding: 56px 18px 52px; }
  .n9-tp-step__nav { justify-content: stretch; }
  .n9-tp-step__nav .n9-tp-next, .n9-tp-step__nav .n9-tp-generate { width: 100%; justify-content: center; }
}

/* Date range-picker fields (uses the site-wide VriRangePicker) */
.n9-tp-datefield { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.n9-tp-datelbl { font-size: 0.82rem; font-weight: 700; color: #003A57; text-transform: uppercase; letter-spacing: 0.04em; }
.n9-tp-datefield .vri-date-btn { border: 2px solid #C8DCE8; border-radius: 12px; padding: 13px 14px; font-size: 1rem; background: #fff; width: 100%; }
.n9-tp-datefield .vri-date-btn:hover { border-color: #0082A4; }
.n9-tp-datefield .vri-date-text { color: #003A57; }

/* Branded category tiles — the guaranteed fallback when no photo is found */
.n9-tp-slot__icon.n9-cat-history { background-image: linear-gradient(135deg,#003A57,#0082A4); }
.n9-tp-slot__icon.n9-cat-coast   { background-image: linear-gradient(135deg,#0082A4,#3E8FBB); }
.n9-tp-slot__icon.n9-cat-nature  { background-image: linear-gradient(135deg,#2f6f4f,#5a8a3a); }
.n9-tp-slot__icon.n9-cat-food    { background-image: linear-gradient(135deg,#b0894e,#d4a060); }
.n9-tp-slot__icon.n9-cat-drink   { background-image: linear-gradient(135deg,#7a4e6a,#b0894e); }
.n9-tp-slot__icon.n9-cat-city    { background-image: linear-gradient(135deg,#41606f,#5b6770); }
.n9-tp-slot__icon.n9-cat-default { background-image: linear-gradient(135deg,#0082A4,#006d8a); }
.n9-tp-slot__icon[class*="n9-cat-"] i { color: #ffffff; }

/* Per-destination address + opening hours (Google Places) */
.n9-tp-slot__meta { margin-top: 6px; }
.n9-tp-slot__addr { display: inline-flex; align-items: flex-start; gap: 5px; color: #0082A4; font-size: 12.5px; text-decoration: none; line-height: 1.45; }
.n9-tp-slot__addr:hover { text-decoration: underline; }
.n9-tp-slot__addr i { color: #0082A4; flex: 0 0 auto; margin-top: 1px; }
.n9-tp-slot__hours { margin-top: 5px; font-size: 12.5px; color: #41606f; }
.n9-tp-slot__hours summary { cursor: pointer; color: #5a7a8a; display: inline-flex; align-items: center; gap: 5px; list-style: none; font-weight: 600; }
.n9-tp-slot__hours summary::-webkit-details-marker { display: none; }
.n9-tp-slot__hours > div { margin-top: 4px; line-height: 1.7; padding-left: 19px; }

/* Grok opening-hours line + disclaimer */
.n9-tp-slot__hrs { display: flex; align-items: center; gap: 5px; color: #5a7a8a; font-size: 12.5px; margin-top: 3px; }
.n9-tp-slot__hrs i { color: #0082A4; }
.n9-tp-hours-note { color: #90a4ae; font-size: 12px; font-style: italic; margin: 18px 0 0; }

/* Quay pronunciation tip */
.n9-tp-quaytip { display: flex; align-items: center; gap: 9px; background: #FFF7E6; border: 1px solid #F0DDB0; border-radius: 12px; padding: 10px 14px; margin: 4px 0 14px; color: #6a5a40; font-size: 13.5px; }
.n9-tp-quaytip i { color: #c4944a; font-size: 18px; flex: 0 0 auto; }

/* Per-day Apple Map of the itinerary stops */
.n9-tp-map { height: 300px; width: 100%; border-radius: 14px; overflow: hidden; margin: 6px 0 4px; background: #EDF4F9; border: 1px solid #C8DCE8; }

/* Booking CTA + book-direct nudge */
.n9-tp-cta { margin: 24px 0 6px; }
.n9-tp-cta__inner { background: linear-gradient(135deg,#003A57,#0082A4); color:#fff; border-radius:18px; padding:28px 24px; text-align:center; }
.n9-tp-cta__inner h3 { color:#fff; font-size:1.45rem; margin:0 0 6px; }
.n9-tp-cta__inner p { color:#DCEEF4; margin:0 0 16px; }
.n9-tp-cta__btn { display:inline-flex; align-items:center; gap:9px; background:#fff; color:#003A57; font-weight:700; padding:14px 28px; border-radius:14px; text-decoration:none; font-size:1rem; }
.n9-tp-cta__btn:hover { background:#EDF4F9; }
.n9-tp-cta__btn i { color:#0082A4; font-size:20px; }
.n9-tp-cta__note { color:#cfe6ee !important; font-size:12.5px; margin:14px 0 0 !important; }

/* Shareable plan link */
.n9-tp-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:4px 0 18px; }
.n9-tp-sharebtn { display:inline-flex; align-items:center; gap:8px; background:#EAF4F8; color:#003A57; border:1px solid #bcdee8; border-radius:11px; padding:9px 16px; font-weight:600; font-size:14px; cursor:pointer; }
.n9-tp-sharebtn:hover { background:#dcebf2; }
.n9-tp-sharebtn:disabled { opacity:.7; cursor:default; }
.n9-tp-sharebtn i { color:#0082A4; font-size:17px; }
.n9-tp-share-url { font-size:12.5px; color:#3a5060; word-break:break-all; }

/* Per-day weather outlook chip */
.n9-tp-day__wx { display:none; align-items:center; gap:6px; margin-left:auto; background:#EAF4F8; color:#16455c; border:1px solid #cfe6ee; border-radius:999px; padding:4px 11px; font-size:13px; font-weight:600; white-space:nowrap; }
.n9-tp-day__wx.is-on { display:inline-flex; }
.n9-tp-day__wx i { color:#0082A4; font-size:16px; }
.n9-tp-day__wx-rain { color:#3a6f86; font-weight:600; }
.n9-tp-day__wx-rain i { color:#3a6f86; font-size:14px; }

/* "On in Waterford during your stay" — events that fall on the guest's dates */
.n9-tp-events { max-width:860px; margin:0 auto 8px; background:#fff; border:1px solid #C8DCE8; border-left:5px solid #0082A4; border-radius:14px; padding:18px 22px 16px; box-shadow:0 4px 16px rgba(0,58,87,.06); }
.n9-tp-events h3 { display:flex; align-items:center; gap:8px; margin:0 0 12px; color:#003A57; font-size:1.15rem; }
.n9-tp-events h3 i { color:#f4a91e; }
.n9-tp-events__list { display:grid; gap:8px; }
.n9-tp-event { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; text-decoration:none; background:#EDF4F9; border-radius:10px; padding:10px 14px; transition:background .15s; }
.n9-tp-event:hover { background:#e0eef5; }
.n9-tp-event__date { font-size:.8rem; font-weight:800; color:#0082A4; min-width:150px; }
.n9-tp-event__title { font-size:.98rem; font-weight:700; color:#003A57; flex:1 1 auto; }
.n9-tp-event__loc { font-size:.85rem; color:#5a7280; display:inline-flex; align-items:center; gap:3px; }
.n9-tp-event__loc i { color:#3E8FBB; }
.n9-tp-events__note { margin:12px 0 0; font-size:.82rem; color:#7a8e99; }
@media (max-width:560px){ .n9-tp-event__date{ min-width:0; flex:1 1 100%; } }
