/* =====================================================================
   Find A BNB - destination guide pages (design approved by Asher 10 Nov 2026, master: Cotswolds)
   Page-scoped styles only (prefix .dg-). No global overrides.
   Measurements: qa/measurements.md (reference 1122 px wide, x1.141 -> 1280).
   ===================================================================== */
.dg {
  --dg-panel: #f8f1e4;
  --dg-chip: #f6eee0;
  --dg-line: #e2d8c8;
  --dg-green: var(--fab-green);
  --dg-radius: 16px;
}
.dg-wrap { max-width: calc(var(--fab-container) + 2 * var(--fab-gutter)); margin: 0 auto; padding: 0 var(--fab-gutter) 28px; }
.dg-ic { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--dg-green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dg-ic--lg { width: 34px; height: 34px; stroke-width: 1.4; }
.dg-ic--pin { width: 18px; height: 18px; stroke-width: 1.9; }
.dg-h2 { font-family: var(--fab-font-serif); font-weight: 700; font-size: 2.125rem; line-height: 1.1; letter-spacing: -0.01em; color: #0c3a1c; margin: 0 0 6px; }
.dg-h2--sm { font-size: 1.875rem; }
.dg-sub { margin: 0 0 14px; font-size: 1rem; line-height: 1.35; color: var(--fab-ink); }
.dg-item__t { margin: 0; font-family: var(--fab-font-sans); font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--fab-ink); }
.dg-item__d { margin: 2px 0 0; font-size: 0.9rem; line-height: 1.3; color: var(--fab-ink-body); }
.dg-note { margin: 10px 0 0; font-size: 0.78rem; line-height: 1.35; color: var(--fab-ink-muted); }
.dg-panel { background: var(--dg-panel); border-radius: var(--dg-radius); }
.dg-eyebrow { margin: 0; font-size: 0.94rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.dg ul { list-style: none; margin: 0; padding: 0; }

/* ---------- 02 hero ---------- */
.dg-hero { position: relative; display: grid; grid-template-rows: 1fr auto; align-content: center; height: clamp(246px, 19.3vw, 330px); padding: 0 0 0 max(var(--fab-gutter), calc((100vw - var(--fab-container)) / 2 - 8px)); overflow: hidden; color: #fff; background: #23331d; }
.dg-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.dg-hero__img--zoom { transform: scale(1.3); transform-origin: 26% 48%; }
.dg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 6, 0.7) 0%, rgba(20, 14, 6, 0.5) 24%, rgba(20, 14, 6, 0.12) 42%, rgba(20, 14, 6, 0) 54%); }
.dg-hero__text, .dg-hero__loc { position: relative; z-index: 1; padding-left: 41px; }
.dg-hero__text { align-self: end; }
.dg-hero__title { margin: 2px 0 4px; font-family: var(--fab-font-serif); font-weight: 700; font-size: clamp(2.6rem, 4.3vw, 3.7rem); line-height: 1.02; letter-spacing: -0.012em; }
.dg-hero__lead { margin: 0; max-width: 21em; font-family: var(--fab-font-serif); font-style: italic; font-size: 1.28rem; line-height: 1.25; }
.dg-hero__loc { align-self: start; display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 1rem; font-weight: 600; padding-bottom: 22px; }
.dg-hero__loc .dg-ic { stroke: #fff; }

/* ---------- 03 intro + at a glance ---------- */
.dg-intro { display: grid; grid-template-columns: 456fr 655fr; gap: 64px; align-items: center; padding: 18px 0 0 20px; }
.dg-intro__text { margin: 0; font-size: 1.19rem; line-height: 1.32; color: var(--fab-ink); }
.dg-glance { padding: 8px 22px 12px; }
.dg-glance .dg-h2 { margin-bottom: 2px; }
.dg-glance .dg-ic--lg { width: 30px; height: 30px; display: block; }
.dg-glance__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.dg-glance__list li { padding: 0 18px; border-left: 1px solid var(--dg-line); }
.dg-glance__list li:first-child { border-left: 0; }
.dg-glance__list .dg-item__t { margin-top: 2px; }

/* ---------- 04 where to base ---------- */
.dg-base { display: grid; grid-template-columns: 512fr 638fr; gap: 44px; align-items: start; margin-top: 20px; }
.dg-base__fig { position: relative; margin: 0; border-radius: var(--dg-radius); overflow: hidden; aspect-ratio: 449 / 176; background: #3a4a2a; }
.dg-base__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.dg-base__fig::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62)); }
.dg-base__fig figcaption { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 12px; max-width: 22em; color: #fff; font-size: 0.9rem; line-height: 1.25; }
.dg-base__body { padding-top: 4px; }
.dg-chips { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 18px; }
.dg-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 18px 8px 14px; border-radius: 12px; background: var(--dg-chip); font-size: 0.9rem; font-weight: 600; color: var(--fab-ink); white-space: nowrap; }

/* ---------- 05 three columns ---------- */
.dg-cols { display: grid; grid-template-columns: 388fr 384fr 340fr; margin-top: 28px; }
.dg-col { padding: 0 26px 6px 28px; border-left: 1px solid var(--dg-line); min-width: 0; }
.dg-col:first-child { padding-left: 8px; border-left: 0; }
.dg-col:last-child { padding-right: 0; }
.dg-col .dg-sub { margin-bottom: 10px; }
.dg-seasons { display: grid; gap: 6px; }
.dg-season { display: grid; grid-template-columns: 94px 1fr auto; gap: 0 14px; align-items: center; padding: 2px 8px 2px 3px; border-radius: 10px; background: var(--dg-panel); }
.dg-season__img { width: 94px; height: 47px; object-fit: cover; border-radius: 6px; display: block; }
.dg-season__name { margin: 0; font-family: var(--fab-font-sans); font-size: 0.97rem; font-weight: 700; line-height: 1.2; color: var(--fab-ink); }
.dg-season__months { font-weight: 700; }
.dg-season__desc { margin: 1px 0 0; font-size: 0.82rem; line-height: 1.22; color: var(--fab-ink-body); }
.dg-season__temp { margin: 0; font-size: 0.9rem; font-weight: 500; white-space: nowrap; color: var(--fab-ink); }
.dg-items { display: grid; gap: 11px; margin-top: 4px; }
.dg-item { display: grid; grid-template-columns: 34px 1fr; gap: 0 22px; align-items: start; }
.dg-item > .dg-ic { width: 32px; height: 32px; margin-top: 2px; }
.dg-stay__img { display: none; }
.dg-stays { gap: 12px; }

/* ---------- 06 good to know + cta ---------- */
.dg-pair { display: grid; grid-template-columns: 622fr 582fr; gap: 20px; margin-top: 22px; }
.dg-know { padding: 6px 26px 12px; }
.dg-know .dg-sub { margin-bottom: 8px; }
.dg-know .dg-item__d { font-size: 0.86rem; line-height: 1.25; }
.dg-know__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.dg-know__item { padding: 0 18px; border-left: 1px solid var(--dg-line); }
.dg-know__item:first-child { padding-left: 0; border-left: 0; }
.dg-know__item .dg-ic { width: 28px; height: 28px; margin-bottom: 2px; display: block; }
.dg-cta { position: relative; display: flex; align-items: center; min-height: 196px; border-radius: var(--dg-radius); overflow: hidden; color: #fff; background: #1d3320; }
.dg-cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.dg-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 34, 16, 0.9) 0%, rgba(4, 34, 16, 0.74) 40%, rgba(4, 34, 16, 0.18) 72%, rgba(4, 34, 16, 0) 100%); }
.dg-cta__body { position: relative; z-index: 1; padding: 18px 32px; max-width: 30em; }
.dg-cta__title { margin: 2px 0 6px; font-family: var(--fab-font-serif); font-weight: 700; font-size: 1.95rem; line-height: 1.1; color: #fff; }
.dg-cta__lead { margin: 0 0 14px; font-size: 1rem; line-height: 1.3; max-width: 23em; }
.dg-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 20px 8px 24px; border: 1.5px solid #fff; border-radius: 999px; background: rgba(1, 65, 28, 0.86); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; }
.dg-btn .dg-ic { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; }
.dg-btn:hover { background: var(--fab-green-hover); }
.dg-btn:focus-visible, .dg-src:focus-visible { outline: 3px solid var(--fab-focus); outline-offset: 3px; }

/* ---------- 07 sources + more places ---------- */
.dg-end { display: grid; grid-template-columns: 640fr 545fr; gap: 36px; align-items: start; margin-top: 18px; }
.dg-sources { display: grid; grid-template-columns: 270fr 310fr; gap: 36px; padding: 14px 0 0 20px; }
.dg-sources .dg-sub { font-size: 0.9rem; margin: 0; }
.dg-sources__body { margin-top: 26px; }
.dg-sources__more summary { min-height: 38px; padding: 9px 2px; font-size: 0.9rem; font-weight: 600; color: var(--dg-green); cursor: pointer; }
.dg-sources__more summary:focus-visible { outline: 3px solid var(--fab-focus); outline-offset: 2px; }
.dg-areas, .dg-areas__note { display: none; }
.dg-src { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; padding: 7px 2px; border-bottom: 1px solid var(--dg-line); color: var(--fab-ink); font-size: 0.9rem; text-decoration: none; }
.dg-src:hover span:first-child { text-decoration: underline; }
.dg-src .dg-ic { width: 19px; height: 19px; stroke-width: 1.9; }
.dg-more { padding: 8px 16px 18px 24px; }
.dg-more .dg-sub { font-size: 0.9rem; margin-bottom: 10px; }
.dg-places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dg-place img { width: 100%; aspect-ratio: 2 / 1; height: auto; object-fit: cover; border-radius: 8px; display: block; }
.dg-place__txt { padding: 6px 8px 0; }
.dg-place__name { margin: 0; font-family: var(--fab-font-sans); font-size: 0.9rem; font-weight: 700; line-height: 1.2; color: var(--fab-ink); }
.dg-place__country { margin: 0; font-size: 0.86rem; line-height: 1.25; color: var(--fab-ink-body); }
.dg-disclaimer { margin: 22px 0 0 20px; font-size: 0.8rem; color: var(--fab-ink-muted); }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .dg-hero__img { transform: none; }
  .dg-intro { grid-template-columns: 1fr; gap: 20px; padding-left: 0; }
  .dg-base { grid-template-columns: 1fr; gap: 20px; }
  .dg-cols { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .dg-col:nth-child(3) { grid-column: 1 / -1; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--dg-line); }
  .dg-col:nth-child(3) .dg-items { grid-template-columns: 1fr 1fr; }
  .dg-col:first-child { padding-left: 0; }
  .dg-pair, .dg-end { grid-template-columns: 1fr; }
  .dg-sources { padding-left: 0; }
  .dg-disclaimer { margin-left: 0; }
  .dg-hero { height: clamp(260px, 36vw, 330px); }
  .dg-hero__text, .dg-hero__loc { padding-left: 0; }
}

/* ---------- mobile: one continuous column (reference phone 362 px -> 390) ---------- */
@media (max-width: 767px) {
  .dg-wrap { padding: 0 16px 28px; }
  .dg-h2, .dg-h2--sm { font-size: 1.8rem; }
  .dg-sub { font-size: 0.97rem; }
  /* 02 hero + 03 location */
  .dg-hero { display: block; height: auto; padding: 0; background: var(--fab-cream); color: var(--fab-ink); overflow: visible; }
  .dg-hero__img { position: absolute; inset: 0 0 auto 0; height: auto; aspect-ratio: 362 / 277; object-position: 22% 50%; transform: none; }
  .dg-hero::after { inset: 0 0 auto 0; aspect-ratio: 362 / 277; background: linear-gradient(180deg, rgba(20, 14, 6, 0.1) 0%, rgba(20, 14, 6, 0.5) 45%, rgba(20, 14, 6, 0.72) 100%); }
  .dg-hero__text { display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 362 / 277; padding: 0 22px 40px 24px; color: #fff; }
  .dg-eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; }
  .dg-hero__title { font-size: clamp(2rem, 9.6vw, 2.5rem); margin: 6px 0 10px; }
  .dg-hero__lead { font-family: var(--fab-font-sans); font-style: normal; font-size: 1.05rem; line-height: 1.3; max-width: 17em; }
  .dg-hero__loc { padding: 18px 16px 0 22px; margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--fab-ink); }
  .dg-hero__loc .dg-ic { stroke: var(--fab-ink); width: 22px; height: 22px; }
  /* 04 intro, 05 glance */
  .dg-intro { padding-top: 12px; gap: 22px; }
  .dg-intro__text { font-size: 0.97rem; line-height: 1.42; padding: 0 4px; }
  .dg-glance { padding: 12px 12px 18px; }
  .dg-glance .dg-h2 { padding-left: 4px; margin-bottom: 10px; }
  .dg-glance__list li { padding: 0 6px; text-align: center; }
  .dg-glance__list .dg-ic { margin: 0 auto; display: block; }
  .dg-glance__list .dg-item__t { font-weight: 500; font-size: 0.95rem; }
  .dg-glance__list .dg-item__d { display: none; }
  /* 06 base */
  .dg-base { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--dg-line); }
  .dg-base__body { order: -1; padding: 0 4px; }
  .dg-base__fig { aspect-ratio: 16 / 9; }
  .dg-base__fig figcaption { left: 16px; right: 16px; font-size: 0.82rem; }
  .dg-chips, .dg-base__fig { display: none; }
  .dg-areas { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 4px -16px 0; padding: 2px 16px 8px; scroll-padding-left: 16px; }
  .dg-areas:focus-visible { outline: 3px solid var(--fab-focus); outline-offset: 2px; }
  .dg-area { flex: 0 0 31.5%; min-width: 112px; scroll-snap-align: start; background: var(--dg-panel); border-radius: 12px; overflow: hidden; padding-bottom: 12px; }
  .dg-area img { display: block; width: 100%; height: auto; aspect-ratio: 110 / 92; object-fit: cover; border-radius: 12px 12px 0 0; }
  .dg-area__txt { padding: 8px 8px 0 10px; }
  .dg-area .dg-item__t { font-size: 0.86rem; }
  .dg-area .dg-item__d { font-size: 0.78rem; line-height: 1.25; }
  .dg-areas__note { display: block; margin-top: 4px; }
  .dg-chip { padding: 8px 14px 8px 12px; font-size: 0.9rem; min-height: 44px; }
  /* 07-09 columns */
  .dg-cols { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .dg-col, .dg-col:first-child, .dg-col:nth-child(3) { padding: 22px 4px 4px; border-left: 0; border-top: 1px solid var(--dg-line); margin-bottom: 22px; }
  .dg-col:last-child { margin-bottom: 0; }
  .dg-seasons { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .dg-season { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0 0 10px; text-align: center; overflow: hidden; }
  .dg-season__img { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 10px 10px 0 0; }
  .dg-season__name { margin-top: 8px; font-size: 0.9rem; }
  .dg-season__months { display: block; font-weight: 400; font-size: 0.8rem; margin-top: 2px; }
  .dg-season__desc { display: none; }
  .dg-season__temp { margin-top: 3px; font-size: 0.8rem; }
  .dg-item { gap: 0 18px; grid-template-columns: 40px 1fr; }
  .dg-item > .dg-ic { width: 34px; height: 34px; }
  .dg-col:nth-child(3) .dg-items { grid-template-columns: none; }
  /* 09 kinds of stay: native scroll-snap row of photo cards */
  .dg-stays { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 4px -16px 0; padding: 2px 16px 10px; scroll-padding-left: 16px; }
  .dg-stays:focus-visible { outline: 3px solid var(--fab-focus); outline-offset: 2px; }
  .dg-stay { display: block; flex: 0 0 47%; scroll-snap-align: start; background: var(--dg-panel); border-radius: 12px; overflow: hidden; padding-bottom: 12px; }
  .dg-stay__img { display: block; width: 100%; height: auto; aspect-ratio: 172 / 108; object-fit: cover; }
  .dg-stay > .dg-ic { display: none; }
  .dg-stay > div { padding: 10px 14px 0; }
  .dg-stay .dg-item__d { font-size: 0.82rem; }
  /* 10 good to know: stacked rows */
  .dg-pair { margin-top: 0; gap: 16px; padding-top: 22px; border-top: 1px solid var(--dg-line); }
  .dg-know { background: none; padding: 0 4px; }
  .dg-know__list { grid-template-columns: 1fr; gap: 8px; margin: 0 -8px; }
  .dg-know__item, .dg-know__item:first-child { display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; align-items: center; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--dg-panel); }
  .dg-know__item .dg-ic { width: 34px; height: 34px; margin: 0; }
  /* 11 cta */
  .dg-cta { min-height: 190px; }
  .dg-cta__body { padding: 20px 22px; }
  .dg-cta__title { font-size: 1.7rem; }
  .dg-cta__lead { font-size: 0.9rem; max-width: 17em; }
  .dg-cta::after { background: linear-gradient(90deg, rgba(4, 34, 16, 0.9) 0%, rgba(4, 34, 16, 0.76) 55%, rgba(4, 34, 16, 0.3) 100%); }
  /* 12 sources, 13 more places */
  .dg-end { gap: 22px; margin-top: 22px; }
  .dg-sources { grid-template-columns: 1fr; gap: 0; padding: 0 4px; }
  .dg-sources__body { margin-top: 10px; }
  .dg-sources__more summary { min-height: 44px; padding: 12px 6px; }
  .dg-src { min-height: 44px; padding: 8px 6px; }
  .dg-more { background: none; padding: 0 4px; }
  .dg-places { gap: 8px; margin: 0 -4px; }
  .dg-place { background: var(--dg-panel); border-radius: 10px; overflow: hidden; padding-bottom: 10px; }
  .dg-place img { aspect-ratio: 118 / 73; border-radius: 0; }
  .dg-place__txt { padding: 8px 10px 0; }
  .dg-place__country { font-size: 0.8rem; }
}
@media (max-width: 359px) {
  .dg-seasons { grid-template-columns: repeat(2, 1fr); }
  .dg-stay { flex-basis: 62%; }
  .dg-place__name { font-size: 0.82rem; }
  .dg-place__txt { padding: 8px 6px 0; }
  .dg-glance__list .dg-item__t { font-size: 0.86rem; }
}

/* ---------- shared-template additions (no visual change on the approved Cotswolds page) ---------- */
/* a BLOCKED image slot: the asset is not approved yet; never a silent substitute */
.dg-missing { display: grid; place-items: center; min-height: 47px; background: repeating-linear-gradient(135deg, #efe6d6 0 10px, #f6eee0 10px 20px); color: var(--fab-ink-muted); font-size: 0.72rem; font-weight: 600; text-align: center; }
.dg-missing.dg-hero__img, .dg-missing.dg-cta__img { position: absolute; inset: 0; }
.dg-base__fig .dg-missing { width: 100%; height: 100%; }
.dg-missing.dg-season__img { width: 94px; height: 47px; border-radius: 6px; }
.dg-place .dg-missing { aspect-ratio: 2 / 1; border-radius: 8px; }
.dg-area .dg-missing { aspect-ratio: 110 / 92; }
.dg-missing.dg-stay__img { display: none; }
@media (max-width: 767px) {
  .dg-missing.dg-season__img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .dg-missing.dg-stay__img { display: grid; aspect-ratio: 172 / 108; }
}

/* a card under More Places to Explore becomes a link only for destinations that are published (set by the public build) */
.dg-place__link { display: block; color: inherit; text-decoration: none; border-radius: 8px; }
.dg-place__link:focus-visible { outline: 3px solid var(--fab-focus); outline-offset: 3px; }
