.fpw-ports-body {
  margin: 0;
  min-height: 100vh;
  background: #061726;
  color: #edf7ff;
  font-family: Arial, Helvetica, sans-serif;
}

.fpw-ports-body .fpw-site-header {
  z-index: 2000;
}

.fpw-ports-page,
.fpw-ports-page * {
  box-sizing: border-box;
}

.fpw-ports-page {
  --fpw-ports-page-max: var(--fpw-wide-max, 1320px);
  --fpw-ports-page-gutter: var(--fpw-page-gutter, 32px);
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(54, 213, 226, 0.16), transparent 34rem),
    linear-gradient(180deg, #061726 0%, #082033 48%, #061726 100%);
}

.fpw-ports-page a {
  color: inherit;
}

.fpw-ports-shell {
  width: min(var(--fpw-ports-page-max), calc(100% - (var(--fpw-ports-page-gutter) * 2)));
  margin: 0 auto;
}

.fpw-ports-hero {
  padding: 40px 0 24px;
}

.fpw-ports-hero--detail {
  padding-bottom: 12px;
}

.fpw-ports-hero--detail .fpw-ports-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 1rem;
  align-items: center;
}

.fpw-ports-hero__content {
  min-width: 0;
}

.fpw-ports-hero__media {
  width: 170px;
  max-width: 100%;
  justify-self: end;
}

.fpw-ports-header-image-button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.45rem;
  background:
    linear-gradient(135deg, rgba(100, 180, 255, 0.32), rgba(5, 18, 31, 0.65)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 12px);
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.fpw-ports-header-image,
.fpw-ports-header-image-placeholder {
  display: block;
  width: 100%;
  height: 110px;
  border-radius: 0.45rem;
  border: 1px solid rgba(123, 231, 239, 0.24);
  background:
    linear-gradient(135deg, rgba(100, 180, 255, 0.32), rgba(5, 18, 31, 0.65)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 12px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.fpw-ports-header-image {
  object-fit: cover;
  border: 0;
  box-shadow: none;
}

.fpw-ports-image-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 0.45rem 0.55rem;
  color: #eaf8ff;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(180deg, rgba(4, 18, 32, 0), rgba(4, 18, 32, 0.86));
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.fpw-ports-header-image-button:hover .fpw-ports-image-overlay,
.fpw-ports-header-image-button:focus-visible .fpw-ports-image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.fpw-ports-header-image-button:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}

.fpw-ports-image-modal[hidden] {
  display: none;
}

.fpw-ports-image-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.fpw-ports-image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 9, 17, 0.82);
}

.fpw-ports-image-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(145, 190, 255, 0.3);
  border-radius: 0.75rem;
  background: #071727;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.fpw-ports-image-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(145, 190, 255, 0.18);
}

.fpw-ports-image-modal__header h2 {
  margin: 0;
  color: #f4f9ff;
  font-size: 1rem;
}

.fpw-ports-image-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(103, 232, 249, 0.42);
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(5, 18, 31, 0.72);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.fpw-ports-image-modal__close:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}

.fpw-ports-image-modal__body {
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: auto;
}

.fpw-ports-modal-image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

body.is-ports-image-modal-open {
  overflow: hidden;
}

.fpw-ports-eyebrow {
  margin: 0 0 12px;
  color: #7be7ef;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fpw-ports-hero h1 {
  margin: 0;
  max-width: 900px;
  color: #f7fbff;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: 0;
}

.fpw-ports-hero p:not(.fpw-ports-eyebrow) {
  max-width: 880px;
  margin: 22px 0 0;
  color: #c9d7e8;
  font-size: 1.18rem;
  line-height: 1.55;
}

.fpw-ports-note,
.fpw-ports-warning {
  display: inline-block;
  padding: 10px 12px;
  border: 1px solid rgba(123, 231, 239, 0.34);
  border-radius: 8px;
  background: rgba(8, 32, 51, 0.82);
}

.fpw-ports-panel,
.fpw-ports-stats div,
.fpw-ports-safety {
  padding: 20px;
  border: 1px solid rgba(113, 165, 206, 0.28);
  border-radius: 12px;
  background: rgba(7, 27, 44, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.fpw-ports-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 18px;
}

.fpw-ports-stats strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.fpw-ports-stats span {
  display: block;
  margin-top: 8px;
  color: #bbcbdb;
}

.fpw-ports-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 18px;
}

.fpw-ports-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.fpw-ports-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 auto 18px;
  color: #a9c6e6;
  font-size: 0.9rem;
}

.fpw-ports-breadcrumbs a {
  color: #9ee8ef;
  text-decoration: none;
  font-weight: 800;
}

.fpw-ports-cta h2,
.fpw-ports-panel h2 {
  margin: 0;
  color: #f7fbff;
  font-size: 1.55rem;
}

.fpw-ports-cta p:not(.fpw-ports-eyebrow),
.fpw-ports-panel p,
.fpw-ports-safety p {
  color: #c9d7e8;
  line-height: 1.5;
}

.fpw-ports-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.74rem 1.05rem;
  border: 1px solid rgba(82, 225, 231, 0.42);
  border-radius: 999px;
  background: rgba(7, 29, 48, 0.82);
  color: #f2f8ff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.fpw-ports-btn--primary {
  border-color: rgba(69, 224, 220, 0.86);
  background: linear-gradient(180deg, rgba(8, 31, 52, 0.98), rgba(3, 18, 32, 0.98));
}

.fpw-ports-btn--small {
  min-height: 38px;
  padding: 0.55rem 0.84rem;
  font-size: 0.9rem;
}

.fpw-ports-btn--full {
  width: 100%;
}

.fpw-ports-add-waypoint-panel h2 {
  text-align: center;
}

.fpw-ports-add-waypoint-panel [data-port-add],
.is-ports-logged-in .fpw-ports-add-waypoint-panel [data-port-add] {
  display: flex;
  width: auto;
  min-width: 240px;
  margin: 20px auto 0;
}

.fpw-ports-add-waypoint-panel .fpw-ports-anon-only {
  max-width: 280px;
  margin: 20px auto 0;
  text-align: center;
}

.fpw-ports-add-waypoint-panel .fpw-ports-add-status:empty {
  display: none;
}

.fpw-ports-add-waypoint-panel .fpw-ports-add-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0;
  text-align: center;
}

.fpw-ports-plan-panel .fpw-ports-btn {
  display: flex;
  width: fit-content;
  min-width: 240px;
  max-width: 100%;
  margin: 20px auto 0;
}

.fpw-ports-btn[disabled] {
  opacity: 0.68;
  cursor: default;
}

.fpw-ports-finder {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.fpw-ports-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #dceeff;
  font-weight: 800;
}

.fpw-ports-field input,
.fpw-ports-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(137, 184, 247, 0.34);
  border-radius: 8px;
  background: rgba(3, 16, 29, 0.92);
  color: #f7fbff;
  padding: 0 10px;
}

.fpw-ports-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: #dceeff;
  font-weight: 800;
}

.fpw-ports-check input {
  width: 18px;
  height: 18px;
}

.fpw-ports-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.fpw-ports-filter-status {
  margin: 12px 0 0;
  color: #9ee8ef;
}

.fpw-ports-filter-status.is-error {
  color: #ffd2d2;
}

.fpw-ports-map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.fpw-ports-map-toolbar h2 {
  margin-bottom: 6px;
}

.fpw-ports-map-toolbar p {
  margin: 0;
}

.fpw-ports-view-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(123, 231, 239, 0.24);
  border-radius: 999px;
  background: rgba(3, 16, 29, 0.7);
}

.fpw-ports-view-toggle button {
  min-width: 64px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b8c9d9;
  font-weight: 800;
  cursor: pointer;
}

.fpw-ports-view-toggle button.is-active {
  background: rgba(69, 224, 220, 0.18);
  color: #f7fbff;
}

.fpw-ports-map,
.fpw-ports-detail-map {
  width: 100%;
  min-height: 520px;
  border: 1px solid rgba(123, 231, 239, 0.24);
  border-radius: 10px;
  overflow: hidden;
  background: #092033;
}

.fpw-ports-detail-map {
  min-height: 420px;
}

.fpw-ports-list-view {
  margin-top: 12px;
}

.fpw-ports-result-list {
  display: grid;
  gap: 14px;
}

.fpw-ports-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(113, 165, 206, 0.28);
  border-radius: 10px;
  background: rgba(3, 16, 29, 0.62);
}

.fpw-ports-result-card h3 {
  margin: 0 0 8px;
  color: #f7fbff;
  font-size: 1.12rem;
}

.fpw-ports-result-card h3 a {
  color: inherit;
  text-decoration: none;
}

.fpw-ports-result-card p {
  margin: 6px 0;
}

.fpw-ports-card-actions {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: end;
  min-width: 190px;
}

.fpw-ports-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.fpw-ports-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(123, 231, 239, 0.26);
  border-radius: 999px;
  background: rgba(123, 231, 239, 0.08);
  color: #cceaf2;
  font-size: 0.78rem;
  font-weight: 800;
}

.fpw-ports-badge--accent {
  border-color: rgba(255, 209, 138, 0.45);
  background: rgba(255, 209, 138, 0.11);
  color: #ffe1ad;
}

.fpw-ports-badge--muted {
  border-color: rgba(137, 184, 247, 0.18);
  background: rgba(137, 184, 247, 0.06);
  color: #a7bfd2;
}

.fpw-ports-anon-only {
  margin: 0;
  color: #b9ccdc;
  font-size: 0.9rem;
}

.fpw-ports-anon-only a {
  color: #9ee8ef;
  font-weight: 800;
}

.fpw-ports-member-only {
  display: none;
}

.is-ports-logged-in .fpw-ports-member-only {
  display: inline-flex;
}

.is-ports-logged-in .fpw-ports-anon-only {
  display: none;
}

.fpw-ports-add-status {
  min-height: 20px;
  margin: 0;
  color: #9ee8ef;
  font-size: 0.9rem;
}

.fpw-ports-add-status.is-error {
  color: #ffd2d2;
}

.fpw-ports-empty-state,
.fpw-ports-empty-map {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid rgba(255, 209, 138, 0.28);
  border-radius: 10px;
  color: #ffe1ad;
  background: rgba(255, 209, 138, 0.08);
}

.fpw-ports-browse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0 34px;
}

.fpw-ports-related-libraries-panel,
.fpw-ports-planning-notice {
  grid-column: 1 / -1;
}

.fpw-ports-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.fpw-ports-related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(123, 231, 239, 0.28);
  border-radius: 999px;
  color: #dff8ff;
  text-decoration: none;
  font-weight: 800;
}

.fpw-ports-related-links--stack {
  display: grid;
}

.fpw-ports-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  padding-bottom: 34px;
}

.fpw-ports-detail-main,
.fpw-ports-detail-rail {
  display: grid;
  gap: 18px;
}

.fpw-ports-fact-grid,
.fpw-ports-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.fpw-ports-fact-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.fpw-ports-fact-grid div,
.fpw-ports-service-grid div,
.fpw-ports-fact-list div {
  padding: 10px;
  border: 1px solid rgba(113, 165, 206, 0.22);
  border-radius: 8px;
  background: rgba(3, 16, 29, 0.45);
}

.fpw-ports-fact-grid dt,
.fpw-ports-service-grid dt,
.fpw-ports-fact-list dt {
  color: #8fb2ca;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fpw-ports-fact-grid dd,
.fpw-ports-service-grid dd,
.fpw-ports-fact-list dd {
  margin: 5px 0 0;
  color: #f7fbff;
}

.fpw-ports-related-assets {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.fpw-ports-related-assets article {
  padding: 12px;
  border: 1px solid rgba(113, 165, 206, 0.22);
  border-radius: 8px;
  background: rgba(3, 16, 29, 0.45);
}

.fpw-ports-related-assets strong,
.fpw-ports-related-assets span {
  display: block;
}

.fpw-ports-popup {
  display: grid;
  gap: 0.25rem;
  min-width: 180px;
  color: #102033;
}

.fpw-ports-popup strong,
.fpw-ports-popup span,
.fpw-ports-popup small,
.fpw-ports-popup a {
  display: block;
}

.fpw-ports-popup a {
  margin-top: 0.25rem;
  color: #075ea8;
  font-weight: 800;
}

@media (max-width: 980px) {
  .fpw-ports-finder,
  .fpw-ports-detail {
    grid-template-columns: 1fr;
  }

  .fpw-ports-map {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .fpw-ports-page {
    --fpw-ports-page-gutter: 20px;
  }

  .fpw-ports-hero--detail .fpw-ports-hero__inner {
    grid-template-columns: 1fr;
  }

  .fpw-ports-hero__media {
    justify-self: start;
  }

  .fpw-ports-stats,
  .fpw-ports-browse,
  .fpw-ports-fact-grid,
  .fpw-ports-service-grid {
    grid-template-columns: 1fr;
  }

  .fpw-ports-cta,
  .fpw-ports-map-toolbar,
  .fpw-ports-result-card {
    display: grid;
  }

  .fpw-ports-cta-actions,
  .fpw-ports-card-actions {
    justify-content: start;
    justify-items: start;
    min-width: 0;
  }

  .fpw-ports-view-toggle {
    width: 100%;
  }

  .fpw-ports-view-toggle button {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .fpw-ports-hero h1 {
    font-size: 32px;
    line-height: 1.05;
  }

  .fpw-ports-hero p:not(.fpw-ports-eyebrow) {
    font-size: 1.05rem;
  }

  .fpw-ports-map,
  .fpw-ports-detail-map {
    min-height: 360px;
  }

  .fpw-ports-panel,
  .fpw-ports-stats div,
  .fpw-ports-safety {
    padding: 16px;
  }

  .fpw-ports-add-waypoint-panel [data-port-add],
  .is-ports-logged-in .fpw-ports-add-waypoint-panel [data-port-add],
  .fpw-ports-plan-panel .fpw-ports-btn {
    margin-top: 16px;
  }
}



