/* Norvia Trip Workspace — WOW visual layer.
   Pure presentation on top of the DB-backed workspace; no source-of-truth writes. */

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

#nv-trip-workspace .nv-tw-wow-map {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(42,61,46,.12);
  background: #e9eee7;
  box-shadow: 0 18px 50px rgba(42,61,46,.08);
}
#nv-trip-workspace .nv-tw-wow-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: saturate(.75) contrast(.94) brightness(1.03);
}
#nv-trip-workspace .nv-tw-wow-map-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248,246,240,.97) 0%, rgba(248,246,240,.87) 31%, rgba(248,246,240,.18) 62%, rgba(248,246,240,.06) 100%);
}
#nv-trip-workspace .nv-tw-wow-map-copy {
  position: relative;
  z-index: 5;
  width: min(390px, 46%);
  padding: 26px 28px;
}
#nv-trip-workspace .nv-tw-wow-eyebrow {
  color: #758177;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
#nv-trip-workspace .nv-tw-wow-map-copy h3 {
  margin: 0;
  color: #263b2d;
  font-family: Fraunces, Georgia, serif;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 650;
}
#nv-trip-workspace .nv-tw-wow-map-copy p {
  margin: 9px 0 0;
  color: #70796f;
  font-size: 12px;
  line-height: 1.55;
}
#nv-trip-workspace .nv-tw-wow-route {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
#nv-trip-workspace .nv-tw-wow-stop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(42,61,46,.11);
  color: #3d5142;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
#nv-trip-workspace .nv-tw-wow-map-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
#nv-trip-workspace .nv-tw-wow-map-btn {
  border: 1px solid rgba(42,61,46,.16);
  background: #fff;
  color: #2a3d2e;
  border-radius: 11px;
  min-height: 38px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(42,61,46,.06);
}
#nv-trip-workspace .nv-tw-wow-map-btn.nv-primary {
  color: #fff;
  border-color: #2a3d2e;
  background: #2a3d2e;
}
#nv-trip-workspace .nv-tw-wow-line-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
#nv-trip-workspace .nv-tw-wow-map-pin {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
#nv-trip-workspace .nv-tw-wow-map-pin b {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-45deg);
  background: #2a3d2e;
  color: white;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 5px 12px rgba(20,38,25,.24);
  font-size: 10px;
}
#nv-trip-workspace .nv-tw-wow-map-pin b span { transform: rotate(45deg); }
#nv-trip-workspace .nv-tw-wow-map-pin em {
  font-style: normal;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(42,61,46,.12);
  color: #2a3d2e;
  border-radius: 7px;
  padding: 3px 6px;
  margin-top: 5px;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
  font-weight: 750;
  box-shadow: 0 4px 14px rgba(42,61,46,.10);
}

#nv-trip-workspace .nv-tw-wow-gallery {
  border-radius: 18px;
  border: 1px solid rgba(42,61,46,.1);
  background: rgba(255,255,255,.82);
  padding: 18px;
  box-shadow: 0 14px 42px rgba(42,61,46,.06);
}
#nv-trip-workspace .nv-tw-wow-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}
#nv-trip-workspace .nv-tw-wow-gallery-head h3 {
  margin: 0;
  color: #2a3d2e;
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
}
#nv-trip-workspace .nv-tw-wow-gallery-head p {
  margin: 4px 0 0;
  color: #7b837b;
  font-size: 10.5px;
}
#nv-trip-workspace .nv-tw-wow-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#nv-trip-workspace .nv-tw-wow-res-card {
  appearance: none;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(42,61,46,.11);
  background: #fff;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  min-width: 0;
}
#nv-trip-workspace .nv-tw-wow-res-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42,61,46,.24);
  box-shadow: 0 12px 30px rgba(42,61,46,.10);
}
#nv-trip-workspace .nv-tw-wow-res-cover {
  position: relative;
  height: 105px;
  background: linear-gradient(145deg, #dfe8dd, #f6eadb);
  background-size: cover;
  background-position: center;
}
#nv-trip-workspace .nv-tw-wow-res-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 29px;
  background: linear-gradient(145deg, rgba(42,61,46,.05), rgba(196,149,106,.15));
}
#nv-trip-workspace .nv-tw-wow-res-state {
  position: absolute;
  right: 8px;
  top: 8px;
  border-radius: 999px;
  padding: 4px 7px;
  color: #2a3d2e;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(42,61,46,.10);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
#nv-trip-workspace .nv-tw-wow-res-body { padding: 10px 11px 12px; }
#nv-trip-workspace .nv-tw-wow-res-body strong {
  color: #253b2c;
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#nv-trip-workspace .nv-tw-wow-res-body span {
  display: block;
  margin-top: 4px;
  color: #838a83;
  font-size: 9.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#nv-trip-workspace .nv-tw-wow-res-body b {
  display: block;
  margin-top: 8px;
  color: #2a3d2e;
  font-size: 11px;
}

#nv-trip-wow-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(27,38,29,.38);
  backdrop-filter: blur(8px);
}
#nv-trip-wow-modal.nv-open { display: flex; }
#nv-trip-wow-modal .nv-tw-wow-modal-card {
  width: min(520px, 96vw);
  max-height: min(720px, 88vh);
  overflow: auto;
  border-radius: 22px;
  background: #fbfaf6;
  border: 1px solid rgba(42,61,46,.14);
  box-shadow: 0 30px 90px rgba(20,38,25,.24);
}
#nv-trip-wow-modal .nv-tw-wow-modal-hero {
  min-height: 155px;
  position: relative;
  background: linear-gradient(145deg, #dfe8dd, #f2dfcb);
  background-size: cover;
  background-position: center;
}
#nv-trip-wow-modal .nv-tw-wow-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(42,61,46,.12);
  background: rgba(255,255,255,.92);
  color: #2a3d2e;
  font-size: 20px;
  cursor: pointer;
}
#nv-trip-wow-modal .nv-tw-wow-modal-body { padding: 20px 22px 22px; }
#nv-trip-wow-modal .nv-tw-wow-modal-body h2 {
  margin: 0;
  color: #263b2d;
  font-family: Fraunces, Georgia, serif;
  font-size: 23px;
}
#nv-trip-wow-modal .nv-tw-wow-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
  margin-top: 16px;
}
#nv-trip-wow-modal .nv-tw-wow-detail {
  padding: 10px 11px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid rgba(42,61,46,.09);
}
#nv-trip-wow-modal .nv-tw-wow-detail span {
  display: block;
  color: #939992;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 8px;
  font-weight: 800;
}
#nv-trip-wow-modal .nv-tw-wow-detail b {
  display: block;
  color: #34483a;
  margin-top: 4px;
  font-size: 11px;
}
#nv-trip-wow-modal .nv-tw-wow-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

@media (max-width: 1180px) {
  #nv-trip-workspace .nv-tw-wow-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #nv-trip-workspace .nv-tw-wow-map-copy { width: 54%; }
}
