/* Where can she berth: checker, marina pages and the berth summary on yacht and new-build pages. */
.berth-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 88px;
  color: #1d1d1f;
  font-family: inherit;
}
.berth-page h2, .berth-card h2, .berth-group h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  color: #0b1220;
}
.berth-note {
  padding: 22px 26px;
  background: #fff;
  border: 1px solid #e8e3d6;
  border-left: 3px solid #c9a96a;
  color: #424245;
  font-size: 15px;
  line-height: 1.55;
}
.berth-note p { margin: 0 0 10px; }
.berth-note p:last-child { margin-bottom: 0; }

.berth-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  align-items: end;
  margin: 28px 0 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #e8e3d6;
}
.berth-form--stack { grid-template-columns: 1fr; margin-top: 0; }
.berth-field { min-width: 0; }
.berth-field label {
  display: block;
  margin-bottom: 8px;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.berth-field input,
.berth-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfc8b6;
  border-radius: 0;
  background: #fff;
  color: #0b1220;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}
.berth-field input:focus,
.berth-field select:focus { outline: 2px solid #c9a96a; outline-offset: 1px; }
.berth-field--submit .berth-btn { width: 100%; justify-content: center; }
.berth-error { margin: 6px 0 0; color: #a4262c; font-size: 13px; }

.berth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  background: #0b1220;
  border: 1px solid #0b1220;
  color: #c9a96a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.berth-btn:hover { background: #121b2d; color: #e6d3a8; text-decoration: none; }

.berth-prefill { margin: 16px 0 0; color: #6e6e73; font-size: 14px; }
.berth-empty { margin: 36px 0 0; color: #6e6e73; font-size: 16px; }

.berth-summary { margin-top: 40px; }
.berth-summary__count { margin: 0 0 16px; font-size: 18px; line-height: 1.45; }
.berth-summary__count strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; font-weight: 600; color: #0b1220; }
.berth-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; }
.berth-sort span { color: #6e6e73; margin-right: 4px; }
.berth-sort a {
  padding: 8px 14px;
  border: 1px solid #cfc8b6;
  background: #fff;
  color: #0b1220;
  text-decoration: none;
}
.berth-sort a.is-active { background: #0b1220; border-color: #0b1220; color: #c9a96a; }

.berth-index { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.berth-index a, .berth-chips a {
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #e8e3d6;
  color: #0b1220;
  font-size: 14px;
  text-decoration: none;
}
.berth-index a:hover, .berth-chips a:hover { border-color: #c9a96a; }
.berth-index span, .berth-chips span { color: #8a6a2c; font-weight: 600; }

.berth-group { margin-top: 52px; scroll-margin-top: 96px; }
.berth-group__count { margin: 0 0 16px; color: #6e6e73; font-size: 14px; }
.berth-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.berth-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr 1.2fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e8e3d6;
  font-size: 15px;
}
.berth-row__name a { color: #0b1220; font-size: 17px; font-weight: 600; }
.berth-row__name span { display: block; margin-top: 2px; color: #6e6e73; font-size: 13px; }
.berth-row__label {
  display: block;
  margin-bottom: 2px;
  color: #8e97a8;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.berth-row__margin { color: #0b1220; font-weight: 600; }

.berth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.berth-card { min-width: 0; padding: 30px; background: #fff; border: 1px solid #e8e3d6; }
.berth-card--wide { margin-top: 20px; }
.berth-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e8e3d6; }
.berth-result p { margin: 10px 0 0; color: #424245; font-size: 15px; }
.berth-result__margin { font-weight: 600; color: #157a45 !important; }
.berth-facts { display: grid; gap: 14px; margin: 0; }
.berth-facts div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; font-size: 15px; }
.berth-facts dt { color: #6e6e73; }
.berth-facts dd { margin: 0; color: #0b1220; overflow-wrap: anywhere; }
.berth-facts a, .berth-links a { color: #0b1220; }
.berth-small { margin: 18px 0 0; color: #6e6e73; font-size: 14px; line-height: 1.5; }
.berth-small a { color: #8a6a2c; }
.berth-tariff { margin: 0; color: #424245; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.berth-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.berth-links span { color: #6e6e73; font-size: 14px; }

/* Berth summary block, used on yacht and new-build pages. */
.berth-sum { color: #1d1d1f; font-size: 15px; line-height: 1.5; }
.berth-sum__lead { margin: 0 0 18px; font-size: 16px; }
.berth-sum__lead strong { color: #0b1220; }
.berth-sum__sub {
  margin: 26px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #0b1220;
}
.berth-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.berth-tight { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.berth-tight li { padding: 16px 18px; background: #fff; border: 1px solid #e8e3d6; }
.berth-tight a { color: #0b1220; font-weight: 600; font-size: 16px; }
.berth-tight__margin { display: inline-block; margin-left: 10px; color: #157a45; font-size: 13px; font-weight: 600; }
.berth-tight p { margin: 6px 0 0; color: #6e6e73; font-size: 14px; }
.berth-sum .berth-btn { margin-top: 22px; }

/* Asking marinas for a berth: pick them in the results, then send from the bridge. */
.berth-btn--gold { background: #c9a96a; border-color: #c9a96a; color: #0b1220; }
.berth-btn--gold:hover { background: #d8bc85; color: #0b1220; }
.berth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.berth-pick { float: left; display: flex; margin: 3px 12px 8px 0; cursor: pointer; }
.berth-pick input { width: 20px; height: 20px; margin: 0; accent-color: #0b1220; cursor: pointer; }
.berth-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.berth-ask {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 36px;
  padding: 18px 22px;
  background: #0b1220;
  color: #c9cfda;
  font-size: 14px;
  line-height: 1.5;
}
.berth-ask p { margin: 0; max-width: 680px; }
.berth-ask b { color: #c9a96a; font-size: 18px; }
.berth-request { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e8e3d6; }
.berth-request .berth-btn { width: 100%; }

@media (max-width: 860px) {
  .berth-grid { grid-template-columns: 1fr; }
  .berth-row { grid-template-columns: 1fr 1fr; }
  .berth-row__name { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .berth-page { padding-top: 40px; }
  .berth-card, .berth-form { padding: 20px; }
  .berth-page h2, .berth-card h2, .berth-group h2 { font-size: 26px; }
  .berth-facts div { grid-template-columns: 1fr; gap: 2px; }
  .berth-row { grid-template-columns: 1fr 1fr; padding: 14px; }
}

/* Berth desk: availability by size band and the waiting list */
.berth-avail dd small { color: var(--nb-mute, #6b6b6b); margin-left: 6px; }
.berth-avail__state { font-weight: 600; }
.berth-avail__state--available { color: #1e5a3c; }
.berth-avail__state--limited { color: #73541a; }
.berth-avail__state--waitlist, .berth-avail__state--full { color: #8a2b2b; }
.berth-wait { margin-top: 18px; }
.berth-wait summary { cursor: pointer; font-weight: 600; }
.berth-wait form { margin-top: 12px; }
.berth-owner { max-width: 1120px; margin: 24px auto 0; padding: 0 16px; }
.berth-avail__stale { color: #8a2b2b; font-weight: 600; }
.berth-avail__updated { margin: 0 0 14px; }
.berth-form--dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.berth-form--dates .berth-field--submit { grid-column: 1 / -1; }

/* Live availability and the indicative price (marina page; the composer has its own copy in berthdesk.css) */
.berth-live:empty { display: none; }
.berth-live { margin-top: 20px; padding: 16px 18px; background: var(--lux-ivory, #f6f3ec); border-left: 3px solid var(--lux-gold, #c9a96a); }
.berth-live p { margin: 0; font-size: 15px; line-height: 1.5; }
.berth-live p + p { margin-top: 4px; }
.berth-live__line--open b { color: #1e5a3c; }
.berth-live__line--partial b, .berth-live__line--wait b { color: #73541a; }
.berth-live__line--full b { color: #8a2b2b; }
.berth-live__price { margin-top: 12px !important; }
.berth-live__price b { font-family: var(--lux-serif, Georgia, serif); font-size: 24px; font-weight: 600; color: var(--lux-ink, #0b1220); }
.berth-live__meta { color: var(--lux-text-mute, #6e6e73); font-size: 13px !important; }

.berth-rates { width: 100%; max-width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: 15px; }
.berth-rates th:nth-child(2), .berth-rates td:nth-child(2) { width: 42%; }
.berth-rates th, .berth-rates td { padding: 12px 12px 12px 0; text-align: left; border-bottom: 1px solid var(--lux-rule, #e8e3d6); }
.berth-rates th { color: var(--lux-text-mute, #6e6e73); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.berth-rates td:last-child { font-weight: 600; }
.berth-rates th, .berth-rates td { overflow-wrap: anywhere; }

/* The marina index: /marinas/ */
.mi-hero { padding-bottom: 56px; }
.mi-page { padding-top: 32px; }
.mi-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.mi-filters__name { grid-column: span 2; }
.mi-filters__checks { grid-column: span 3; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; min-height: 46px; }
.mi-check { display: inline-flex; align-items: center; gap: 10px; color: var(--lux-ink, #0b1220); font-size: 15px; cursor: pointer; }
.mi-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--lux-ink, #0b1220); }
.mi-check input:focus-visible { outline: 2px solid var(--lux-gold, #c9a96a); outline-offset: 2px; }
.mi-summary { margin: 24px 0 0; }
.mi-summary .berth-small { margin-top: 6px; }
.mi-summary a { color: #8a6a2c; }

.mi-maps { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 28px; }
.mi-plot { margin: 0; background: #fff; border: 1px solid var(--lux-rule, #e8e3d6); }
.mi-plot svg { display: block; width: 100%; height: auto; }
.mi-plot__sea { fill: #0b1220; }
.mi-plot__grid { stroke: rgba(201, 169, 106, 0.16); stroke-width: 1; }
.mi-plot__label { fill: rgba(230, 211, 168, 0.55); font-size: 13px; font-family: inherit; }
.mi-plot__dot circle { fill: #e6d3a8; fill-opacity: 0.75; stroke: #0b1220; stroke-width: 1.5; transition: r 0.15s ease; }
.mi-plot__dot--desk circle { fill: #c9a96a; fill-opacity: 1; stroke: #fff; }
.mi-plot__dot:hover circle, .mi-plot__dot:focus circle { r: 10; fill-opacity: 1; }
.mi-plot__dot:focus { outline: none; }
.mi-plot__dot:focus-visible circle { stroke: #fff; stroke-width: 3; }
.mi-plot figcaption { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; color: var(--lux-text-mute, #6e6e73); font-size: 13px; }
.mi-key { display: inline-flex; align-items: center; gap: 8px; }
.mi-key__dot { width: 10px; height: 10px; border-radius: 50%; background: #e6d3a8; border: 1.5px solid #0b1220; }
.mi-key__dot--desk { width: 13px; height: 13px; background: #c9a96a; }
.mi-google { margin-top: 0; }
.mi-google__title { margin: 0; font-family: var(--lux-serif, Georgia, serif); font-size: 24px; color: var(--lux-ink, #0b1220); }
.mi-google .mg-map__frame { height: clamp(300px, 34vw, 440px); }
.mi-regions { margin-top: 36px; }

.mi-country { margin: 28px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lux-text-mute, #6e6e73); }
.mi-country span { margin-left: 6px; color: #8a6a2c; }
.mi-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mi-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.6fr) 72px;
  gap: 12px 20px;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--lux-rule, #e8e3d6);
}
.mi-row--desk { border-left: 3px solid var(--lux-gold, #c9a96a); }
.mi-row__name { min-width: 0; }
.mi-row__name a { color: var(--lux-ink, #0b1220); font-size: 17px; font-weight: 600; }
.mi-row__name a:focus-visible, .mi-row__map:focus-visible, .mi-filters a:focus-visible { outline: 2px solid var(--lux-gold, #c9a96a); outline-offset: 2px; }
.mi-row__name span { display: block; margin-top: 2px; color: var(--lux-text-mute, #6e6e73); font-size: 13px; }
.mi-row__limits { display: flex; gap: 18px; margin: 0; font-size: 14px; }
.mi-row__limits dt { color: var(--lux-text-mute, #6e6e73); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.mi-row__limits dd { margin: 2px 0 0; color: var(--lux-ink, #0b1220); }
.mi-row__status { min-width: 0; font-size: 14px; }
.mi-row__status small { display: block; margin-top: 2px; color: var(--lux-text-mute, #6e6e73); font-size: 12px; }
.mi-avail { font-weight: 600; }
.mi-avail--open { color: #1e5a3c; }
.mi-avail--partial, .mi-avail--wait { color: #73541a; }
.mi-avail--full { color: #8a2b2b; }
.mi-badge { display: inline-block; padding: 3px 10px; border: 1px solid var(--lux-gold, #c9a96a); color: #73541a; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
.mi-row__map {
  justify-self: end;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cfc8b6;
  background: #fff;
  color: var(--lux-ink, #0b1220);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mi-row__map:hover { border-color: var(--lux-gold, #c9a96a); }
.mi-note { margin-top: 48px; }
.mi-note a { color: #8a6a2c; }

@media (max-width: 960px) {
  .mi-maps { grid-template-columns: minmax(0, 1fr); }
  .mi-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mi-filters__name, .mi-filters__checks { grid-column: 1 / -1; }
  .mi-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mi-row__limits, .mi-row__status { grid-column: 1 / -1; }
  .mi-row__map { grid-row: 1; grid-column: 2; }
  .mi-row__status:empty { display: none; }
}
@media (max-width: 520px) {
  .mi-filters { grid-template-columns: minmax(0, 1fr); }
  .berth-form--dates { grid-template-columns: minmax(0, 1fr); }
  .mi-row { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mi-plot__dot circle { transition: none; }
}

/* Berth desk on the checker and marina pages: availability with its date, reply time, Featured box, ratings */
.berth-row__name .berth-avail-line,
.berth-row__name .berth-reply { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; }
.berth-avail-line { color: #424245; overflow-wrap: anywhere; }
.berth-avail-line small { color: #6e6e73; font-size: 12px; }
.berth-avail-line--open { color: #1e5a3c; font-weight: 600; }
.berth-avail-line--partial, .berth-avail-line--wait { color: #73541a; font-weight: 600; }
.berth-avail-line--full { color: #8a2b2b; font-weight: 600; }
.berth-avail-line small { font-weight: 400; }
.berth-reply { color: #424245; }
.berth-reply.is-quick { color: #1e5a3c; }

.berth-featured {
  margin: 28px 0 0;
  padding: 20px 22px;
  background: #fffdf7;
  border: 1px solid #e8e3d6;
  border-left: 3px solid #c9a96a;
}
.berth-page .berth-featured h2 { font-size: 24px; margin-bottom: 12px; }
.berth-featured__tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border: 1px solid #c9a96a;
  color: #73541a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.berth-featured__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0 0 12px; padding: 0; list-style: none; }
.berth-featured__item { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; background: #fff; border: 1px solid #e8e3d6; }
.berth-featured__item > a:first-of-type { color: #0b1220; font-size: 17px; font-weight: 600; }
.berth-featured__item .berth-featured__tag { align-self: flex-start; }
.berth-featured__item .berth-avail-line, .berth-featured__item .berth-reply { font-size: 13px; }
.berth-featured__find { color: #6e6e73; font-size: 13px; }
.berth-featured a:focus-visible, .berth-row a:focus-visible { outline: 2px solid #c9a96a; outline-offset: 2px; }

.berth-trust__reply { margin: 0 0 12px; font-size: 16px; color: #424245; }
.berth-trust__reply.is-quick b { color: #1e5a3c; }
.berth-trust__reply small, .berth-trust__stars small { display: block; color: #6e6e73; font-size: 13px; }
.berth-trust__stars { margin: 0 0 12px; font-size: 16px; }
.berth-trust__stars b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; font-weight: 500; }
.berth-trust__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.berth-trust__list li { padding: 14px 16px; background: #fff; border: 1px solid #e8e3d6; overflow-wrap: anywhere; }
.berth-trust__list p { margin: 0 0 6px; font-size: 15px; }
.berth-trust__list p:first-child { color: #6e6e73; font-size: 13px; }
