.page-discovery { --discovery-band: #e4ebdb; }
.page-holiday-inspiration,
.page-things-to-do,
.page-yorkshire-category,
.page-explore-yorkshire .discovery-band { --discovery-band: var(--inner-hero); }
.page-discovery main { background: var(--paper); }
.discovery-wrap { width: min(91%, 1450px); margin-inline: auto; }
.discovery-explore, .discovery-holiday, .discovery-things { padding-bottom: clamp(60px, 7vw, 105px); }
.discovery-explore { position: relative; isolation: isolate; }
.discovery-explore::before {
  content: ''; position: absolute; z-index: -1; top: 85px; right: -5%;
  width: min(30vw, 370px); aspect-ratio: 1; pointer-events: none;
  background: url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-a3b97a3eeca2bccb.svg") center / contain no-repeat;
}
.discovery-heading { position: relative; text-align: center; padding: clamp(115px, 12vw, 170px) 0 clamp(35px, 4vw, 65px); }
.discovery-heading h1, .discovery-holiday h1 {
  font-size: clamp(38px, 3.45vw, 58px); letter-spacing: 0; font-weight: 650;
}
.discovery-heading h1 { max-width: 19ch; margin-inline: auto; }
.discovery-heading > p:last-child { max-width: 65ch; margin: 15px auto 0; }
.discovery-heading .eyebrow, .discovery-holiday .eyebrow, .discovery-band .eyebrow { margin-bottom: 10px; }
.discovery-things .discovery-heading { padding-top: clamp(145px, 12vw, 170px); }
.discovery-crumb { position: absolute; top: 100px; left: 0; font-size: 13px; }
.discovery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px, 1.8vw, 30px); }
.discovery-four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.discovery-card {
  display: flex; flex-direction: column; min-width: 0; position: relative;
  background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none;
  box-shadow: 0 3px 12px #2d49460c;
}
.discovery-card > img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.discovery-card-copy { flex: 1; display: flex; flex-direction: column; padding: clamp(14px, 1.6vw, 25px); }
.discovery-card h3 { letter-spacing: 0; font-size: clamp(18px, 1.55vw, 27px); line-height: 1.2; }
.discovery-card:hover h3 { color: #507e79; }
.discovery-card-copy > p:not(.eyebrow) {font-size: 15px; line-height: 1.5; margin: 12px 0 16px;}
.discovery-card.category h3 { border-bottom: 1px solid #d5e3ce; padding-bottom: 12px; }
.discovery-card .stay-cta { width: 100%; }
@media (hover: hover) {
  .page-explore-yorkshire .discovery-card .stay-cta:hover { background: var(--panel, #477470); }
}
.discovery-card .eyebrow { margin: 0 0 6px; font-size: 12px; }
.discovery-band { position: relative; background: var(--discovery-band); padding: clamp(55px, 6vw, 88px) 0; }
.discovery-band::before, .page-discovery .explore::before {
  content: ''; position: absolute; inset: -12px 0 auto; height: 13px;
  background: inherit; mask: url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-22a3463eb90f5117.svg") center / max(100%,1400px) 100% no-repeat;
  pointer-events: none;
}
.discovery-band h2 { font-size: clamp(29px, 3.1vw, 50px); letter-spacing: 0; }
.discovery-band h2 + p { margin-top: 12px; }
.discovery-band .discovery-grid { margin-top: clamp(30px, 4vw, 60px); }
.discovery-card.editorial h3 { font-size: clamp(17px, 1.35vw, 23px); }
.page-discovery .explore { overflow: visible; }
.page-discovery .explore::before { background: #f3f6f6; }
.page-explore-yorkshire .explore { overflow: hidden; }
.page-explore-yorkshire .explore::before { content: none; }
.page-explore-yorkshire .discovery-band::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: auto 0 -12px;
  height: 13px;
  background: inherit;
  mask: url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-d9a66b52e5a94437.svg") center / max(100%, 1400px) 100% no-repeat;
  pointer-events: none;
}
.page-discovery .explore-grid { padding-bottom: 0; }
.page-discovery .page-cta::before { background: var(--discovery-band); }
.page-explore-yorkshire .page-cta::before { background: #f3f6f6; }
.discovery-cta h2 { max-width: 18ch; }
.discovery-cta .page-cta-photo { aspect-ratio: 1.23; }
.discovery-holiday-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; padding: clamp(125px, 13vw, 190px) 0 35px; }
.discovery-holiday-heading > p { position: relative; isolation: isolate; max-width: 32ch; font-size: 18px; }
.discovery-holiday-heading > p::before {
  content: ''; position: absolute; z-index: -1; width: 125px; height: 125px; top: -45px; left: -65px;
  background: url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-6a6ded8aba006e7e.svg") center / contain no-repeat;
  /* The SVG is 25% opaque, so this gives the homepage leaf's 6%. */
  opacity: .24;
}
.discovery-holiday-featured { grid-template-columns: 2fr 1fr 1fr; margin-bottom: 35px; }
.photo-feature { color: #f5f9f4; background: #2d4946; min-height: 0; aspect-ratio: .7; }
.photo-feature:first-child { aspect-ratio: auto; }
.photo-feature > img { position: absolute; inset: 0; height: 100%; }
.photo-feature::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent,#171d14e8); }
.photo-feature .discovery-card-copy { position: relative; z-index: 1; justify-content: end; padding-right: 45px; }
.photo-feature .eyebrow, .photo-feature:hover h3 { color: #8bc37a; }
.photo-feature .discovery-card-copy > p:not(.eyebrow) {margin: 8px 0 0;}
.discovery-card .round-arrow { width: 24px; height: 24px; margin-left: auto; margin-top: auto; }
.photo-feature .round-arrow,
.holiday-idea .round-arrow,
.page-things-to-do .guide .round-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
}
.page-things-to-do .guide .discovery-card-copy {
  padding-bottom: calc(clamp(14px, 1.6vw, 25px) + 24px);
}
.discovery-icon { display: block; width: 34px; height: 34px; margin-bottom: 7px; }
.holiday-idea { min-height: clamp(155px, 15vw, 235px); border: 5px solid white; background: linear-gradient(#dfe3dc,var(--paper) 72%); }
.holiday-idea .discovery-card-copy { justify-content: end; padding-right: 45px; }
.holiday-idea .discovery-icon { color: #477470; }
.discovery-holiday-featured .discovery-icon { color: var(--inner-hero, #ccdddb); }
.discovery-holiday .discovery-icon { width: 30.6px; height: 30.6px; }
.discovery-holiday .discovery-card .round-arrow {
  display: grid;
  place-items: center;
  margin: 0;
}
.discovery-holiday .discovery-card .round-arrow::before {
  transform: translateX(.5px);
}

@media (width > 1000px) {
  .discovery-holiday-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .discovery-holiday-featured > :first-child { grid-column: span 2; }
}

.guide-photo { aspect-ratio: 1.55; overflow: hidden; }
.page-explore-yorkshire .discovery-card.category > .guide-photo { aspect-ratio: 1.55 / .85; }
.guide-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .guide-photo > img,
  .guide-feature > img,
  .discovery-holiday-featured .photo-feature > img { transition: transform 350ms ease; }
  .discovery-card:hover .guide-photo > img,
  .guide-feature:hover > img,
  .discovery-holiday-featured .photo-feature:hover > img { transform: scale(1.04); }
}
.holiday-idea .discovery-card-copy > p:not(.eyebrow) { margin-bottom: 0; }
.discovery-link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.discovery-link-row a { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 4px; background: #fff; text-decoration: none; font-weight: 600; }
.discovery-link-row a:hover { color: #507e79; }
.discovery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding-bottom: 35px; border-bottom: 1px solid #cedbd0; }
.discovery-filters button, .discovery-more {
  background: #2d4946; color: #f5f9f4; border: 0; border-radius: 999px; padding: 7px 15px; font-size: 14px;
}
.discovery-filters button[aria-pressed="true"] { background: #8bc37a; color: #203a35; }
@media (hover: hover) {
  .page-things-to-do .discovery-filters button[aria-pressed="false"]:hover { color: #8bc37a; }
}
.discovery-more { display: flex; align-items: center; justify-content: center; gap: 24px; min-width: 170px; margin: 55px auto 0; background: #477470; text-transform: uppercase; }
.discovery-more span { border: solid currentColor; border-width: 0 1px 1px 0; width: 7px; height: 7px; transform: rotate(45deg); }
.discovery-more[aria-expanded="true"] span { transform: rotate(225deg); }
.discovery-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 28px 0 24px; }
.discovery-list-heading h2 { font-size: clamp(23px, 2.4vw, 36px); letter-spacing: 0; }
.guide-feature { grid-column: span 2; min-height: 300px; }
.guide-feature > img { object-position: center; }

@media (max-width: 1000px) {
  .discovery-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .discovery-heading, .discovery-holiday-heading { padding-top: 65px; }
  .discovery-things .discovery-heading { padding-top: 95px; }
  .discovery-crumb { top: 35px; }
  .discovery-holiday-heading { display: block; }
  .discovery-holiday-heading > p { margin-top: 12px; }
  .discovery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .discovery-holiday-featured > :first-child { grid-column: span 2; aspect-ratio: 1.45; }
  .guide-feature { min-height: 230px; }
  .page-discovery .explore { overflow: hidden; }
  .page-discovery .destination-media { margin: 0; }
}
@media (max-width: 450px) {
  .discovery-explore .discovery-grid, .discovery-things .discovery-grid { grid-template-columns: 1fr; }
  .guide-feature { grid-column: auto; }
  .discovery-holiday-featured .photo-feature { min-height: 220px; }
}

.page-discovery .discovery-cta .page-cta-photo > img {
  height: 100%;
  aspect-ratio: auto;
}

/* Keep category filters centred in a readable, wrapping group. */
.page-yorkshire-category .discovery-filters { max-width: 1040px; margin-inline: auto; justify-content: center; flex-wrap: wrap; }

/* Align only Explore Yorkshire's doorstep content with its closing CTA. */
.page-explore-yorkshire .explore {
  padding-left: max(6%, calc((100% - 1450px) / 2));
  padding-right: max(6%, calc((100% - 1450px) / 2));
}
.page-explore-yorkshire .explore-heading { padding-left: 0; }
@media (min-width: 761px) {
  .page-explore-yorkshire .explore .uk-map {
    right: calc(30% + .4 * max(6%, (100% - 1450px) / 2) - 21px);
  }
}

/* Mobile audit: keep card copy and controls inside the content area. */
@media (max-width: 600px) {
  .discovery-holiday .discovery-grid, .discovery-band .discovery-four { grid-template-columns: minmax(0, 1fr); }
  .discovery-holiday-featured > :first-child { grid-column: auto; aspect-ratio: auto; }
  .discovery-holiday-featured .photo-feature { aspect-ratio: auto; min-height: 340px; }
  .discovery-holiday-featured .discovery-card-copy { padding: 24px 48px 48px 20px; }
  .discovery-link-row a { max-width: 100%; }
}

/* Match the featured-to-standard card gap to the mobile grid gap. */
@media(max-width:600px){.discovery-holiday-featured{margin-bottom:14px}}

/* Mobile category cards progressively overlap as the page scrolls. */
@media(max-width:600px) and (prefers-reduced-motion:no-preference){
 .page-explore-yorkshire .discovery-explore>.discovery-grid.category-stack-active{display:block;isolation:isolate;padding-bottom:0}
 .page-explore-yorkshire .category-stack-active>.category{position:sticky;top:calc(var(--category-stack-top) + var(--category-stack-index)*14px);z-index:calc(1 + var(--category-stack-index));margin-bottom:22px;box-shadow:0 -3px 18px #142c3920}
 .page-explore-yorkshire .category-stack-active>.category:last-child{margin-bottom:0}
}

/* On mobile, the archive lead post uses the same image-above-copy card as its neighbours. */
@media(max-width:760px){
 .page-yorkshire-category .guide-feature{grid-column:auto;min-height:0;aspect-ratio:auto;background:#fff;color:var(--ink)}
 .page-yorkshire-category .guide-feature>img{position:static;inset:auto;width:100%;height:auto;aspect-ratio:1.55;object-fit:cover}
 .page-yorkshire-category .guide-feature::after{display:none}
 .page-yorkshire-category .guide-feature .discovery-card-copy{justify-content:flex-start;padding:clamp(14px,1.6vw,25px);padding-bottom:calc(clamp(14px,1.6vw,25px) + 24px)}
 .page-yorkshire-category .guide-feature .eyebrow{color:#4d817c}
 .page-yorkshire-category .guide-feature .discovery-card-copy>p:not(.eyebrow){margin:12px 0 16px}
}

@media(max-width:760px){.page-yorkshire-category .guide-feature:hover h3{color:#507e79}}
