/* A single planning surface: editable lists beside a persistent geographic map. */
.j-header { max-width:none; padding:14px 28px; background:white; position:sticky; top:0; z-index:35; }
.j-shell { max-width:1800px; padding:0 28px 40px; }
.j-hero { grid-template-columns:1fr; padding:28px 0 24px; gap:0; }
.j-hero h1 { font-size:clamp(25px,3vw,38px); margin-bottom:8px; }
.j-hero .j-kicker { margin-bottom:8px; }
.j-hero-note { display:none; }
.jw-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,.95fr); gap:28px; align-items:start; }
.jw-content { min-width:0; }
.j-tabs { gap:6px; overflow-x:auto; margin:0 0 20px; }
.j-tabs button { padding:15px 11px; font-size:13px; }
.j-columns { display:flex; flex-direction:column; gap:20px; }
.j-discover { position:static; width:100%; max-height:none; }
.j-itinerary { width:100%; min-width:0; }
.j-place-list { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:380px; overflow:auto; }
.j-setup .j-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.j-saved-grid,.j-event-grid,.j-budget-grid { grid-template-columns:minmax(0,1fr); }
.jw-map-panel { position:sticky; top:100px; border:1px solid #d8e1ec; border-radius:20px; background:white; overflow:hidden; min-width:0; box-shadow:0 8px 32px #18345308; }
.jw-map-head { display:flex; justify-content:space-between; align-items:center; padding:18px 20px; gap:10px; }
.jw-map-head h2 { margin:0; font-size:18px; }
.jw-map-head .j-kicker { margin:0 0 5px; font-size:9px; }
.jw-map-canvas { height:clamp(280px,48vh,580px); background:#e9eef4; }
.jw-map-canvas iframe { display:block; border:0; width:100%; height:100%; }
#jwMapNote { padding:0 18px; margin:10px 0; }
.jw-map-places { display:flex; gap:7px; overflow:auto; padding:10px 18px; }
.jw-map-places button { flex:none; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border:1px solid #d5dfec; border-radius:22px; background:white; padding:10px 13px; color:#27496b; font-size:12px; }
.jw-map-places button[aria-pressed=true] { background:#2457bb; color:white; border-color:#2457bb; }
.jw-map-selected { padding:0 20px 18px; max-height:180px; overflow:auto; }
.jw-map-selected h3 { margin:8px 0 4px; }
.jw-map-selected p { margin:5px 0; font-size:12px; color:#536880; }
.jw-map-toggle,#jwMapClose { display:none; }
.jw-stay-filters { display:grid; grid-template-columns:1fr 1fr; gap:14px; background:white; border:1px solid #d8e1ec; border-radius:14px; padding:18px; }
.jw-stay-filters label:last-child { grid-column:1/-1; }
.jw-stay-card { border:1px solid #d8e1ec; background:white; border-radius:16px; margin-bottom:16px; overflow:hidden; }
.jw-stay-card[aria-current=true] { border-color:#2457bb; box-shadow:0 0 0 1px #2457bb; }
.jw-stay-main { display:flex; gap:16px; padding:18px; align-items:flex-start; }
.jw-stay-main img { width:110px; height:110px; object-fit:cover; border-radius:12px; flex:none; }
.jw-stay-info { min-width:0; flex:1; }
.jw-stay-info h3 { margin:3px 0 8px; overflow-wrap:anywhere; }
.jw-stay-info p { font-size:12px; margin:5px 0; color:#536880; overflow-wrap:anywhere; }
.jw-stay-outlets { border-top:1px solid #e3e9f2; background:#fafbfd; padding:14px 18px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; font-size:12px; }
.jw-stay-outlets p { margin:0; color:#64748b; }
.jw-stay-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.jw-stay-search-form { padding:20px; border:1px solid #d8e1ec; background:#fff; border-radius:16px; margin:0 0 18px; }
.jw-stay-search-form .j-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.jw-stay-search-form label,.jw-stay-filters label { min-width:0; }
.jw-stay-search-form input,.jw-stay-search-form select,.jw-stay-filters input,.jw-stay-filters select { width:100%; min-width:0; box-sizing:border-box; }
.jw-stay-search-form .j-tools { flex-wrap:wrap; }
.jw-stay-filters .jw-stay-city { grid-column:1/-1; }
.jw-stay-main > .j-placeholder { width:86px; height:90px; flex:none; border-radius:12px; display:grid; place-items:center; font-size:11px; text-align:center; background:#edf2f8; color:#6b7f96; padding:8px; box-sizing:border-box; }
.jw-stay-outlets a { overflow-wrap:anywhere; line-height:1.5; }
.jw-stay-outlets .jw-stay-match-note { font-size:11px; margin:8px 0 0; }
.jw-stay-property-search { padding-top:12px; border-top:1px solid #e3e9f2; }
.jw-stay-details { grid-column:1/-1; min-width:0; border-top:1px solid #e3e9f2; }
.jw-stay-details summary { padding:14px 18px; min-height:44px; box-sizing:border-box; color:#234f9a; font-size:13px; font-weight:700; cursor:pointer; overflow-wrap:anywhere; }
.jw-stay-details summary:hover,.jw-stay-details summary:focus-visible { background:#f2f6fd; }
.jw-stay-details summary:focus-visible { outline:2px solid #2457bb; outline-offset:-3px; }
.jw-stay-detail-body { padding:0 18px 18px; min-width:0; overflow-wrap:anywhere; }
.jw-stay-detail-body h4 { font-size:13px; color:#203f60; margin:16px 0 10px; }
.jw-stay-detail-body > h4:first-child { margin-top:4px; }
.jw-stay-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; margin:0; }
.jw-stay-detail-grid > div { min-width:0; }
.jw-stay-detail-grid dt { color:#536880; font-size:11px; line-height:1.6; }
.jw-stay-detail-grid dd { margin:3px 0 0; color:#213c58; font-size:13px; line-height:1.6; }
.jw-stay-detail-body .jw-stay-detail-note { display:block; color:#62758a; font-size:11px; line-height:1.7; margin:10px 0 0; }
.jw-stay-detail-grid .jw-stay-detail-note { margin-top:4px; }
.jw-stay-facilities { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; list-style:none; padding:0; margin:0; }
.jw-stay-facilities li { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; min-width:0; font-size:12px; line-height:1.6; }
.jw-stay-facility-state { color:#68798b; font-size:11px; }
.jw-stay-facility-state[data-available=true] { color:#246451; }
.jw-stay-detail-source { margin:10px 0 0; font-size:11px; }
.jw-stay-reviews { border-top:1px solid #e3e9f2; margin-top:16px; padding-top:2px; }
.jw-stay-reviews > a { display:inline-block; font-size:13px; line-height:1.6; padding:5px 0; }
@media(max-width:430px) { .jw-stay-details summary { padding:14px 13px; } .jw-stay-detail-body { padding:0 13px 14px; } .jw-stay-detail-grid,.jw-stay-facilities { grid-template-columns:minmax(0,1fr); } }
.jw-stay-search-links { padding:20px; background:#fff; border:1px solid #d8e1ec; border-radius:16px; margin-top:20px; }
.jw-stay-search-links h3 { margin:0 0 8px; }
.jw-stay-search-links .j-provider { display:flex; flex-direction:column; align-items:flex-start; gap:5px; padding:13px; }
.jw-stay-search-links .j-provider span { font-size:11px; color:#566d88; font-weight:400; }
#jwStaySource { line-height:1.7; overflow-wrap:anywhere; }
@media(min-width:961px) { .jw-stay-card { display:grid; grid-template-columns:minmax(0,1fr) 160px; } .jw-stay-outlets { border-top:0; border-left:1px solid #e3e9f2; align-content:center; } }
@media(max-width:960px) {
 .j-header { position:static; padding:14px 18px; }
 .j-shell { padding:0 16px 90px; }
 .jw-layout { display:block; }
 .jw-map-panel { display:none; }
 .jw-map-toggle { display:inline-flex; position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:40; border-radius:30px; box-shadow:0 6px 24px #162e4b33; }
 body.jw-show-map .jw-map-panel { display:block; position:fixed; inset:12px 12px 86px; z-index:60; overflow:auto; }
 body.jw-show-map .jw-map-canvas { height:45vh; min-height:220px; }
 body.jw-show-map #jwMapClose { display:inline-flex; }
 .j-tabs { position:static; }
 .jw-map-head { padding:14px; }
}
@media(max-width:430px) { .jw-stay-main { gap:10px; padding:13px; } .jw-stay-main img { width:76px; height:88px; } .jw-stay-filters { grid-template-columns:minmax(0,1fr); } .jw-stay-filters label:last-child { grid-column:auto; } .jw-stay-outlets { padding:13px; } }
@media(max-width:430px) { .jw-stay-search-form,.jw-stay-search-links { padding:14px; } .jw-stay-search-form .j-form-grid { grid-template-columns:minmax(0,1fr); } .jw-stay-main > .j-placeholder { width:66px; height:78px; } .jw-stay-city { grid-column:auto; } }
@media print { .jw-layout { display:block; } .jw-map-panel,.jw-map-toggle { display:none!important; } }

@media(min-width:961px) and (max-width:1400px) { .jw-stay-main img { width:76px; height:90px; } .jw-stay-main { padding:14px; gap:10px; } .jw-stay-card { grid-template-columns:minmax(0,1fr) 140px; } }

/* Readable journey discovery; keep the supporting map and reminders compact. */
body.journey-page {
  font-size: 16px;
  line-height: 1.55;
}
body.journey-page .j-shell {
  max-width: 1600px;
  padding: 0 32px 40px;
}
body.journey-page .j-hero {
  padding: 24px 0 16px;
}
body.journey-page .j-hero h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
body.journey-page .j-hero .j-kicker {
  font-size: 12px;
  margin-bottom: 8px;
}
body.journey-page .j-lead {
  font-size: 16px;
  max-width: 65ch;
}
body.journey-page .tm-travel-tools {
  gap: 8px;
  margin: 0 0 16px;
}
body.journey-page .tm-travel-tools a {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}
body.journey-page .jw-layout {
  grid-template-columns: minmax(0, 1fr) clamp(320px, 31%, 420px);
  gap: 24px;
}
body.journey-page .j-tabs {
  gap: 8px;
  margin-bottom: 16px;
}
body.journey-page .j-tabs button {
  min-height: 48px;
  padding: 12px;
  font-size: 16px;
}
body.journey-page .j-shell label,
body.journey-page .j-muted,
body.journey-page .j-fine,
body.journey-page .j-link-row,
body.journey-page .j-storage,
body.journey-page .j-stop-meta,
body.journey-page .j-stop-address,
body.journey-page .j-stop-note {
  font-size: 14px;
}
body.journey-page .j-button {
  min-height: 44px;
  font-size: 14px;
}
body.journey-page .j-shell input,
body.journey-page .j-shell select,
body.journey-page .j-shell textarea {
  font-size: 16px;
}
body.journey-page .j-discover {
  overflow: visible;
  padding: 20px;
}
body.journey-page .j-discover .j-section-head {
  margin-bottom: 12px;
}
body.journey-page #jSearchStatus,
body.journey-page #jDiscoveryStatus,
body.journey-page #jDiscoverySource,
body.journey-page #jCatalogNote {
  margin: 8px 0;
}
body.journey-page #jDiscoveryStatus:empty,
body.journey-page #jDiscoverySource:empty {
  margin: 0;
}
body.journey-page .j-day-picker {
  margin: 16px 0;
}
body.journey-page :is(#jSearchResults, #jSavedList) {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-height: none;
  overflow: visible;
  margin: 16px 0;
}
body.journey-page :is(#jSearchResults, #jSavedList) .j-place-top {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
}
body.journey-page :is(#jSearchResults, #jSavedList) .j-place-top > div:last-child {
  min-width: 0;
}
body.journey-page :is(#jSearchResults, #jSavedList) .j-place img,
body.journey-page :is(#jSearchResults, #jSavedList) .j-placeholder {
  width: 112px;
  min-width: 112px;
  height: 112px;
  flex: none;
  border-radius: 12px;
}
body.journey-page :is(#jSearchResults, #jSavedList) .j-placeholder {
  font-size: 14px;
}
body.journey-page :is(#jSearchResults, #jSavedList) .j-place h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  line-height: 1.4;
  word-break: keep-all;
}
body.journey-page :is(#jSearchResults, #jSavedList) .j-place small {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.journey-page :is(#jSearchResults, #jSavedList) .j-place-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
body.journey-page :is(#jSearchResults, #jSavedList) .j-place-actions .j-button {
  width: auto;
  min-width: 112px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
}
body.journey-page #jMorePlaces {
  margin-bottom: 12px;
}
body.journey-page .jw-map-panel {
  top: 94px;
  border-color: var(--tm-line);
  border-radius: 20px;
  box-shadow: 0 6px 28px #18243a08;
}
body.journey-page .jw-map-head {
  padding: 16px;
}
body.journey-page .jw-map-head h2 {
  font-size: 18px;
}
body.journey-page .jw-map-canvas {
  height: clamp(360px, 44vh, 420px);
  background: #f5f7fb;
}
body.journey-page .jw-map-places button {
  min-height: 44px;
  font-size: 14px;
}
body.journey-page .jw-map-selected p {
  font-size: 14px;
}
body.journey-page .jw-map-panel:has(.jw-map-selected-stay) .jw-map-canvas {
  height: clamp(220px, 30vh, 320px);
}
body.journey-page #jReminders .trm-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  padding: 16px;
  margin: 0 0 24px;
  box-shadow: none;
}
body.journey-page #jReminders .trm-heading {
  align-items: center;
  gap: 12px;
}
body.journey-page #jReminders .trm-bell {
  width: 32px;
  height: 32px;
  font-size: 20px;
}
body.journey-page #jReminders h2 {
  font-size: 18px;
  margin-bottom: 0;
}
body.journey-page #jReminders .trm-heading p {
  margin: 0;
  font-size: 14px;
}
body.journey-page #jReminders .trm-status {
  grid-column: 1 / -1;
  margin: 8px 0 0;
}
body.journey-page #jReminders .trm-status p {
  margin: 0;
}
body.journey-page #jReminders .trm-status-title {
  margin: 0 0 8px;
  font-size: 14px;
}
body.journey-page #jReminders .trm-settings {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  padding: 0;
  border-top: 0;
}
body.journey-page #jReminders .trm-settings[open] {
  grid-column: 1 / -1;
  grid-row: auto;
  border-top: 1px solid var(--tm-line);
  margin-top: 8px;
}
body.journey-page #jReminders .trm-settings > summary {
  min-height: 44px;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.4;
}
body.journey-page #jReminders .trm-alert {
  gap: 12px;
  padding: 12px;
  margin: 8px 0 0;
}
body.journey-page #jReminders .trm-alert h3 {
  font-size: 16px;
  margin: 0;
}
body.journey-page #jReminders .trm-alert-kind,
body.journey-page #jReminders .trm-limit {
  font-size: 12px;
}
body.journey-page #jReminders .trm-limit {
  grid-column: 1 / -1;
  margin: 8px 0 0;
}
body.journey-page #jReminders button {
  min-height: 44px;
  font-size: 14px;
}

/* Retain the shared stay refresh when this stylesheet loads last. */
body.journey-page .jw-stay-card {
  border-color: var(--tm-line);
  border-radius: 18px;
  box-shadow: 0 4px 22px #18243a04;
}
body.journey-page .jw-stay-card[aria-current=true] {
  border-color: var(--tm-blue);
  box-shadow: 0 0 0 2px #3563e91a;
}
body.journey-page .jw-stay-outlets,
body.journey-page .jw-stay-filters {
  background: #f9fbff;
}
body.journey-page .jw-stay-filters,
body.journey-page .jw-stay-search-form {
  border-color: var(--tm-line);
}
body.journey-page .jw-stay-facility-state[data-available=true] {
  color: var(--tm-blue);
}
body.journey-page .jw-stay-main > .j-placeholder {
  background: #edf2ff;
  color: #516eae;
}

@media (max-width: 960px) {
  body.journey-page .j-shell {
    padding: 0 24px 96px;
  }
  body.journey-page .j-tabs {
    position: sticky;
    top: 0;
    z-index: 30;
  }
  body.journey-page .jw-map-toggle {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  body.journey-page.jw-show-map .jw-map-panel {
    top: 12px;
  }
  body.journey-page.jw-show-map .jw-map-canvas {
    height: 45vh;
    min-height: 220px;
  }
  body.journey-page.jw-show-map .jw-map-panel:has(.jw-map-selected-stay) .jw-map-canvas {
    height: clamp(220px, 30vh, 320px);
  }
}
@media (max-width: 640px) {
  body.journey-page .j-header {
    padding-inline: 16px;
  }
  body.journey-page .j-shell {
    padding-inline: 16px;
  }
  body.journey-page .j-hero h1 {
    font-size: 24px;
    line-height: 1.25;
  }
  body.journey-page .j-discover {
    padding: 16px;
  }
  body.journey-page .j-tabs button {
    font-size: 14px;
    padding: 12px 8px;
  }
  body.journey-page :is(#jSearchResults, #jSavedList) .j-place-top {
    gap: 12px;
    padding: 12px;
  }
  body.journey-page :is(#jSearchResults, #jSavedList) .j-place img,
  body.journey-page :is(#jSearchResults, #jSavedList) .j-placeholder {
    width: 88px;
    min-width: 88px;
    height: 88px;
  }
  body.journey-page :is(#jSearchResults, #jSavedList) .j-place-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 12px;
  }
  body.journey-page :is(#jSearchResults, #jSavedList) .j-place-actions .j-button {
    min-width: 0;
    width: 100%;
  }
  body.journey-page :is(#jSearchResults, #jSavedList) .j-place-actions .j-button:first-child {
    grid-column: 1 / -1;
  }
  body.journey-page #jReminders .trm-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
    margin-bottom: 16px;
  }
  body.journey-page #jReminders .trm-settings {
    grid-column: 1;
    grid-row: auto;
  }
  body.journey-page #jReminders .trm-limit {
    margin-top: 0;
  }
  body.journey-page .jw-stay-outlets {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  body.journey-page .j-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
    overflow: visible;
  }
  body.journey-page .j-tabs button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
    line-height: 1.4;
  }
}
@media (max-width: 360px) {
  body.journey-page .j-shell {
    padding-inline: 12px;
  }
  body.journey-page .j-setup .j-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.journey-page :is(#jSearchResults, #jSavedList) .j-place-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
body.journey-page .jw-map-selected-stay {
  max-height: 320px;
}
@media (max-width: 960px) {
  body.journey-page .jw-map-selected-stay {
    max-height: none;
    overflow: visible;
  }
}
@media print {
  body.journey-page .j-shell {
    max-width: none;
    padding: 0;
  }
}

body.journey-page .j-hero .j-kicker { display: none; }
@media (max-width: 600px) {
  body.journey-page .j-header nav { display: none; }
  body.journey-page .j-header { justify-content: space-between; }
}

@media (max-width: 960px) {
  body.journey-page #jwMapToggle { display: inline-flex; position: static; transform: none; box-shadow: none; margin: 0; border-radius: 10px; background: var(--blue); color: white; min-height: 44px; justify-content: center; align-items: center; }
}

#jwMapNote{word-break:keep-all;overflow-wrap:break-word}
