/* ==========================================================================
   Hero v2 — desktop-optimised hero layout (preview only)

   Layout model: the hero's right-hand column (.hv2-right) is a real wrapper
   holding artwork + review proof + trust pills. On mobile that wrapper is
   `display: contents`, so its children collapse back into the section's flex
   column and `order` restores the original stacking exactly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Mobile / tablet — reproduce the live hero order despite the new wrapper
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .hv2-left,
  .hv2-right { display: contents; }

  .hv2-badge   { order: 1; }
  .hv2-media   { order: 2; }
  .hv2-title   { order: 3; }
  .hv2-sub     { order: 4; }
  .hv2-cta     { order: 5; }
  .hv2-chips   { order: 6; }
  .hv2-reviews { order: 7; margin-top: 12px; margin-bottom: 26px; }
  .hv2-pills   { order: 8; }

  /* The map-pin chip is a desktop-only flourish */
  .hv2-media__caption { display: none; }
}

/* --------------------------------------------------------------------------
   Desktop — two columns: copy left, artwork + proof right
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {

  .hero-v2 {
    display: grid;
    width: 100%;
    max-width: 1480px;
    margin-inline: auto;
    /* Clears the nav and gives the annotation room to sit above the copy
       without colliding with the header. Overrides Tailwind's md:pt-10. */
    padding-top: 84px;
    padding-bottom: 0;
    column-gap: clamp(32px, 4vw, 76px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
  }

  /* Two real columns, each a self-contained vertical stack. Keeping them as
     wrappers (rather than placing every child on the grid) stops one column's
     height from stretching the other's rows apart. */
  .hv2-left,
  .hv2-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .hv2-left  { align-items: flex-start; }
  .hv2-right { gap: 18px; }

  .hv2-badge { margin-bottom: 18px; }

  /* ---- left column: left-aligned, tighter rhythm ---- */
  .hv2-title {
    align-items: flex-start;
    text-align: left;
    font-size: clamp(2.75rem, 3.9vw, 4rem);
    line-height: 1.02;
    margin-bottom: 14px;
    gap: 0;
  }

  .hv2-sub {
    text-align: left;
    max-width: 48ch;
    margin-left: 0;
    margin-right: 0;
    font-size: 1.0625rem;
    margin-bottom: 20px;
  }

  .hv2-cta {
    max-width: 540px;
    margin-bottom: 18px;
    gap: 12px;
  }

  .hv2-chips {
    max-width: 100%;
    margin-bottom: 0;
  }
  .hv2-chips .wa-chips__label { text-align: left; }
  .hv2-chips .wa-chips__row {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
  }

  /* ---- right column: artwork gets the space it was never given ---- */
  .hv2-media {
    max-width: none;
    min-width: 0;
    margin: 0;
    position: relative;
  }

  /* No decorative glow here: hero-*.webp is fully opaque white, so anything
     painted behind it is invisible. */

  .hv2-media__img {
    width: 100%;
    height: auto;
    display: block;
  }

  .hv2-media__caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    position: absolute;
    left: 0;
    top: 4%;
    white-space: nowrap;
  }
  .hv2-media__caption .material-icons-round {
    font-size: 18px !important;
    color: #84cc16;
  }
  .dark .hv2-media__caption {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  /* Review pair sits under the artwork, matched to its width */
  .hv2-reviews {
    max-width: 460px;
    margin: 0;
  }

  .hv2-pills {
    justify-content: flex-start;
    margin-bottom: 0;
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   Hand-drawn "and surrounding areas" annotation

   Two variants — .hv2-annot--desktop and .hv2-annot--mobile — sharing the
   stroke styling and the draw-on animation below. Both are hidden by default
   and switched on at their own breakpoint. Purely decorative: the same claim
   exists as real text in the subtitle, so it is aria-hidden throughout.
   Paths use pathLength="1" so the draw animates 1 -> 0 exactly, regardless of
   their real geometry.
   -------------------------------------------------------------------------- */

/* ---- shared by both variants ---- */
  .hv2-annot {
    display: none;
    overflow: visible;
    pointer-events: none;
  }

  .hv2-annot__bubble,
  .hv2-annot__tail,
  .hv2-annot__head {
    fill: none;
    stroke: #84cc16;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .hv2-annot__text {
    font-family: Caveat, "Bradley Hand", "Comic Sans MS", cursive;
    font-size: 27px;
    font-weight: 700;
    fill: #4d7c0f;
    opacity: 0;
  }

  .dark .hv2-annot__bubble,
  .dark .hv2-annot__tail,
  .dark .hv2-annot__head { stroke: #a3e635; }
  .dark .hv2-annot__text { fill: #bef264; }

  /* Draw order: bubble outline, then the tail reaching down to the word,
     then the arrowhead, then the handwriting appears. */
  .hv2-annot__bubble { animation: hv2-draw 0.85s ease-out 0.65s forwards; }
  .hv2-annot__tail   { animation: hv2-draw 0.40s ease-out 1.45s forwards; }
  .hv2-annot__head   { animation: hv2-draw 0.20s ease-out 1.80s forwards; }
  .hv2-annot__text   { animation: hv2-write 0.45s ease-out forwards; }
  .hv2-annot__text:nth-of-type(1) { animation-delay: 1.15s; }
  .hv2-annot__text:nth-of-type(2) { animation-delay: 1.35s; }

  @keyframes hv2-draw {
    to { stroke-dashoffset: 0; }
  }
  @keyframes hv2-write {
    from { opacity: 0; transform: translateY(4px) rotate(-1.5deg); }
    to   { opacity: 1; transform: translateY(0) rotate(0deg); }
  }

  /* Respect reduced motion: show the finished annotation, skip the drawing. */
  @media (prefers-reduced-motion: reduce) {
    .hv2-annot__bubble,
    .hv2-annot__tail,
    .hv2-annot__head,
    .hv2-annot__text { animation: none; stroke-dashoffset: 0; opacity: 1; }
  }

/* ---- desktop variant: absolutely placed above the copy column ----
   Needs room to sit right of the availability badge without hitting the
   artwork, so it only appears once the copy column is wide enough. 1:1 with
   its viewBox, so path coordinates are pixels measured from .hv2-left. */
@media (min-width: 1280px) {
  .hv2-left { position: relative; }

  .hv2-annot--desktop {
    display: block;
    position: absolute;
    left: 120px;
    top: -52px;
    width: 500px;
    height: 200px;
    z-index: 2;
  }
}

/* ---- stacked-layout variant: in normal flow, in the gap above the headline ----
   Centred, like the headline it points at. The arrow tip sits near the SVG's
   left edge, so centring both keeps the tip over "London's" at every width in
   this range — right-aligning only worked on narrow phones. */
@media (max-width: 1023.98px) {
  .hv2-annot--mobile {
    display: block;
    order: 3;
    align-self: center;
    width: 230px;
    height: 76px;
    /* Nudged right of centre so the arrow lands on the end of "London's"
       rather than its middle. */
    transform: translateX(32px);
  }

  /* On the narrowest phones the full nudge puts the bubble within a few px of
     the card edge, so ease off — and drop it entirely on tiny screens. */
  @media (max-width: 374.98px) {
    .hv2-annot--mobile { transform: translateX(14px); }
  }
  @media (max-width: 339.98px) {
    .hv2-annot--mobile { transform: none; }
  }

  /* The annotation supplies the spacing the artwork used to need. */
  .hv2-media { margin-bottom: 0 !important; }

  .hv2-annot__text { font-size: 19px; }

  /* Renumbered to make room for the annotation at order 3. Every item below
     it shifts by one — miss one and it collides with its neighbour. */
  .hv2-title   { order: 4; }
  .hv2-sub     { order: 5; }
  .hv2-cta     { order: 6; }
  .hv2-chips   { order: 7; }
  .hv2-reviews { order: 8; }
  .hv2-pills   { order: 9; }
}

/* --------------------------------------------------------------------------
   The Yell badge has no listing URL yet, so it renders as a card rather than
   a link. Drop the hover lift that would imply it is clickable.
   -------------------------------------------------------------------------- */
.rev-badge--static { cursor: default; }
.rev-badge--static:hover {
  transform: none;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.45);
}
.dark .rev-badge--static:hover {
  box-shadow: 0 12px 34px -18px rgba(0, 0, 0, 0.8);
}
