/* Marina pages: the guide written from each marina's own site, the Google map, nearby marinas and sources. */
.mg-hero { padding-bottom: 56px; }
.mg-hero__operator { color: var(--nb-gold-soft); }
.mg-hero .nb-figures { margin-top: 36px; }
.mg-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.mg-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.mg-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mg-awards { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; }
.mg-awards li {
  padding: 5px 12px;
  border: 1px solid rgba(201, 169, 106, 0.55);
  color: var(--nb-gold-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* On-this-page links, held under the site header. */
.mg-nav {
  position: sticky;
  top: 48px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e8e3d6;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.mg-nav__inner {
  display: flex;
  gap: 4px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.mg-nav__inner::-webkit-scrollbar { display: none; }
.mg-nav a {
  flex: none;
  padding: 14px 12px;
  border-bottom: 2px solid transparent;
  color: #424245;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.mg-nav a:hover { border-bottom-color: #c9a96a; color: #0b1220; }

.mg-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 96px;
  color: #1d1d1f;
}
.mg-page [id] { scroll-margin-top: 112px; }
.mg-page h2 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  color: #0b1220;
}
.mg-eyebrow {
  margin: 0 0 8px;
  color: #8a6a2c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mg-mono { font-variant-numeric: tabular-nums; }
.mg-note { margin: 14px 0 0; color: #6e6e73; font-size: 14px; line-height: 1.5; }

/* Source numbers after a sentence or a fact. */
.mg-ref { margin-left: 2px; font-size: 11px; line-height: 0; vertical-align: super; }
.mg-ref a {
  display: inline-block;
  min-width: 16px;
  padding: 1px 3px;
  color: #8a6a2c;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.mg-ref a:hover, .mg-ref a:focus { background: #f4ecdc; text-decoration: none; }

/* About | At a glance */
.mg-intro { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.mg-lead { margin: 0; color: #2a2a2e; font-size: 19px; line-height: 1.7; }
.mg-glance { padding: 26px 28px; background: #fbf9f4; border: 1px solid #e8e3d6; border-top: 3px solid #c9a96a; }
.mg-glance h2 { font-size: 26px; }
.mg-glance dl { display: grid; margin: 0; }
.mg-glance dl div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #ece6d8;
  font-size: 14px;
  line-height: 1.45;
}
.mg-glance dl div:first-child { border-top: 0; padding-top: 0; }
.mg-glance dt { color: #6e6e73; }
.mg-glance dd { margin: 0; color: #0b1220; font-weight: 500; overflow-wrap: anywhere; }
.mg-glance dd a { color: #0b1220; }

/* The map: a chart-like panel until the visitor chooses to load Google Maps. */
.mg-map { margin-top: 56px; }
.mg-map__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mg-map__head h2 { margin: 0; }
.mg-map__views { display: inline-flex; border: 1px solid #cfc8b6; }
.mg-map__views button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  background: #fff;
  color: #424245;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.mg-map__views button + button { border-left: 1px solid #cfc8b6; }
.mg-map__views button[aria-pressed="true"] { background: #0b1220; color: #c9a96a; }
.mg-map__frame {
  position: relative;
  height: clamp(320px, 52vw, 520px);
  overflow: hidden;
  background:
    linear-gradient(rgba(201, 169, 106, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(201, 169, 106, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at 30% 40%, #1b2a44 0%, #0b1220 70%);
  border: 1px solid #0b1220;
}
.mg-map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.mg-map__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #c9cfda;
}
.mg-map__pin { width: 44px; height: 44px; fill: #c9a96a; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.mg-map__place { margin: 10px 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; color: #fff; }
.mg-map__coords { margin: 4px 0 0; color: #c9a96a; font-size: 14px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.mg-map__consent .berth-btn { margin-top: 22px; }
.mg-map__small { max-width: 420px; margin: 14px 0 0; color: #8e97a8; font-size: 13px; line-height: 1.5; }
.mg-map__small a { color: #c9a96a; }
.mg-map__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 0 0;
  font-size: 14px;
}
.mg-map__position { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: #6e6e73; }
.mg-map__links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; }
.mg-map__links a { color: #8a6a2c; font-weight: 600; }

/* Berthing, approach, ashore, getting there */
.mg-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.mg-section { padding: 28px 30px; background: #fff; border: 1px solid #e8e3d6; }
.mg-section:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mg-block .berth-tariff { padding: 22px 26px; background: #fbf9f4; border: 1px solid #e8e3d6; }
.mg-section h2 { display: flex; align-items: center; gap: 12px; font-size: 28px; }
.mg-section p { margin: 0; color: #2a2a2e; font-size: 16px; line-height: 1.7; }
.mg-icon {
  flex: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #c9a96a;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mg-block { margin-top: 56px; }
.mg-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.mg-block__head h2 { margin: 0; }
.mg-block__head p { margin: 0; color: #6e6e73; font-size: 14px; }
.mg-block__head a { color: #8a6a2c; }

/* Facilities */
.mg-facilities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid #e8e3d6;
  border-left: 1px solid #e8e3d6;
}
.mg-facility {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  background: #fff;
  border-right: 1px solid #e8e3d6;
  border-bottom: 1px solid #e8e3d6;
}
.mg-facility__mark {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #f4ecdc;
}
.mg-facility__mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #8a6a2c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mg-facility__text { display: grid; gap: 2px; font-size: 15px; line-height: 1.4; }
.mg-facility__text b { color: #0b1220; font-weight: 600; }
.mg-facility__text span { color: #6e6e73; font-size: 14px; }
.mg-facility .mg-ref { line-height: 1.4; vertical-align: top; }

/* Check your yacht | availability */
.mg-row { margin-top: 56px; }
.mg-row--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.mg-check__lede { margin: -4px 0 18px; }
.mg-check__form { margin: 0; padding: 0; border: 0; }
.mg-owner { margin-top: 16px; }

/* Nearby marinas */
.mg-nearby {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}
.mg-nearby a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas: "nm name" "nm limits";
  gap: 2px 16px;
  align-items: center;
  height: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e8e3d6;
  color: #0b1220;
  text-decoration: none;
  box-sizing: border-box;
}
.mg-nearby a:hover { border-color: #c9a96a; text-decoration: none; }
.mg-nearby__nm {
  grid-area: nm;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1;
  color: #0b1220;
  font-variant-numeric: tabular-nums;
}
.mg-nearby__nm small { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 12px; color: #6e6e73; }
.mg-nearby__name { grid-area: name; font-size: 16px; font-weight: 600; }
.mg-nearby__name small { margin-left: 8px; color: #6e6e73; font-size: 13px; font-weight: 400; }
.mg-nearby__limits { grid-area: limits; color: #6e6e73; font-size: 13px; }
.mg-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mg-shows { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.mg-shows li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 14px 18px; background: #fff; border: 1px solid #e8e3d6; }
.mg-shows a { color: #0b1220; font-weight: 600; }
.mg-shows span { color: #6e6e73; font-size: 14px; }

/* Sources */
.mg-sources { margin-top: 64px; padding-top: 28px; border-top: 1px solid #e8e3d6; color: #6e6e73; font-size: 14px; line-height: 1.55; }
.mg-sources h2 { font-size: 26px; }
.mg-sources p { margin: 0 0 12px; }
.mg-sources__list { columns: 2; column-gap: 40px; margin: 0 0 16px; padding-left: 22px; }
.mg-sources__list li { break-inside: avoid; padding: 2px 0; }
.mg-sources__list li:target { background: #f4ecdc; }
.mg-sources a { color: #8a6a2c; overflow-wrap: anywhere; }
.mg-sources__limits { margin: 0 0 12px; padding-left: 18px; }
.mg-sources__limits li { padding: 2px 0; }

@media (max-width: 960px) {
  .mg-intro { grid-template-columns: 1fr; gap: 32px; }
  .mg-facilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mg-sections, .mg-row--two, .mg-nearby, .mg-others { grid-template-columns: 1fr; }
  .mg-sources__list { columns: 1; }
}
@media (max-width: 734px) {
  /* The site header scrolls away on small screens (site.css), so the page links hold at the very top. */
  .mg-nav { top: 0; }
  .mg-page [id] { scroll-margin-top: 64px; }
}
@media (max-width: 520px) {
  .mg-hero { padding-top: 88px; padding-bottom: 44px; }
  .mg-hero .nb-figures { gap: 16px 32px; }
  .mg-hero .nb-figures dd { font-size: 32px; }
  .mg-hero__actions .berth-btn { flex: 1 1 100%; }
  .mg-page { width: calc(100% - 32px); padding-top: 36px; }
  .mg-page h2 { font-size: 28px; }
  .mg-lead { font-size: 17px; }
  .mg-glance, .mg-section { padding: 22px 20px; }
  .mg-facilities { grid-template-columns: 1fr; }
  .mg-map__frame { height: 360px; }
  .mg-nearby a { grid-template-columns: 64px minmax(0, 1fr); padding: 12px 14px; }
}
