/* Round 5 additions: Travel Services icon strip + planning steps, Blog topics in a row of four, Nature Photography page. */

/* ---------- Travel Services: icon strip ---------- */
.ts-strip { padding: clamp(36px, 5vw, 56px) 0; background: var(--color-bg-white); border-bottom: 1px solid var(--color-border); }
.ts-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 3vw, 40px); }
.ts-strip__item { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: var(--color-primary); }
.ts-strip__icon { width: 44px; height: 44px; flex: none; color: var(--color-accent); }
.ts-strip__item span { font-size: var(--text-small); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; max-width: 16ch; }
@media (max-width: 900px) { .ts-strip__list { grid-template-columns: repeat(3, 1fr); row-gap: 32px; } }
@media (max-width: 520px) { .ts-strip__list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Travel Services: planning process ---------- */
#process .split2 { align-items: center; }
#process .split2 .media2 { aspect-ratio: 4 / 3; }
.ts-steps { list-style: none; counter-reset: ts-step; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--color-border); }
.ts-steps li { position: relative; padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.ts-steps h3 { font-size: var(--text-h4); margin-bottom: 8px; }
.ts-steps p { color: var(--color-text-medium); font-size: var(--text-small); max-width: 52ch; }
.rows .row .row__body .eyebrow { margin-bottom: 14px; }

/* ---------- Blog: four topics in one row ---------- */
.cards--two.cards--four { grid-template-columns: repeat(4, 1fr); }
.cards--four .card__body { padding: 22px 22px 26px; }
.cards--four .card__body h3 { font-size: var(--text-h4); }
@media (max-width: 1100px) { .cards--two.cards--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards--two.cards--four { grid-template-columns: 1fr; } }

/* ---------- Nature Photography ---------- */
.np-intro { max-width: 820px; margin: 0 auto; }
.np-intro p:not(.eyebrow) { margin-top: 20px; color: var(--color-text-medium); font-size: var(--text-body-lg); line-height: 1.75; font-weight: 300; }
.np-gallery { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: var(--space-gap); }
.np-gallery__item { break-inside: avoid; margin: 0 0 var(--space-gap); }
.np-gallery__item a { position: relative; display: block; overflow: hidden; background: var(--color-secondary); }
.np-gallery__item img { display: block; width: 100%; height: auto; transition: transform var(--transition-luxury); }
.np-gallery__item a:hover img, .np-gallery__item a:focus-visible img { transform: scale(1.03); }
.np-gallery__item a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.np-gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: linear-gradient(to top, rgba(10, 10, 10, 0.62), transparent); opacity: 0; transition: opacity var(--transition-base); }
.np-gallery__item a:hover .np-gallery__cap, .np-gallery__item a:focus-visible .np-gallery__cap { opacity: 1; }
@media (hover: none) { .np-gallery__cap { opacity: 1; } }
@media (max-width: 1024px) { .np-gallery { columns: 2; } }
@media (max-width: 560px) { .np-gallery { columns: 1; } }

.np-video { max-width: 1040px; margin: 0 auto; background: var(--color-bg-dark); }
.np-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--color-bg-dark); }

.np-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 24px; background: rgba(10, 10, 10, 0.92); }
.np-lightbox.is-open { display: flex; }
.np-lightbox img { max-width: min(94vw, 1400px); max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.np-lightbox__cap { min-height: 1.4em; color: #fff; font-size: var(--text-small); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
.np-lightbox button { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.np-lightbox button:hover, .np-lightbox button:focus-visible { background: rgba(255, 255, 255, 0.14); outline: none; border-color: #fff; }
.np-lightbox__close { top: 16px; right: 16px; }
.np-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.np-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer affiliation line ---------- */
.site-footer__legal p { margin: 0; }
.site-footer__affiliate { margin-top: 6px !important; font-size: 12px; font-style: italic; letter-spacing: 0.02em; opacity: 0.75; }

/* ---------- Nature Photography: portrait beside the introduction ---------- */
.np-intro--split { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.np-intro__media { overflow: hidden; background: var(--color-secondary); aspect-ratio: 4 / 5; }
.np-intro__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.np-intro__body { max-width: 640px; }
@media (max-width: 900px) { .np-intro--split { grid-template-columns: 1fr; } .np-intro__media { max-width: 480px; } }

/* ---------- Book page: bookshop credit link ---------- */
.book-gift__img figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Past Retreat Gallery: the whole destination card is the link ---------- */
.card:has(.card__link) { position: relative; }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.card:has(.card__link) .card__body h3::after { content: "\2192"; display: inline-block; margin-left: 10px; color: var(--color-accent); opacity: 0; transform: translateX(-6px); transition: opacity var(--transition-base), transform var(--transition-base); }
.card:has(.card__link):hover .card__body h3::after, .card:has(.card__link:focus-visible) .card__body h3::after { opacity: 1; transform: none; }
.card:has(.card__link) { cursor: pointer; }

/* ---------- Past Retreat Gallery destination pages: the introduction (first section) is centred ---------- */
.page-child .np-intro:not(.np-intro--split) { max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
.page-child .np-intro:not(.np-intro--split) .np-intro__body { max-width: none; }
.page-child .np-intro:not(.np-intro--split) .eyebrow { justify-content: center; margin-bottom: 22px; }
.page-child .np-intro:not(.np-intro--split) h2 { max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.page-child .np-intro:not(.np-intro--split) p:not(.eyebrow) { max-width: 66ch; margin: 28px auto 0; line-height: 1.8; }
.page-child .np-intro:not(.np-intro--split) h2 + p:not(.eyebrow) { margin-top: 32px; }
@media (max-width: 640px) { .page-child .np-intro:not(.np-intro--split) p:not(.eyebrow) { margin-top: 22px; } }
/* a destination page without an introduction opens with the photo gallery: its heading is centred the same way */
.page-child .page-hero + #gallery .section-head { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.page-child .page-hero + #gallery .section-head .eyebrow { justify-content: center; }
.page-child .page-hero + #gallery .section-head p:not(.eyebrow) { margin-left: auto; margin-right: auto; }

/* the client's main Marin photograph (portrait): keep the chairs and the reservoir in the landscape crops */
img[src*="dest-marin-main"] { object-position: 50% 68%; }
