/* =========================================================
   Go Mutts! Wisbech - New Glassy Theme (FINAL)
   File: css/gomutts-new.css
   ========================================================= */

/* ---------- CSS VARIABLES ---------- */
:root{
  --bg: #f6f7f7;
  --card: rgba(255,255,255,.78);
  --card-solid: #ffffff;

  --text: #1f2937;
  --muted: #6b7280;

  --red: #b02a2a;
  --red-dark: #7c1717;

  --green: #22c55e;
  --green-dark: #15803d;

  --shadow: 0 18px 45px rgba(0,0,0,.14);
  --shadow-soft: 0 10px 26px rgba(0,0,0,.12);

  --ring: 0 0 0 3px rgba(34,197,94,.25);

  /* Diagonal pastel section tints */
  --pastel-blue-diagonal: linear-gradient(
    135deg,
    rgba(205,225,255,.55) 0%,
    rgba(205,225,255,.34) 45%,
    rgba(255,255,255,.22) 100%
  );

  --pastel-green-diagonal: linear-gradient(
    135deg,
    rgba(205,240,220,.55) 0%,
    rgba(205,240,220,.34) 45%,
    rgba(255,255,255,.22) 100%
  );
}

/* ---------- BASE / RESET ---------- */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(34,197,94,.10), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(176,42,42,.10), transparent 55%),
    var(--bg);
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
a:hover{ text-decoration:none; }
p{ line-height:1.65; margin: 0 0 1rem; }

.container{
  width:min(1120px, 92vw);
  margin:0 auto;
}

/* Screen-reader only */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* ---------- TOPBAR ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(180deg, rgba(176,42,42,.96), rgba(124,23,23,.94));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.85rem 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:.65rem;
  text-decoration:none;
  min-width: 220px;
}
.brand-mark{
  width:44px;
  height:44px;
  object-fit:contain;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  padding:6px;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.brand-text{
  font-weight: 800;
  color:#fff;
  letter-spacing:.3px;
}
@media (max-width: 860px){
  .brand-text{ display:none; }
  .brand{ min-width: auto; }
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap:.25rem;
}
.nav a{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight:700;
  padding:.55rem .75rem;
  border-radius: 999px;
}
.nav a:hover{
  background: rgba(255,255,255,.12);
}
.nav a.is-active,
.nav a[aria-current="page"]{
  background: rgba(255,255,255,.14);
}

/* Mobile nav toggle */
.nav-toggle{
  display:none;
  border:0;
  background: rgba(255,255,255,.12);
  border-radius: 12px;
  padding:.55rem .6rem;
  cursor:pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,.14);
}
.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:#fff;
  margin:4px 0;
  border-radius:2px;
}
@media (max-width: 860px){
  .nav-toggle{ display:inline-block; }
  .nav{
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display:none;
    flex-direction: column;
    gap:.25rem;
    padding: .75rem;
    background: linear-gradient(180deg, rgba(124,23,23,.98), rgba(124,23,23,.92));
    border-bottom: 1px solid rgba(255,255,255,.14);
  }
  .nav.open{ display:flex; }
  .nav a{ width: 100%; text-align:center; }
}

/* ---------- SECTIONS ---------- */
.section{
  padding: 4.25rem 0;
}
.section-soft{
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.30));
  border-top: 1px solid rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.04);
}

.section-head{
  text-align:center;
  margin-bottom: 2rem;
}
.section-head h2{
  margin:0;
  font-size: 2rem;
  letter-spacing:.4px;
}
.section-head p{
  margin:.5rem auto 0;
  max-width: 62ch;
  color:var(--muted);
}

/* Optional tighter head */
.section-head-tight{
  margin-top: 2.25rem;
}

/* Gallery – subtle diagonal pastel blue */
#gallery.section-soft{
  background:
    var(--pastel-blue-diagonal),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.30));
}

/* Reviews – subtle diagonal pastel green */
#reviews.section-soft{
  background:
    var(--pastel-green-diagonal),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.30));
}

/* Directions wrap – (kept, but will be overridden later with green tint) */
.directions-wrap.section-soft{
  background:
    var(--pastel-blue-diagonal),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.30));
}

/* Glass utility */
.glass{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.4rem;
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding:.6rem 1.15rem;
  border-radius:999px;
  font-weight:800;
  border:none;
  cursor:pointer;
  text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height: 1.1;
}
.btn:focus{ outline:none; box-shadow: var(--ring), var(--shadow-soft); }

.btn-primary{
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color:#fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,.2);
}
.btn-primary:hover{ transform: translateY(-1px); }

.btn-ghost{
  background: rgba(255,255,255,.88);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,.06);
}
.btn-ghost:hover{ transform: translateY(-1px); }

.btn-outline{
  border: 2px solid rgba(34,197,94,.55);
  background: rgba(255,255,255,.90);
}

/* ---------- HERO ---------- */
.hero{
  padding: 4.25rem 0 3.25rem;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: stretch;
}

.hero-left,
.hero-right{
  display:flex;
  flex-direction:column;
  height: 100%;
}

.hero h1{
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  margin: .1rem 0 .35rem;
  line-height: 1.08;
  white-space: nowrap;
  letter-spacing: -0.015em;
}
.hero .accent{ color: var(--green-dark); }

.hero-sub{
  margin: 0 0 .85rem;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .2px;
}

.lead{
  font-size: 1.12rem;
  margin: 0 0 .75rem;
}
.muted{ color: var(--muted); }

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;

  padding:.4rem 1rem;
  border-radius:999px;
  background: rgba(34,197,94,.15);
  color: var(--green-dark);
  font-weight: 800;

  margin: 0 auto .75rem;
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
  text-align:center;
  line-height:1.2;
}

/* Hero lower stack spacing */
.hero-lower{
  padding-top: 1.35rem;
  display:flex;
  flex-direction:column;
  gap: 1rem;
}

/* Actions row */
.hero-actions{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  justify-content: center;
  margin: 0;
}

/* KPI row */
.kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .85rem;
  margin: 0;
}
.kpi{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: .85rem .95rem;
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
  text-align:center;
}
.kpi b{
  display:block;
  font-size: 1rem;
  letter-spacing:.2px;
}
.kpi span{
  display:block;
  margin-top:.25rem;
  color: var(--muted);
  font-size: .92rem;
}

/* Desktop: push hero-lower down to align with availability block */
@media (min-width: 981px){
  .hero-lower{ margin-top: auto; }
}

/* ---------- HERO RIGHT STACK ---------- */
.hero-right{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap: 1.5rem;
}

/* ---------- LOGO CARD ---------- */
.logo-card{
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  margin-top: 0;

  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);

  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;

  outline: 1px solid rgba(0,0,0,.35);
  outline-offset: -1px;
}

.logo-card::before{
  content:"";
  position:absolute;
  left:-2px; right:-2px; top:-2px; bottom:-2px;
  border-radius: 24px;

  background-image: url("../img/wobble-bridge-hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 52%;
  opacity: .55;

  z-index: 0;
}

.logo-card::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 22px;
  background:
    linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)),
    radial-gradient(circle at center, rgba(34,197,94,.18), transparent 65%);
  z-index: 1;
  pointer-events:none;
}

.logo-card img{
  position: relative;
  z-index: 2;
  width: 68%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.28));
}

/* ---------- AVAILABILITY CARD ---------- */
.availability-card{
  text-align: center;
  padding: 1.1rem 1.25rem;
}

.availability-card h3{
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}

.availability-updated{
  margin: .35rem 0 1rem;
  font-size: .85rem;
  color: var(--muted);
}

.next-slot{
  margin: .6rem 0 .85rem;
  font-size: .95rem;
}
.next-slot strong{
  color: var(--green-dark);
  font-weight: 900;
}
.slot-value{
  display:inline-block;
  margin-top:.15rem;
  color: var(--muted);
  font-weight:800;
  font-size:.9rem;
}

.availability-cta{
  margin: .9rem auto .6rem;
}

.availability-note{
  margin-top: .85rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.reschedule-note{
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- STATUS BADGE ---------- */
.status-badge{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  width: fit-content;

  margin: .55rem auto .65rem;
  padding: .35rem .75rem;

  border-radius: 999px;
  font-weight: 900;
  font-size: .9rem;
  letter-spacing: .2px;

  background: rgba(17, 24, 39, .08);
  border: 1px solid rgba(17, 24, 39, .12);
  color: rgba(17, 24, 39, .85);

  position: relative;
  cursor: pointer;
}

.status-badge::before{
  content:"";
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: currentColor;
  opacity: .75;
}

.status-badge.is-green{
  background: rgba(34,197,94,.16);
  border-color: rgba(34,197,94,.28);
  color: rgba(21,128,61,.95);
}
.status-badge.is-amber{
  background: rgba(245,158,11,.16);
  border-color: rgba(245,158,11,.30);
  color: rgba(161,98,7,.95);
}
.status-badge.is-red{
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.28);
  color: rgba(185,28,28,.95);
}

@keyframes softPulse{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.03); }
}
.status-badge{
  animation: softPulse 3.5s ease-in-out infinite;
}

.status-badge::after{
  content:"🐾";
  position:absolute;
  left: 50%;
  top: -6px;
  transform: translate(-50%, 0) scale(.6);
  opacity: 0;
  pointer-events:none;
}
.status-badge.paw-pop::after{
  animation: pawPop .6s ease-out forwards;
}
@keyframes pawPop{
  0%   { opacity: 0; transform: translate(-50%, 6px) scale(.5); }
  40%  { opacity: 1; transform: translate(-50%, -10px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -18px) scale(.85); }
}
@media (prefers-reduced-motion: reduce){
  .status-badge{ animation:none; }
  .status-badge.paw-pop::after{ animation:none; }
}

/* ---------- WEATHER BAR ---------- */
.weatherbar{
  display:flex;
  align-items:flex-start;
  gap: 1rem;
  text-align:left;
  padding: 1.1rem 1.25rem;
  border-radius: 22px;
  margin: 0;
}
.weatherbar-left{
  width: 46px;
  height: 46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
  flex: 0 0 46px;
}
.weatherbar-icon{
  font-size: 1.35rem;
  line-height: 1;
}
.weatherbar-text{ flex: 1; }
.weatherbar-title{
  font-weight: 900;
  margin: 0 0 .35rem;
}
.weatherbar-sub{
  color: var(--muted);
  font-weight: 800;
  margin: .2rem 0 0;
  line-height: 1.35;
}
.weatherbar-link{
  display:inline-block;
  margin-top: .65rem;
  font-weight: 900;
  text-decoration:none;
}
.weatherbar-link:hover{ text-decoration: underline; }

/* ---------- RESPONSIVE HERO ---------- */
@media (max-width: 980px){
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .logo-card{
    width: min(520px, 100%);
    justify-self: center;
  }
  .kpis{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .hero h1{ font-size: 2.25rem; }
}

/* Mobile hero spacing polish */
@media (max-width: 680px){
  .hero{ padding: 2.4rem 0 2rem; }

  .pill{
    margin: 0 auto .65rem;
    padding: .38rem .95rem;
  }

  .hero h1{
    font-size: 2.05rem;
    margin: .05rem 0 .55rem;
    line-height: 1.1;
    white-space: normal;
    text-align: center;
  }

  .hero-sub{ margin-bottom: .75rem; }
  .lead{ font-size: 1.03rem; margin-bottom: .65rem; }
  .hero p{ margin-bottom: .75rem; }
}

/* ---------- CARDS (Rules / Booking / Directions) ---------- */
.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}
.card{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  padding: 1.25rem 1.25rem 1.35rem;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height: 320px;
}
.card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.card h3{
  margin:0;
  font-size: 1.15rem;
}
.card p{
  margin: .5rem 0 1.2rem;
  color: var(--muted);
}
.card-icon{
  width: 58px;
  height: 58px;
  object-fit: contain;
  opacity: .95;
}

@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; gap: 1rem; }
  .card{ min-height: auto; }
}

/* ---------- GALLERY ---------- */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.tile{
  margin:0;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}
.tile img{
  width:100%;
  height: 220px;
  object-fit: cover;
}
.tile figcaption{
  padding:.85rem 1rem;
  font-weight: 800;
  color: #243041;
}
@media (max-width: 980px){
  .gallery{ grid-template-columns: 1fr; }
  .tile img{ height: 240px; }
}

/* ---------- REVIEWS ---------- */
.reviews{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.review{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.2rem;
  margin:0;
}
.review p{
  margin:0 0 .8rem;
  color: var(--text);
}
.review cite{
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}
@media (max-width: 980px){
  .reviews{ grid-template-columns: 1fr; }
}

/* ---------- CONTACT ---------- */
.contact{
  display:flex;
  gap: 1.5rem;
  align-items:flex-start;
  justify-content:space-between;
}
.contact a{ color: var(--red-dark); font-weight:800; }
.contact-actions{
  display:flex;
  flex-direction:column;
  gap:.75rem;
  min-width: 210px;
}
@media (max-width: 860px){
  .contact{ flex-direction:column; }
  .contact-actions{
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---------- FOOTER ---------- */
.footer{
  padding: 2.5rem 0;
  color: rgba(255,255,255,.92);
  background: linear-gradient(180deg, rgba(124,23,23,.95), rgba(70,10,10,.95));
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}
.footer a{
  color:#fff;
  font-weight:800;
  text-decoration:none;
}
.footer a:hover{ text-decoration:underline; }
@media (max-width: 680px){
  .footer-inner{ flex-direction:column; }
}

/* ---------- MOBILE BOOKBAR ---------- */
.bookbar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;

  display:none;
  align-items:center;
  justify-content:space-between;
  gap: .75rem;

  padding: .75rem 1rem;
  background: rgba(255,255,255,.88);
  border-top: 1px solid rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
}
.bookbar-text b{
  display:block;
  font-weight:900;
}
.bookbar-text span{
  color: var(--muted);
  font-weight:800;
}
.bookbar-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.7rem 1.05rem;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 900;
  color:#fff;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.18);
}
@media (max-width: 860px){
  .bookbar{ display:flex; }
  body{ padding-bottom: 76px; }
}

/* Hide only the HERO "Check availability" button on mobile/tablet */
@media (max-width: 980px){
  .hide-on-mobile{ display: none !important; }
}

/* Mobile/tablet section padding tightening */
@media (max-width: 980px){
  .section{ padding: 3.2rem 0; }
}
@media (max-width: 680px){
  .section{ padding: 2.4rem 0; }
}

/* =========================================================
   DIRECTIONS PAGE - Layout bits (CLEAN + SAFE)
   ========================================================= */

/* Page hero */
.page-hero .page-hero-card{ padding: 1.6rem 1.6rem; }
.page-hero-top{ text-align: center; margin-bottom: 1.1rem; }
.page-title{
  margin: 0 0 .35rem;
  font-size: clamp(1.8rem, 2.5vw, 2.25rem);
  letter-spacing: -0.01em;
}
.page-subtitle{
  margin: 0 auto;
  max-width: 70ch;
  color: var(--muted);
  font-weight: 800;
}
.page-actions{
  display:flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.15rem 0 1rem;
}
.page-hero-note{ text-align:center; margin-top: .25rem; }
.strong-link{ font-weight: 900; }

/* Map card */
.map-card{
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.map-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(0,0,0,.14);
  border-color: rgba(34,197,94,.22);
}
.map-embed{
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}
.map-embed iframe{
  width: 100%;
  height: 360px;
  border: 0;
  display:block;
}
.map-btn{ margin: 1rem auto 0; }

/* Two-column direction cards on desktop */
.cards.cards-2{
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 980px){
  .cards.cards-2{ grid-template-columns: 1fr; }
  .map-embed iframe{ height: 320px; }
}

/* =========================================================
   DIRECTIONS — FIX: make arrows start on the same line
   ========================================================= */

/* Only touch directions steps, never global ULs */
.directions-wrap .steps{
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.directions-wrap .steps li{
  position: relative;
  padding-left: 2.05rem;
  margin: .55rem 0;
  line-height: 1.55;
  color: var(--text);
}
.directions-wrap .steps li::before{
  content: "\f124"; /* fa-location-arrow */
  font-family: "FontAwesome";
  position: absolute;
  left: 0;
  top: 0.22em;      /* baseline-relative: consistent across cards */
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.22);
  color: rgba(21,128,61,.95);
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  font-size: .85rem;
}

/* Key part: normalise the header zone height so the list starts same line */
.directions-wrap .cards.cards-2{ align-items: stretch; }
.directions-wrap .direction-card{ height: 100%; }

.directions-wrap .direction-card .card-top{
  display: grid;
  grid-template-columns: 1fr auto; /* title | icon */
  align-items: start;
  column-gap: 1rem;
  margin-bottom: .65rem;
  min-height: 86px;               /* ensures first arrow aligns */
}
.directions-wrap .direction-card .card-top h3{
  margin: 0;
  line-height: 1.2;
}
.directions-wrap .direction-card .card-icon{
  align-self: start;
  margin-top: .1rem;
}

/* Mobile: natural stack */
@media (max-width: 980px){
  .directions-wrap .direction-card .card-top{
    min-height: 0;
    grid-template-columns: 1fr;
    row-gap: .5rem;
  }
  .directions-wrap .direction-card .card-icon{ margin-top: 0; }
}
@media (max-width: 680px){
  .directions-wrap .steps li{ padding-left: 1.9rem; }
  .directions-wrap .steps li::before{
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 11px;
  }
}

/* =========================================================
   Parking / entrance tip callout (unchanged)
   ========================================================= */
.callout{
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;

  padding: 1.15rem 1.25rem;
  border-radius: 22px;

  background:
    rgba(34,197,94,.10),
    var(--card);
  border: 1px solid rgba(34,197,94,.22);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
}
.callout-icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
  font-size: 1.25rem;
}
.callout h3{ margin: 0 0 .35rem; font-size: 1.05rem; }
.callout p{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}
.callout a{
  color: var(--red-dark);
  font-weight: 900;
  text-decoration: none;
}
.callout a:hover{ text-decoration: underline; }

/* =========================================================
   Directions tint + smooth blend (ONE version only)
   ========================================================= */
.directions-wrap.section-soft{
  background:
    var(--pastel-green-diagonal),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.30));
  border-top: 0 !important;
  position: relative;
  margin-top: 0;
  padding-top: 2.75rem;
}
.page-hero.section{
  position: relative;
  padding-bottom: 2rem;
  margin-bottom: 0;
}
.directions-wrap.section-soft::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:-90px;
  height: 90px;
  background: linear-gradient(
    180deg,
    rgba(205,240,220,0) 0%,
    rgba(205,240,220,.35) 55%,
    rgba(205,240,220,.55) 100%
  );
  pointer-events:none;
}

/* =========================================================
   RULES PAGE — FIX (ONLY applies if body has class="rules-wrap")
   ========================================================= */

/* Keep rules lists NORMAL (no pseudo icons) */
body.rules-wrap .card ul,
body.rules-wrap .card ol{
  list-style: disc;
  margin: .9rem 0 0;
  padding-left: 1.25rem;
}
body.rules-wrap .card li{
  margin: .55rem 0;
  padding-left: 0;
}
body.rules-wrap .card li::before{
  content: none !important; /* prevents “leaked” icons */
}

/* Bottom box spacing (whatever comes after the grid) */
body.rules-wrap .cards + *{
  margin-top: 1.5rem;
}

/* =========================================================
   PATCH — fixes Directions alignment + Rules spacing
   Safe: scoped to .cards.cards-2 (Directions) + body.rules-wrap (Rules)
   ========================================================= */

/* -----------------------------
   1) DIRECTIONS: align the two route cards
   (your cards are .card, not .direction-card)
------------------------------ */

/* Make both direction cards equal height */
.cards.cards-2{
  align-items: stretch;
}
.cards.cards-2 .card{
  height: 100%;
}

/* Force the title+icon row to be the same height in both cards */
.cards.cards-2 .card-top{
  display: grid;
  grid-template-columns: 1fr auto; /* title | icon */
  align-items: start;
  column-gap: 1rem;
  min-height: 92px;              /* tweak 86–105 if needed */
  margin-bottom: .65rem;
}

/* Keep icon locked to top */
.cards.cards-2 .card-icon{
  align-self: start;
  margin-top: .1rem;
}

/* Make the steps start at the same point */
.cards.cards-2 .steps{
  margin-top: 1rem;
}

/* Mobile: let it flow naturally */
@media (max-width: 980px){
  .cards.cards-2 .card-top{
    min-height: 0;
    grid-template-columns: 1fr;
    row-gap: .5rem;
  }
}


/* -----------------------------
   2) RULES: stop “On arrival” looking empty
   (only on rules page)
------------------------------ */

/* Don’t push content to the bottom on short cards */
body.rules-wrap .card{
  justify-content: flex-start;
}

/* Keep lists comfortably under the header */
body.rules-wrap .card ul,
body.rules-wrap .card ol{
  margin-top: 1rem;
}

/* Safety: ensure no pseudo-icons appear on rules lists */
body.rules-wrap .card li::before{
  content: none !important;
}

/* =========================================================
   DIRECTIONS: remove the big empty gap inside the 2 route cards
   (scoped so it won't affect other pages)
   ========================================================= */

.directions-wrap .direction-card{
  min-height: 0;                 /* overrides .card min-height:320px */
  justify-content: flex-start;   /* stops content being pushed apart */
}

.directions-wrap .direction-card .card-top{
  margin-bottom: .75rem;         /* keep nice spacing under the title */
}

.directions-wrap .direction-card .steps{
  margin-top: 0;                /* pulls the list up */
}
/* =========================================================
   GALLERY FAN EFFECT (SAFE + SCOPED)
   ========================================================= */

.gallery .fan{
  position: relative;
  height: 220px;
  cursor: pointer;
}

.gallery .fan img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    opacity .35s ease;
}

/* Stack order */
.gallery .fan img:nth-child(1){ z-index: 1; }
.gallery .fan img:nth-child(2){ z-index: 2; }
.gallery .fan img:nth-child(3){ z-index: 3; }
.gallery .fan img:nth-child(4){ z-index: 4; }

/* Hover fan-out (desktop) */
@media (hover: hover){
  .gallery .fan:hover img:nth-child(2){
    transform: translateX(-14px) rotate(-3deg);
  }
  .gallery .fan:hover img:nth-child(3){
    transform: translateX(14px) rotate(3deg);
  }
  .gallery .fan:hover img:nth-child(4){
    transform: translateY(-12px) rotate(-2deg);
  }
}

/* Slight lift for depth */
.gallery .fan:hover img{
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

/* Caption stays readable */
.gallery .fan figcaption{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0),
    rgba(0,0,0,.55)
  );
  color: #fff;
  padding: 1.1rem 1rem .9rem;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

/* =========================================================
   FAN GALLERY (thumb strip under each tile)
   Scoped to .fan-gallery
   ========================================================= */

.fan-gallery{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}

@media (max-width: 980px){
  .fan-gallery{ grid-template-columns: 1fr; }
}

/* Tile container */
.fan-tile{
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  overflow: hidden;
}

/* Top button (main image area + label) */
.fan-top{
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: grid;
}

/* The "main image" preview area */
.fan-stack{
  position: relative;
  height: 220px;
  display: block;
  overflow: hidden;
}

.fan-stack img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: bottom left;
  transition: transform .18s ease, filter .18s ease;
}

/* Fan effect on hover (desktop only) */
@media (hover:hover){
  .fan-tile:hover .fan-stack img:nth-child(1){ transform: rotate(-3deg) scale(1.02); }
  .fan-tile:hover .fan-stack img:nth-child(2){ transform: rotate(2deg)  scale(1.02); }
  .fan-tile:hover .fan-stack img:nth-child(3){ transform: rotate(6deg)  scale(1.02); }
}

/* Label */
.fan-label{
  padding: .85rem 1rem;
  display: grid;
  gap: .15rem;
}

.fan-title{
  font-weight: 900;
  color: #243041;
}

.fan-hint{
  font-weight: 800;
  color: var(--muted);
  font-size: .92rem;
}

/* Thumb strip panel */
.fan-panel{
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.72);
  padding: .75rem .85rem;
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fan-panel::-webkit-scrollbar{
  height: 10px;
}
.fan-panel::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.12);
  border-radius: 999px;
}

/* Thumbs */
.fan-thumb{
  flex: 0 0 auto;
  width: 86px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.fan-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   LIGHTBOX (Fan Gallery)
   ========================= */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}
.lightbox.is-open{ display: block; }

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}

.lightbox-card{
  position: relative;
  width: min(920px, 92vw);
  margin: 6vh auto 0;
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 1rem 1rem 1.1rem;
}

.lightbox-img{
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.lightbox-cap{
  margin-top: .75rem;
  font-weight: 800;
  color: #243041;
}

/* Controls */
.lightbox-close{
  position: absolute;
  top: .6rem;
  right: .6rem;
  border: 0;
  background: rgba(0,0,0,.08);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.lightbox-prev,
.lightbox-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,.10);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.lightbox-prev{ left: .55rem; }
.lightbox-next{ right: .55rem; }

/* Lightbox controls must sit ABOVE the image */
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  z-index: 10;
}

/* =========================================================
   LIGHTBOX IMAGE SIZE FIX (FINAL)
   ========================================================= */

.lightbox-dialog{
  max-height: 86vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.lightbox-figure{
  margin: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  max-height: 86vh;
}

#lightboxImg{
  display: block;
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

#lightboxCap{
  padding: .75rem 1rem;
  font-weight: 800;
  color: #243041;
  background: rgba(255,255,255,.9);
}

/* =========================
   LIGHTBOX (Fan Gallery)
   ========================= */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.is-open{ display: block; }

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}

.lightbox-dialog{
  position: relative;
  width: min(980px, 92vw);
  margin: 6vh auto 0;
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  overflow: hidden;
}

.lightbox-figure{
  margin: 0;
  padding: 14px;
  display: grid;
  place-items: center;
}

#lightboxImg{
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

#lightboxCap{
  width: 100%;
  padding: .75rem 1rem;
  font-weight: 800;
  color: #243041;
  border-top: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
}

/* controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position: absolute;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
  border-radius: 999px;
}

.lightbox-close{
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next{
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 34px;
  line-height: 1;
}

.lightbox-prev{ left: 12px; }
.lightbox-next{ right: 12px; }