.magellano-navigation-product {
  --nav-accent: #11b6c8;
  --nav-accent-2: #74e0df;
  --nav-dark: #031521;
  --nav-panel: #08283d;
  --nav-line: rgba(116, 224, 223, .2);
  background: #edf7f6;
}

.magellano-navigation-product .site-main,
.magellano-navigation-product .content-wrap { max-width: none; }

.nav-product { overflow: clip; color: #102a39; }
.nav-shell { width: min(1380px, calc(100% - 40px)); margin-inline: auto; }

.nav-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 104px) 0 clamp(106px, 10vw, 150px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(116,224,223,.22), transparent 23rem),
    linear-gradient(130deg, #031521 0%, #062f48 58%, #07566c 100%);
}
.nav-hero::after {
  position: absolute; inset: auto -6% -82px -6%; height: 135px; content: "";
  border-radius: 50% 50% 0 0; background: #edf7f6;
}
.nav-hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); align-items: end; gap: 60px; }
.nav-eyebrow,.nav-panel-label { margin: 0 0 14px; color: var(--nav-accent-2); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.nav-hero h1 { max-width: 960px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 5vw, 5.7rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.nav-lead { max-width: 850px; margin: 28px 0 0; color: rgba(255,255,255,.76); font-size: clamp(1.05rem, 1.6vw, 1.36rem); line-height: 1.6; }
.nav-hero__status { display: grid; padding: 26px; gap: 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(3,21,33,.48); backdrop-filter: blur(14px); }
.nav-hero__status strong { font-size: 1.05rem; }
.nav-hero__status small { color: rgba(255,255,255,.62); }
.nav-live { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 780; }
.nav-live i { width: 10px; height: 10px; border-radius: 50%; background: #36e3aa; box-shadow: 0 0 0 6px rgba(54,227,170,.13); }

.nav-workspace { position: relative; z-index: 2; margin-top: -72px; }
.nav-controls { display: grid; grid-template-columns: 1.3fr auto 1.3fr .7fr .55fr .55fr auto; align-items: end; gap: 12px; padding: 22px; border: 1px solid rgba(255,255,255,.55); border-radius: 26px; background: rgba(255,255,255,.97); box-shadow: 0 26px 70px rgba(3,21,33,.18); }
.nav-control { display: grid; min-width: 0; gap: 7px; }
.nav-control label { color: #56717f; font-size: .69rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.nav-control input { width: 100%; min-height: 52px; padding: 0 14px; color: #102a39; border: 1px solid #cbdcde; border-radius: 13px; background: #f7fbfb; font: inherit; font-weight: 700; }
.nav-control input:focus { border-color: var(--nav-accent); outline: 3px solid rgba(17,182,200,.13); }
.nav-control--speed > span { position: relative; display: block; }
.nav-control--speed input { padding-right: 38px; }
.nav-control--speed em { position: absolute; top: 50%; right: 13px; color: #67808c; font-size: .78rem; font-style: normal; transform: translateY(-50%); }
.nav-controls__arrow { padding-bottom: 14px; color: var(--nav-accent); font-size: 1.55rem; font-weight: 900; }
.nav-primary { min-height: 52px; padding: 0 22px; cursor: pointer; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #087692, #11b6c8); box-shadow: 0 12px 26px rgba(8,118,146,.24); font: inherit; font-weight: 850; white-space: nowrap; }
.nav-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.nav-primary:disabled { cursor: wait; opacity: .65; transform: none; }
.nav-form-message { display: none; grid-column: 1 / -1; margin: 0; padding: 3px 4px 0; color: #9e3a4d; font-size: .88rem; font-weight: 700; }
.nav-form-message.is-visible { display: block; }
.nav-form-message.is-ok { color: #08735c; }

.nav-app { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .62fr); min-height: 690px; margin-top: 24px; overflow: hidden; border-radius: 30px; background: var(--nav-dark); box-shadow: 0 30px 80px rgba(3,21,33,.2); }
.nav-map-card { position: relative; min-height: 690px; overflow: hidden; background: #b9d3d4; }
.nav-map { position: absolute; inset: 0; min-height: 690px; z-index: 1; }
.nav-map::before { position: absolute; z-index: 500; inset: 0; content: ""; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.nav-map-actions { position: absolute; z-index: 600; top: 18px; left: 18px; display: flex; gap: 8px; }
.nav-map-actions button { min-height: 42px; padding: 0 13px; cursor: pointer; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(3,21,33,.88); backdrop-filter: blur(10px); font: inherit; font-size: .78rem; font-weight: 780; }
.nav-map-hint { position: absolute; z-index: 600; bottom: 20px; left: 50%; width: max-content; max-width: calc(100% - 40px); padding: 10px 17px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(3,21,33,.87); font-size: .84rem; text-align: center; transform: translateX(-50%); backdrop-filter: blur(10px); }
.nav-marker { display: grid; width: 30px; height: 30px; color: #031521; border: 4px solid #fff; border-radius: 50%; background: var(--nav-accent-2); box-shadow: 0 5px 16px rgba(3,21,33,.35); place-items: center; font-size: .68rem; font-weight: 900; }
.nav-marker--end { background: #ffd166; }
.leaflet-control-attribution { font-size: 10px !important; }

.nav-analysis { display: flex; min-width: 0; padding: clamp(28px, 3.2vw, 48px); flex-direction: column; color: #fff; background: linear-gradient(160deg, #08283d, #052035); }
.nav-analysis h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 500; line-height: 1.03; }
.nav-analysis__copy { margin: 19px 0 25px; color: #abc1ce; line-height: 1.6; }
.nav-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 19px; }
.nav-metrics div { min-width: 0; padding: 17px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-metrics div:nth-child(2n) { border-right: 0; }
.nav-metrics div:nth-last-child(-n+2) { border-bottom: 0; }
.nav-metrics dt { color: #84a4b6; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-metrics dd { margin: 5px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.02rem; font-weight: 800; line-height: 1.35; }
.nav-signal { margin-top: 22px; padding: 20px; border-left: 5px solid #7c98a8; border-radius: 16px; background: rgba(255,255,255,.08); }
.nav-signal span,.nav-signal small { display: block; color: #91adbd; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-signal strong { display: block; margin: 6px 0; font-size: 1.15rem; }
.nav-signal.is-calm { border-color: #36e3aa; }.nav-signal.is-watch { border-color: #ffd166; }.nav-signal.is-alert { border-color: #ff647c; }
.nav-freshness { display: grid; margin-top: auto; padding-top: 26px; gap: 4px; }
.nav-freshness span { color: #7193a6; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-freshness strong { margin-bottom: 9px; font-size: .88rem; }

.nav-timeline,.nav-safety { margin-top: 34px; padding: clamp(28px,4vw,52px); border: 1px solid rgba(8,59,86,.12); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: 0 20px 50px rgba(3,21,33,.08); }
.nav-section-head { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.65fr); align-items: end; gap: 40px; margin-bottom: 28px; }
.nav-section-head h2 { max-width: 780px; margin: 0; color: #08283d; font-family: Georgia,"Times New Roman",serif; font-size: clamp(2rem,3.5vw,3.5rem); font-weight: 500; line-height: 1.06; }
.nav-section-head > p { margin: 0; color: #607783; }
.nav-table-wrap { overflow-x: auto; border: 1px solid #dce8e9; border-radius: 18px; }
.nav-timeline table { width: 100%; min-width: 850px; border-collapse: collapse; }
.nav-timeline th,.nav-timeline td { padding: 14px 15px; border-bottom: 1px solid #e1ebec; text-align: left; white-space: nowrap; }
.nav-timeline th { color: #56717f; background: #f1f8f8; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-timeline td { color: #173846; font-size: .86rem; font-weight: 650; }
.nav-timeline tr:last-child td { border-bottom: 0; }
.nav-row-signal { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #e9f3f3; font-size: .7rem; }
.nav-row-signal.watch { color: #805b00; background: #fff1c5; }.nav-row-signal.alert { color: #9b2440; background: #ffe1e6; }

.nav-safety__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.nav-safety__grid article { padding: 23px; border: 1px solid #dce8e9; border-radius: 18px; background: #f8fbfb; }
.nav-safety__grid article > span { color: var(--nav-accent); font-family: ui-monospace,monospace; font-weight: 900; }
.nav-safety__grid h3 { margin: 12px 0 8px; color: #08283d; font-size: 1.05rem; }
.nav-safety__grid p { margin: 0; color: #607783; font-size: .9rem; line-height: 1.6; }
.nav-disclaimer { margin-top: 20px; padding: 19px 22px; color: #6c3f05; border-left: 5px solid #e7ab35; border-radius: 13px; background: #fff4dc; font-size: .91rem; }

.nav-guides { margin-top: 70px; padding: clamp(64px,8vw,105px) 0; color: #fff; background: #031521; }
.nav-guides .nav-section-head h2 { color: #fff; }.nav-guides .nav-section-head > p { color: #9eb6c3; }
.nav-guides__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.nav-guides__grid article { overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; background: rgba(255,255,255,.06); }
.nav-guide__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: #0a3148; }
.nav-guide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }.nav-guide__media:hover img { transform: scale(1.035); }
.nav-guide__fallback { position: relative; display: flex; height: 100%; padding: 20px; align-items: flex-end; justify-content: space-between; color: rgba(255,255,255,.72); background: radial-gradient(circle at 72% 24%, rgba(116,224,223,.28), transparent 22%), repeating-radial-gradient(ellipse at 10% 110%, transparent 0 24px, rgba(116,224,223,.16) 25px 27px, transparent 28px 42px), linear-gradient(135deg,#0a3b55,#07566c); }
.nav-guide__fallback b { font: 800 2.25rem/1 ui-monospace,monospace; }.nav-guide__fallback i { font-size: .7rem; font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-guides__grid article > div { padding: 20px; }
.nav-guides__grid article span { color: var(--nav-accent-2); font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.nav-guides__grid h3 { margin: 9px 0 18px; font-family: Georgia,"Times New Roman",serif; font-size: 1.2rem; font-weight: 500; line-height: 1.25; }
.nav-guide__link { color: #b7d2de; font-size: .78rem; font-weight: 800; }
.nav-data-note { padding: 25px 0 36px; color: #607783; font-size: .76rem; text-align: center; }

@media (max-width: 1180px) {
  .nav-controls { grid-template-columns: 1fr auto 1fr repeat(3,.65fr); }
  .nav-primary { grid-column: 1 / -1; }
  .nav-app { grid-template-columns: 1fr .62fr; }
  .nav-safety__grid,.nav-guides__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .nav-hero__grid,.nav-app,.nav-section-head { grid-template-columns: 1fr; }
  .nav-hero__status { max-width: 440px; }
  .nav-controls { grid-template-columns: 1fr 1fr; }
  .nav-controls__arrow { display: none; }
  .nav-control--place { grid-column: span 1; }
  .nav-primary { grid-column: 1 / -1; }
  .nav-map-card,.nav-map { min-height: 520px; }
  .nav-analysis { min-height: 610px; }
  .nav-section-head { align-items: start; gap: 16px; }
}
@media (max-width: 620px) {
  .nav-shell { width: min(100% - 24px,1380px); }
  .nav-hero { padding-top: 42px; }.nav-hero h1 { font-size: 2.55rem; }
  .nav-workspace { margin-top: -62px; }
  .nav-controls { grid-template-columns: 1fr 1fr; padding: 15px; border-radius: 20px; }
  .nav-control--place { grid-column: 1 / -1; }
  .nav-control--speed { grid-column: 1 / -1; }
  .nav-control input { min-height: 49px; }
  .nav-app { border-radius: 22px; }
  .nav-map-card,.nav-map { min-height: 470px; }
  .nav-map-actions { right: 12px; left: 12px; flex-wrap: wrap; }.nav-map-actions button { font-size: .7rem; }
  .nav-map-hint { bottom: 14px; border-radius: 15px; }
  .nav-analysis { min-height: 0; padding: 28px 20px; }
  .nav-metrics dd { font-size: 1rem; }
  .nav-freshness { margin-top: 26px; }
  .nav-timeline,.nav-safety { padding: 25px 17px; border-radius: 22px; }
  .nav-safety__grid,.nav-guides__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-primary,.nav-guide__media img { transition: none; }
}
