.npd-sp-sample-plans {
  min-width: 0;
  margin-bottom: 26px;
}
.npd-sp-sample-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.npd-sp-sample-toolbar > div { min-width: 0; }
.npd-sp-sample-toolbar h3 {
  margin: 0 0 8px;
  color: #164a40;
  font: 700 20px/1.4 'Be Vietnam Pro', Arial, sans-serif;
}
.npd-sp-sample-toolbar label {
  display: block;
  margin-bottom: 5px;
  font: 600 13px/1.5 'Be Vietnam Pro', Arial, sans-serif;
}
.npd-sp-sample-toolbar select {
  width: min(100%, 440px);
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #c9d8d0;
  border-radius: 9px;
  background: #fff;
  color: #164a40;
  font: 500 16px/1.45 'Be Vietnam Pro', Arial, sans-serif;
}
.npd-sp-sample-toolbar a { min-height: 44px; }
body.npd-map-ui .npd-sp-sample-frame:not(.npd-map-active-frame) {
  position: relative;
  width: 100%;
  height: max(260px, var(--npd-map-height, 460px)) !important;
  min-height: 0 !important;
  max-height: none;
  border: 1px solid #d8e2dc;
  border-radius: 14px;
  background: #edf3ef;
  overflow: hidden;
  isolation: isolate;
}
.npd-sp-sample-frame [data-npd-sample-plan-map] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  background: #edf3ef;
}
.npd-map-landscape-stage [data-npd-sample-plan-map] { touch-action: none; }
.npd-sp-sample-detail .leaflet-tile {
  object-fit: none;
  object-position: left top;
}
.npd-sp-sample-frame:not(.npd-sp-sample-ready) [data-npd-sample-plan-map] { opacity: 0; }
.npd-sp-sample-frame:not(.npd-sp-sample-ready) .npd-map-fullscreen-button { display: none; }
.npd-sp-sample-status {
  position: absolute;
  inset: 50% 12px auto;
  z-index: 800;
  margin: 0;
  transform: translateY(-50%);
  color: #345c52;
  font: 500 14px/1.5 'Be Vietnam Pro', Arial, sans-serif;
  text-align: center;
  pointer-events: none;
}
.npd-sp-sample-status:empty { display: none; }
.npd-sp-sample-instructions {
  margin: 8px 0 0;
  color: #345c52;
  font: 400 13px/1.5 'Be Vietnam Pro', Arial, sans-serif;
}
.npd-sp-sample-plans .npd-map-fullscreen-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #c9d8d0;
  border-radius: 9px;
  background: #fff;
  color: #164a40;
  box-shadow: 0 3px 14px #123e3026;
  font: 600 14px/1.45 'Be Vietnam Pro', Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.npd-sp-sample-plans .npd-map-fullscreen-button:focus-visible {
  outline: 3px solid #8fb6a8;
  outline-offset: 2px;
}
.npd-sp-sample-plans.npd-map-fullscreen .npd-map-fullscreen-button {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  bottom: auto;
}
body.npd-map-ui [data-npd-sample-plan-viewer].npd-map-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: var(--npd-fs-physical-width, 100vw) !important;
  height: var(--npd-fs-physical-height, 100dvh) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #082f29 !important;
  overflow: hidden !important;
  z-index: 2147483647 !important;
  isolation: isolate;
  overscroll-behavior: none;
}
.npd-sp-sample-plans.npd-map-fullscreen::backdrop { background: #082f29; }
