/* Norvia Trip Workspace — consumer polish and aligned bento layout. */

#nv-trip-workspace .nv-tw-polish-origin {
  border: 1px solid rgba(42,61,46,.14);
  background: rgba(255,255,255,.82);
  color: #405246;
  cursor: pointer;
  font: inherit;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
#nv-trip-workspace .nv-tw-polish-origin:hover {
  transform: translateY(-1px);
  border-color: rgba(42,61,46,.28);
  background: #fff;
}

#nv-trip-workspace.nv-tw-polish-empty .nv-tw-hero {
  margin-bottom: 16px;
}
#nv-trip-workspace.nv-tw-polish-empty .nv-tw-title {
  max-width: 760px;
}

#nv-trip-workspace .nv-tw-polish-journey {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  min-height: 276px;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(42,61,46,.11);
  background:
    radial-gradient(circle at 14% 14%, rgba(196,149,106,.12), transparent 26%),
    radial-gradient(circle at 78% 0%, rgba(107,143,113,.10), transparent 29%),
    #fffdf8;
  box-shadow: 0 20px 58px rgba(42,61,46,.08);
}

#nv-trip-workspace .nv-tw-polish-copy {
  padding: 28px 30px 27px;
}
#nv-trip-workspace .nv-tw-polish-eyebrow {
  color: #8b938b;
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
#nv-trip-workspace .nv-tw-polish-copy h2 {
  margin: 0;
  color: #263b2d;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(27px, 2.25vw, 36px);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -.025em;
}
#nv-trip-workspace .nv-tw-polish-copy > p {
  max-width: 650px;
  margin: 9px 0 0;
  color: #70786f;
  font-size: 11.5px;
  line-height: 1.55;
}

#nv-trip-workspace .nv-tw-polish-route {
  display: grid;
  grid-template-columns: minmax(0,1fr) 86px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
#nv-trip-workspace .nv-tw-polish-stop {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid rgba(42,61,46,.11);
  background: rgba(255,255,255,.90);
  color: #2a3d2e;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 20px rgba(42,61,46,.045);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
#nv-trip-workspace .nv-tw-polish-stop:hover {
  transform: translateY(-2px);
  border-color: rgba(42,61,46,.24);
  box-shadow: 0 12px 28px rgba(42,61,46,.08);
}
#nv-trip-workspace .nv-tw-polish-stop span {
  color: #9a9f98;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
#nv-trip-workspace .nv-tw-polish-stop strong {
  display: block;
  width: 100%;
  margin-top: 5px;
  color: #2a3d2e;
  font-family: Fraunces, Georgia, serif;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#nv-trip-workspace .nv-tw-polish-stop small {
  margin-top: 7px;
  color: #7e897f;
  font-size: 9px;
  font-weight: 700;
}
#nv-trip-workspace .nv-tw-polish-connector {
  display: grid;
  grid-template-columns: 1fr 29px 1fr;
  gap: 6px;
  align-items: center;
  color: #7e8b80;
}
#nv-trip-workspace .nv-tw-polish-connector span {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(42,61,46,.28) 0 5px, transparent 5px 9px);
}
#nv-trip-workspace .nv-tw-polish-connector b {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2eb;
  border: 1px solid rgba(42,61,46,.08);
  font-size: 12px;
}

#nv-trip-workspace .nv-tw-polish-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
#nv-trip-workspace .nv-tw-polish-facts button {
  appearance: none;
  min-height: 31px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(42,61,46,.09);
  background: #f7f7f2;
  color: #667066;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
#nv-trip-workspace .nv-tw-polish-facts button:hover { background: #fff; }

#nv-trip-workspace .nv-tw-polish-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 27px 28px 28px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.15), transparent 17%),
    linear-gradient(145deg, #1f3326 0%, #2d4a35 56%, #3b5c42 100%);
  color: #fff;
}
#nv-trip-workspace .nv-tw-polish-visual::before,
#nv-trip-workspace .nv-tw-polish-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 8px rgba(255,255,255,.08);
  z-index: -1;
}
#nv-trip-workspace .nv-tw-polish-visual::before { width: 9px; height: 9px; top: 39px; left: 42px; }
#nv-trip-workspace .nv-tw-polish-visual::after { width: 7px; height: 7px; top: 95px; right: 53px; }
#nv-trip-workspace .nv-tw-polish-orbit {
  position: absolute;
  z-index: -2;
  border: 1px dashed rgba(255,255,255,.17);
  border-radius: 50%;
  transform: rotate(-16deg);
}
#nv-trip-workspace .nv-orbit-a { width: 310px; height: 150px; top: 14px; left: 18px; }
#nv-trip-workspace .nv-orbit-b { width: 220px; height: 110px; top: 62px; right: -55px; }
#nv-trip-workspace .nv-tw-polish-visual-kicker {
  margin-bottom: 9px;
  color: #b8cbb9;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: .13em;
}
#nv-trip-workspace .nv-tw-polish-visual > strong {
  max-width: 330px;
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 600;
}
#nv-trip-workspace .nv-tw-polish-visual > p {
  max-width: 315px;
  margin: 9px 0 16px;
  color: rgba(255,255,255,.74);
  font-size: 10.5px;
  line-height: 1.5;
}
#nv-trip-workspace .nv-tw-polish-visual > button {
  appearance: none;
  width: max-content;
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 12px;
  background: #eef3eb;
  color: #1e2e20;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(0,0,0,.12);
}
#nv-trip-workspace .nv-tw-polish-visual > button:hover { filter: brightness(1.04); }

/* Turn the summary into an intentional bento grid instead of two independent
   vertical stacks. This aligns the main rows and avoids the accidental-looking
   stagger visible in the previous version. */
@media (min-width: 1181px) {
  #nv-trip-workspace .nv-tw-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 16px;
    align-items: stretch;
  }
  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack { display: contents; }

  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack:first-child > :nth-child(1) {
    grid-column: 1 / span 7;
    grid-row: 1;
  }
  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack:last-child > :nth-child(1) {
    grid-column: 8 / span 5;
    grid-row: 1;
  }
  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack:first-child > :nth-child(2) {
    grid-column: 1 / span 8;
    grid-row: 2 / span 2;
  }
  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack:last-child > :nth-child(2) {
    grid-column: 9 / span 4;
    grid-row: 2;
  }
  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack:last-child > :nth-child(3) {
    grid-column: 9 / span 4;
    grid-row: 3;
  }
  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack:first-child > :nth-child(3) {
    grid-column: 1 / span 8;
    grid-row: 4;
  }
  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack:last-child > :nth-child(4) {
    grid-column: 9 / span 4;
    grid-row: 4;
  }

  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack > * {
    min-width: 0;
    width: 100%;
    align-self: stretch;
  }
  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack:first-child > :nth-child(1),
  #nv-trip-workspace .nv-tw-grid > .nv-tw-stack:last-child > :nth-child(1) {
    min-height: 178px;
  }
  #nv-trip-workspace .nv-tw-grid .nv-tw-card {
    height: 100%;
  }
  #nv-trip-workspace .nv-tw-grid .nv-tw-card-pad { min-height: 100%; }
}

@media (max-width: 1180px) {
  #nv-trip-workspace .nv-tw-polish-journey { grid-template-columns: 1fr; }
  #nv-trip-workspace .nv-tw-polish-visual { min-height: 210px; }
}
