/* Villa detail pages (/accommodation-info/<slug>): one shared layout for the
 * nine Wix CMS villa pages. Mint honeycomb title band, five alternating
 * text / photo rows, then a full-bleed sliding photo gallery. */

/* Title band */
.villa-hero { min-height: 450px; padding: 52px 0 60px; }
.villa-hero .wrap { padding-left: calc(var(--gutter-l) + 18px); }
.villa-back { font: 400 16px/1.3 var(--sans); color: var(--ink); text-decoration: none; }
.villa-back:hover { text-decoration: underline; }
.villa-hero h1 { margin: 55px 0 0 69px; max-width: 770px; font: 300 90px/1.1 var(--sans); color: var(--ink); letter-spacing: .02em; text-wrap: wrap; }

/* Alternating rows: 980px column, text half and photo half */
.vrows { max-width: 980px; margin: 0 auto; }
.vrow { display: grid; grid-template-columns: 489fr 491fr; }
.vrow__photo { position: relative; aspect-ratio: 491 / 752; margin: 0; background: #eee; overflow: hidden; }
.vrow__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vrow--tall .vrow__photo { aspect-ratio: 489 / 925; }
.vrow--flip .vrow__photo { order: -1; }
.vrow__text { padding: 197px 0 40px 0; }
.vrow:first-child .vrow__text { padding-top: 107px; }
.vrow--tall .vrow__text { padding: 128px 2px 40px 58px; }
.vrow--flip:not(.vrow--tall) .vrow__text { padding-left: 1px; }

/* Rich text copied from the live CMS */
.vtext { font: 400 20px/1.27 var(--sans); color: var(--ink); }
.vtext--18 { font-size: 18px; }
.vtext p { margin: 0; }
.vtext p:empty::before { content: "\00a0"; }
.vtext strong { font-weight: 500; color: var(--black); }
.vtext ul { margin: 0; padding-left: 32px; list-style: disc; }
.vtext .fs18 { font-size: 18px; }
.vrow--tall .vtext { line-height: 1.67; }
.vrow--tall .vtext--18, .vrow--tall .vtext .fs18 { line-height: 1.75; }

/* Sliding gallery: one big tile then a 2 x 2 block, repeated */
.vgal { position: relative; }
.vgal__track {
  display: grid; grid-auto-flow: column; grid-template-rows: 24vw 24.06vw; grid-auto-columns: 25vw;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  margin: 0; padding: 0; list-style: none;
}
.vgal__track::-webkit-scrollbar { display: none; }
.vgal__track li { position: relative; overflow: hidden; scroll-snap-align: start; }
.vgal__track li.is-big { grid-row: span 2; grid-column: span 2; }
.vgal__track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vgal__btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 64px; border: 0; padding: 0;
  background: none; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
}
.vgal__btn svg { width: 22px; height: 40px; }
.vgal__btn--prev { left: 12px; }
.vgal__btn--next { right: 12px; }
.vgal__btn[hidden] { display: none; }

@media (max-width: 1040px) {
  .vrows { padding-inline: var(--gutter-l) var(--gutter-r); }
  .vrow--tall .vrow__text { padding-left: 40px; }
}
@media (max-width: 900px) {
  .villa-hero { min-height: 0; padding: 40px 0 70px; }
  .villa-hero h1 { margin-left: 0; font-size: clamp(40px, 9vw, 72px); }
  .vrow__text, .vrow:first-child .vrow__text, .vrow--tall .vrow__text { padding: 60px 28px 40px 0; }
  .vrow--flip .vrow__text, .vrow--tall .vrow__text { padding: 60px 0 40px 28px; }
}
@media (max-width: 640px) {
  .villa-hero { padding: 26px 0 40px; }
  .villa-hero .wrap { padding-left: var(--gutter-l); }
  .villa-hero h1 { margin-top: 24px; font-size: clamp(38px, 11vw, 52px); line-height: 1.08; text-wrap: balance; }
  .vrows { padding: 0; }
  .vrow { grid-template-columns: 1fr; }
  .vrow--flip .vrow__photo { order: 0; }
  .vrow__photo, .vrow--tall .vrow__photo { aspect-ratio: 8 / 7; }
  .vrow__text, .vrow:first-child .vrow__text, .vrow--flip .vrow__text, .vrow--tall .vrow__text { padding: 30px var(--gutter-r) 30px var(--gutter-l); }
  .vtext, .vtext--18 { font-size: 17px; line-height: 1.45; }
  .vtext .fs18 { font-size: 17px; }
  .vrow--tall .vtext, .vrow--tall .vtext--18, .vrow--tall .vtext .fs18 { line-height: 1.7; }
  .vtext ul { padding-left: 24px; }
  .vgal { margin-top: 6px; }
  .vgal__track { grid-template-rows: 42vw 42vw; grid-auto-columns: 44vw; }
  .vgal__btn { width: 36px; }
}
