/* Kapcsolat page: the details in large type beside one photo. */
.cp-section { padding-top: 0; }
.cp-layout { display: grid; gap: var(--space-8); align-items: start; }
.cp-lede { max-width: 22ch; margin: 0 0 var(--space-8); font-family: "Newsreader", serif; font-size: 26px; font-weight: 400; line-height: 1.2; }
.cp-list { display: grid; margin: 0 0 var(--space-8); padding: 0; }
.cp-item { display: grid; gap: var(--space-2); padding-block: var(--space-4); border-top: 1px solid var(--paper-2); }
.cp-item:last-child { border-bottom: 1px solid var(--paper-2); }
.cp-item dt { margin: 0; }
.cp-item dd { display: grid; gap: var(--space-2); margin: 0; font-family: "Newsreader", serif; font-size: 22px; line-height: 1.3; }
.cp-item address { font-style: normal; }
.cp-person { display: grid; gap: 2px; margin: 0; }
.cp-person span { color: var(--muted); font-size: var(--type-4); }
.cp-item a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cp-link, .cp-social a { font-size: var(--type-5); }
/* The map is drawn in the site's own paper look (flat paper ground, paper-2 for built-up land, vine green for vineyard and forest,
   hairline streets), so on it ink is the one dark and raspberry stays "this is the winery / press here". */
.cp-social { display: flex !important; flex-wrap: wrap; gap: var(--space-2) var(--space-6) !important; }
.cp-person-leticia span { color: var(--raspberry); font-weight: 500; }
.cp-person-viktor span { color: var(--vine); font-weight: 500; }
/* The map is our own drawing from OpenStreetMap data (nothing is loaded from another server). The picture has the winery at its exact
   centre, so the pin is laid over the centre of the frame whatever the crop. The whole frame is one link; the pin and the label are drawn here. */
.cp-map { display: block; margin-inline: calc(var(--gutter) * -1); }
.cp-map-frame { position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 4 / 5; background: var(--paper-2); isolation: isolate; }
.cp-map-link { position: absolute; inset: 0; display: block; color: var(--paper); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cp-map-world { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.cp-map-light { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle clamp(120px, 34cqw, 220px) at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .5), transparent 70%); opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease-out); }
.cp-map-frame.is-hot .cp-map-light { opacity: 1; }
/* Three pictures of one place, all centred on the winery: the town (3.4 km wide), the valley (1 km) and the street (220 m). Clicking the
   town zooms into the street: contact.js scales each layer by the real ratio between the levels and cross-fades them (`--cp-p` grows the
   pin, `--cp-label` brings in the winery's name). The frame's own state is `data-level` (town | street). */
.cp-map-zoom { position: absolute; inset: 0; transform-origin: 50% 50%; animation: cp-map-drift 28s var(--ease-in-out) infinite alternate; }
.cp-lv { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
.cp-lv-valley, .cp-lv-street { opacity: 0; visibility: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 calc(var(--f, 0) * 18%), #000 calc(100% - var(--f, 0) * 18%), transparent), linear-gradient(to bottom, transparent, #000 calc(var(--f, 0) * 18%), #000 calc(100% - var(--f, 0) * 18%), transparent); mask-image: linear-gradient(to right, transparent, #000 calc(var(--f, 0) * 18%), #000 calc(100% - var(--f, 0) * 18%), transparent), linear-gradient(to bottom, transparent, #000 calc(var(--f, 0) * 18%), #000 calc(100% - var(--f, 0) * 18%), transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
.cp-lv-valley { --f: var(--cp-fv, 0); }
.cp-lv-street { --f: var(--cp-fs, 0); }
.cp-map-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-town-name { position: absolute; left: 65%; top: 58.7%; translate: -50% -50%; color: var(--ink); font-family: "Newsreader", serif; font-style: italic; font-weight: 500; font-size: clamp(20px, 6.2cqw, 34px); line-height: 1; letter-spacing: .02em; white-space: nowrap; text-shadow: 0 0 .22em var(--paper), 0 0 .5em var(--paper), 0 0 .8em var(--paper); pointer-events: none; }
.cp-pin { position: absolute; left: calc(50% + var(--cp-dx, -14.8) * 1%); top: calc(50% + var(--cp-dy, -8.9) * 1%); width: 11cqw; max-width: 72px; min-width: 40px; aspect-ratio: 40 / 58; transform: translate(-50%, -100%); transform-origin: 50% 100%; translate: 0 0; filter: drop-shadow(0 .6cqw .8cqw rgb(28 35 43 / .3)); animation: cp-pin-drop 760ms cubic-bezier(.3, 1.5, .5, 1) 350ms backwards; transition: scale 220ms var(--ease-out); }
.cp-pin svg { display: block; width: 100%; height: 100%; scale: calc(.4 + .6 * var(--cp-p, 0)); transform-origin: 50% 100%; }
.cp-pin-pulse { position: absolute; left: 50%; bottom: 0; width: calc(150% * (.4 + .6 * var(--cp-p, 0))); aspect-ratio: 1; border: 2px solid color-mix(in srgb, var(--raspberry) 55%, transparent); border-radius: 50%; translate: -50% 50%; scale: 1 .42; opacity: 0; pointer-events: none; animation: cp-pin-pulse 3.6s var(--ease-out) 1.4s infinite; }
.cp-pin-label { position: absolute; left: calc(50% + 7cqw); top: calc(50% - 9cqw); max-width: 38cqw; padding: .55em 1em; border-radius: 1.1em; background: var(--ink); box-shadow: 0 .6cqw 1.8cqw rgb(28 35 43 / .26); color: var(--paper); font-family: "Lexend Exa", sans-serif; font-size: clamp(11px, 3.1cqw, 17px); font-weight: 600; letter-spacing: .02em; line-height: 1.25; opacity: var(--cp-label, 0); translate: calc((1 - var(--cp-label, 0)) * -10px) 0; margin-left: 0; transition: margin-left 220ms var(--ease-out); }
.cp-map-go { position: absolute; right: 14px; bottom: 14px; display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--ink); box-shadow: 0 4px 12px rgb(28 35 43 / .26); color: var(--paper); transition: background 180ms var(--ease-out), color 180ms var(--ease-out), scale 180ms var(--ease-out); }
.cp-map-go svg { width: 22px; height: 22px; }
.cp-go-open { display: none; }
.cp-map-frame[data-level="street"] .cp-go-zoom { display: none; }
.cp-map-frame[data-level="street"] .cp-go-open { display: block; }
.cp-map-link:hover .cp-map-go, .cp-map-link:focus-visible .cp-map-go { background: var(--raspberry); color: var(--paper); scale: 1.1; }
.cp-map-link:hover .cp-pin, .cp-map-link:focus-visible .cp-pin { scale: 1.12; }
.cp-map-link:hover .cp-pin-label, .cp-map-link:focus-visible .cp-pin-label { margin-left: 3px; }
.cp-map-link:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
/* The way back out: only in the street state, over the link (never inside it), at least 44 px tall. */
.cp-map-back { position: absolute; left: 12px; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: .3em; min-height: 44px; padding: 0 16px 0 8px; border: 1px solid rgb(28 35 43 / .16); border-radius: 999px; background: var(--paper); box-shadow: 0 4px 12px rgb(28 35 43 / .16); color: var(--ink); font-family: "Lexend Exa", sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .02em; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; opacity: 0; visibility: hidden; translate: 0 -6px; transition: opacity 220ms var(--ease-out), translate 220ms var(--ease-out), visibility 0s linear 220ms, background 180ms var(--ease-out); }
.cp-map-back svg { width: 22px; height: 22px; }
.cp-map-frame[data-level="street"] .cp-map-back { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.cp-map-back:hover { background: color-mix(in srgb, var(--paper) 82%, var(--vine)); }
.cp-map-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cp-map-credit { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 88%, transparent); font-size: 11px; line-height: 1.4; }
.cp-map-credit a { color: var(--ink); text-decoration: none; }
.cp-map-credit a:hover { text-decoration: underline; }
@keyframes cp-map-drift { from { scale: 1; } to { scale: 1.09; } }
@keyframes cp-pin-drop { 0% { translate: 0 -9cqw; opacity: 0; } 55% { opacity: 1; } 100% { translate: 0 0; opacity: 1; } }
@keyframes cp-pin-pulse { 0% { scale: .25 .1; opacity: .85; } 70%, 100% { scale: 1 .42; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cp-map-zoom, .cp-pin, .cp-pin-pulse { animation: none; }
  .cp-lv { transition: opacity 300ms linear; }
  .cp-pin-label { transition: opacity 300ms linear; }
}
@media (min-width: 760px) {
  .cp-layout { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(36px, 6vw, 96px); }
  .cp-lede { max-width: 26ch; font-size: 36px; }
  .cp-item { grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr); gap: var(--space-6); align-items: baseline; padding-block: var(--space-6); }
  .cp-item dd { font-size: 28px; }
  .cp-person { grid-template-columns: minmax(150px, auto) auto; align-items: baseline; gap: var(--space-4); }
  .cp-person span { font-size: var(--type-5); }
  .cp-map { margin-inline: 0; position: sticky; top: calc(var(--header-h) + 28px); }
  .cp-map-frame { width: min(100%, calc((100svh - var(--header-h) - 100px) * .8)); margin-inline-start: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgb(28 35 43 / .12); }
}
