/* ============================================================================
   Venue detail page (/venue/{alias}) -- the redesign. Sport-agnostic.

   Namespaced under .venueV2, which lives on the one <section> in
   v2/view.jsp, so nothing here can reach another page and it can restate
   element defaults (h1, h2, ul, a) without knowing what style.css did to them.

   Loaded from view/tennisvenues-au/venue-details/v2/head.jsp -- on this page
   only, and only when site.venueUi=v2. TennisVenues keeps the classic page.

   ---------------------------------------------------------------------------
   THE SHAPE OF THIS PAGE, and why.

   ONE PHOTOGRAPH BAND, THEN THE FACTS. The old page opened with the venue name
   on white, a strip of four thumbnails underneath, and the booking button
   floated off to the right where it read as a caption to the logo. A venue is
   a PLACE, and the first thing a page about a place should do is show it. So
   the venue's own pictures become a full-bleed band, the name sits on them,
   and the one thing you can do here -- book -- sits directly under the name at
   the size of a real button.

   ONE BOOKING BUTTON. It used to appear twice, once in the header and again in
   a "Court Booking" box halfway down, and a second copy of the primary action
   does not double the chance of it being pressed -- it halves the confidence
   that either is the real one. The sentence that box carried ("online booking
   is available at this venue") is still on the page, in the location panel,
   where it is information rather than a second ask.

   ALMOST NO CARDS AND ALMOST NO RULES. A section here is a heading, a hairline
   and its content -- the same language as the dashboard. There is exactly ONE
   panel on the page, the location block in the sidebar, and it is a panel
   because it is the only thing on the page that is a self-contained object
   rather than a section of prose: a map, an address and the ways to get in
   touch. Being the only one is what makes it read as deliberate.

   THREE COLOURS, as on the dashboard: ink for what you read, grey for what
   supports it, accent for what you can act on -- and accent for nothing else.
   The accent comes from --accent, declared on :root by the theme palette, so
   this file names no brand and no sport.
   ========================================================================= */

.venueV2 {
  --v-accent:     var(--accent, #2196f3);

  --v-ink:        #121114;
  --v-ink-mid:    #55535b;
  --v-ink-soft:   #8a8792;

  --v-page:       #ffffff;
  --v-wash:       #f6f6f7;
  --v-hairline:   rgba(18, 17, 20, 0.10);

  /* The one dark surface on the page: the location panel, and the hero's
     ground behind the photographs. Cool rather than neutral black -- these
     sports are played indoors under artificial light. */
  --v-dark:       #17171c;
  --v-dark-mid:   #a7a6ae;
  --v-dark-line:  rgba(255, 255, 255, 0.14);

  /* ------------------------------------------------------------------
     THE FLOAT, AND WHY THIS SECTION HAS TO CLEAR ONE.

     style.css:323 sets "section, footer { float: left; width: 100% }" for the
     whole site, so every section on every page is a full-width left float and
     they stack because each one clears the last by being the same width.

     This section opts out of that -- it is the page, not a band of chrome --
     but the section BEFORE it does not: the breadcrumb include renders its own
     <section id="navigation_links">, which is still a 100%-wide left float.

     "clear: both" IS LOAD-BEARING. Without it the breadcrumb's float is still
     in play beside this section, and the hero -- which sets overflow:hidden
     and therefore establishes a new block formatting context -- refuses to
     overlap a float. Instead of running full width it shrinks to fit in the
     space beside one, which is none, so it laid out as a 0px-wide box at
     x = the right edge of the page.

     The failure is worth describing because it looks like nothing at all: the
     section measured 1440px, the hero measured 787px TALL, its background
     computed to the right dark colour and its title computed to white. Every
     assertion you would think to write passed, and the page photographed as a
     blank white band, because the one dimension nobody checks was zero.
     ------------------------------------------------------------------ */
  float: none;
  clear: both;
  width: 100%;
  padding: 0;
  position: relative;
  background-color: var(--v-page);
  font-family: 'Muli', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.venueV2 .container { position: relative; }

@media (min-width: 1200px) {
  .venueV2 .container { width: 100%; max-width: 1140px; }
}

@media (min-width: 1600px) {
  .venueV2 .container { max-width: 1260px; }
}

/* ==========================================================================
   THE HERO
   ========================================================================== */

.venueV2 .vHero {
  position: relative;
  overflow: hidden;
  background-color: var(--v-dark);
}

/* THE VENUE'S OWN PHOTOGRAPHS, side by side, as one band.

   A row rather than a single image on purpose: most venues have three or four
   pictures and no one of them is "the" picture, so choosing one would be
   arbitrary and would waste the rest. Laid out edge to edge they read as one
   photograph of a place rather than as a gallery, which is what the strip of
   four thumbnails under the old header could never do -- it had gaps, borders
   and captions, so it read as four separate assets.

   Every tile is flex:1, so a venue with one picture gets a full-bleed single
   image and a venue with four gets quarters, from the same markup. */
.venueV2 .vHeroArt {
  position: absolute;
  inset: 0;
  display: flex;
  /* NO GAP. This carried a 2px hairline between frames on the theory that a
     seam helps the eye read three photographs as three photographs. In
     practice it draws two vertical rules straight down the hero, and the eye
     reads RULES -- the band stops being a picture of a place and becomes a
     row of tiles. Butted edge to edge the change of image is enough of a seam
     on its own. */
  gap: 0;
}

.venueV2 .vHeroArt img {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 100%;
  object-fit: cover;
  /* Slightly desaturated and darkened at source so the scrim below does not
     have to be heavy enough to turn the photographs to mud. */
  filter: saturate(0.9) brightness(0.82);
}

/* Only the first two frames survive on a phone: quarters of a 375px screen are
   90px wide, which is not a photograph of anything. */
@media (max-width: 767px) {
  .venueV2 .vHeroArt img:nth-child(n+3) { display: none; }
}

/* THE SCRIM IS TWO GRADIENTS, NOT A FLAT WASH.

   A flat overlay dark enough for white type over a bright court floor turns
   the whole picture to mud. Two gradients put the weight only where the type
   is and leave the rest of the frame near full strength.

   VERTICAL, because the name and the button sit along the bottom edge.

   AND HORIZONTAL, from the left, because they also sit against the LEFT edge
   -- and without it the first frame decides whether the heading is legible.
   These are venue-supplied photographs: one venue's first picture is a dark
   hall and the next one's is a white wall in sunlight, and a vertical-only
   scrim reads perfectly on the first and fails on the second. The horizontal
   pass makes the type's own column dark whatever happens to be behind it,
   which is the only way this can be right for every venue rather than for the
   one that was open while it was being designed.

   Both are anchored to where the type is rather than being symmetrical, so
   the right-hand two-thirds of the picture -- which nothing is written over --
   keeps its contrast. */
.venueV2 .vHeroScrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
              rgba(15, 15, 20, 0.72) 0%,
              rgba(15, 15, 20, 0.45) 34%,
              rgba(15, 15, 20, 0.00) 62%),
    linear-gradient(to bottom,
              rgba(15, 15, 20, 0.30) 0%,
              rgba(15, 15, 20, 0.50) 42%,
              rgba(15, 15, 20, 0.86) 100%);
}

/* On a phone the type runs the full width of the screen, so a scrim that
   clears by 62% would leave the end of a long venue name unprotected. */
@media (max-width: 767px) {
  .venueV2 .vHeroScrim {
    background:
      linear-gradient(to right,
                rgba(15, 15, 20, 0.62) 0%,
                rgba(15, 15, 20, 0.42) 100%),
      linear-gradient(to bottom,
                rgba(15, 15, 20, 0.30) 0%,
                rgba(15, 15, 20, 0.52) 42%,
                rgba(15, 15, 20, 0.88) 100%);
  }
}

.venueV2 .vHeroInner {
  position: relative;   /* above the art and the scrim */
  padding: 96px 15px 44px;
}

@media (min-width: 768px) {
  .venueV2 .vHeroInner { padding: 150px 15px 56px; }
}

@media (min-width: 992px) {
  .venueV2 .vHeroInner { padding: 190px 15px 64px; }
}

/* --- the pills ---------------------------------------------------------- */

/* What this venue can DO, above its name -- the same information the old page
   carried, and in the same place, but in the hero's palette rather than as
   pale green chips on white. Glass rather than solid: they sit on a photograph
   and a filled chip would punch a hole in it. */
/* ONE LINE OF STATUS, ON THE PAGE ITSELF.

   No capsule, no ground, no border. This has now been three things -- a row of
   translucent pills, then one white capsule, now nothing -- and the third is
   the right one: a near-white capsule on a photographic hero is a second
   object competing with the venue's name for the top of the page, and it wins,
   because it is the brightest thing there. The words are what matter; they can
   sit on the photograph like the venue's name and address already do.

   What is left is a dot, two facts and a hairline between them, in the hero's
   own white ink. The divider is doing the whole job the capsule was.

   THE TEXT NEEDS THE SHADOW THE REST OF THE HERO HAS. Without a ground behind
   it, 13px type is at the mercy of whatever the venue uploaded -- a photograph
   of a white sports hall leaves white-on-white. The same text-shadow the title
   and the address carry is what makes it survive that. */
.venueV2 .vFeatures {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.venueV2 .vFeatures li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* The divider is a border on the item, so the padding either side of it is
     what sets how far apart the two facts sit. */
  padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  background: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* No rule before the first item and no padding outside the capsule's own. */
.venueV2 .vFeatures li:first-child { border-left: 0; padding-left: 0; }
.venueV2 .vFeatures li:last-child { padding-right: 0; }

.venueV2 .vFeatures .fa { font-size: 12px; opacity: 0.85; }

/* THE LIVE DOT. Green because that is what green means here -- a service that
   is up -- and it is the only colour in the capsule, so it is unambiguous
   which fact it belongs to. The ring is what stops an 8px circle disappearing
   against a light ground; it is the dot's own colour at low alpha rather than
   a second colour. */
.venueV2 .vFeatures .vDot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.28);
}

/* THE GAP AFTER "by" WAS A FLEX GAP, not a space and not the italic.

   Every other item in the strip is a flex row -- it has a dot or an icon
   beside its label, and "gap: 8px" is what separates the two. This item is
   just a sentence with a link at the end of it, but flex does not know that:
   contiguous text becomes an ANONYMOUS flex item, so "Powered by" and the
   <a>SportLogic</a> were two flex items with the full 8px between them, on top
   of the ordinary word space already in the markup. Measured, "by SportLogic"
   was set about 11px apart where the font asks for 3.5.

   inline-block, so it is a run of text again and the space between the two
   words is the one the typeface draws. Nothing else needs a gap here.

   Not italic either -- an italic space before an upright word sets wider than
   the font's own, which was the first thing blamed for this and was not it. */
.venueV2 .vFeatures li.vPowered {
  display: inline-block;
  font-weight: 500;
  font-style: normal;
  color: rgba(255, 255, 255, 0.88);
}

/* Underlined at rest. It is the one thing in the strip you can click, and on a
   line with no ground behind it there is nothing else left to say so -- colour
   cannot, because everything here is white on a photograph. */
.venueV2 .vFeatures li.vPowered a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  -webkit-text-decoration-color: rgba(255, 255, 255, 0.55);
          text-decoration-color: rgba(255, 255, 255, 0.55);
}

.venueV2 .vFeatures li.vPowered a:hover,
.venueV2 .vFeatures li.vPowered a:focus {
  color: #ffffff;
  -webkit-text-decoration-color: currentColor;
          text-decoration-color: currentColor;
}

/* ON A PHONE, DROP THE ATTRIBUTION AND LET THE REST WRAP.

   This was a single non-wrapping line that scrolled sideways, to stop three
   rows of pills pushing the venue's name off the fold. It worked, but the
   last pill -- "Powered by SportLogic" -- sat half off the right edge with no
   affordance saying it could be scrolled, so it simply read as CUT OFF.

   The fix is not a nicer scroller. It is that the attribution does not belong
   in a phone hero at all: it is the one item there that is not about the
   venue and not something the reader came for, and the footer already carries
   it. Without it the remaining pills fit on one or two lines, so they can
   wrap honestly and nothing is clipped. */
@media (max-width: 767px) {
  /* ON A PHONE THE DIVIDERS GO, because they only work while the items are on
     one line: a border-left on an item that has wrapped to the start of a new
     row draws a stray vertical rule with nothing to its left. A venue with
     gate access and lighting has four items and wraps at any phone width. */
  .venueV2 .vFeatures {
    flex-wrap: wrap;
    row-gap: 6px;
    -webkit-column-gap: 16px;
            column-gap: 16px;
  }

  .venueV2 .vFeatures li {
    padding: 0;
    border-left: 0;
    font-size: 12.5px;
  }
  /* The attribution goes on its OWN line, under the capability pills.

     flex-basis:100% forces the wrap BEFORE it rather than leaving it to
     whatever happens to fit -- which is what produced the original bug, where
     it ended up as the tail of a non-wrapping row and sat half off the right
     edge. Given a line to itself it cannot be clipped at any width, whatever
     pills precede it.

     margin-right:auto keeps it left-aligned on that line rather than letting
     the pill stretch the full width of the screen. */
  /* ITS OWN LINE, BUT ITS OWN WIDTH.

     flex-basis:100% on the pill put it on its own line and STRETCHED it to the
     full width of the screen -- a pill three times the size of the ones above
     it, which is worse than the clipping it replaced.

     The line break has to be a separate flex item, and the only one CSS can
     generate is the container's own ::before. Given order:5 it lands after the
     capability pills (order 0) and before the attribution (order 6), is zero
     pixels tall, and forces the wrap. The attribution then keeps its natural
     content width and matches the pills exactly. */
  /* THE FORCED LINE BREAK IS GONE, and it has to be: a zero-height flex item
     with flex-basis:100% is 100% of the CONTAINER, and the container now sizes
     itself to max-content -- so the break was telling the panel to be as wide
     as it is, which resolves to the full width of the screen. Measured, that is
     a panel two thirds empty with the text hugging its left edge.

     Nothing needs forcing any more. The two facts are a row that no longer
     fits, and flex-wrap puts the second one on its own line by itself. */
  .venueV2 .vFeatures::before { content: none; }
}

/* --- name, address, status ---------------------------------------------- */

.venueV2 .vTitleRow {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.venueV2 .vTitle {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: 'Poppins', 'Muli', sans-serif;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  /* style.css uppercases every heading on the site. A venue's name is a proper
     noun and belongs in the case its owner wrote it in. */
  text-transform: none;
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

@media (min-width: 768px) { .venueV2 .vTitle { font-size: 52px; } }
@media (min-width: 992px) { .venueV2 .vTitle { font-size: 62px; } }

.venueV2 .vWhere {
  margin: 16px 0 0;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.venueV2 .vWhere .fa { margin-right: 8px; opacity: 0.75; }
.venueV2 .vWhere a { color: inherit; }

.venueV2 .vStatus { margin: 16px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }

.venueV2 .vStatus .label {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* --- save to My Venues --------------------------------------------------- */

/* A disc, not a bare glyph. On a photograph an unbacked outline heart is
   invisible over anything pale, and this is the only other control in the
   hero -- it has to be findable without competing with the booking button,
   which is why it is a ring rather than a fill. */
.venueV2 .vSave {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: 4px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.venueV2 .vSave:hover,
.venueV2 .vSave:focus { background: rgba(255, 255, 255, 0.24); color: #ffffff; }

.venueV2 .vSave:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4), 0 0 0 4px #ffffff;
}

/* Saved: filled, in the accent. The only place the accent appears on the
   photograph other than the booking button, and it means the same thing --
   something you did or can do. */
.venueV2 .vSave.active {
  background: var(--v-accent);
  border-color: var(--v-accent);
  color: #ffffff;
}

/* --- the one button ------------------------------------------------------ */

.venueV2 .vActions {
  margin: 30px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.venueV2 a.vBook {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 19px 40px;
  border: 0;
  border-radius: 999px;
  background-color: var(--v-accent);
  color: #ffffff;
  font-family: 'Poppins', 'Muli', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  /* The one shadow on the page. It is here because this button sits ON a
     photograph: without it the accent floats, and with it the button reads as
     an object lying on the picture. */
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  transition: filter 0.16s ease, transform 0.16s ease;
}

.venueV2 a.vBook:hover,
.venueV2 a.vBook:focus { color: #ffffff; text-decoration: none; filter: brightness(0.9); }
.venueV2 a.vBook:active { filter: brightness(0.8); transform: translateY(1px); }

.venueV2 a.vBook:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.45), 0 0 0 5px #ffffff;
}

@media (max-width: 767px) {
  /* Full width, because on a phone it is the page's one job. */
  .venueV2 a.vBook { width: 100%; justify-content: center; padding: 20px 24px; font-size: 18px; }
}

/* The sentence that goes with an external booking link -- "you will be taken
   to ..." -- and nothing else. */
.venueV2 .vActionNote {
  margin: 0;
  max-width: 34em;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

/* The venue's own logo, if it has one. Small and beside the name rather than
   given a column of its own: it is provenance, not the subject. */
.venueV2 .vLogo {
  margin: 0 0 24px;
  max-width: 190px;
  max-height: 72px;
  width: auto;
  height: auto;
  /* Most venue logos are dark-on-white artwork with no transparency, so a
     white plate is what keeps them legible on the photograph. */
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   THE BODY
   ========================================================================== */

.venueV2 .vBody { padding: 52px 15px 90px; }

@media (min-width: 992px) { .venueV2 .vBody { padding: 68px 15px 110px; } }

.venueV2 .vGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

/* The sidebar is a fixed measure rather than a fraction: it holds a map and an
   address, neither of which gets better with more room, and pinning it means
   the reading column takes every extra pixel a wide monitor offers. */
@media (min-width: 992px) {
  .venueV2 .vGrid {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 60px;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .venueV2 .vGrid { gap: 76px; }
}

.venueV2 .vMain { min-width: 0; }

/* --- sections ------------------------------------------------------------ */

/* A heading, a hairline and the content. No box. The rule is doing the same
   job as on the dashboard: it is the line the heading stands on, not a border
   around anything. */
.venueV2 .vSection { margin: 0 0 46px; }
.venueV2 .vSection:last-child { margin-bottom: 0; }

.venueV2 .vSection > h2 {
  /* NO RULE UNDER THE HEADING. A heading is already a heading -- its size,
     its weight and the space around it do the separating. Adding a line under
     every one of them draws six horizontal rules down a page that has four
     things on it, and that stack of lines is most of what "template" looks
     like. Space separates; lines enclose. This page wants the former. */
  margin: 0 0 20px;
  padding: 0;
  font-family: 'Poppins', 'Muli', sans-serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--v-ink);
}

.venueV2 .vSection > h2 small {
  display: block;
  margin-top: 7px;
  font-family: 'Muli', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--v-ink-soft);
}

/* Venue-written prose. Longer measure than the page is wide, capped so a line
   never runs past about 78 characters. */
.venueV2 .vProse {
  max-width: 62em;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--v-ink-mid);
}

.venueV2 .vProse p:last-child { margin-bottom: 0; }
.venueV2 .vProse a { color: var(--v-accent); }

/* --- facilities ---------------------------------------------------------- */

/* A SPEC SHEET, not a grid of ticked boxes.
 *
 * Two earlier versions of this were wrong in the same way. An inline bulleted
 * list (the classic page) reads as a ranking -- first item most important --
 * when a facility list is a set of equal facts. A grid of filled tiles each
 * carrying a green tick reads as a checklist someone has been marking off, and
 * a tick is the part that gives it away: it answers a question nobody asked.
 * Nothing here is unticked. Every line on this list is a facility the venue
 * HAS, so saying so twenty times is twenty pieces of ink carrying no
 * information, and rows of identical ticked pills is exactly the look that
 * gets called generated.
 *
 * This is how a car spec, a hotel's "what's here", or a stadium's facilities
 * page sets the same data: a plain two- or three-column list, ruled between
 * rows, name only. The ruling does the work the tick was pretending to do --
 * it says "these are discrete items in one set" -- and it costs one hairline
 * per row instead of a coloured glyph.
 *
 * ROW FLOW, not column flow. Reading down each column and then across is what
 * a printed list does, and it was the first instinct here -- but it needs the
 * row count fixed in advance, and CSS cannot know how many facilities a venue
 * has. Get it wrong and the last column is empty or the list spills to a fourth
 * row nobody asked for. Left to flow across, any number of items fills evenly
 * and the final row is simply short, which is what every spec table does.
 */
/* FACILITIES -- A SET OF ATTRIBUTES, NOT A RULED TABLE.

   This was a three-column grid with a hairline above every row. Two problems,
   and they compound: eleven items over three columns draws eleven rules, which
   is more lines than a section this small can carry; and because CSS cannot
   know where a column starts, the first item of columns two and three kept a
   rule the first item of column one did not have. Every fix for that made the
   ruling more conspicuous, which is the sign the rules were the problem.

   Chips instead. Each facility is a filled pill -- no border, so no strokes at
   all -- and they wrap as a set. That is a truer shape for the data than a
   list is: these are unordered, independent attributes of a venue, all of the
   same weight, and a wrapped set says exactly that while a column of ruled
   rows implies an order and a hierarchy that do not exist.

   It also scans better. The eye picks "Licensed cafe" out of a field of pills
   in one pass; in three ruled columns it has to read down each one.

   No icons, deliberately. A tick beside every item says nothing -- they are
   all present, that is why they are listed -- and a distinct glyph per
   facility means inventing and maintaining forty of them. */
.venueV2 .vFacilities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.venueV2 .vFacilities li {
  padding: 9px 15px;
  border-radius: 999px;
  background-color: var(--v-wash);
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--v-ink);
  /* Long facility names ("Automated court lighting") must not be broken across
     lines inside a pill -- a two-line chip reads as two chips. */
  white-space: nowrap;
}

/* Except on a phone, where a long name against a 375px screen has nowhere to
   go and clipping it would lose information. There, let it wrap. */
@media (max-width: 480px) {
  .venueV2 .vFacilities li { white-space: normal; }
}


/* --- gallery ------------------------------------------------------------- */

.venueV2 .vGallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .venueV2 .vGallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

.venueV2 .vGallery a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  /* Held shape, so a row of mixed-aspect uploads does not go ragged and so the
     grid has its full height before a single image has loaded. */
  aspect-ratio: 4 / 3;
  background: var(--v-wash);
}

/* aspect-ratio is not in every browser this theme still supports; the padding
   trick is the fallback and is harmless where the property lands. */
@supports not (aspect-ratio: 4 / 3) {
  .venueV2 .vGallery a { height: 0; padding-bottom: 75%; }
}

.venueV2 .vGallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .venueV2 .vGallery a:hover img { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .venueV2 .vGallery img { transition: none; }
  .venueV2 .vGallery a:hover img { transform: none; }
}

/* --- coaching ------------------------------------------------------------ */

/* The one other action on the page. Outlined, not filled: it is a different
   thing from booking a court and must not compete with it. */
.venueV2 a.vSecondaryAction {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid var(--v-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--v-accent);
  font-family: 'Poppins', 'Muli', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.venueV2 a.vSecondaryAction:hover,
.venueV2 a.vSecondaryAction:focus {
  background: var(--v-accent);
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   THE SIDEBAR -- the page's only panel
   ========================================================================== */

@media (min-width: 992px) {
  /* Follows the reader down a long About section. 92px clears the site header
     plus a little air. */
  .venueV2 .vSide { position: sticky; top: 92px; }
}

/* WHITE, NOT NEAR-BLACK.

   The dark panel was doing two jobs: separating the sidebar from the body, and
   making the map look deliberate rather than dropped in. It did both, and it
   also put a heavy black rectangle down one side of an otherwise white page --
   which is the single loudest thing on the screen and is not the venue, the
   photographs, or the booking button.

   White, with the map carrying all the contrast, lets the picture be the dark
   thing in that column. The panel is then held together by its radius and its
   shadow rather than by a fill. */
.venueV2 .vPanel {
  border-radius: 18px;
  overflow: hidden;             /* keeps the map inside the rounded corners */
  background: var(--v-page);
  color: var(--v-ink);
  box-shadow: 0 1px 2px rgba(18, 17, 20, 0.06), 0 10px 26px rgba(18, 17, 20, 0.07);
}

.venueV2 .vPanelMap {
  display: block;
  position: relative;
  height: 300px;
  background: #23232a;
}

.venueV2 .vPanelMap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venueV2 .vPanelBody { padding: 28px 26px 30px; }

.venueV2 .vPanel h2 {
  margin: 0 0 16px;
  font-family: 'Poppins', 'Muli', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--v-ink);
}

.venueV2 .vPanelList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.venueV2 .vPanelList li {
  display: flex;
  gap: 13px;
  /* Space between the rows, not a rule between them. Four contact details do
     not need three horizontal lines to be four things -- the icon at the head
     of each row already says where one ends and the next begins. */
  padding: 9px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--v-ink-mid);
  word-break: break-word;
}

.venueV2 .vPanelList li:first-child { padding-top: 0; }

.venueV2 .vPanelList .fa {
  flex: none;
  width: 16px;
  margin-top: 3px;
  text-align: center;
  color: var(--v-accent);
}

.venueV2 .vPanelList a { color: var(--v-ink); text-decoration: none; }
.venueV2 .vPanelList a:hover,
.venueV2 .vPanelList a:focus { color: var(--v-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Get directions. Filled accent inside the dark panel -- the panel is the one
   dark surface on the page and this is the one thing to do with it, so there
   is nothing here for it to compete with. */
.venueV2 a.vDirections {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 18px 0 0;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--v-accent);
  color: #ffffff;
  font-family: 'Poppins', 'Muli', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: filter 0.16s ease;
}

.venueV2 a.vDirections:hover,
.venueV2 a.vDirections:focus { color: #ffffff; text-decoration: none; filter: brightness(0.9); }
.venueV2 a.vDirections:active { filter: brightness(0.8); }

.venueV2 .vSideExtra { margin-top: 26px; }

/* ==========================================================================
   ADMIN
   --------------------------------------------------------------------------
   Deliberately plain and deliberately last. These controls are for two or
   three people and must not shape a page a hundred thousand readers see, so
   they get a quiet strip at the foot of the content rather than buttons in the
   hero -- which is where two of them used to be.
   ========================================================================== */

.venueV2 .vAdmin {
  margin: 54px 0 0;
  padding: 20px 0 0;
  /* A hairline, not a dashed one. Dashes read as "unfinished" or "drag here";
     this is just the foot of the page. It is the ONLY rule left on the
     content column, and it earns it -- these controls belong to nobody the
     page is written for. */
  border-top: 1px solid var(--v-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.venueV2 .vAdmin .vAdminLabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v-ink-soft);
  margin-right: 4px;
}

.venueV2 .vAdmin a,
.venueV2 .vAdmin button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--v-hairline);
  border-radius: 8px;
  background: #ffffff;
  color: var(--v-ink-mid);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.venueV2 .vAdmin a:hover,
.venueV2 .vAdmin button:hover:not([disabled]) {
  border-color: rgba(18, 17, 20, 0.28);
  color: var(--v-ink);
  text-decoration: none;
}

.venueV2 .vAdmin button[disabled] { opacity: 0.5; cursor: not-allowed; }

.venueV2 .vAdminNote { font-size: 12.5px; color: var(--v-ink-soft); }

/* ==========================================================================
   Shared includes, restyled in place.

   about / facilities / gallery / update-history all wrap their content in
   ".detailsInfoBox" and are rendered by BOTH designs. Rather than fork them,
   the class is restyled inside .venueV2 -- so the classic page keeps whatever
   style.css gives it and this page gets a section.
   ========================================================================== */

.venueV2 .detailsInfoBox {
  padding: 0;
  margin: 0 0 46px;
  border: 0;
  background: none;
}

.venueV2 .detailsInfoBox:last-child { margin-bottom: 0; }

.venueV2 .detailsInfoBox > h2 {
  /* No rule. Same reasoning as .vSection > h2 above -- these are the same
     heading in a different wrapper, and they have to look it. */
  margin: 0 0 20px;
  padding: 0;
  font-family: 'Poppins', 'Muli', sans-serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--v-ink);
}

/* ==========================================================================
   Print: the hero is a photograph and a button, neither of which is any use on
   paper. What someone printing this page wants is the address.
   ========================================================================== */

@media print {
  .venueV2 .vHero,
  .venueV2 .vAdmin,
  .venueV2 a.vDirections { display: none; }
  .venueV2 .vPanel { background: none; color: #000; border: 1px solid #999; }
  .venueV2 .vPanelList li,
  .venueV2 .vPanelList a { color: #000; }
}

/* ==========================================================================
   ORDER ON A PHONE -- location before reviews
   --------------------------------------------------------------------------
   Down one column the source order runs: about, facilities, gallery, REVIEWS,
   then the location panel. Which is wrong for someone on a phone: where a
   place is and how to get there is the question they are most likely to have
   next, and reviews are the thing they read once they already care.

   display:contents on .vMain dissolves the wrapper so its sections become
   direct children of the flex column and can be ordered individually. The
   alternative -- moving the reviews include out of <main> in the markup --
   would change the document outline for every reader to fix a phone layout.

   Desktop is untouched: the grid rule above only applies from 992px.
   ========================================================================== */
@media (max-width: 991px) {
  .venueV2 .vGrid {
    display: flex;
    flex-direction: column;
  }

  /* Everything not named below keeps order 0 and stays in source order. */
  .venueV2 .vMain { display: contents; }
  .venueV2 .vSide { order: 50; }
  .venueV2 .vMain .detailsInfoBox:last-of-type { order: 60; }
  .venueV2 .vAdmin { order: 70; }
}

/* ==========================================================================
   THE REVIEWS BLOCK'S TRAILING SPACE
   --------------------------------------------------------------------------
   The Yotpo widget renders its own footer padding under the stars, and then
   .detailsInfoBox adds a 46px section margin on top of it. Stacked, that is
   most of a screen of nothing at the bottom of the page.

   The section margin is the half we own, so that is the half that goes. The
   :last-child rule further up only fires when reviews are genuinely last -- an
   admin sees the admin strip after them -- so this is scoped by class instead.
   ========================================================================== */
.venueV2 .yotpo-main-widget { margin-bottom: 0; }

.venueV2 .detailsInfoBox:last-of-type { margin-bottom: 8px; }

/* ==========================================================================
   A HERO WITH NO PHOTOGRAPHS
   --------------------------------------------------------------------------
   The dark ground exists to carry white type over pictures. With no pictures
   it is 500px of black at the top of an otherwise white page, which reads as
   an image that failed to load. So the ground goes white and the type goes to
   ink -- same layout, same pills, same button, same heart.

   Not many venues, but the ones without photographs are exactly the ones
   already at a disadvantage, and a page that looks broken makes it worse.
   ========================================================================== */
.venueV2 .vHero.vHeroBare { background-color: var(--v-page); }

/* THE TITLE COMES UP TO THE TOP, and this is the rest of that same fix.

   The hero's top padding -- 96px on a phone, 190px past 992 -- is not spacing.
   It is CLEARANCE: the photographs run edge to edge behind it and the type has
   to sit low enough to be over the dark end of them rather than in the middle
   of the picture. Take the photographs away and the reason goes with them, but
   the padding stayed, so a venue with no pictures opened with 190px of nothing,
   then its name, then the address, and then the content began another 68px
   further down. Measured on a 1080p screen that is a third of the first
   screenful spent before the page says anything.

   It reads as a page that has failed to load something, which -- on a venue
   with no photographs and no booking, so nothing else to look at -- is the
   worst possible first impression for exactly the venues that can least afford
   one.

   So the bare hero is spaced like a heading rather than like a band: enough
   room under the header to breathe, and the name at the top where the eye
   starts. The body's own top padding comes down to match, because 68px of gap
   under a title that is now near the top reads as a hole rather than as
   separation.

   NOTHING ELSE CHANGES. No cards, no rearranging, no new furniture -- the
   sections keep the heading-and-hairline treatment they already have, and the
   location panel is untouched. The complaint was that the page looked empty and
   the answer to that is to stop holding it open, not to fill it. */
.venueV2 .vHeroBare .vHeroInner { padding-top: 34px; padding-bottom: 26px; }
.venueV2 .vHeroBare + .vBody,
.venueV2 .vHeroBare ~ .vBody { padding-top: 30px; }

@media (min-width: 768px) {
  .venueV2 .vHeroBare .vHeroInner { padding-top: 44px; padding-bottom: 30px; }
}

@media (min-width: 992px) {
  .venueV2 .vHeroBare .vHeroInner { padding-top: 52px; padding-bottom: 34px; }
  .venueV2 .vHeroBare ~ .vBody { padding-top: 38px; }
}

/* THE PHONE NUMBER, WHERE THE BOOK BUTTON WOULD HAVE BEEN.

   Deliberately NOT styled as the Book button. That button is a filled accent
   pill and it means "this happens now, here, in one click"; a phone number does
   not, and dressing it up the same way promises something it cannot deliver --
   the reader taps it expecting a booking form and gets their dialler.

   So it is an OUTLINED control in the same shape and position: unmistakably the
   page's action, visibly a different kind of action. The number itself is set in
   the accent because that is the part you are being asked to use. */
.venueV2 .vActionsNoBooking { margin-top: 22px; }

/* THE NOTE UNDER IT IS WHITE-ON-WHITE WITHOUT THIS.

   .vActionNote is rgba(255,255,255,0.78) because it was written for the dark
   hero, where it sits over photographs. The only place it appears on a BARE
   hero is here -- so the sentence explaining that the venue does not take
   online bookings, which is the whole reason the phone number is there,
   rendered invisible. This is the third thing in this hero to inherit white
   type it cannot use; see the .vHeroBare block below for the others. */
.venueV2 .vHeroBare .vActionNote {
  color: var(--v-ink-mid);
  text-shadow: none;
}

.venueV2 .vActionsNoBooking .vActionNote { margin-top: 12px; }

.venueV2 .vCallVenue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1.5px solid var(--v-accent, #d20a0a);
  border-radius: 100px;
  background: transparent;
  color: var(--v-accent, #d20a0a);
  font-family: 'Poppins', 'Muli', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  -webkit-transition: background-color 0.16s ease, color 0.16s ease;
          transition: background-color 0.16s ease, color 0.16s ease;
}

/* Fills on hover -- the outline becoming solid is the same gesture the button
   makes, so the two read as members of one family without being interchangeable
   at rest. */
.venueV2 .vCallVenue:hover,
.venueV2 .vCallVenue:focus {
  background: var(--v-accent, #d20a0a);
  color: #ffffff;
  text-decoration: none;
}

.venueV2 .vCallVenue .fa { font-size: 15px; opacity: 0.9; }

/* A HAIRLINE UNDER THE HEADER BLOCK, and only when the hero is bare.

   With photographs the hero ends at an obvious edge -- the bottom of the
   pictures. Without them the name, the address and the first section are all
   black type on the same white, so nothing says where the page's header ends
   and its content begins, and the two run together into one long column.

   A rule rather than a panel: it is the same device the sections below already
   use to separate a heading from its content, so the page gains no new idea. */
.venueV2 .vHeroBare .vHeroInner {
  border-bottom: 1px solid var(--v-line, rgba(20, 20, 26, 0.10));
}

/* THE SCRIM HAS TO GO TOO -- this is what was still painting the black band.

   The scrim is two dark gradients laid over the hero so white type stays
   legible on top of a photograph. Setting the GROUND to white did nothing
   visible on a venue with no pictures, because the scrim is a separate layer
   drawn on top of it: white ground, black gradients over it, still a black
   band. With nothing behind it there is no contrast problem to solve, so it
   simply is not drawn. */
.venueV2 .vHeroBare .vHeroScrim { display: none; }
/* The address class is .vWhere, not .vHeroAddress -- naming it wrongly is why
   it stayed white-on-white and was all but invisible.

   The text-shadows go too. Both the title and the address carry a soft dark
   glow so white type holds up over an unpredictable photograph; on white it is
   just a smudge round every letter, which is what made this look blurred and
   embossed rather than simply set in black. */
.venueV2 .vHeroBare .vTitle {
  color: var(--v-ink);
  text-shadow: none;
}

.venueV2 .vHeroBare .vWhere,
.venueV2 .vHeroBare .vWhere a {
  color: var(--v-ink-mid);
  text-shadow: none;
}

.venueV2 .vHeroBare .vWhere .fa { opacity: 1; color: var(--v-ink-soft); }

/* THE BARE HERO IS WHITE, so the strip's white ink and its text-shadow both
   have to go -- a shadow under dark type on white reads as a printing fault. */
.venueV2 .vHeroBare .vFeatures li {
  color: var(--v-ink-mid);
  border-left-color: rgba(20, 20, 26, 0.16);
  text-shadow: none;
}

.venueV2 .vHeroBare .vFeatures li.vPowered { color: var(--v-ink-soft); }

.venueV2 .vHeroBare .vFeatures li.vPowered a {
  -webkit-text-decoration-color: rgba(20, 20, 26, 0.35);
          text-decoration-color: rgba(20, 20, 26, 0.35);
}

.venueV2 .vHeroBare .vSave {
  background: var(--v-page);
  color: var(--v-ink);
  box-shadow: 0 1px 2px rgba(18, 17, 20, 0.10), 0 4px 14px rgba(18, 17, 20, 0.12);
}

/* ==========================================================================
   THE SAVE HEART -- bigger, solid, and actually centred
   --------------------------------------------------------------------------
   Two problems. It was a translucent ring on a photograph, which is findable
   only if the photograph behind it happens to be dark; and the glyph sat
   visibly low in its disc.

   The centring is not a flexbox bug, and the direction of the fault was
   originally recorded backwards here. Measured from painted pixels by
   RunnerSaveHeart, with display:block already dropping the inline baseline gap,
   the glyph's ink box lands within a third of a pixel of the disc centre. It
   was never sitting low.

   What is off is the ink's MASS. A heart is broad across the lobes and tapers
   to a point, so 1.6px more of its ink sits above its own bounding-box centre
   than below. Centre the box and the weight sits high -- which is what a reader
   sees, and it is why the earlier -0.5px "correction" made it slightly worse
   by lifting it further.

   So the nudge goes DOWN, not up, and it is a PARTIAL correction: putting the
   centre of mass exactly on the disc centre needs +1.94px and reads low,
   because a shape this pointed does not want its full centroid offset. +1px
   splits it and leaves the mass 0.44px off centre.

   Chosen by looking, not by arithmetic:
     mvn -q exec:java -Dexec.mainClass=uitests.RunnerSaveHeart \
         -Dexec.args="http://localhost:8090 sweep 1 sweep"
   renders the disc at -0.5 / 0 / +0.5 / +1 / +1.94 in one strip with the disc's
   true centre line drawn through it. Re-run it before changing this number.

   Solid white, like every other save control people have used (Airbnb's is the
   same shape and the same idea). It reads as a control rather than as an
   outline drawn on a picture, and it cannot lose to a pale photograph.
   ========================================================================== */
.venueV2 .vSave {
  width: 54px;
  height: 54px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.94);
  color: var(--v-ink);
  font-size: 21px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 6px 20px rgba(0, 0, 0, 0.16);
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

/* 30px, not 24: the path's ink is 71% of its viewBox, so 30px puts the heart at
   about 21x20 -- the width the old glyph had, without its squatness.

   display:block because an inline SVG sits on a text baseline and inherits the
   line box's descender gap, which is the same trap the glyph was in. */
.venueV2 .vSave .vSaveIcon {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Saved is the solid heart -- and it is THE SAME PATH, filled instead of
   stroked, so the shape never changes as you toggle it. Only the ink does. */
.venueV2 .vSave.active .vSaveIcon {
  fill: currentColor;
  stroke: none;
}

.venueV2 .vSave:hover,
.venueV2 .vSave:focus {
  background: #ffffff;
  color: var(--v-accent);
  -webkit-transform: scale(1.06);
          transform: scale(1.06);
}

.venueV2 .vSave.active {
  background: var(--v-accent);
  border-color: var(--v-accent);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .venueV2 .vSave { transition: none; }
  .venueV2 .vSave:hover, .venueV2 .vSave:focus { transform: none; }
}

/* ==========================================================================
   THE ATTRIBUTION PILL MATCHES THE OTHERS
   --------------------------------------------------------------------------
   It was transparent with a lighter border and italic type, which made it a
   different height and a different weight from the capability pills beside it.
   Same padding, same ground, same size -- it is still secondary, but by being
   quieter in COLOUR rather than by being a different object.

   The wide gap after "by" was the italic: an italic space followed by an
   upright word sets a visibly larger gap than the font's own. Dropping the
   italic closes it without touching the markup.

   NOTHING LEFT TO SET HERE. This used to give the attribution its own capsule
   -- its own ground, its own border -- which is exactly what the single-pill
   strip further up this file stopped doing. The colour and the weight now come
   from that block, where the rest of the strip is set, so the two halves of one
   line cannot drift apart. Kept as a note rather than as a rule.
   ========================================================================== */

