.yacht-place-page {
  --yp-ink: #17302c;
  --yp-muted: #526864;
  --yp-accent: #116557;
  --yp-border: #d5e2dc;
  --yp-paper: #fff;
  --yp-soft: #f1f7f3;
  background: #f2f6f3;
  color: var(--yp-ink);
}
.yacht-place-page .site-main {
  max-width: 1280px;
  padding: 22px clamp(18px, 4.5vw, 54px) 60px;
}
.yp {
  --yp-hero-a: #113f3a;
  --yp-hero-b: #1c6a62;
  --yp-hero-mark: #bce8d8;
  --yp-radius: 16px;
  --yp-space: clamp(16px, 2.2vw, 28px);
}
.yp[data-theme=port] { --yp-hero-a: #173844; --yp-hero-b: #235966; }
.yp[data-theme=restaurant] { --yp-hero-a: #343824; --yp-hero-b: #516040; --yp-hero-mark: #e2e7b8; }
.yp[data-theme=shore] { --yp-hero-a: #254237; --yp-hero-b: #376e60; --yp-hero-mark: #e5e8ba; }
.yp a:focus-visible, .yp summary:focus-visible,
.yacht-place-page .site-nav a:focus-visible {
  outline: 3px solid #137f72;
  outline-offset: 3px;
}
.yp [id] { scroll-margin-top: 105px; }
.yp [id]:target { outline: 2px solid #479886; outline-offset: 3px; }
.yp-crumb {
  font-size: 13px;
  line-height: 1.4;
  color: var(--yp-muted);
  margin: 0 0 15px;
}
.yp-crumb ol, .yp-toc ul, .yp-panel ul { list-style: none; padding: 0; margin: 0; }
.yp-crumb ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; }
.yp-crumb a { text-decoration: underline; text-underline-offset: 3px; }
.yp-crumb li + li::before {
  content: '›'; margin-right: 10px; color: #597771;
}
.yp-crumb [aria-current] { color: var(--yp-ink); font-weight: 600; }

.yp-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 270px;
  border-radius: 22px;
  background: linear-gradient(109deg,var(--yp-hero-a) 22%,var(--yp-hero-b) 100%);
  color: #fff;
}
.yp-hero--graphic::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg,var(--yp-hero-a) 28%,transparent 83%),
    repeating-radial-gradient(ellipse at 90% 132%, transparent 0px 25px, #c6f3de35 26px 27px, transparent 28px 43px),
    linear-gradient(132deg,transparent 48%,#91dbbe25 72%,transparent 92%);
}
.yp-hero-copy {
  position: relative;
  min-width: 0;
  padding: clamp(24px,4.2vw,56px);
  max-width: 915px;
}
.yp-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yp-hero-mark);
  font-size: .77rem;
  font-weight: 750;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.yp-kind::before {
  content: '';
  flex: 0 0 15px;
  height: 2px;
  border-radius: 3px;
  background: currentColor;
}
.yp h1 {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem,5.25vw,4.25rem);
  line-height: .99;
  font-weight: 600;
  letter-spacing: -.035em;
  margin: 12px 0 14px;
  max-width: 16ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.yp-locality {
  color: #e3f3ec;
  font-size: .83rem;
  font-weight: 630;
  margin: 0 0 14px;
}
.yp-lead {
  color: #f2fbf6;
  font-size: clamp(1rem,1.6vw,1.23rem);
  line-height: 1.56;
  margin: 0;
  max-width: 57ch;
}
.yp-hero--media { align-items: stretch; }
.yp-hero--media .yp-hero-copy { flex: 1 1 60%; align-self: center; }
.yp-hero--media .entity-hero-media { flex: 0 1 40%; align-self: stretch; margin: 0; min-width: 0; display: grid; }
.yp-hero--media .entity-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.yp-hero--media figcaption { background: var(--yp-hero-a); padding: 8px 16px; color: #edf7f1; font-size: 13px; }

.yp-quick { margin-top: 16px; }
.yp-quick dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(175px,100%),1fr));
  gap: 10px;
}
.yp-fact {
  min-width: 0;
  border: 1px solid var(--yp-border);
  padding: clamp(13px,1.7vw,23px);
  background: var(--yp-paper);
  border-radius: 13px;
}
.yp-fact dt { color: var(--yp-muted); font-size: .79rem; font-weight: 700; line-height: 1.35; }
.yp-fact dd { margin: 0; }
.yp-legacy-anchor { display: block; height: 0; }
.yp-fact dd.yp-fact-value {
  color: var(--yp-ink);
  font-size: clamp(1.12rem,2.05vw,1.6rem);
  font-weight: 720;
  line-height: 1.17;
  padding: 7px 0 6px;
  overflow-wrap: anywhere;
}
.yp-fact dd.yp-context { color: #425d55; font-size: .78rem; line-height: 1.4; margin: 1px 0 7px; }
.yp-fact[data-status=CONFLICT] dd.yp-context,
.yp-fact[data-status=REPORTED_POSSIBLE] dd.yp-context { color: #795222; }
.yp-cite {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  color: var(--yp-accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.yp-arrow { flex: 0 0 auto; font-size: 1em; color: var(--yp-accent); }
.yp-toc { margin: 15px 0 0; }
.yp-toc ul { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.yp-toc a {
  display: block;
  border: 1px solid var(--yp-border);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: .8rem;
  line-height: 1.2;
  font-weight: 650;
  background: #ffffff73;
  color: var(--yp-accent);
}
.yp-grid {
  display: grid;
  grid-template-columns: minmax(0,2.18fr) minmax(0,1fr);
  gap: var(--yp-space);
  margin-top: var(--yp-space);
  align-items: start;
}
.yp-main,.yp-side { display: grid; min-width: 0; gap: var(--yp-space); }
.yp-panel {
  border: 1px solid var(--yp-border);
  border-radius: var(--yp-radius);
  min-width: 0;
  padding: clamp(17px,2.25vw,29px);
  background: var(--yp-paper);
}
.yp-panel h2 {
  color: var(--yp-ink);
  font-size: clamp(1.25rem,2.2vw,1.6rem);
  line-height: 1.15;
  letter-spacing: -.028em;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.yp-panel p {
  margin: 0;
  line-height: 1.62;
  max-width: 68ch;
}
.yp-reading { padding: 0; }
.yp-reading .yp-section {
  padding: clamp(17px,2.25vw,29px);
  border: 0;
  background: transparent;
  border-radius: 0;
}
.yp-reading .yp-section + .yp-section { border-top: 1px solid var(--yp-border); }
.yp-reading .yp-section[data-role=restrictions] {
  background: #faf8ef;
  border-radius: 0 0 var(--yp-radius) var(--yp-radius);
}
.yp-reading .yp-section[data-role=contained_place] { background: #f8fbf7; }
.yp-reading .yp-section:first-child { border-radius: var(--yp-radius) var(--yp-radius) 0 0; }
.yp-reading .yp-section:last-child { border-radius: 0 0 var(--yp-radius) var(--yp-radius); }
.yp-reading .yp-section:only-child { border-radius: var(--yp-radius); }
.yp-section p + .yp-cite { margin-top: 10px; }
.yp-subtle { color: var(--yp-muted); font-size: .87rem; }

.yp-links ul { display: grid; gap: 8px; margin-top: 14px; }
.yp-main .yp-links ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
.yp-links a {
  color: inherit;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  height: 100%;
  padding: 12px 13px;
  border: 1px solid var(--yp-border);
  border-radius: 11px;
  background: #f6faf7;
}
.yp-links a:hover { background: #eaf4ee; text-decoration: none; }
.yp-link-copy { min-width: 0; display: grid; gap: 5px; }
.yp-link-copy small { color: var(--yp-accent); font-size: .72rem; font-weight: 700; }
.yp-link-copy strong { font-size: .94rem; line-height: 1.25; overflow-wrap: anywhere; }
.yp-link-copy > span { color: var(--yp-muted); font-size: .79rem; line-height: 1.42; }
.yp-sources ul { margin-top: 11px; }
.yp-sources li + li { border-top: 1px solid var(--yp-border); }
.yp-sources li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--yp-accent);
  gap: 12px;
  min-height: 40px;
  padding: 7px 0;
  font-size: .88rem;
  overflow-wrap: anywhere;
}
.yp-sources li a > span:first-child { min-width: 0; }
.yp-sources small {
  display: block;
  margin-top: 3px;
  color: var(--yp-muted);
  font-size: .72rem;
  line-height: 1.3;
}

.yp-location {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 12px;
  background: #edf6ef;
}
.yp-pin {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: radial-gradient(circle,var(--yp-accent) 0 3px, #cfe7d9 4px 8px, #bdddcf 9px 13px);
}
.yp-pin--area { border-radius: 8px; background: #cfe7d9; border: 2px dashed #538f7d; }
.yp-location h2 { font-size: 1.17rem; }
.yp-location p.yp-coordinates { color: var(--yp-ink); margin: 0 0 4px; font-size: .91rem; font-weight: 680; }
.yp-actions { display: flex; flex-wrap: wrap; gap: 1px 12px; margin-top: 9px; }
.yp-actions a { display: inline-flex; align-items: center; min-height: 35px; gap: 5px; font-size: .8rem; font-weight: 660; }

.yp-panel-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.yp-chip {
  font-size: .75rem;
  padding: 4px 8px;
  color: #1c534b;
  background: #e3f0e9;
  border-radius: 6px;
}
.yp-wpi-id { font-size: .82rem; font-weight: 660; color: var(--yp-accent); }
.yp-wpi .yp-wpi-id + p { margin-top: 7px; }
.yp-wpi-data { display: grid; gap: 0; margin: 13px 0; }
.yp-wpi-data > div {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--yp-border);
  line-height: 1.4;
}
.yp-wpi-data dt { font-size: .87rem; color: var(--yp-muted); }
.yp-wpi-data dd { margin: 0; font-size: .9rem; font-weight: 670; overflow-wrap: anywhere; }
.yp summary {
  color: var(--yp-accent);
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
  line-height: 1.45;
}
.yp-wpi details h3 { margin: 12px 0 4px; font-size: 1rem; }
.yp-native h3 { margin: 16px 0 6px; }
.yp-native p + p { margin-top: 8px; }
.yp-native ul { list-style: disc; margin: 8px 0 0 20px; }

@media (min-width: 801px) {
  .yp-quick .yp-fact:only-child {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    padding-block: 13px;
  }
  .yp-quick .yp-fact:only-child .yp-fact-value { font-size: 1.25rem; padding: 0; }
  .yp-quick .yp-fact:only-child .yp-context { margin: 0; }
  .yp-quick .yp-fact:only-child > dd:last-child { margin-left: auto; }
}
@media (max-width: 800px) {
  .yp-grid { grid-template-columns: minmax(0,1fr); }
  .yp-side { grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr)); }
  .yp-hero { min-height: 228px; }
}
@media (max-width: 760px) {
  .yacht-place-page .site-header {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: 'brand right' 'nav nav';
    position: relative;
    gap: 6px 12px;
    padding: 10px 15px;
    align-items: center;
  }
  .yacht-place-page .site-header > .brand { grid-area: brand; }
  .yacht-place-page .site-header > .site-nav { grid-area: nav; }
  .yacht-place-page .site-header > :not(.brand):not(.site-nav) {
    grid-area: right;
    margin: 0;
    justify-self: end;
  }
  .yacht-place-page .site-nav { justify-content: flex-start; gap: 0 6px; }
  .yacht-place-page .site-nav a { padding: 7px 5px; font-size: .81rem; }
  .yacht-place-page .brand-mark { width: 36px; height: 36px; }
  .yacht-place-page .brand { gap: 7px; }
  .yacht-place-page .brand small { font-size: .61rem; }
  .yacht-place-page .site-main { padding-top: 15px; }
  .yp [id] { scroll-margin-top: 16px; }
}
@media (max-width: 480px) {
  .yp-main .yp-links ul { grid-template-columns: minmax(0,1fr); }
  .yp-quick dl { grid-template-columns: repeat(auto-fit,minmax(min(125px,100%),1fr)); }
  .yp-hero { min-height: 0; border-radius: 16px; }
  .yp-hero-copy { padding: 23px 21px 24px; }
  .yp h1 { font-size: clamp(1.85rem, 8.5vw, 2.25rem); }
  .yp-hero--graphic::before {
    background: linear-gradient(90deg,var(--yp-hero-a) 25%,transparent 92%),
      repeating-radial-gradient(ellipse at 106% 139%,transparent 0px 20px,#c6f3de38 21px 22px,transparent 23px 32px);
  }
  .yp-hero--media { flex-direction: column; }
  .yp-hero--media .entity-hero-media { flex: initial; }
  .yp-hero--media .entity-hero-media img { aspect-ratio: 16 / 9; }
  .yp-wpi-data > div { grid-template-columns: minmax(0,1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .yp *, .yp *::before, .yp *::after { scroll-behavior: auto; transition: none; }
}
