/* ── Reset ── */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body { background: #2F2F2F; font-family: 'Oswald', sans-serif; }

:root {

  --cream:     #2F2F2F;

  --btn1:      #468477;

  --btn2:      #EBDAB6;

  --btn3:      #DF9206;

  --header:    #2F2F2F;

  --lower-bar: #E2B75B;

  --teal-dark: #254F49;

  --teal:      #366961;

  --gold:      #E2B75B;

  --gold-lt:   #EBDAB6;

  --muted:     #6b8f8a;

  --text:      #1a3530;

  --border:    #e8f0ef;

  --row-gap:   12px;

  --poster-gap:14px;

  --poster-r:  16px;

}

.page {

  margin: 3px;

  display: flex;

  flex-direction: column;

  min-height: 100vh;

}

/* ══════════════════════════════════════

   HEADER

══════════════════════════════════════ */

.header {

  background: var(--header);

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 16px;

  height: clamp(72px, 14vh, 130px);

  overflow: visible;   /* must be visible so dropdowns escape the header */

  position: relative;  /* stacking context for z-index */

  z-index: 100;

  gap: 12px;

}

.header-img {

  height: 100%;

  max-width: 70%;

  object-fit: contain;

  display: block;

}

/* Language switcher */

.lang-switch {

  display: flex;

  align-items: center;

  gap: 6px;

  background: rgba(0,0,0,.25);

  border: 1px solid rgba(255,255,255,.2);

  border-radius: 999px;

  padding: 5px 12px 5px 8px;

  cursor: pointer;

  user-select: none;

  flex-shrink: 0;

  transition: background .15s;

}

.lang-switch:hover { background: rgba(0,0,0,.4); }

.lang-flag { font-size: 1.3rem; line-height: 1; }

.lang-label {

  color: #fff;

  font-family: 'Oswald', sans-serif;

  font-size: .85rem;

  font-weight: 500;

  letter-spacing: .08em;

  text-transform: uppercase;

}

.lang-caret { color: rgba(255,255,255,.6); font-size: .65rem; }

/* Language dropdown */

.lang-menu {

  display: none;

  position: absolute;

  top: calc(100% + 6px);

  right: 0;

  background: #fff;

  border: 1px solid rgba(0,0,0,.1);

  border-radius: 10px;

  box-shadow: 0 8px 24px rgba(0,0,0,.15);

  z-index: 300;

  overflow: hidden;

  min-width: 130px;

}

.lang-menu.open { display: block; }

.lang-menu button {

  display: flex;

  align-items: center;

  gap: 10px;

  width: 100%;

  padding: 10px 14px;

  border: none;

  background: transparent;

  font-family: 'Oswald', sans-serif;

  font-size: .9rem;

  font-weight: 500;

  color: #1a1a1a;

  cursor: pointer;

  text-align: left;

  transition: background .12s;

}

.lang-menu button:hover { background: #f5f0e8; }

.lang-menu button.active { color: var(--btn1); font-weight: 700; }

.lang-menu button:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,.06); }

.lang-switcher-wrap { position: relative; }

/* ══════════════════════════════════════

   USER MENU (header-anchored)

══════════════════════════════════════ */

.btn-user {

  background: rgba(0,0,0,.25);

  border: 1px solid rgba(255,255,255,.2);

  border-radius: 999px;

  color: #fff;

  cursor: pointer;

  padding: 5px 12px 5px 6px;

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: clamp(.75rem, 1.6vw, .95rem);

  letter-spacing: .05em;

  transition: background .15s;

  flex-shrink: 0;

  font-family: 'Oswald', sans-serif;

  font-weight: 500;

}

.btn-user:hover { background: rgba(0,0,0,.4); }

.user-avatar {

  width: 28px; height: 28px;

  border-radius: 50%;

  background: var(--btn3);

  color: #fff;

  font-family: 'League Spartan', sans-serif;

  font-size: .85rem; font-weight: 900;

  display: flex; align-items: center; justify-content: center;

  flex-shrink: 0;

}

.user-name { max-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.user-caret { font-size: .65rem; opacity: .7; }

.btn-login {

  background: rgba(0,0,0,.25);

  border: 1px solid rgba(255,255,255,.2);

  border-radius: 999px;

  color: #fff;

  cursor: pointer;

  padding: 6px 16px;

  font-family: 'Oswald', sans-serif;

  font-size: clamp(.75rem, 1.6vw, .95rem);

  font-weight: 500;

  letter-spacing: .08em;

  text-transform: uppercase;

  flex-shrink: 0;

  transition: background .15s;

}

.btn-login:hover { background: rgba(0,0,0,.4); }

.user-menu {

  display: none;

  position: absolute;

  top: calc(100% + 8px); right: 0;

  min-width: 170px;

  background: #fff;

  border: 1px solid rgba(0,0,0,.12);

  border-radius: 10px;

  box-shadow: 0 8px 24px rgba(0,0,0,.2);

  z-index: 300; overflow: hidden;

}

.user-menu.open { display: block; }

.user-menu a {

  display: block; padding: 12px 16px;

  color: #1a1a1a; text-decoration: none;

  font-family: 'Oswald', sans-serif;

  font-size: .9rem; font-weight: 500; letter-spacing: .05em;

  transition: background .12s;

}

.user-menu a:hover { background: #f5f0e8; }

.user-menu a:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,.06); }

.user-menu-wrap { position: relative; flex-shrink: 0; }

/* ══════════════════════════════════════

   POSTER ROWS — shared infrastructure

══════════════════════════════════════ */

.pm-row {

  width: 100%;

  padding: 10px 0 4px;

}

.pm-row-label {

  font-family: 'League Spartan', sans-serif;

  font-size: clamp(.85rem, 2vw, 1.05rem);

  font-weight: 900;

  letter-spacing: .12em;

  text-transform: uppercase;

  color: var(--lower-bar);

  padding: 0 16px 6px;

  display: flex;

  align-items: center;

  gap: 8px;

}

.pm-row-label::after {

  content: '';

  flex: 1;

  height: 2px;

  background: linear-gradient(90deg, var(--btn1) 0%, transparent 100%);

  border-radius: 2px;

  opacity: .35;

}

/* Infinite carousel shell */

.pm-carousel {

  position: relative;

  padding: 0 50px;   /* space for nav arrows */

}

.pm-viewport {

  overflow: hidden;

  width: 100%;

}

.pm-track {

  display: flex;

  gap: var(--poster-gap);

  will-change: transform;

  transform: translate3d(0,0,0);

  touch-action: pan-y;

  user-select: none;

}

/* Arrow buttons */

.pm-arrow {

  position: absolute;

  top: 50%; transform: translateY(-50%);

  width: 38px; height: 38px;

  border-radius: 50%;

  border: 2px solid rgba(226,183,91,.4);

  background: rgba(47,47,47,.85);

  color: #E2B75B;

  font-size: 18px; line-height: 1;

  display: flex; align-items: center; justify-content: center;

  cursor: pointer; z-index: 10;

  box-shadow: 0 2px 8px rgba(0,0,0,.4);

  transition: background .15s, transform .15s;

}

.pm-arrow:hover { background: rgba(226,183,91,.2); transform: translateY(-50%) scale(1.08); }

.pm-arrow.left  { left: 4px; }

.pm-arrow.right { right: 4px; }

/* ── Poster card (category row) ── */

.pm-poster-card {

  flex: 0 0 auto;

  border-radius: var(--poster-r);

  overflow: hidden;

  cursor: pointer;

  position: relative;

  background: #d9e7ee;

  border: 2px solid rgba(0,0,0,.08);

  box-shadow: 0 6px 16px rgba(0,0,0,.1);

  transition: transform .12s, box-shadow .12s;

}

.pm-poster-card:hover  { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.16); }

.pm-poster-card:active { transform: scale(.98); }

/* ── Unified grid ─────────────────────────────────────────────────────────── */

.pm-unified-grid {

  display: grid;

  grid-template-columns: repeat(3, minmax(0,1fr));

  gap: 8px;

  padding: 6px 10px 12px;

}

@media (min-width: 600px) {

  .pm-unified-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }

}

.pm-unified-grid .pm-poster-card { width: 100%; flex: none; max-width: none; }

/* Action tiles */

.pm-action-tile {

  background: var(--teal-dark);

  aspect-ratio: 3/4;

}

.pm-action-inner {

  position: absolute; inset: 0;

  display: flex; flex-direction: column;

  align-items: center; justify-content: center;

  gap: 8px; padding: 12px 8px; text-align: center;

}

.pm-action-icon {

  font-size: clamp(1.8rem, 5vw, 2.6rem);

  line-height: 1;

  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));

}

/* ── Explore bar ──────────────────────────────────────────────────────────── */

.pm-explore-bar {

  display: flex; align-items: center; flex-wrap: nowrap;

  gap: 6px; padding: 6px 10px 4px; overflow: hidden;

}

.pm-explore-word {

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: clamp(.68rem, 1.6vw, .9rem); letter-spacing: .1em;

  text-transform: uppercase; color: var(--lower-bar); white-space: nowrap; flex-shrink: 0;

}

.pm-explore-city {

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: clamp(.68rem, 1.6vw, .9rem); letter-spacing: .06em;

  text-transform: uppercase; color: var(--btn3); cursor: pointer;

  white-space: nowrap; border-bottom: 2px dotted var(--btn3); padding-bottom: 1px;

  min-width: 0; overflow: hidden; text-overflow: ellipsis; max-width: 30vw;

  transition: color .15s;

}

.pm-explore-dates { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }

/* Pair With modal — circular markers & scroll rows */
.pm-pair-marker { background: none !important; border: none !important; }
.pm-pair-marker div { border-radius: 50% !important; }
#pm-pair-restaurants::-webkit-scrollbar,
#pm-pair-nearby::-webkit-scrollbar { height: 4px; }
#pm-pair-restaurants::-webkit-scrollbar-track,
#pm-pair-nearby::-webkit-scrollbar-track { background: rgba(255,255,255,.08); border-radius: 2px; }
#pm-pair-restaurants::-webkit-scrollbar-thumb,
#pm-pair-nearby::-webkit-scrollbar-thumb { background: #E2B75B; border-radius: 2px; }

.pm-date-sep {

  font-family: 'Oswald', sans-serif; font-size: .68rem;

  color: var(--lower-bar); opacity: .6; flex-shrink: 0;

}

.pm-date-pill {

  display: flex; align-items: center; gap: 3px;

  background: var(--lower-bar); border-radius: 999px;

  padding: 3px 8px 3px 7px; cursor: pointer;

  transition: background .15s; user-select: none;

  border: none; /* reset button default */

  font-family: inherit;

}

.pm-date-pill:hover { background: var(--btn1); }


.pm-date-icon { font-size: .7rem; line-height: 1; }

.pm-date-val {

  font-family: 'Oswald', sans-serif; font-size: .68rem; font-weight: 500;

  letter-spacing: .04em; color: #fff; white-space: nowrap;

}

.pm-poster-card img {

  width: 100%;

  aspect-ratio: 3/4;

  object-fit: cover;

  display: block;

  -webkit-user-drag: none;

}

/* Title backer — sits over bottom of poster image */

.pm-poster-backer {

  position: absolute;

  bottom: 0; left: 0; right: 0;

  padding: 36px 12px 12px;

  background: linear-gradient(to bottom, transparent 0%, rgba(10,10,10,.88) 55%);

  display: flex;

  align-items: flex-end;

  justify-content: center;

  min-height: 68px;

}

.pm-poster-title {

  font-family: 'League Spartan', sans-serif;

  font-weight: 900;

  font-size: clamp(.95rem, 2.2vw, 1.3rem);

  letter-spacing: .06em;

  text-transform: uppercase;

  color: #fff;

  text-align: center;

  text-shadow: 0 2px 6px rgba(0,0,0,.7);

  line-height: 1.15;

}

/* ── Plan card (My Plans row) ── */

.pm-plan-card {

  flex: 0 0 auto;

  border-radius: var(--poster-r);

  overflow: hidden;

  cursor: pointer;

  position: relative;

  border: 2px solid rgba(0,0,0,.08);

  box-shadow: 0 6px 16px rgba(0,0,0,.1);

  transition: transform .12s, box-shadow .12s;

  display: flex;

  flex-direction: column;

}

.pm-plan-card:hover  { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.16); }

.pm-plan-card:active { transform: scale(.98); }

/* Plan card image area */

.pm-plan-img {

  width: 100%;

  aspect-ratio: 3/2;

  object-fit: cover;

  display: block;

  background: var(--header);

  flex-shrink: 0;

}

/* Plan card colour swatch (when no image) */

.pm-plan-swatch {

  width: 100%;

  aspect-ratio: 3/2;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  font-size: 2.2rem;

}

/* Plan card backer */

.pm-plan-backer {

  background: var(--lower-bar);

  padding: 10px 12px 12px;

  flex: 1;

}

.pm-plan-name {

  font-family: 'League Spartan', sans-serif;

  font-weight: 900;

  font-size: clamp(.75rem, 1.8vw, .95rem);

  letter-spacing: .06em;

  text-transform: uppercase;

  color: #fff;

  line-height: 1.2;

  margin-bottom: 4px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}

.pm-plan-meta {

  font-size: .72rem;

  color: rgba(255,255,255,.65);

  font-family: 'Oswald', sans-serif;

  letter-spacing: .04em;

}

/* "Create new plan" card */

.pm-plan-new {

  background: linear-gradient(135deg, var(--btn1) 0%, var(--lower-bar) 100%);

  border: 2px dashed rgba(255,255,255,.35);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding: 20px;

  text-align: center;

}

.pm-plan-new-icon { font-size: 2.4rem; }

.pm-plan-new-label {

  font-family: 'League Spartan', sans-serif;

  font-weight: 900;

  font-size: clamp(.75rem, 1.8vw, .95rem);

  letter-spacing: .1em;

  text-transform: uppercase;

  color: #fff;

  line-height: 1.3;

}

/* ── Utility card (catchall row) — same aspect as poster ── */

.pm-util-card {

  flex: 0 0 auto;

  border-radius: var(--poster-r);

  overflow: hidden;

  cursor: pointer;

  position: relative;

  border: 2px solid rgba(0,0,0,.08);

  box-shadow: 0 6px 16px rgba(0,0,0,.1);

  transition: transform .12s, box-shadow .12s;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: flex-end;

}

.pm-util-card:hover  { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.16); }

.pm-util-card:active { transform: scale(.98); }

.pm-util-img {

  width: 100%;

  aspect-ratio: 3/4;

  object-fit: cover;

  display: block;

}

.pm-util-backer {

  position: absolute;

  bottom: 0; left: 0; right: 0;

  padding: 28px 10px 10px;

  background: linear-gradient(to bottom, transparent 0%, rgba(46,96,86,.88) 60%);

  display: flex;

  align-items: flex-end;

  justify-content: center;

}

.pm-util-title {

  font-family: 'League Spartan', sans-serif;

  font-weight: 900;

  font-size: clamp(.95rem, 2.2vw, 1.3rem);

  letter-spacing: .06em;

  text-transform: uppercase;

  color: #fff;

  text-align: center;

  text-shadow: 0 2px 6px rgba(0,0,0,.7);

  line-height: 1.15;

}

/* ── Unified poster aspect ratio for all card types ── */

.pm-poster-card img,

.pm-util-img,

.pm-plan-swatch,

.pm-plan-img {

  width: 100%;

  aspect-ratio: 3/4;

  object-fit: cover;

  display: block;

}

/* Plan new card: same height as other cards via aspect ratio */

.pm-plan-new {

  flex: 0 0 auto;

  aspect-ratio: 3/4;

}

/* ── Responsive poster widths — identical across all rows ── */

/* Desktop: 4 visible */

@media (min-width: 1025px) {

  .pm-poster-card, .pm-plan-card, .pm-util-card, .pm-plan-new {

    width: calc((100vw - 100px - (var(--poster-gap) * 3)) / 4);

    max-width: 280px;

  }

}

/* Tablet: 3 visible */

@media (min-width: 641px) and (max-width: 1024px) {

  .pm-poster-card, .pm-plan-card, .pm-util-card, .pm-plan-new {

    width: calc((100vw - 100px - (var(--poster-gap) * 2)) / 3);

    max-width: 260px;

  }

}

/* Mobile: ~1.6 cards visible — enough to clearly see adjacent slides */

@media (max-width: 640px) {

  .pm-carousel { padding: 0 36px; }

  .pm-arrow { width: 32px; height: 32px; font-size: 15px; }

  .pm-poster-card, .pm-plan-card, .pm-util-card, .pm-plan-new {

    width: calc((100vw - 72px) / 1.6);  /* ~1.6 cards fills viewport between arrows */

    max-width: none;

  }

  .pm-poster-title, .pm-plan-name, .pm-util-title {

    font-size: 1.05rem;

  }

}

/* Submenu carousel (injected by thingsToDoSubmenu) —

   pm-tray sits directly in pm-tray-wrap with no viewport div */

#carouselArea .pm-tray-wrap {

  overflow: hidden;

  position: relative;

}

#carouselArea .pm-tray {

  display: flex;

  gap: var(--poster-gap);

  will-change: transform;

  transform: translate3d(0,0,0);

  touch-action: pan-y;

  user-select: none;

  padding: 8px 4px 12px;

}

#carouselArea .pm-cat {

  flex: 0 0 auto;

  border-radius: var(--poster-r);

  overflow: hidden;

  cursor: pointer;

  background: #d9e7ee;

  border: 2px solid rgba(0,0,0,.08);

  box-shadow: 0 6px 16px rgba(0,0,0,.1);

  transition: transform .12s, box-shadow .12s;

  /* Same width rules as main poster cards */

  width: calc((100vw - 100px - (var(--poster-gap) * 3)) / 4);

  max-width: 280px;

}

@media (min-width: 641px) and (max-width: 1024px) {

  #carouselArea .pm-cat {

    width: calc((100vw - 100px - (var(--poster-gap) * 2)) / 3);

    max-width: 260px;

  }

}

@media (max-width: 640px) {

  #carouselArea .pm-cat {

    width: calc(100vw - 72px - 28px);

    max-width: none;

  }

}

#carouselArea .pm-cat:hover  { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.16); }

#carouselArea .pm-cat img,

#carouselArea .pm-cat-img {

  width: 100%;

  aspect-ratio: 3/4;

  object-fit: cover;

  display: block;

  -webkit-user-drag: none;

}

/* Backer overlay on subcategory cards — matches main poster style */

#carouselArea .pm-cat {

  position: relative;  /* needed for absolute backer */

}

#carouselArea .pm-cat-backer {

  position: absolute;

  bottom: 0; left: 0; right: 0;

  padding: 28px 10px 10px;

  background: linear-gradient(to bottom, transparent 0%, rgba(22,58,52,.82) 60%);

  display: flex;

  align-items: flex-end;

  justify-content: center;

  min-height: 56px;

  pointer-events: none;

}

#carouselArea .pm-cat-title {

  font-family: 'League Spartan', sans-serif;

  font-weight: 900;

  font-size: clamp(.95rem, 2.2vw, 1.3rem);

  letter-spacing: .06em;

  text-transform: uppercase;

  color: #fff;

  text-align: center;

  text-shadow: 0 2px 6px rgba(0,0,0,.7);

  line-height: 1.15;

}

/* Mobile subcategory cards match main poster sizing */

@media (max-width: 640px) {

  #carouselArea .pm-cat {

    width: calc((100vw - 72px) / 1.6);

    max-width: none;

  }

}

#carouselArea .pm-navbtn {

  position: absolute;

  top: 50%; transform: translateY(-50%);

  width: 38px; height: 38px;

  border-radius: 50%;

  border: 2px solid rgba(226,183,91,.4);

  background: rgba(47,47,47,.85);

  color: #E2B75B;

  font-size: 18px; line-height: 1;

  display: flex; align-items: center; justify-content: center;

  cursor: pointer; z-index: 10;

  box-shadow: 0 2px 8px rgba(0,0,0,.4);

  transition: background .15s;

}

#carouselArea .pm-navbtn.left  { left: 4px; }

#carouselArea .pm-navbtn.right { right: 4px; }

/* ── Subcategory chip strip ── */

#pm-subcat-strip {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(226,183,91,.15);
}

#pm-subcat-strip::-webkit-scrollbar { display: none; }

.pm-subcat-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 5px 8px 6px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s;
}

.pm-subcat-chip img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255,255,255,.15);
  transition: border-color .15s;
}

.pm-subcat-chip span {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  transition: color .15s;
}

.pm-subcat-chip:hover {
  background: rgba(226,183,91,.08);
}

.pm-subcat-chip:hover img {
  border-color: rgba(226,183,91,.4);
}

.pm-subcat-chip.pm-subcat-active {
  background: rgba(226,183,91,.15);
  border-color: rgba(226,183,91,.3);
}

.pm-subcat-chip.pm-subcat-active img {
  border-color: #E2B75B;
}

.pm-subcat-chip.pm-subcat-active span {
  color: #E2B75B;
}

/* ══════════════════════════════════════

   MAIN CONTENT (#p)

══════════════════════════════════════ */

#p {

  width: 100%;

  min-height: 1px;

  padding: 0 0 18px;

  display: grid;

  gap: 14px;

  padding: 14px;

  align-items: start;

  grid-template-columns: repeat(4, minmax(0, 1fr));

}

@media (max-width: 900px)  { #p { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 600px)  { #p { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* date inputs are now inside .pm-date-pill — no separate hide rule needed */

/* ── API result cards ─────────────────────────────────────────────────────── */

.pm-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: rgba(255,255,255,.04);
  border: 2px dashed rgba(37,79,73,.2);
  border-radius: 16px;
  margin: 12px;
}

.pm-api-card {

  background: var(--surface, #fff);

  border-radius: var(--poster-r, 16px);

  overflow: hidden;

  cursor: pointer;

  border: 2px solid var(--gold-lt, #EBDAB6);

  box-shadow: 0 4px 14px rgba(0,0,0,.09);

  display: flex;

  flex-direction: column;

  transition: transform .12s, box-shadow .12s;

}

.pm-api-card:hover {

  transform: translateY(-3px);

  box-shadow: 0 8px 22px rgba(0,0,0,.14);

}

/* Image area */

.pm-api-img-wrap {

  width: 100%;

  aspect-ratio: 3/4;

  overflow: hidden;

  background: #d9e7ee;

  flex-shrink: 0;

  position: relative;  /* essential for overlay positioning */

}

.pm-api-img {

  width: 100%; height: 100%;

  object-fit: cover; display: block;

  transition: transform .3s ease;

}

.pm-api-card:hover .pm-api-img { transform: scale(1.04); }

/* Title overlay on image */

.pm-api-overlay {

  position: absolute;

  bottom: 0; left: 0; right: 0;

  padding: 28px 8px 8px;

  background: linear-gradient(to bottom, transparent 0%, rgba(22,58,52,.9) 50%);

  pointer-events: none;

}

.pm-api-title {

  font-family: 'League Spartan', sans-serif;

  font-weight: 900;

  font-size: clamp(.72rem, 2.5vw, 1rem);  /* bigger on mobile */

  letter-spacing: .04em;

  color: #fff;

  line-height: 1.2;

  text-shadow: 0 1px 5px rgba(0,0,0,.7);

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

}

.pm-api-subtitle {

  font-family: 'Oswald', sans-serif;

  font-size: .65rem;

  color: rgba(255,255,255,.8);

  margin-top: 2px;

  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

}

/* Action tabs — always visible, big enough to tap */

.pm-api-actions {

  display: flex;

  border-top: 2px solid rgba(0,0,0,.08);

  background: #fff;

  flex-shrink: 0;

  min-height: 32px;

}

.pm-api-btn {

  flex: 1;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 2px;

  background: transparent;

  border: none;

  border-right: 1px solid rgba(0,0,0,.08);

  color: var(--teal-dark);

  font-family: 'League Spartan', sans-serif;

  font-weight: 900;

  font-size: clamp(.58rem, 1.4vw, .72rem);

  letter-spacing: .04em;

  text-transform: uppercase;

  padding: 7px 1px;

  cursor: pointer;

  white-space: nowrap;

  transition: background .12s;

  -webkit-tap-highlight-color: transparent;

}

.pm-api-btn:last-child { border-right: none; }

.pm-api-btn:hover, .pm-api-btn:active { background: rgba(54,105,97,.12); }

/* Hide old unused elements */

.pm-api-backer, .pm-api-meta, .pm-api-summary { display: none; }

/* ── Results toolbar ────────────────────────────────────────────────────── */

#resultsToolbar {

  display: none; align-items: center;

  gap: 6px; padding: 10px 14px 6px; flex-wrap: wrap;

}

#resultsToolbar.visible { display: flex; }

.rv-back-btn {

  background: #E2B75B;

  border: 2px solid #E2B75B;

  border-radius: 8px;

  padding: 7px 16px;

  font-family: 'League Spartan', sans-serif;

  font-weight: 900;

  font-size: .82rem;

  letter-spacing: .08em;

  text-transform: uppercase;

  color: #F6E7B8 !important;

  cursor: pointer;

  transition: background .12s;

  flex-shrink: 0;

  box-shadow: 0 2px 8px rgba(0,0,0,.18);

}

.rv-back-btn:hover { background: #C99A38; }

.rv-btn {

  background: #E2B75B; border: 2px solid rgba(226,183,91,.3);

  border-radius: 8px; padding: 6px 12px;

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;

  color: #F6E7B8; cursor: pointer;

  transition: background .12s, border-color .12s;

}

.rv-btn:hover  { background: #C99A38; border-color: #E2B75B; color: #F6E7B8; }

.rv-btn.active { background: #E2B75B; color: #1a3530; border-color: #E2B75B; }

#resultsTitle {

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;

  color: var(--teal-dark);

}

/* ── Calendar view ────────────────────────────────────────────────────────── */

.rv-cal { padding: 0 14px 18px; }

.rv-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--teal-dark); border-radius: 10px 10px 0 0; overflow: hidden; }

.rv-cal-dh { padding: 7px 4px; font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-align: center; }

.rv-cal-body { display: grid; border: 1px solid var(--gold-lt); border-top: none; border-radius: 0 0 10px 10px; overflow: hidden; }

.rv-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--gold-lt); }

.rv-cal-cell { min-height: 64px; padding: 4px 5px; border-right: 1px solid var(--gold-lt); background: #fff; font-family: 'Oswald', sans-serif; }

.rv-cal-cell:last-child { border-right: none; }

.rv-cal-cell.other-month { background: #faf7f0; }

.rv-cal-num { font-size: .68rem; color: var(--muted); margin-bottom: 2px; display: block; }

.rv-cal-num.today { background: var(--gold); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: .62rem; }

.rv-cal-evt { font-size: .6rem; background: var(--teal-dark); color: #fff; border-radius: 3px; padding: 1px 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; display: block; font-family: 'Oswald', sans-serif; }

.rv-cal-evt:hover { background: #366961; }

.rv-cal-cell.rv-cal-has-evts:hover { background: #f0f8f6; }

.rv-cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 6px; font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: .88rem; color: var(--teal-dark); }

.rv-cal-nav button { background: none; border: 2px solid var(--gold-lt); border-radius: 8px; padding: 4px 12px; cursor: pointer; font-size: .9rem; color: var(--teal-dark); transition: background .12s; }

.rv-cal-nav button:hover { background: var(--gold-lt); }

@media (max-width: 500px) {

  .rv-cal-cell { min-height: 44px; padding: 2px 3px; }

  .rv-cal-dh { font-size: .55rem; padding: 5px 2px; }

}

/* Hours-away picker used in Getaway planner */

.pm-hours-select {

  width: 100%;

  background: #fff;

  border: 2px solid var(--gold-lt);

  border-radius: 8px;

  color: var(--teal-dark);

  font-family: 'Oswald', sans-serif;

  font-size: .9rem;

  padding: 8px 12px;

  outline: none;

  height: 40px;

  transition: border-color .15s;

  cursor: pointer;

}

.pm-hours-select:focus { border-color: var(--teal); }

/* ── Planner ──────────────────────────────────────────────────────────────── */

.planner-wrap {

  background: var(--cream);

  width: 100%;

  min-height: 60vh;

  padding: 0 0 60px;

  animation: plannerIn .3s cubic-bezier(.22,1,.36,1) both;

}

@keyframes plannerIn { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }

.planner-header {

  background: var(--teal-dark);

  padding: 16px 20px 0;

  position: sticky; top: 0; z-index: 50;

}

.planner-top {

  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;

}

.planner-title-input {

  flex: 1; background: #fff; border: 2px solid #9abfb9;

  border-radius: 8px; color: #1a3530; font-family: 'League Spartan', sans-serif;

  font-weight: 900; font-size: clamp(.95rem, 3vw, 1.3rem); letter-spacing: .02em;

  padding: 8px 14px; outline: none; transition: border-color .15s, box-shadow .15s;

  box-shadow: inset 0 1px 3px rgba(0,0,0,.06);

}

.planner-title-input::placeholder { color: #8aada8; }

.planner-title-input:focus { border-color: #366961; box-shadow: 0 0 0 3px rgba(54,105,97,.12); }

.planner-back {

  background: #E2B75B; border: 2px solid #E2B75B;

  border-radius: 8px; color: #F6E7B8; font-family: 'League Spartan', sans-serif;

  font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;

  padding: 8px 14px; cursor: pointer; flex-shrink: 0; transition: background .15s, color .15s;

  white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.15);

}

.planner-back:hover { background: #C99A38; color: #F6E7B8; }

.planner-save {

  background: #E2B75B; border: 2px solid #c9982e;

  border-radius: 8px; color: #1a3530; font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;

  padding: 8px 16px; cursor: pointer; flex-shrink: 0; transition: background .15s;

  white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.2);

}

.planner-save:hover { background: #F3C04D; }

/* Tabs */

.planner-tabs {

  display: flex; overflow-x: auto; gap: 0;

  scrollbar-width: none;

  background: #fff;

  border-top: 2px solid #E2B75B;

}

.planner-tabs::-webkit-scrollbar { display: none; }

.planner-tab {

  padding: 10px 16px;

  font-family: 'League Spartan', sans-serif;

  font-size: .8rem;

  font-weight: 900;

  letter-spacing: .07em;

  text-transform: uppercase;

  color: #254F49;

  border-bottom: 3px solid transparent;

  border-right: 2px solid #e8f0ef;

  margin-bottom: -1px;

  white-space: nowrap;

  cursor: pointer;

  transition: color .15s, border-color .15s, background .15s;

  user-select: none;

}

.planner-tab:hover {

  color: #366961;

  background: #f0f8f6;

}

.planner-tab.active {

  color: #1a3530;

  background: #e8f5f2;

  border-bottom-color: #E2B75B;

  font-weight: 900;

}

/* View toggle */

.planner-view-bar {

  display: flex; align-items: center; gap: 8px;

  padding: 12px 20px 0; flex-wrap: wrap;

}

.planner-view-btn {

  background: #fff; border: 2px solid #E2B75B;

  border-radius: 8px; color: #254F49; font-family: 'League Spartan', sans-serif;

  font-weight: 900; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;

  padding: 5px 12px; cursor: pointer; transition: all .15s;

  box-shadow: 0 1px 3px rgba(0,0,0,.1);

}

.planner-view-btn.active {

  background: #E2B75B; border-color: #C99A38; color: #1a3530;

}

.planner-view-btn:hover:not(.active) { background: #e8f5f2; }

/* Tab panels */

.planner-panel { display: none; padding: 20px; }

.planner-panel.active { display: block; }

/* Section card */

.planner-card {

  background: #fff; border: 2px solid var(--gold-lt); border-radius: 14px;

  padding: 18px 20px; margin-bottom: 14px;

}

.planner-card-head {

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .88rem; letter-spacing: .08em; text-transform: uppercase;

  color: var(--teal-dark); margin-bottom: 14px;

  display: flex; align-items: center; justify-content: space-between;

}

.planner-add-btn {

  background: #E2B75B; border: none; border-radius: 6px;

  color: #F6E7B8; font-family: 'Oswald', sans-serif; font-size: .75rem;

  letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px;

  cursor: pointer; transition: background .15s;

}

.planner-add-btn:hover { background: #C99A38; }

/* Items in What tab */

.plan-item-row {

  display: flex; align-items: flex-start; gap: 12px;

  padding: 10px 0; border-bottom: 1px solid var(--border);

}

.plan-item-row:last-child { border-bottom: none; }

.plan-item-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.plan-item-info { flex: 1; min-width: 0; }

.plan-item-title {

  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: .9rem;

  color: var(--teal-dark); margin-bottom: 2px;

  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

}

.plan-item-meta { font-size: .75rem; color: var(--muted); letter-spacing: .03em; }

.plan-item-del {

  background: none; border: none; color: var(--muted); font-size: 1rem;

  cursor: pointer; padding: 2px 6px; border-radius: 4px; flex-shrink: 0;

  transition: color .15s, background .15s;

}

.plan-item-del:hover { color: var(--error); background: rgba(192,57,43,.08); }

/* Inline add form */

.plan-inline-form {

  background: var(--cream); border: 2px dashed var(--gold-lt); border-radius: 10px;

  padding: 14px; margin-top: 10px; display: none;

}

.plan-inline-form.open { display: block; }

.plan-fg { margin-bottom: 10px; }

.plan-fg label {

  display: block; font-family: 'Oswald', sans-serif; font-size: .68rem;

  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;

  color: var(--teal); margin-bottom: 4px;

}

.plan-fg input, .plan-fg select, .plan-fg textarea,

.plan-fg-input {

  width: 100%; background: #fff; border: 2px solid #9abfb9;

  border-radius: 8px; color: var(--text); font-family: 'Oswald', sans-serif;

  font-size: .9rem; padding: 7px 12px; outline: none; height: 40px;

  transition: border-color .15s, box-shadow .15s;

  box-shadow: inset 0 1px 3px rgba(0,0,0,.06);

}

.plan-fg textarea { height: auto; min-height: 70px; padding: 8px 12px; resize: vertical; }

.plan-fg input:focus, .plan-fg select:focus, .plan-fg textarea:focus,

.plan-fg-input:focus {

  border-color: #366961;

  box-shadow: 0 0 0 3px rgba(54,105,97,.12), inset 0 1px 3px rgba(0,0,0,.06);

}

.plan-fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.plan-fg-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

@media(max-width:540px){ .plan-fg-row,.plan-fg-row3 { grid-template-columns:1fr; } }

/* Who tab - member list */

.who-member {

  display: flex; align-items: center; gap: 12px;

  padding: 10px 0; border-bottom: 1px solid var(--border);

}

.who-member:last-child { border-bottom: none; }

.who-avatar {

  width: 36px; height: 36px; border-radius: 50%; background: var(--teal-dark);

  display: flex; align-items: center; justify-content: center;

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .9rem; color: var(--gold); flex-shrink: 0;

}

.who-name { font-family: 'Oswald', sans-serif; font-size: .9rem; color: var(--teal-dark); flex: 1; }

.who-role {

  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;

  padding: 3px 9px; border-radius: 20px; background: rgba(54,105,97,.1); color: var(--teal-dark);

}

/* Invite box */

.planner-invite-box {

  display: flex; align-items: center; gap: 10px; margin-top: 14px;

  background: #fff; border: 2px solid var(--gold-lt); border-radius: 10px; padding: 12px 14px;

}

.planner-invite-url {

  flex: 1; font-family: monospace; font-size: .8rem; color: var(--muted);

  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

}

.planner-copy-btn {

  background: #E2B75B; border: none; border-radius: 6px;

  color: #F6E7B8; font-family: 'Oswald', sans-serif; font-size: .75rem;

  letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px;

  cursor: pointer; flex-shrink: 0; transition: background .15s;

}

.planner-copy-btn:hover { background: #C99A38; }

/* Calendar view */

.planner-cal { overflow-x: auto; }

.planner-cal-grid {

  display: grid; border: 2px solid var(--gold-lt); border-radius: 12px; overflow: hidden;

  min-width: 480px;

}

.planner-cal-head {

  display: grid; background: #1a2a26;

}

.planner-cal-day-head {

  padding: 10px 8px; font-family: 'Oswald', sans-serif; font-size: .78rem;

  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;

  color: rgba(255,255,255,.8); text-align: center; border-right: 1px solid rgba(255,255,255,.1);

}

.planner-cal-day-head:last-child { border-right: none; }

.planner-cal-body { display: grid; }

.planner-cal-week { display: grid; border-top: 1px solid var(--border); }

.planner-cal-cell {

  min-height: 80px; padding: 6px; border-right: 1px solid var(--border);

  background: #fff; vertical-align: top; position: relative;

}

.planner-cal-cell:last-child { border-right: none; }

.planner-cal-cell.other-month { background: #faf7f0; }

.planner-cal-cell.today { background: rgba(54,105,97,.06); }

.planner-cal-date {

  font-family: 'Oswald', sans-serif; font-size: .78rem; font-weight: 700;

  color: var(--muted); margin-bottom: 4px;

}

.planner-cal-date.today-num {

  background: #E2B75B; color: #1a3530; border-radius: 50%;

  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;

}

.planner-cal-event {

  background: #E2B75B; color: #1a3530; border-radius: 4px;

  padding: 2px 6px; font-size: .7rem; font-family: 'Oswald', sans-serif;

  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

  cursor: pointer;

}

.planner-cal-event.transport { background: #8b4513; }

.planner-cal-event.lodging   { background: var(--gold); color: #333; }

/* Map view */

#plannerMap { width: 100%; height: 400px; border-radius: 12px; border: 2px solid var(--gold-lt); }

/* List view with images */

.plan-list-item {

  display: flex; gap: 14px; align-items: flex-start;

  background: #fff; border: 2px solid var(--gold-lt); border-radius: 12px;

  padding: 14px; margin-bottom: 10px; transition: border-color .15s;

}

.plan-list-item:hover { border-color: var(--teal); }

.plan-list-img {

  width: 80px; height: 60px; object-fit: cover; border-radius: 8px;

  background: #1a2a26; flex-shrink: 0;

}

.plan-list-img-ph {

  width: 80px; height: 60px; border-radius: 8px; background: var(--cream);

  border: 2px solid var(--gold-lt); display: flex; align-items: center;

  justify-content: center; font-size: 1.6rem; flex-shrink: 0;

}

.plan-list-info { flex: 1; min-width: 0; }

.plan-list-title {

  font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: .9rem;

  color: var(--teal-dark); margin-bottom: 3px;

}

.plan-list-meta { font-size: .75rem; color: var(--muted); line-height: 1.6; letter-spacing: .03em; }

.plan-list-type {

  display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .68rem;

  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px;

}

.plan-list-type.event        { background: rgba(54,105,97,.1);  color: var(--teal-dark); }

.plan-list-type.transportation { background: rgba(139,69,19,.1); color: #6b3410; }

.plan-list-type.lodging      { background: rgba(223,146,6,.12); color: #7a5600; }

/* Empty state */

.planner-empty {

  text-align: center; padding: 40px 20px; color: var(--muted);

  font-family: 'Oswald', sans-serif; letter-spacing: .04em;

}

.planner-empty .pe-icon { font-size: 2.5rem; margin-bottom: 10px; }

/* ── Wizard ─────────────────────────────────────────────────────────────────── */

.wiz-shell { background: var(--cream); min-height: 60vh; animation: plannerIn .3s cubic-bezier(.22,1,.36,1) both; }

.wiz-header {

  background: #E2B75B;

  border-bottom: 3px solid #E2B75B;

  padding: 14px 16px 16px;

  position: sticky; top: 0; z-index: 50;

}

.wiz-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.wiz-back-btn {

  background: #E2B75B; border: 2px solid #c9982e; border-radius: 8px;

  color: #1a3530; font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;

  padding: 7px 14px; cursor: pointer; flex-shrink: 0; transition: background .15s;

  box-shadow: 0 2px 6px rgba(0,0,0,.2);

}

.wiz-back-btn:hover { background: #F3C04D; }

.wiz-header-title {

  flex: 1; font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: clamp(.9rem, 2.5vw, 1.15rem); letter-spacing: .05em;

  text-transform: uppercase; color: #F6E7B8;

  text-shadow: 0 1px 3px rgba(0,0,0,.35);

}

.wiz-steps { display: flex; align-items: center; }

.wiz-step-dot {

  width: 26px; height: 26px; border-radius: 50%;

  display: flex; align-items: center; justify-content: center;

  font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: .72rem;

  border: 2px solid rgba(255,255,255,.3); color: rgba(255,255,255,.5);

  background: rgba(255,255,255,.08); flex-shrink: 0; transition: all .2s;

}

.wiz-step-dot.done { background: #2d7a6e; border-color: #2d7a6e; color: #fff; }

.wiz-step-dot.active { background: #E2B75B; border-color: #E2B75B; color: #1a3530; }

.wiz-step-line { width: 20px; height: 2px; background: rgba(255,255,255,.2); flex-shrink: 0; }

.wiz-step-line.done { background: #2d7a6e; }

.wiz-body { padding: 18px 16px 60px; max-width: 680px; margin: 0 auto; }

.wiz-section-title {

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: clamp(1.05rem, 3vw, 1.3rem); letter-spacing: .04em;

  color: var(--teal-dark); margin-bottom: 4px;

}

.wiz-section-sub {

  font-family: 'Oswald', sans-serif; font-size: .84rem;

  color: var(--muted); letter-spacing: .03em; margin-bottom: 18px;

}

.wiz-field { margin-bottom: 14px; }

.wiz-label {

  display: block; font-family: 'Oswald', sans-serif; font-size: .68rem;

  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;

  color: var(--teal); margin-bottom: 5px;

}

.wiz-input {

  width: 100%; background: #fff; border: 2px solid #9abfb9;

  border-radius: 10px; color: #1a3530; font-family: 'Oswald', sans-serif;

  font-size: 1rem; padding: 10px 14px; outline: none; height: 46px;

  transition: border-color .15s, box-shadow .15s;

}

.wiz-input:focus { border-color: #366961; box-shadow: 0 0 0 3px rgba(54,105,97,.15); }

.wiz-input::placeholder { color: #8aada8; }

.wiz-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media(max-width:460px){ .wiz-input-row { grid-template-columns: 1fr; } }

.wiz-type-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 8px; }

@media(min-width:480px){ .wiz-type-grid { grid-template-columns: repeat(4,1fr); } }

.wiz-type-card { border-radius: 14px; overflow: hidden; cursor: pointer;

  border: 3px solid transparent; transition: border-color .15s, transform .12s; }

.wiz-type-card:hover { transform: translateY(-2px); }

.wiz-type-card.selected { border-color: #E2B75B; }

.wiz-type-inner { aspect-ratio: 1/1; display: flex; flex-direction: column;

  align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; text-align: center; }

.wiz-type-icon { font-size: clamp(1.8rem,5vw,2.4rem); line-height: 1; }

.wiz-type-label { font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: clamp(.72rem,2vw,.88rem); letter-spacing: .06em; text-transform: uppercase;

  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); line-height: 1.2; }

.wiz-type-desc { font-family: 'Oswald', sans-serif; font-size: .68rem;

  color: rgba(255,255,255,.75); letter-spacing: .03em; }

.wiz-divider {

  font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: .78rem;

  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark);

  padding: 10px 0 8px; border-top: 2px solid var(--gold-lt); margin-top: 8px;

}

.wiz-interest-cats { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

.wiz-cat-btn {

  width: 100%; display: flex; align-items: center; gap: 10px;

  background: #fff; border: 2px solid #9abfb9; border-radius: 10px;

  padding: 11px 14px; cursor: pointer; text-align: left;

  font-family: 'Oswald', sans-serif; font-size: .9rem; color: var(--teal-dark);

  transition: all .15s;

}

.wiz-cat-btn:hover, .wiz-cat-btn.open { border-color: #366961; background: #e8f5f2; }

.wiz-cat-icon { font-size: 1.1rem; flex-shrink: 0; }

.wiz-cat-caret { margin-left: auto; font-size: .7rem; color: var(--muted); flex-shrink: 0; }

.wiz-cat-count { background: #366961; color: #F3C04D; border-radius: 99px;

  padding: 1px 7px; font-size: .68rem; font-weight: 900; font-family: 'League Spartan', sans-serif; }

.wiz-pills { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 4px 4px; }

.wiz-pill {

  display: flex; align-items: center; gap: 6px;

  background: #fff; border: 2px solid #9abfb9; border-radius: 999px;

  padding: 6px 13px; cursor: pointer;

  font-family: 'Oswald', sans-serif; font-size: .84rem; color: #1a3530;

  transition: all .15s; user-select: none;

}

.wiz-pill:hover { border-color: #366961; background: #f0f8f6; }

.wiz-pill.selected { background: #366961; border-color: #254d46; color: #F6E7B8; }

.wiz-cta {

  width: 100%; padding: 13px;

  background: #E2B75B;

  border: none; border-radius: 12px; color: #F6E7B8;

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .95rem; letter-spacing: .1em; text-transform: uppercase;

  cursor: pointer; transition: opacity .15s;

  box-shadow: 0 4px 14px rgba(54,105,97,.35);

  display: flex; align-items: center; justify-content: center; gap: 10px;

  margin-top: 8px;

}

.wiz-cta:hover { opacity: .9; }

/* Result section cards */

.wiz-section-card { background: #fff; border: 2px solid #9abfb9; border-radius: 14px; margin-bottom: 16px; overflow: visible; }

.wiz-section-card-head {

  display: flex; align-items: center; gap: 10px; padding: 13px 16px;

  border-bottom: 2px solid #e8f5f2;

  background: #E2B75B;

}

.wiz-section-card-icon { font-size: 1.2rem; }

.wiz-section-card-title {

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: #F6E7B8; flex: 1;

}

.wiz-section-card-body {

  padding: 12px 14px; max-height: 340px; overflow-y: auto;

  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #9abfb9 transparent;

}

.wiz-section-card-body::-webkit-scrollbar { width: 5px; }

.wiz-section-card-body::-webkit-scrollbar-thumb { background: #9abfb9; border-radius: 99px; }

.wiz-result-list { min-height: 40px; }

.wiz-result-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--gold-lt); }

.wiz-spinner {

  display: flex; align-items: center; gap: 10px; padding: 18px 0;

  font-family: 'Oswald', sans-serif; font-size: .85rem; color: var(--muted); letter-spacing: .04em;

}

.wiz-spinner::before {

  content: ''; width: 20px; height: 20px; border-radius: 50%;

  border: 3px solid #9abfb9; border-top-color: #366961;

  animation: wizSpin .7s linear infinite; flex-shrink: 0;

}

@keyframes wizSpin { to { transform: rotate(360deg); } }

.wiz-no-results { font-family: 'Oswald', sans-serif; font-size: .85rem; color: var(--muted);

  padding: 16px 0; text-align: center; }

/* Trip calendar overlay */

#wizCalOverlay {

  position: fixed; inset: 0; z-index: 9000;

  background: rgba(20,48,44,.55); backdrop-filter: blur(3px);

  display: flex; align-items: center; justify-content: center; padding: 16px;

  animation: wizFadeIn .18s ease both;

}

@keyframes wizFadeIn { from{opacity:0} to{opacity:1} }

#wizCalPopup {

  background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.35);

  width: 100%; max-width: 400px; overflow: hidden;

  animation: wizSlideUp .22s cubic-bezier(.22,1,.36,1) both;

}

@keyframes wizSlideUp { from{transform:translateY(24px);opacity:0} to{transform:none;opacity:1} }

.wiz-cal-head {

  background: #E2B75B; border-bottom: 3px solid #E2B75B;

  padding: 14px 16px 12px; display: flex; align-items: flex-start; gap: 12px;

}

.wiz-cal-close { background: none; border: none; color: rgba(255,255,255,.7);

  font-size: 1.2rem; cursor: pointer; padding: 0; flex-shrink: 0; line-height: 1; }

.wiz-cal-close:hover { color: #fff; }

.wiz-cal-item-name { font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .88rem; color: #F6E7B8; margin-bottom: 2px;

  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wiz-cal-item-meta { font-family: 'Oswald', sans-serif; font-size: .72rem; color: rgba(255,255,255,.7); }

.wiz-cal-body { padding: 14px 16px 18px; }

.wiz-cal-label { font-family: 'Oswald', sans-serif; font-size: .72rem; font-weight: 700;

  letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }

.wiz-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; margin-bottom: 12px; }

.wiz-cal-dow { text-align: center; font-family: 'Oswald', sans-serif; font-size: .6rem;

  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }

.wiz-cal-day {

  aspect-ratio: 1/1; border-radius: 7px;

  display: flex; flex-direction: column; align-items: center; justify-content: center;

  cursor: pointer; border: 2px solid transparent; padding: 2px; transition: background .12s;

}

.wiz-cal-day:hover { background: #e8f5f2; border-color: #9abfb9; }

.wiz-cal-day.selected { background: #366961 !important; border-color: #254F49; }

.wiz-cal-day.selected .wiz-cal-dn { color: #F6E7B8; }

.wiz-cal-day.in-span { background: #d4ede9; }

.wiz-cal-day.has-item { background: #f0f8f6; }

.wiz-cal-day.empty { cursor: default; opacity: 0; pointer-events: none; }

.wiz-cal-dn { font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: clamp(.7rem,2.5vw,.86rem); color: var(--teal-dark); line-height: 1; }

.wiz-cal-dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; margin-top: 2px; }

.wiz-cal-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.wiz-cal-legend { border-top: 1px solid var(--gold-lt); padding-top: 10px; margin-bottom: 10px;

  max-height: 110px; overflow-y: auto; }

.wiz-cal-leg-row { display: flex; align-items: center; gap: 8px; padding: 2px 0;

  font-family: 'Oswald', sans-serif; font-size: .74rem; color: #333; }

.wiz-cal-leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.wiz-cal-confirm {

  width: 100%; padding: 11px; background: #E2B75B;

  border: none; border-radius: 10px; color: #F6E7B8;

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;

}

.wiz-cal-confirm:disabled { opacity: .4; cursor: not-allowed; }

/* Shared result buttons */

.wiz-btn-solid {

  background: #E2B75B; color: #1a3530;

  border: none; border-radius: 6px; padding: 6px 12px;

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;

  cursor: pointer; white-space: nowrap;

}

.wiz-btn-outline {

  background: #fff; color: #254F49; border: 2px solid #9abfb9; border-radius: 6px;

  padding: 5px 11px; font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;

  cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block;

}

.wiz-btn-added {

  background: #2d7a6e; color: #fff; border: none; border-radius: 6px;

  padding: 6px 12px; font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;

  cursor: default; white-space: nowrap;

}

/* Itinerary */

.wiz-itinerary { background: #fff; border: 2px solid #9abfb9; border-radius: 14px; margin-bottom: 16px; overflow: hidden; }

.wiz-itin-date { background: #E2B75B; padding: 8px 14px;

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #F3C04D; }

.wiz-itin-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px;

  border-bottom: 1px solid var(--gold-lt); }

.wiz-itin-time { display: flex; flex-direction: column; align-items: center;

  flex-shrink: 0; min-width: 36px; }

.wiz-itin-t { font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .76rem; white-space: nowrap; }

.wiz-itin-et { font-size: .6rem; color: var(--muted); white-space: nowrap; }

.wiz-itin-thumb { width: 50px; height: 42px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }

.wiz-itin-ph { width: 50px; height: 42px; border-radius: 6px; flex-shrink: 0;

  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.wiz-itin-info { flex: 1; min-width: 0; }

.wiz-itin-title { font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .87rem; color: var(--teal-dark); margin-bottom: 2px;

  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wiz-itin-meta { font-size: .7rem; color: var(--muted); }

.wiz-itin-del { background: none; border: none; color: #ccc; font-size: 1rem;

  cursor: pointer; flex-shrink: 0; padding: 2px 4px; }

.wiz-itin-del:hover { color: #e55; }

/* Wiz action bar at bottom of results */

.wiz-action-bar {

  background: #1a2a26; border-top: 2px solid #E2B75B;

  border-radius: 0 0 18px 18px;

  padding: 14px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 8px;

  margin-top: 20px;

}

/* Shared action button base — 2x2 grid inside wiz-action-bar */
.wiz-action-save, .wiz-action-invite, .wiz-action-cal, .wiz-action-sheet {

  border-radius: 10px;

  font-family: 'League Spartan', sans-serif; font-weight: 900;

  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;

  padding: 12px 10px; cursor: pointer;

  transition: background .15s, opacity .15s;

  display: flex; align-items: center; justify-content: center; gap: 6px;

  border: 2px solid transparent;

}

/* Save — primary gold */
.wiz-action-save {

  background: #E2B75B; color: #1a3530; border-color: #c9982e;

  box-shadow: 0 2px 8px rgba(226,183,91,.3);

}

.wiz-action-save:hover { background: #F3C04D; }

/* Invite — outlined */
.wiz-action-invite {

  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2);

}

.wiz-action-invite:hover { background: rgba(255,255,255,.15); }

/* Calendar — teal */
.wiz-action-cal {

  background: #2E6056; color: #E2B75B; border-color: rgba(226,183,91,.3);

}

.wiz-action-cal:hover { background: #3a7a6e; }

/* Spreadsheet — outlined gold */
.wiz-action-sheet {

  background: rgba(226,183,91,.12); color: #E2B75B; border-color: rgba(226,183,91,.4);

}

.wiz-action-sheet:hover { background: rgba(226,183,91,.22); }

/* Hide tabs/view-bar in wizard mode */

.planner-wrap.wiz-mode .planner-tabs,

.planner-wrap.wiz-mode .planner-view-bar { display: none !important; }

.pm-brand-main {
  font-family: "Chicle", "Cooper Black", "Cooper Std Black", Georgia, serif;
  font-size: clamp(2.3rem, 8.5vw, 4.5rem);
  line-height: .9;
  letter-spacing: .035em;
  color: #F6E7B8;
  text-shadow: 2px 2px 0 #C96C2B, 4px 4px 0 rgba(20,48,44,.45);
}
.pm-brand-tagline {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .45rem;
  font-family: "Archivo Black", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(.68rem, 2.4vw, 1rem);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F3C04D;
  text-shadow: 1px 1px 0 rgba(20,48,44,.7);
}
.pm-brand-tagline::before, .pm-brand-tagline::after {
  content: "";
  width: 28px;
  height: 3px;
  background: #E2B75B;
  border-radius: 999px;
}

/* ── Modal system ──────────────────────────────────────────────────────────── */
.pm-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  z-index: 10000; display: flex; align-items: flex-end;
  justify-content: center; padding: 0;
  animation: pmFadeIn .18s ease;
}
@media (min-width: 600px) {
  .pm-modal-overlay { align-items: center; padding: 20px; }
}
@keyframes pmFadeIn { from { opacity:0 } to { opacity:1 } }

.pm-modal {
  background: #0f2420; color: #F6E7B8;
  border: 2px solid #E2B75B; border-bottom: none;
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 680px;
  max-height: 92vh;
  display: flex; flex-direction: column;
  animation: pmSlideUp .22s ease;
  overflow-y: auto;
}
@media (min-width: 600px) {
  .pm-modal { border: 2px solid #E2B75B; border-radius: 20px; max-height: 88vh; }
}
@keyframes pmSlideUp { from { transform:translateY(40px);opacity:0 } to { transform:translateY(0);opacity:1 } }

.pm-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid rgba(226,183,91,.2);
  position: sticky; top: 0; background: #0f2420; z-index: 1;
}
.pm-modal-title {
  font-family: 'League Spartan', sans-serif; font-weight: 900;
  font-size: 1.05rem; color: #F6E7B8; letter-spacing: .04em;
}
.pm-modal-close {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 1.4rem; cursor: pointer; padding: 0 4px; line-height: 1;
}
.pm-modal-close:hover { color: #fff; }
.pm-modal-body { padding: 18px 20px; flex: 1; }

/* Modal tab bar */
.pm-modal-tabs {
  display: flex; gap: 0; border-bottom: 1px solid rgba(226,183,91,.2);
  padding: 0 16px; background: #0f2420;
  position: sticky; top: 57px; z-index: 1;
}
.pm-modal-tab {
  background: none; border: none; border-bottom: 3px solid transparent;
  color: rgba(255,255,255,.5); font-family: 'Oswald', sans-serif;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 14px; cursor: pointer; white-space: nowrap;
}
.pm-modal-tab.active { color: #E2B75B; border-bottom-color: #E2B75B; }
.pm-modal-tab-pane { display: none; }
.pm-modal-tab-pane.active { display: block; }

/* Accordion steps (plan wizard) */
.pm-accordion-step {
  border: 1px solid rgba(226,183,91,.25); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.pm-accordion-step-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: rgba(255,255,255,.04); cursor: pointer;
}
.pm-accordion-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #E2B75B; color: #1a3530;
  font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pm-accordion-step-num.done { background: #16a34a; color: #fff; }
.pm-accordion-step-title {
  font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: .9rem; color: #F6E7B8;
}
.pm-accordion-step-body { padding: 16px; border-top: 1px solid rgba(226,183,91,.15); }

/* Memory box grid */
.pm-mb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px;
}
.pm-mb-thumb {
  border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.06);
  border: 1px solid rgba(226,183,91,.2); cursor: pointer;
}
.pm-mb-thumb img, .pm-mb-thumb video {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.pm-mb-thumb-caption {
  padding: 6px 8px; font-family: 'Oswald', sans-serif;
  font-size: .72rem; color: rgba(255,255,255,.75); line-height: 1.4;
}
.pm-mb-embed { border-radius: 10px; overflow: hidden; margin-bottom: 10px; }

/* Upload drop zone */
.pm-drop-zone {
  border: 2px dashed rgba(226,183,91,.4); border-radius: 12px;
  padding: 32px 20px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pm-drop-zone.drag-over { border-color: #E2B75B; background: rgba(226,183,91,.08); }
.pm-drop-zone-icon { font-size: 2.5rem; margin-bottom: 8px; }
.pm-drop-zone-label { font-family: 'Oswald', sans-serif; color: rgba(255,255,255,.6); font-size: .85rem; }

/* Plan saved-state views */
.pm-plan-day-header {
  font-family: 'League Spartan', sans-serif; font-weight: 900;
  font-size: .82rem; color: #E2B75B; letter-spacing: .1em;
  text-transform: uppercase; padding: 10px 0 6px;
  border-bottom: 1px solid rgba(226,183,91,.2); margin-bottom: 8px;
}
.pm-plan-item-row {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06); align-items: flex-start;
}
.pm-plan-item-icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.pm-plan-item-info { flex: 1; min-width: 0; }
.pm-plan-item-title {
  font-family: 'League Spartan', sans-serif; font-weight: 700;
  font-size: .88rem; color: #F6E7B8; margin-bottom: 2px;
}
.pm-plan-item-meta { font-family: 'Oswald', sans-serif; font-size: .72rem; color: rgba(255,255,255,.5); }

/* Section cards inside the plan modal get dark theme */
.pm-modal .wiz-section-card {
  background: rgba(255,255,255,.05);
  border-color: rgba(226,183,91,.25);
  color: #F6E7B8;
}
.pm-modal .wiz-section-card-head {
  background: rgba(255,255,255,.04);
  border-bottom-color: rgba(226,183,91,.15);
}
.pm-modal .wiz-section-card-title { color: #E2B75B; }
.pm-modal .wiz-result-row {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.pm-modal .wiz-result-row:hover { background: rgba(255,255,255,.08); }
.pm-modal .wiz-spinner { color: rgba(255,255,255,.4); }
.pm-modal .wiz-error { color: #f87171; }
.pm-modal .wiz-no-results { color: rgba(255,255,255,.4); }
/* Hotel cards inside modal */
.pm-modal .wiz-hotels-body > div[style*="background:#fff"] {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(226,183,91,.25) !important;
  color: #F6E7B8 !important;
}

/* Memory box board responsive columns */
@media (max-width: 480px) {
  #rm-board-inner > div { column-count: 2 !important; }
}
@media (min-width: 481px) and (max-width: 768px) {
  #rm-board-inner > div { column-count: 3 !important; }
}
@media (min-width: 769px) {
  #rm-board-inner > div { column-count: 4 !important; }
}