/* Quiet landscape silhouettes stay inside the fixed masthead's painted background. */
.site-masthead::before,
.site-masthead::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../decor/palm-left.svg") no-repeat clamp(150px, 22vw, 420px) 4px / calc(280px * var(--masthead-scale, 1)) auto;
  filter: brightness(0); opacity: .12;
}
.site-masthead::before {
  background-image: url("../decor/palm-left.svg"), url("../decor/shadow-pyramids.svg");
  background-position: clamp(150px, 22vw, 420px) 4px, left 61% bottom calc(-8px * var(--masthead-scale, 1));
  background-size: calc(280px * var(--masthead-scale, 1)) auto, calc(clamp(250px, 23vw, 340px) * var(--masthead-scale, 1)) auto;
}
.site-masthead::after { background-position: right clamp(12px, 4vw, 80px) top 4px; }
.masthead-bird {
  position: absolute; z-index: -1; pointer-events: none;
  left: var(--bird-x); top: calc(var(--bird-y) * var(--masthead-scale, 1));
  width: calc(var(--bird-size) * var(--masthead-scale, 1)); height: auto;
  transform: translateX(-50%); fill: #000; opacity: .12;
}
.masthead-bird-one { --bird-x: 73%; --bird-y: 62px; --bird-size: 42px; --wing-duration: 2.8s; --wing-delay: 0s; }
.masthead-bird-two { --bird-x: 67%; --bird-y: 78px; --bird-size: 26px; --wing-duration: 3.6s; --wing-delay: -.7s; }
.masthead-bird-three { --bird-x: 70%; --bird-y: 48px; --bird-size: 34px; --wing-duration: 3.2s; --wing-delay: -1.8s; }
.masthead-bird .bird-wing {
  transform-box: view-box; transform-origin: 40px 28px;
  animation: masthead-wingbeat var(--wing-duration) ease-in-out var(--wing-delay) infinite;
}
@keyframes masthead-wingbeat {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(-.35); }
}
@media (prefers-reduced-motion: reduce) {
  .masthead-bird .bird-wing { animation: none; transform: scaleY(.65); }
}
@media (min-width: 1101px) and (max-width: 1399px) {
  .masthead-bird-two { --bird-x: 68%; --bird-y: 22px; }
  .masthead-bird-three { --bird-y: 111px; }
}
@media (max-width: 1100px) {
  .site-masthead::before,
  .site-masthead::after { background-size: calc(260px * var(--masthead-scale, 1)) auto; opacity: .10; }
  .site-masthead::before {
    background-position: left -80px top 48px, left 54% bottom 0;
    background-size: calc(260px * var(--masthead-scale, 1)) auto, calc(170px * var(--masthead-scale, 1)) auto;
  }
  .site-masthead::after { background-position: right -36px top 48px; }
  .masthead-bird { opacity: .10; }
  .masthead-bird-one { --bird-x: 60%; --bird-y: 24px; --bird-size: 28px; }
  .masthead-bird-two { --bird-x: 54%; --bird-y: 12px; --bird-size: 18px; }
  .masthead-bird-three { --bird-y: 34px; --bird-size: 22px; }
  .site-masthead .site-header nav.is-open { background: #087eae; }
}

/* Photos retain their natural colour. Neutral shadows only support overlaid text. */
.hero .hero-overlay,
.hero.hero-v09 .hero-overlay,
.hero.hero-v22 .hero-overlay {
  background: linear-gradient(90deg, #0008, #0002 53%, transparent 82%);
}
.photo-shade { background: linear-gradient(0deg, #000c, #0005 40%, transparent 78%); }
.subhero-shade { background: linear-gradient(90deg, #0009, transparent 75%), linear-gradient(0deg, #0005, transparent 50%); }
.hero.hero-v22 .hero-slide img { filter: none; }
.video-card-open::after { background: linear-gradient(0deg, #0006, transparent 65%); }

/* Trips social links share the same destinations in every contact placement. */
.trips-instagram-link { display: inline-flex; align-items: center; gap: 9px; }
.trips-instagram-link svg { flex: none; }
.topline-right > a.topline-instagram {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 34px; width: 34px; height: 34px; padding: 0;
  border-radius: 6px; background: #b72775; color: #fff;
}
.topline-instagram > span, .floating-contact-instagram > span {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.topline-right > a.topline-instagram:hover { color: #fff; background: #951b60; }
.topline-right > a.topline-pinterest {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 34px; width: 34px; height: 34px; padding: 0;
  border-radius: 6px; background: #e60023; color: #fff;
}
.topline-pinterest > span {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.topline-right > a.topline-pinterest:hover { color: #fff; background: #ad001a; }
.floating-contact-instagram {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: #b72775; color: #fff;
}
.floating-contact-instagram:hover { background: #951b60; color: #fff; }
.site-footer .instagram-contact, .operator-instagram { color: var(--ci-cyan-on-dark); }
.site-footer .operator-facebook,
.site-footer .operator-instagram { color: #fff !important; }
.operator-facebook svg { flex: none; fill: currentColor; }
.contact-instagram { padding: 11px 16px; width: max-content; max-width: 100%; min-height: 46px; border-radius: 10px; background: #b72775; color: #fff; font-weight: 800; }
.contact-instagram:hover { color: #fff; background: #951b60; }
.quick-contact-strip { grid-template-columns: minmax(230px, 1.25fr) repeat(4, minmax(160px, 1fr)); }
.quick-instagram svg { background: #b72775; }
.topline .language-flag[href] { display: grid; place-items: center; min-height: 24px; border-radius: 3px; }

/* A separate outer ring keeps the original white photo border intact. */
.poster-experience { --experience-ring: #ffad43; }
.poster-experience[data-experience="orange-bay"] { --experience-ring: #fe5303; }
.poster-experience[data-experience="snorkeling"] { --experience-ring: #0aa95b; }
.poster-experience[data-experience="boat-trips"] { --experience-ring: #7cddff; }
.poster-experience[data-experience="accommodation"] { --experience-ring: #941e35; }
.poster-experience[data-experience="luxor-tours"] { --experience-ring: #5440b5; }
.poster-experience[data-experience="banana-boat"] { --experience-ring: #ffe600; }
.poster-experience[data-experience="parasailing"] { --experience-ring: conic-gradient(#278ce9, #8744c7, #ffe600, #278ce9); }
.poster-experience[data-experience="motorcycle"] { --experience-ring: #e9edf0; }
.poster-experience-ring { width: 100%; max-width: 160px; padding: 3px; border-radius: 50%; background: var(--experience-ring); }
.poster-experience .poster-experience-ring figure { width: 100%; max-width: none; outline: none; }

/* Match each label outline to its circle; keep the existing blue fill and white text. */
.poster-experience span { border-color: var(--experience-ring); }
.poster-experience[data-experience="parasailing"] span {
  border-color: transparent;
  background: linear-gradient(var(--poster-blue), var(--poster-blue)) padding-box,
    var(--experience-ring) border-box;
}
.poster-experience:focus-visible span { box-shadow: 0 5px 0 #003e7a, 0 0 0 2px #fff; }

/* The new introductory story is numbered 00; the existing stories stay 01-12. */
.hero-control-band .slide-tabs { grid-template-columns: repeat(13, minmax(24px, 1fr)); }
/* Fit the welcome group in full, with a clear space between copy and video. */
.hero-with-video:has(.hero-slide-welcome.is-active) {
  --welcome-edge: clamp(32px, 4.5vw, 86px);
  --welcome-copy-width: clamp(285px, 24vw, 380px);
  --hero-media-width: clamp(300px, 24vw, 430px);
  --hero-media-right: var(--welcome-edge);
  background: linear-gradient(115deg, #003c6e, #087da5 65%, #069bd0);
}
.hero.hero-v22 .hero-slide-welcome {
  display: flex; align-items: center; justify-content: center;
  padding: 30px calc(var(--hero-media-width, 430px) + var(--welcome-edge, 86px) + 28px) 70px calc(var(--welcome-copy-width, 380px) + var(--welcome-edge, 86px) + 28px);
}
.hero.hero-v22 .hero-slide-welcome img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center; border-radius: 8px;
}
.hero-with-video:has(.hero-slide-welcome.is-active) .hero-images { z-index: 3; pointer-events: none; }
.welcome-gallery {
  display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%; min-height: 0;
  padding: 8px; border: 1px solid #a6f1ff80; border-radius: 16px;
  background: #003e72; box-shadow: 0 12px 28px #002d5133; pointer-events: auto;
}
.welcome-gallery-stage { position: relative; flex: 1; min-height: 0; touch-action: pan-y; }
.welcome-gallery-slide { position: absolute; inset: 0; margin: 0; }
.welcome-gallery-controls { display: flex; flex: none; align-items: center; justify-content: center; gap: 12px; min-height: 44px; }
.welcome-gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #a6f1ff80; border-radius: 50%; background: transparent; color: #fff; font-size: 1.35rem; }
.welcome-gallery-controls button:hover { background: #ffffff18; }
.welcome-gallery-controls button:focus-visible { outline: 3px solid #ffe600; outline-offset: 2px; }
.welcome-gallery-dots { display: flex; gap: 2px; }
.welcome-gallery-dots button { width: 34px; height: 44px; border: 0; }
.welcome-gallery-dots button span { width: 10px; height: 10px; border-radius: 50%; background: #a6f1ff80; }
.welcome-gallery-dots button[aria-pressed="true"] span { background: #ffe600; }
.welcome-gallery-status { min-width: 36px; font-size: .8rem; font-weight: 700; color: #fff; text-align: center; }
.hero.hero-v22:has(.hero-slide-welcome.is-active) .hero-overlay { background: none; }
@media (min-width: 1101px) {
  .hero-with-video:has(.hero-slide-welcome.is-active) .hero-copy {
    position: absolute; top: 48px; left: var(--welcome-edge);
    width: var(--welcome-copy-width); padding: 0;
  }
  .hero-with-video:has(.hero-slide-welcome.is-active) h1 {
    font-size: clamp(2rem, 2.8vw, 2.75rem); line-height: 1.05; margin-bottom: 20px;
  }
  .hero-with-video:has(.hero-slide-welcome.is-active) .hero-actions {
    left: var(--welcome-edge); bottom: 90px; max-width: var(--welcome-copy-width);
  }
}
@media (max-width: 1100px) {
  .hero-control-band .slide-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .hero-with-video:has(.hero-slide-welcome.is-active) .hero-images {
    position: relative; inset: auto; z-index: 0; order: 2;
    width: 100%; height: clamp(300px, 68vw, 480px); border-radius: 12px;
  }
  .hero.hero-v22 .hero-slide-welcome { padding: 0; }
  .hero-with-video:has(.hero-slide-welcome.is-active) .hero-actions { order: 3; }
  .hero-with-video:has(.hero-slide-welcome.is-active) .hero-video-window { order: 4; }
}

.availability-badge { display: inline-flex; width: fit-content; margin: 4px 0 10px; padding: 6px 10px; border-radius: 5px; color: #752d18; background: #fff0e9; font-size: .75rem; font-weight: 700; }
.availability-notice { margin: 20px 0; padding: 18px; border-left: 4px solid #bd5935; border-radius: 8px; background: #fff0e9; color: #672b1a; }
.illustrated-experience.subhero { background: #f2f7f8; color: var(--ci-navy); }
.illustrated-experience.subhero > img { object-fit: contain; object-position: right center; width: 58%; left: auto; }
.illustrated-experience.subhero > div:last-child { max-width: 52%; }
.illustrated-experience .eyebrow { color: var(--ci-blue); }
.illustration-label { display: block; margin-top: 20px; font-size: .75rem; color: var(--ci-muted); }
.experience-card > img.experience-illustration { object-fit: contain; background: #f2f7f8; }
.service-price strong { overflow-wrap: anywhere; }

@media (max-width: 1399px) {
  .quick-contact-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-contact-intro { grid-column: 1 / -1; min-height: 92px; text-align: center; align-items: center; }
  .quick-contact-link { padding: 20px 16px; }
}
@media (max-width: 980px) and (min-width: 701px) {
  .quick-contact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .quick-contact-strip { grid-template-columns: 1fr; }
  .quick-contact-intro { text-align: left; align-items: flex-start; }
  .quick-contact-link { padding: 16px 7%; }
  .illustrated-experience.subhero { flex-direction: column; align-items: stretch; }
  .illustrated-experience.subhero > img { position: static; width: 100%; height: 240px; order: 1; }
  .illustrated-experience.subhero > div:last-child { max-width: none; padding: 32px 7% 0; }
}
.site-masthead .photo-video-nav-link {
  border: 1px solid var(--ci-gold);
  border-radius: 9px;
  padding: 7px 13px;
  color: var(--ci-navy);
  background: var(--ci-sun);
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}
.site-masthead .photo-video-nav-link:hover,
.site-masthead .photo-video-nav-link[aria-current="page"] {
  background: var(--ci-gold);
  color: var(--ci-navy);
  text-decoration: none;
}
.services-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-photo-video .service-visual { background: #cfefff; }
.service-photo-video .service-visual img { object-fit: contain; }
.photo-language-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px max(5vw, calc((100vw - 1440px) / 2));
  background: #e9f8ff;
}
.photo-language-switch a {
  padding: 8px 16px;
  border: 1px solid #9bcedf;
  border-radius: 30px;
  color: var(--ci-navy);
  font-size: .875rem;
  font-weight: 700;
}
.photo-language-switch a[aria-current="page"], .photo-language-switch a:hover {
  background: var(--ci-navy);
  border-color: var(--ci-navy);
  color: white;
  text-decoration: none;
}
.photo-video-hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: 30px max(5vw, calc((100vw - 1440px) / 2)) 64px;
  background: #e9f8ff;
  color: var(--ci-navy);
}
.photo-video-hero h1 {
  margin: 22px 0;
  font-size: clamp(2.6rem, 4.4vw, 5rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.photo-video-hero h1 em { color: #087eae; font-style: normal; }
.photo-video-hero p { max-width: 620px; margin: 0 0 28px; font-size: 1.13rem; line-height: 1.7; }
.photo-video-hero .button { white-space: normal; }
.photo-video-hero figure { margin: 0; position: relative; }
.photo-video-hero figure img { display: block; width: 100%; height: auto; border-radius: 28px; }
.photo-video-hero figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  border-radius: 8px;
  background: var(--ci-navy);
  color: white;
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: .03em;
  font-size: .875rem;
}
.photo-video-detail { display: grid; grid-template-columns: 1.55fr 1fr; gap: 6%; align-items: start; }
.photo-video-detail h2 { font-size: clamp(1.8rem, 2.7vw, 3rem); line-height: 1.15; margin: 18px 0; }
.photo-video-detail .lead { line-height: 1.75; }
.photo-video-features { display: grid; gap: 24px; margin-top: 30px; }
.photo-video-features article { position: relative; padding: 0 0 24px 60px; border-bottom: 1px solid #c8e5ef; }
.photo-feature-number { position: absolute; left: 0; top: 0; font-size: 1.25rem; font-weight: 800; color: #087eae; }
.photo-video-features h3 { margin: 0 0 10px; font-size: 1.2rem; }
.photo-video-features p { margin: 0; line-height: 1.7; }
.photo-video-booking { background: #e9f8ff; border: 1px solid #9bcedf; border-top: 5px solid var(--ci-gold); border-radius: 16px; padding: clamp(24px, 3vw, 40px); }
.photo-video-booking h2 { font-size: 2rem; }
.photo-video-booking h3 { margin: 26px 0 12px; }
.photo-video-booking p, .photo-video-booking li { line-height: 1.65; }
.photo-video-booking ul { padding-left: 22px; margin-bottom: 28px; }
.photo-video-booking li + li { margin-top: 9px; }
.photo-video-booking .button { width: 100%; justify-content: space-between; }
.photo-video-email { display: block; margin-top: 18px; overflow-wrap: anywhere; font-size: .9rem; }
.photo-video-note { margin: 24px 0 0; font-size: .84rem; }
@media (max-width: 850px) {
  .photo-video-hero, .photo-video-detail { grid-template-columns: 1fr; }
  .photo-video-hero { padding-bottom: 40px; }
  .photo-video-hero figure { max-width: 580px; width: 100%; justify-self: center; }
  .photo-video-detail { gap: 36px; }
}
@media (max-width: 700px) {
  .services-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-tabs button:nth-child(3) { border-left: 0; }
  .services-tabs button:nth-child(n+3) { border-top: 1px solid var(--ci-line); }
  .photo-language-switch { justify-content: center; padding: 18px 5vw; gap: 6px; }
  .photo-language-switch a { padding: 8px 11px; }
  .photo-video-hero h1 { font-size: clamp(2.5rem, 10vw, 3.7rem); }
}

/* Match header controls to the visible search field at each breakpoint. */
html.has-site-search { --header-control-height: 36px; --header-control-gap: 8px; }
.has-site-search .site-masthead .topline-right { align-items: center; gap: var(--header-control-gap); }
.has-site-search .site-masthead .topline-right > a.topline-whatsapp,
.has-site-search .site-masthead .topline-right > a.topline-facebook,
.has-site-search .site-masthead .topline-right > a.topline-instagram,
.has-site-search .site-masthead .topline-right > a.topline-pinterest,
.has-site-search .site-masthead .topline-right > a.topline-trip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--header-control-height);
  width: var(--header-control-height);
  height: var(--header-control-height);
  min-height: var(--header-control-height);
  padding: 0;
  border-radius: 6px;
}
.has-site-search .site-masthead .topline-right > a.topline-whatsapp {
  background: var(--ci-green);
  color: #fff;
}
.has-site-search .site-masthead .topline-right > a.topline-whatsapp:hover {
  background: color-mix(in srgb, var(--ci-green) 80%, var(--ci-navy));
  color: #fff;
}
.has-site-search .site-masthead .topline-right > a.topline-trip {
  background: var(--ci-sun);
  color: var(--ci-navy);
  font-family: var(--ci-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.has-site-search .site-masthead .topline-right > a.topline-trip:hover {
  background: #ffdc85;
  color: var(--ci-navy);
}
.has-site-search .site-masthead .topline-right > a:is(.topline-facebook,.topline-instagram,.topline-pinterest,.topline-whatsapp,.topline-trip):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.has-site-search .topline-facebook > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.has-site-search .topline .language-flags {
  box-sizing: border-box;
  height: var(--header-control-height);
  align-items: center;
  gap: var(--header-control-gap);
  padding-left: 10px;
}
.has-site-search .topline .language-flag[href] {
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  height: var(--header-control-height);
  min-height: var(--header-control-height);
  padding: 0;
}
.has-site-search .topline .language-flag img {
  width: 40px;
  height: auto;
  max-height: 30px;
  object-fit: contain;
}
@media (min-width: 1200px) {
  .has-site-search .site-header nav > a,
  .has-site-search .site-header .nav-group summary,
  .has-site-search .site-header .nav-services > a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: var(--header-control-height);
    min-height: var(--header-control-height);
    padding-block: 0;
  }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .has-site-search .site-header nav { column-gap: 8px; }
  .has-site-search .site-header nav > a,
  .has-site-search .site-header .nav-group summary,
  .has-site-search .site-header .nav-services > a {
    font-size: 13px;
  }
}
@media (max-width: 1399px) {
  html.has-site-search { --header-control-height: 44px; --topline-expanded: 112px; }
}
@media (min-width: 1400px) and (max-width: 1499px) {
  .has-site-search .topline .language-flag[href] { flex-basis: 36px; width: 36px; }
  .has-site-search .topline .language-flag img { width: 34px; }
}
@media (max-width: 1199px) {
  .has-site-search .site-header .menu-toggle {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    height: var(--header-control-height);
    min-height: var(--header-control-height);
    padding-block: 0;
  }
  .has-site-search .site-header nav > a,
  .has-site-search .site-header .nav-group summary,
  .has-site-search .site-header .nav-services > a {
    box-sizing: border-box;
    min-height: var(--header-control-height);
  }
}
@media (max-width: 600px) {
  html.has-site-search { --topline-expanded: 158px; }
  .has-site-search .site-masthead .topline-right {
    grid-template-columns: repeat(5, var(--header-control-height));
    justify-content: center;
  }
  .has-site-search .topline .language-flags { padding-left: 0; }
}

/* Keep the hover underline inside each round experience label, line by line. */
a.poster-experience:hover,
a.poster-experience:focus-visible {
  text-decoration-line: none;
}
.poster-experience > span {
  display: block;
  align-content: center;
  overflow-wrap: anywhere;
}
.poster-experience:is(:hover, :focus-visible) > span {
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-skip-ink: auto;
}
