/* ==========================================================================
   BALKAN TRAVEL OPS — 2026 REDESIGN SECTIONS
   New layout sections only. main.css is not modified; everything here uses the
   tokens defined in theme.css so the two stay in step.
   ========================================================================== */

.r26 {
  --r26-gutter: clamp(1rem, 4vw, 3.5rem);
  --r26-max: 1280px;
}

.r26-shell {
  width: 100%;
  max-width: var(--r26-max);
  margin-inline: auto;
  padding-inline: var(--r26-gutter);
}

/* A grid item defaults to min-width:auto, and a replaced element inside it
   contributes its INTRINSIC width to that minimum — so a 1600px photo widens
   the track past the viewport. html{overflow-x:hidden} in main.css then hides
   the overflow instead of scrolling it, which reads as text clipped at the
   right edge. Both halves of the fix are needed. */
.r26 img,
.r26 picture,
.r26 svg { max-width: 100%; }

.r26-hero__grid > *,
.r26-band__grid > *,
.r26-enquiry__grid > *,
.r26-cards > *,
.r26-dest > *,
.r26-steps > * { min-width: 0; }

.r26-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bto-terracotta-text);
  margin: 0 0 1rem;
}

.r26-display {
  font-family: var(--font-family-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--bto-navy);
  margin: 0;
  text-wrap: balance;
}

/* Sized so the homepage hero sets as two lines, like the mockup, from 1024px up:
   the 43% copy column is only ~390px at 1024 and ~480px at 1440+, measured. */
.r26-display--xl { font-size: clamp(2.25rem, 3.9vw, 3.5rem); }
.r26-display--lg { font-size: clamp(2rem, 4.2vw, 3rem); }

.r26-lede {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 46ch;
}

.r26-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--bto-petrol);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.r26-link:hover { border-bottom-color: currentColor; }
.r26-link::after { content: "\2192"; transition: transform 0.15s ease; }
.r26-link:hover::after { transform: translateX(3px); }

/* .r26-btn and its variants live in site-2026.css (loaded on every page). */

:where(.r26 a, .r26 button, .r26 input, .r26 select, .r26 textarea):focus-visible {
  outline: 2px solid var(--bto-terracotta);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- A. hero -------------------------------------------------------------- */

.r26-hero { background: var(--bto-ivory); padding: clamp(2rem, 5vw, 4rem) 0 0; }

.r26-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.r26-hero__copy { max-width: 34rem; }
.r26-hero__title { margin-bottom: 1.25rem; }
.r26-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.r26-hero__media { position: relative; }

.r26-hero__figure { margin: 0; position: relative; }

.r26-hero__img {
  display: block;
  width: 100%;
  height: clamp(18rem, 42vw, 30rem);
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.r26-hero__caption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.6rem;
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(20, 45, 59, 0.6);
}

/* The overlapping inset is a desktop-only refinement; it is hidden rather than
   stacked on small screens so the hero stays one clean image. */
.r26-hero__inset { display: none; }

@media (min-width: 62rem) {
  .r26-hero__grid { grid-template-columns: 43fr 57fr; }
  .r26-hero__media { margin-right: calc(var(--r26-gutter) * -1); }
  .r26-hero__img { height: clamp(26rem, 34vw, 34rem); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .r26-hero__inset {
    display: block;
    position: absolute;
    left: clamp(-7rem, -6vw, -3rem);
    bottom: -2.5rem;
    width: clamp(11rem, 16vw, 15rem);
    margin: 0;
  }
  .r26-hero__inset img {
    display: block;
    width: 100%;
    height: clamp(8rem, 11vw, 10.5rem);
    object-fit: cover;
    border: 6px solid var(--bto-ivory);
    border-radius: var(--radius-lg);
  }
}

/* --- B. benefits strip ---------------------------------------------------- */

.r26-benefits {
  background: var(--bto-ivory);
  /* Top clears the hero inset, which hangs 2.5rem below the photo on desktop. */
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(2rem, 4vw, 3rem);
}

.r26-benefits__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0;
  margin: 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid var(--bto-rule);
}

.r26-benefits__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bto-navy);
}
.r26-benefits__item + .r26-benefits__item { border-left: 1px solid var(--bto-rule); }
@media (max-width: 61.99rem) {
  .r26-benefits__item + .r26-benefits__item { border-left: 0; }
}
.r26-benefits__icon { flex: none; width: 1.5rem; height: 1.5rem; color: var(--bto-petrol); }

/* --- C. featured itineraries --------------------------------------------- */

.r26-section { padding: clamp(2.25rem, 4.5vw, 3.75rem) 0; background: var(--bto-ivory); }

/* Two ivory sections in a row used to stack both paddings: ~190px of plain
   background with nothing to mark the change. Where the background does not
   change, one gap is enough. */
.r26-section + .r26-section,
.r26-benefits + .r26-section { padding-top: 0; }

.r26-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.r26-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.r26-card { display: flex; flex-direction: column; }
.r26-card__media { margin: 0 0 1.1rem; }
.r26-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.r26-card__title {
  font-family: var(--font-family-display);
  font-weight: 400;
  font-size: 1.3125rem;
  line-height: 1.25;
  color: var(--bto-navy);
  margin: 0 0 0.4rem;
}
.r26-card__title a { color: inherit; text-decoration: none; }
.r26-card__title a:hover { color: var(--bto-petrol); }
.r26-card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0 0 0.6rem;
}
.r26-card__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 1rem;
}
.r26-card__foot { margin-top: auto; }

/* --- D. services band ----------------------------------------------------- */

.r26-band {
  background: var(--bto-navy);
  color: var(--bto-ivory);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.r26-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 62rem) { .r26-band__grid { grid-template-columns: 1fr 1fr; } }

.r26-band__title { color: var(--bto-ivory); margin-bottom: 1.25rem; }
.r26-band__text {
  color: rgba(247, 245, 240, 0.78);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 40ch;
  margin: 0 0 1.75rem;
}
.r26-band .r26-link { color: var(--bto-ivory); }

.r26-band__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(247, 245, 240, 0.16);
  border-left: 1px solid rgba(247, 245, 240, 0.16);
}
.r26-band__item {
  border-right: 1px solid rgba(247, 245, 240, 0.16);
  border-bottom: 1px solid rgba(247, 245, 240, 0.16);
}
.r26-band__item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 8.5rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bto-ivory);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.r26-band__item a:hover { background: rgba(247, 245, 240, 0.06); }
.r26-band__item svg { width: 1.75rem; height: 1.75rem; opacity: 0.85; }

/* --- E. destination grid -------------------------------------------------- */
/* auto-fit keeps three, seven or more countries looking deliberate. */

.r26-dest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.r26-dest__item { position: relative; }

.r26-dest__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-decoration: none;
}
.r26-dest__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 22rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}
@media (min-width: 48rem) { .r26-dest__img { aspect-ratio: 4 / 3; } }
.r26-dest__link:hover .r26-dest__img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .r26-dest__link:hover .r26-dest__img { transform: none; }
}
.r26-dest__veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(20, 45, 59, 0.78), rgba(20, 45, 59, 0));
}
.r26-dest__label {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  color: #fff;
}
.r26-dest__label::after { content: "\2192"; font-family: var(--font-family-sans); font-size: 1rem; }

.r26-dest__cities {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.8125rem;
}
.r26-dest__cities a { color: var(--color-text-muted); text-decoration: none; }
.r26-dest__cities a:hover { color: var(--bto-petrol); text-decoration: underline; }

/* Preview-only marker. Never rendered in a production build — the draft
   countries it labels are filtered out before they reach the template. */
.r26-dest__flag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bto-terracotta-text);
  border-radius: 2px;
}

/* --- G. process steps ----------------------------------------------------- */

.r26-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: r26step;
}
.r26-steps__item { border-top: 1px solid var(--bto-rule); padding-top: 1.25rem; }
.r26-steps__num {
  counter-increment: r26step;
  display: block;
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  color: var(--bto-terracotta);
  margin-bottom: 0.5rem;
}
.r26-steps__num::before { content: counter(r26step, decimal-leading-zero); }
.r26-steps__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--bto-navy);
  margin: 0 0 0.4rem;
}
.r26-steps__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* --- I. closing CTA band -------------------------------------------------- */

.r26-cta {
  background: var(--bto-petrol);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.r26-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.r26-cta__title {
  font-family: var(--font-family-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.2;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}

/* --- H. enquiry section --------------------------------------------------- */

.r26-enquiry { background: var(--bto-ivory-deep); padding: clamp(2.5rem, 5vw, 4rem) 0; }

.r26-enquiry__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 62rem) { .r26-enquiry__grid { grid-template-columns: 5fr 7fr; } }

.r26-enquiry__panel {
  background: #fff;
  border: 1px solid var(--bto-rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.r26-enquiry__points { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.r26-enquiry__points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.r26-enquiry__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--bto-terracotta);
}

/* Country checkbox group — generated from the shared destination data. */
.r26-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.r26-countries legend {
  padding: 0;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bto-navy);
}
.r26-country {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid var(--bto-rule-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.r26-country:hover { border-color: var(--bto-petrol); }
.r26-country input { accent-color: var(--bto-petrol); margin: 0; }
.r26-country:has(input:checked) {
  border-color: var(--bto-petrol);
  background: var(--bto-petrol-light);
}
.r26-country:has(input:focus-visible) {
  outline: 2px solid var(--bto-terracotta);
  outline-offset: 2px;
}

/* --- country pages -------------------------------------------------------- */

.r26-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 62ch;
}

.r26-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.r26-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: var(--bto-navy);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--bto-rule);
  border-radius: var(--radius-full);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.r26-chip:hover { border-color: var(--bto-petrol); color: var(--bto-petrol); }

/* Page hero for country / listing pages: photograph with an ivory copy block
   beneath, rather than text burned over the image. */
.r26-phero { background: var(--bto-ivory); }
.r26-phero__media { position: relative; }
.r26-phero__img {
  display: block;
  width: 100%;
  height: clamp(13rem, 30vw, 22rem);
  object-fit: cover;
}
/* padding-block-start, not the `padding` shorthand: this element also carries
   .r26-shell, and the shorthand would reset its padding-inline to 0 and pull
   the hero copy out of alignment with every section below it. */
.r26-phero__body { padding-block-start: clamp(1.75rem, 4vw, 3rem); }
.r26-phero__title { margin-bottom: 1rem; }
.r26-phero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.r26-phero__facts li {
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  background: #fff;
  border: 1px solid var(--bto-rule);
  border-radius: var(--radius-full);
}

/* --- itinerary filter ----------------------------------------------------- */

.r26-filter {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  background: var(--bto-ivory-deep);
  border-block: 1px solid var(--bto-rule);
}
.r26-filter__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.r26-filter__label {
  /* This is an <h2> on the listing page, and main.css puts h1-h3 in the display
     face; the filter label is interface text, not a heading voice. */
  font-family: var(--font-family-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.r26-filter__status {
  flex-basis: 100%;
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--bto-navy);
}
.r26-filter__reset {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bto-petrol);
  cursor: pointer;
  text-decoration: underline;
}
.r26-filter[hidden] { display: none; }

/* The filter is progressive enhancement: with no JavaScript every programme is
   rendered and grouped, so the listing is fully crawlable and usable. */
.r26-results[hidden] { display: none; }

/* main.css colours every .form-label white (rgba 255,255,255,.9), because every
   form on the old site sat on the navy .form-section. On this white panel that
   made all eleven labels and the microcopy 1.00:1 — invisible — while still
   passing a label-association check. Scoped to light form surfaces only; forms
   left on navy keep their white labels. */
.r26-enquiry__panel .form-label,
.r26-enquiry__panel .interests-grid label {
  color: var(--bto-navy);
  font-weight: 600;
}
.r26-enquiry__panel .form-microcopy { color: var(--color-text-muted); }
.r26-enquiry__panel .form-microcopy a { color: var(--bto-petrol); }
