/* Editorial gateways follow the production homepage in mersa-home.css. */
.explore-gateway {
  --frame-ink: #171b19;
  --frame-paper: #eeeae1;
  --frame-sand: #c9b18a;
  --frame-rule: #464b42;
  --frame-gutter: clamp(20px, 5vw, 80px);
  --ink: #262c27;
  --muted: #535b53;
  --brand: #38483b;
  --brand-deep: #262c27;
  font-family: Manrope, system-ui, sans-serif;
  background: var(--frame-paper);
}
.explore-gateway .gateway-header {
  position: relative;
  z-index: 12;
  color: var(--frame-paper);
  background: var(--frame-ink);
  border-bottom: 1px solid var(--frame-rule);
}
.gateway-bar, .gateway-identity, .gateway-nav, .gateway-languages, .gateway-brand {
  display: flex;
  align-items: center;
}
.gateway-bar {
  max-width: 1440px;
  min-height: 84px;
  margin: auto;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
}
.gateway-brand, .gateway-context, .gateway-nav a, .gateway-languages button {
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}
.gateway-brand {
  gap: 9px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.05em;
}
.gateway-context {
  display: inline-flex;
  align-items: center;
  margin-left: 17px;
  font-size: .76rem;
}
.gateway-context::before {
  content: "";
  height: 1.4em;
  border-left: 1px solid #777c73;
  margin-right: 15px;
}
.gateway-monogram {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
}
.gateway-monogram svg { width: 21px; height: 21px; }
.gateway-monogram path { stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.gateway-languages { order: 3; gap: 2px; }
.gateway-languages button, .gateway-menu {
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: .8rem;
  min-width: 44px;
  cursor: pointer;
}
.gateway-languages button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 6px; font-weight: 800; }
.gateway-menu { display: none; }
.gateway-nav { gap: 22px; margin-left: auto; font-size: .84rem; font-weight: 600; }
.gateway-nav a, .world-index a, .frame-link, .frame-secondary {
  display: inline-flex;
  align-items: center;
}
.gateway-nav a:hover, .gateway-context:hover, .world-index a:hover, .frame-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }
.gateway-enquiry { border-bottom: 1px solid var(--frame-sand); }
.frame-wrap {
  width: 100%;
  max-width: 1536px;
  margin-inline: auto;
  padding-inline: var(--frame-gutter);
}
.explore-gateway .location-index, .explore-gateway .destination-frame {
  position: relative;
  min-height: auto;
  color: var(--frame-paper);
  background: var(--frame-ink);
  padding-block: clamp(28px, 3.5vw, 56px) 0;
}
.location-index h1, .explore-gateway .destination-intro h1, .explore-gateway .frame-chapter h2 {
  max-width: none;
  margin: 0;
  color: inherit;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.05em;
}
.location-index h1 { font-size: clamp(44px, 5.5vw, 84px); margin-bottom: clamp(24px, 2.8vw, 44px); }
.location-index h1 em, .explore-gateway .destination-intro h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.05em;
  color: var(--frame-sand);
}
.location-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(10px,1.5vw,24px); }
.location-frame {
  display: block;
  position: relative;
  aspect-ratio: 1.52;
  color: #fff;
  background: #303632;
  text-decoration: none;
}
.location-frame img, .destination-layout figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.location-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(12 15 13 / .88), transparent 58%);
}
.frame-caption, .frame-arrow { position: absolute; z-index: 1; bottom: clamp(17px,2vw,30px); }
.frame-caption { left: clamp(18px,2.3vw,36px); right: 54px; }
.explore-gateway .frame-label, .destination-layout figcaption {
  font-size: .68rem;
  line-height: 1.45;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
}
.explore-gateway .frame-caption h2 {
  color: white;
  font-size: clamp(28px,3.55vw,56px);
  letter-spacing: -.05em;
  line-height: 1.07;
  font-weight: 500;
  margin: 5px 0 0;
}
.frame-arrow { right: clamp(18px,2vw,32px); font-size: 1.7rem; transition: transform 180ms ease; }
.location-frame:hover .frame-arrow { transform: translate(3px,-3px); }
.world-index { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 18px; border-top: 1px solid var(--frame-rule); }
.world-index a { min-height: 60px; gap: .9em; color: var(--frame-paper); text-decoration: none; font-size: .92rem; }
.world-index a span:last-child { color: var(--frame-sand); }
.explore-gateway .destination-frame { padding-bottom: clamp(22px,3vw,48px); }
.destination-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px,4vw,66px); }
.destination-intro > .frame-label { margin: 0 0 clamp(24px,3.4vw,54px); color: var(--frame-sand); }
.explore-gateway .destination-intro h1 { font-size: clamp(50px,6.4vw,100px); }
.explore-gateway .destination-intro h1 em { display: block; margin: .12em 0 0; font-size: .66em; line-height: 1.1; }
.destination-lead { max-width: 37ch; margin: clamp(20px,2.2vw,36px) 0 14px; font-size: 1rem; line-height: 1.7; color: var(--frame-paper); }
.destination-layout figure { margin: 0; min-width: 0; }
.destination-layout figure img { height: clamp(320px,35vw,510px); }
.destination-layout figcaption { margin: 12px 0 0; color: #c5c7be; font-size: .6rem; }
.frame-link, .frame-secondary {
  min-height: 44px;
  color: inherit;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.frame-link { gap: 20px; border-bottom: 1px solid currentColor; }
.frame-link::after { content: "↗" / ""; font-weight: 400; }
.destination-intro .frame-link { border-color: var(--frame-sand); }
.frame-link:hover { border-bottom-width: 2px; }
.frame-secondary { text-decoration: underline; text-underline-offset: 4px; }
.frame-chapter { padding-block: clamp(42px,5.5vw,84px); background: var(--frame-paper); color: var(--frame-ink); border-bottom: 1px solid #c1c2b7; }
.frame-columns { display: grid; grid-template-columns: minmax(150px,1fr) minmax(0,2fr); gap: 30px; }
.frame-columns > .frame-label { margin: 6px 0 0; }
.explore-gateway .frame-chapter h2 { font-size: clamp(30px,3.3vw,52px); }
.frame-chapter h2 + p { margin: 20px 0 0; line-height: 1.7; max-width: 66ch; }
.frame-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.frame-actions:empty { display: none; }
.explore-gateway #shoot-here { background: #e4e2d8; }
.explore-gateway #create-here { background: var(--frame-ink); color: var(--frame-paper); }
.explore-gateway :is(.gateway-watch,.mersavia-bridge,#egypt-guide,#services.services,#start-sharm) {
  background: var(--frame-paper);
  color: var(--frame-ink);
  border-bottom: 1px solid #bfc1b5;
}
.explore-gateway :is(.gateway-watch,.mersavia-bridge,#egypt-guide) :is(h2,.eyebrow,p) { color: var(--frame-ink); }
.explore-gateway :is(.gateway-watch,.mersavia-bridge,#egypt-guide) h2 { font-weight: 500; letter-spacing: -.045em; }
.explore-gateway .mersavia-bridge-inner { color: inherit; background: none; border: 0; border-radius: 0; box-shadow: none; }
.explore-gateway .mersavia-bridge-links a, .explore-gateway .guide-discovery-actions .button {
  color: var(--frame-ink); background: transparent; border: 0; border-bottom: 1px solid; border-radius: 0; box-shadow: none; padding: 10px 0; margin-right: 16px;
}
.explore-gateway .sharm-create-section h2, .explore-gateway .sharm-create-section h3 { color: inherit; }
.explore-gateway :focus-visible { outline: 2px solid #925b18; outline-offset: 4px; }
.explore-gateway :is(.gateway-header,.location-index,.destination-frame,#create-here) :focus-visible { outline-color: #efca8f; }
@media (max-width: 900px) {
  .gateway-bar { flex-wrap: wrap; gap: 8px; min-height: 0; padding-block: 12px; }
  .gateway-languages { order: 0; margin-left: auto; }
  .gateway-nav { width: 100%; flex-wrap: wrap; gap: 4px 20px; }
}
/* Reserve the collapsed header before the deferred menu script runs. */
@media (max-width: 900px) and (scripting: enabled) {
  .gateway-menu { display: block; min-height: 44px; padding: 0 12px; color: inherit; border: 1px solid #62675d; }
  .gateway-nav { display: none; }
  .gateway-nav.is-open { display: grid; padding-block: 12px; border-top: 1px solid var(--frame-rule); }
  .gateway-enquiry { justify-self: start; }
}
@media (max-width: 700px) {
  .gateway-bar { padding-inline: 18px; }
  .gateway-brand { font-size: .98rem; gap: 6px; }
  .gateway-monogram { width: 28px; height: 28px; }
  .gateway-identity { flex-wrap: wrap; column-gap: 8px; }
  .gateway-context { margin-left: 0; font-size: .69rem; }
  .gateway-context::before { margin-right: 8px; }
  .destination-layout { grid-template-columns: 1fr; gap: 22px; }
  .destination-intro > .frame-label { margin-bottom: 14px; }
  .destination-layout figure img { height: auto; aspect-ratio: 1.65; }
  .destination-lead { margin-block: 15px 4px; }
  .frame-columns { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 640px) {
  .location-pair { grid-template-columns: 1fr; gap: 10px; }
  .location-frame { aspect-ratio: 1.92; }
  .world-index { grid-template-columns: 1fr 1fr; }
  .world-index a { justify-content: space-between; min-height: 48px; margin-right: 16px; }
  .world-index a:nth-child(n+3) { border-top: 1px solid var(--frame-rule); }
}
@media (max-width: 420px) {
  .gateway-identity { display: grid; gap: 0; }
  .gateway-context { justify-self: start; min-height: 24px; padding-left: 34px; margin-top: -5px; }
  .gateway-context::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .location-frame:hover .frame-arrow { transform: none; }
  .frame-arrow { transition: none; }
}

.explore-gateway .frame-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  background: var(--frame-ink);
  color: #c5c7be;
  font-size: .72rem;
}
.frame-crumb a { display: inline-flex; align-items: center; min-height: 28px; color: inherit; text-underline-offset: 4px; }
.explore-gateway .frame-crumb + .destination-frame { padding-top: clamp(14px, 2vw, 32px); }

/* Planning controls sit on light surfaces below the editorial chapters. */
.cairo-page.explore-gateway :is(#services, .destination-conversion, .experiences, .destinations) {
  --gold: #665133;
}
.cairo-page.explore-gateway .destination-button {
  background: var(--frame-ink);
  color: var(--frame-paper);
  border-color: var(--frame-ink);
}
.cairo-page.explore-gateway :is(.service-card-meta, .experience-card) a {
  color: #58462e;
}
