/* =========================================================================
   Activities (/activities/) — styles used by this page only. Classes: .activities-*
   Shared pieces (navbar, sticky hero mechanic, eyebrow, card, buttons, photo
   band, footer) live in components.css. Values are what the HIFI page renders.
   ========================================================================= */

/* Navbar: see-through over the photo again, as on Home (Oliver, Nov 20, 2026; FX-131). The page carries
   data-nav="overlay", so components.css's overlay bar applies. From Nov 16 to 20, 2026 the bar was solid ink from
   page load (FX-89). */

/* =========================================================================
   Hero: sticky Wine Train photo
   ========================================================================= */
.activities-hero {
  height: min(clamp(420px, 56vw, 660px), 100vh);
  min-height: 340px;
  background: var(--stucco-300);
}
.activities-hero__photo { object-position: 50% 38%; }

@media (max-width: 700px) {
  .activities-hero { height: clamp(300px, 70vw, 420px); }
}
@media (max-width: 760px) and (orientation: portrait) {
  .activities-hero { height: 62vh; height: 62svh; }
  .activities-hero__photo { object-position: 36% 38%; }
}

/* =========================================================================
   The section that slides up over the photo
   ========================================================================= */
@keyframes activities-fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes activities-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.activities-next {
  padding: 56px 16px 24px;
  background: var(--stucco-50);
}

/* Headline card: hangs over the photo's bottom edge, bottom-right.
   The row has no height and cancels the section's top padding, so its top
   is the photo's bottom edge; the card is centred on that line. */
.activities-cardrow {
  position: relative;
  z-index: 3;
  max-width: var(--container-content);
  height: 0;
  margin: -56px auto 0;
  padding: 0 8px;
}
.activities-card {
  position: absolute;
  top: 0;
  right: 0;
  width: max-content;
  max-width: calc(100% - 16px);
  padding: clamp(18px, 2.4vw, 28px) clamp(22px, 3vw, 36px);
  border: 1px solid #E9DFCC; /* one-off: the design's headline-card border, a shade off --stucco-200 */
  border-radius: var(--radius-md);
  background: var(--stucco-50);
  box-shadow: var(--shadow-card);
  transform: translateY(-50%);
}
.activities-card__eyebrow {
  line-height: 1;
  animation: activities-fade-up 900ms var(--ease-out-soft) 240ms both;
}
.activities-card__title {
  margin-top: 10px;
  font-size: clamp(34px, 3.9vw, 50px);
  line-height: 1.04;
  animation: activities-fade-up 900ms var(--ease-out-soft) 480ms both;
}
.activities-card__script {
  font-size: 1.14em;
  line-height: 1;
  color: var(--vermillion-500);
}

/* Keeps the map clear of the card's lower half. activities.js sets
   --activities-card-half to ceil(card height / 2 + 8px); these are the fallbacks. */
.activities-cardspace { height: var(--activities-card-half, 77px); }

@media (max-width: 700px) {
  .activities-card {
    position: relative;
    top: auto;
    right: auto;
    width: min(88%, 380px);
    margin: -56px auto 0;
  }
  .activities-cardspace { height: var(--activities-card-half, 75px); }
}
@media (max-width: 640px) {
  .activities-card { left: 0; width: auto; }
}

/* ---- Map + "Where you are" ---------------------------------------------- */
.activities-map {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  container-type: inline-size;
}
/* Hover target = the full-width wrapper, as in the design: hovering the blank
   area beside/below the "Where you are" copy zooms the map too. It scales
   around 34% across, the 68%-wide illustration's centre. Not a link. */
.activities-map__zoom {
  display: block;
  transform-origin: 34% 50%;
  transition: transform var(--duration-slow) var(--ease-out-soft), filter var(--duration-slow) var(--ease-out-soft);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .activities-map__zoom:hover {
    transform: scale(1.022);
    filter: drop-shadow(0 10px 24px rgba(36,28,23,.16));
  }
}
.activities-map__art { display: block; width: 68%; height: auto; }
.activities-map__art[data-reveal] { --reveal-y: 30px; --reveal-scale: 1; --reveal-fade: 700ms; --reveal-move: 700ms; }

.activities-map__text {
  position: absolute;
  top: 5%;
  left: 54.5%;
  right: 2%;
}
.activities-map__title {
  margin-top: 8px;
  font-size: clamp(28px, 2.9cqw, 40px);
  line-height: 1.1;
}
.activities-map__lede {
  max-width: 42ch;
  margin-top: 12px;
  color: var(--ink-700);
  font-size: clamp(14px, 1.3cqw, 16px);
  line-height: 1.7;
}

/* The copy beside the map waits for the first scroll (activities.js sets
   data-state; without JS or with reduced motion it is simply visible). */
.activities-map__text[data-state="pending"] > * {
  opacity: 0;
  transform: translateY(24px);
}
.activities-map__text[data-state="in"] > * {
  transition:
    opacity 720ms var(--ease-out-soft),
    transform 780ms var(--ease-out-soft);
}

/* "See what's in walking distance" + circled arrow */
.activities-tie {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: var(--text-size-body);
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-soft);
}
.activities-tie__arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--vermillion-500);
  border-radius: var(--radius-circle);
  color: var(--vermillion-500);
  /* Hanken has no ↓: the design's stack falls back to the system UI font for it. */
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1;
  animation: activities-bob 2.4s cubic-bezier(.45,0,.55,1) 2;
  transition: background-color 160ms var(--ease-out-soft), color 160ms var(--ease-out-soft);
}
.activities-tie:hover,
.activities-tie:focus-visible { color: var(--vermillion-500); text-decoration: none; }
.activities-tie:hover .activities-tie__arrow,
.activities-tie:focus-visible .activities-tie__arrow { background: var(--vermillion-500); color: var(--white); }

@media (max-width: 860px) {
  .activities-map__art { width: 100%; }
  .activities-map__text {
    position: static;
    max-width: 56ch;
    margin: 8px auto 0;
    text-align: center;
  }
  /* The design leaves the 42ch paragraph at the start of the centred block
     here (its text is centred); phones, upright tablets and phones held
     sideways centre the paragraph itself below. */
}

/* Touch tablets held sideways: the design drops the jump link. */
@media (min-width: 901px) and (max-width: 1366px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .activities-tie { display: none; }
}

/* =========================================================================
   Walking distance / worth the drive
   ========================================================================= */
.activities-lists {
  padding: 48px 24px 96px;
  background: var(--stucco-50);
  scroll-margin-top: calc(96px - var(--eb-nav-clear)); /* lands 96px below the top (base.css adds --eb-nav-clear) */
}
.activities-lists:focus { outline: none; }
.activities-lists__inner { max-width: var(--container-content); margin: 0 auto; }
.activities-lists__grid,
.activities-lists__drive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.activities-lists__drive { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }

.activities-list { padding: 28px 28px 10px; }
.activities-list[data-reveal] { --reveal-y: 30px; --reveal-scale: 1; }
/* As the design renders it: the card's own lift transition replaces the
   reveal's, so the card appears at once and slides 30px up in 220ms. */
.activities-list[data-reveal-state="in"] { transition: var(--transition-lift); }
/* The design's hover lifts the card 2px but keeps its resting shadow. */
.activities-list.eb-card--lift:hover { box-shadow: var(--shadow-card); }
/* ...and cancels the lift on phones (upright or sideways), even with a mouse. */
@media (max-width: 760px), (orientation: landscape) and (max-height: 500px) {
  .activities-list.eb-card--lift:hover { transform: none; }
}
.activities-list__title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: var(--weight-bold);
  font-variation-settings: normal;
  line-height: var(--lh-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-brand);
}
.activities-list__rows { margin-top: 16px; }
.activities-list__row {
  --reveal-y: 14px;
  --reveal-scale: 1;
  --reveal-fade: 520ms;
  --reveal-move: 520ms;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.activities-list__name {
  color: var(--text-heading);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}
.activities-list__meta {
  flex: none;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

@media (max-width: 940px) {
  .activities-lists__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  .activities-list { padding: 22px 18px; }
  .activities-list__row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .activities-list__meta { text-align: left; }
}

/* =========================================================================
   Closing photo band
   ========================================================================= */
.activities-band__actions { flex-wrap: nowrap; gap: 16px; }

/* The design's 40px 20px phone padding is for upright phones only; held
   sideways at ≤760px the band keeps its 48px 24px (the shared
   --center-mobile modifier applies 40px 20px at every ≤760px). */
@media (max-width: 760px) and (orientation: landscape) {
  .activities-band .eb-photo-band__inner { padding: 48px 24px; }
}

/* =========================================================================
   Upright phones
   ========================================================================= */
@media (max-width: 760px) and (orientation: portrait) {
  .activities-next { padding: 40px 16px 16px; }
  .activities-map__text { margin: 32px auto 0; padding: 0 8px; }
  .activities-map__title { margin: 14px auto 0; font-size: 28px; line-height: 1.15; }
  .activities-map__lede { margin: 14px auto 0; font-size: 15px; line-height: 1.65; }
  .activities-tie { margin-top: 22px; font-size: 15px; }

  .activities-lists { padding: 28px 18px 52px; }
  .activities-list { padding: 22px 18px 8px; }
  .activities-list__row { padding: 12px 0; }
  .activities-list__row > span {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .activities-band { --band-min-mobile: 440px; }
}

/* =========================================================================
   Upright tablets
   ========================================================================= */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .activities-map__art { width: 100%; }
  .activities-map__text {
    position: static;
    max-width: 60ch;
    margin: 36px auto 0;
    padding: 0 24px;
    text-align: center;
  }
  .activities-map__text > * { margin-left: auto; margin-right: auto; }
  .activities-map__title { margin-top: 16px; font-size: 34px; line-height: 1.12; }
  .activities-map__lede { margin-top: 16px; font-size: 16px; line-height: 1.65; }
  .activities-tie { margin-top: 20px; justify-content: center; }
}

/* =========================================================================
   Phones held sideways
   ========================================================================= */
@media (orientation: landscape) and (max-height: 500px) {
  .activities-next { padding: 40px 24px 16px; }
  .activities-map { max-width: 760px; }
  .activities-map__art { width: 100%; }
  .activities-map__text {
    position: static;
    max-width: 56ch;
    margin: 24px auto 0;
    text-align: center;
  }
  .activities-map__title,
  .activities-map__lede { margin: 12px auto 0; }
  .activities-tie { margin-top: 20px; justify-content: center; }

  .activities-lists { padding: 28px 24px 56px; }
  .activities-lists__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .activities-list { padding: 20px 18px 8px; }
  .activities-list__row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .activities-list__meta { text-align: left; }

  /* The design centres the band card here too (the shared modifier stops at 760px). */
  .activities-band .eb-photo-band__inner { display: flex; justify-content: center; }
  .activities-band .eb-photo-band__card { text-align: center; }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .activities-card__eyebrow,
  .activities-card__title,
  .activities-tie__arrow { animation: none; }
  .activities-map__zoom { transition: none; }
  .activities-map__text[data-state] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Touch screens: 44×44px minimum hit area for the "See what's in walking distance" jump link,
   as components.css does for buttons and text links. Nothing moves. */
@media (pointer: coarse) {
  .activities-tie { position: relative; }
  .activities-tie::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
  }
}
