/**
 * Landing Page Stylesheet — Egypt 2027
 * All styles for template-landing.php consolidated here.
 * @package vancleefarpels
 */

/* ─── CSS TOKENS ────────────────────────────────────────────────────────── */
:root {
  --gold:  #8B7038;
  --goldf: #B8912F;
  --ink:   #2B2620;
  --ink2:  rgba(43,38,32,.7);
  --ink3:  rgba(43,38,32,.45);
  --cream: #FAF5EC;
  --teal:  #1E3B38;
  --ff-d:  'Cormorant Garamond', serif;
  --ff-b:  'Jost', sans-serif;
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body.eg-body     { height: 100%; overflow: hidden; }
body.eg-body {
  font-family: var(--ff-b);
  color: var(--ink);
  background: #E5D5A8;
  -webkit-font-smoothing: antialiased;
}
a    { color: inherit; text-decoration: none; }
p, li { margin: 0; }

/* ─── SCROLL CONTAINER ──────────────────────────────────────────────────── */
.eg-scroll {
  height: 100vh; width: 100vw;
  overflow: hidden; position: relative;
  background: transparent;
}
.eg-scroll-wrapper {
  height: 100%;
  display: flex; flex-direction: row;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  background: transparent;
}

/* ─── PAGES ─────────────────────────────────────────────────────────────── */
.eg-page {
  height: 100vh; width: 100vw;
  flex-shrink: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; overflow: hidden;
}

/* ─── FIXED SAND BACKGROUND ─────────────────────────────────────────────── */
#eg-fixed-sand {
  position: fixed; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0; pointer-events: none;
}
.eg-sand { display: none; }

/* ─── HEADER ────────────────────────────────────────────────────────────── */
.eg-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 1000; pointer-events: none;
  background: linear-gradient(to bottom, rgba(250,245,236,.4) 0%, rgba(250,245,236,0) 100%);
  transition: opacity 0.4s;
}
.eg-burger {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; margin-left: -16px;
  z-index: 1005; transition: transform 0.3s;
  pointer-events: auto;
}
.eg-burger-lines { display: flex; flex-direction: column; gap: 6px; width: 22px; }
.eg-burger-lines span {
  display: block; width: 100%; height: 2px;
  background-color: var(--gold);
  transition: all 0.3s ease-in-out;
}
.eg-burger-label {
  font-family: var(--ff-b); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); transition: color 0.3s;
}
.eg-burger:hover .eg-burger-lines span { background-color: var(--ink); }
.eg-burger:hover .eg-burger-label      { color: var(--ink); }
.eg-header-logo {
  font-family: var(--ff-d);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500; letter-spacing: .36em;
  text-transform: uppercase; color: var(--gold);
  text-decoration: none;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: color 0.3s, transform 0.3s;
  pointer-events: auto;
}
.eg-header-logo:hover {
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.02);
}
.eg-header-h1 { margin: 0; line-height: 1; pointer-events: none; }
.eg-header-rsvp {
  font-family: var(--ff-b); font-size: 11px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: #A37F2C; text-decoration: none;
  border: 1.5px solid rgba(163,127,44,.45);
  padding: 12px 34px; background: rgba(184,145,47,.02);
  transition: all 0.4s cubic-bezier(.25,.8,.25,1);
  pointer-events: auto;
}
.eg-header-rsvp:hover {
  background: rgba(163,127,44,.08) !important;
  border-color: rgba(163,127,44,.95) !important;
  color: #8b7038 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(163,127,44,.12);
}
@media (max-width: 600px) {
  .eg-header { padding: 0 20px; height: 64px; }
  .eg-burger-label, .eg-header-rsvp { display: none; }
}

/* ─── DRAWER ────────────────────────────────────────────────────────────── */
.eg-drawer {
  position: fixed; top: 0; left: 0;
  width: min(320px, 80vw); height: 100%;
  background: var(--cream); z-index: 1100;
  transform: translateX(-100%);
  transition: transform .45s cubic-bezier(.77,0,.175,1);
  border-right: 1px solid rgba(139,112,56,.15);
  padding: 64px 32px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.eg-drawer.open { transform: translateX(0); }
.eg-drawer-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; font-size: 18px;
  color: var(--gold); cursor: pointer;
}
.eg-drawer-logo {
  font-family: var(--ff-d); font-size: 19px;
  letter-spacing: 8px; color: var(--ink);
  margin-bottom: 40px; text-align: center; margin-left: 8px;
}
.eg-drawer-links {
  list-style: none;
  display: flex; flex-direction: column;
  width: 100%; align-items: center;
}
.eg-drawer-links li { width: 100%; }
.eg-drawer-links li a {
  display: block; padding: 16px 0;
  font-family: var(--ff-b); font-size: 12px;
  font-weight: 500; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid rgba(139,112,56,.1);
  text-align: center;
  transition: color .3s, letter-spacing .3s, transform .3s;
}
.eg-drawer-links li a:hover {
  color: var(--gold); letter-spacing: 3.5px; transform: scale(1.03);
}
.eg-drawer-foot {
  margin-top: auto;
  font-family: var(--ff-b); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(43,38,32,.3); text-align: center; margin-left: 2px;
}
.eg-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(43,38,32,.3); z-index: 1000;
}
.eg-overlay.on { display: block; }

/* ─── HERO PAGE ─────────────────────────────────────────────────────────── */
.eg-scroll.scroll-locked { overflow-y: hidden; touch-action: none; }

/* Dust canvas */
#dust {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 3; pointer-events: none;
  opacity: 1; transition: opacity 0.8s ease;
}

/* HTML copy overlay (revealed after animation) */
.eg-copy-overlay {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  text-align: center; z-index: 4;
  position: absolute; inset: 0;
  pointer-events: none;
}

/* Text container inside hero overlay */
.hero-text-container {
  position: absolute; top: 47%; left: 0; right: 0;
  transform: translateY(-50%);
  height: 0; pointer-events: none;
}
.hero-text-line {
  position: absolute; left: 0; right: 0;
  text-align: center; line-height: 1;
}
#heroEyebrow {
  font-family: 'Jost', sans-serif; font-weight: 500;
  color: #A37F2C; text-transform: uppercase;
  letter-spacing: 0.22em;
}
#heroName {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  color: #A37F2C;
}
#heroTagline1, #heroTagline2 {
  font-family: 'EB Garamond', serif; font-style: italic;
  color: #A37F2C;
}

/* CTA at bottom of hero */
.hero-cta-wrap {
  position: absolute; bottom: 20%; left: 0; right: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: auto;
}
.h-scroll-cta {
  font-family: var(--ff-b); font-size: 11px;
  font-weight: 500; letter-spacing: 4px;
  text-transform: uppercase; color: #A37F2C;
  border: 1.5px solid rgba(163,127,44,.45);
  padding: 12px 34px; background: rgba(184,145,47,.02);
  transition: all 0.4s cubic-bezier(.25,.8,.25,1);
  display: inline-block;
}
.h-scroll-cta:hover {
  background: rgba(163,127,44,.08) !important;
  border-color: rgba(163,127,44,.95) !important;
  color: #8B7038 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(163,127,44,.12);
}

/* Misc hero text classes */
.h-hosts       { font-family:var(--ff-d); font-size:clamp(22px,3vw,34px); font-weight:500; letter-spacing:2px; color:var(--ink); margin-bottom:4px; }
.h-invite-sub  { font-family:var(--ff-d); font-style:italic; font-size:clamp(15px,2vw,20px); font-weight:300; color:var(--ink2); margin-bottom:6px; }
.h-wonder      { font-family:var(--ff-d); font-size:clamp(28px,5vw,52px); font-weight:400; letter-spacing:2px; color:var(--ink); }
.h-date        { font-family:var(--ff-b); font-size:11px; font-weight:600; letter-spacing:6px; text-transform:uppercase; color:var(--gold); margin-top:10px; }
.h-discovery-text { font-family:var(--ff-b); font-size:clamp(14px,2.2vw,18px); font-weight:300; line-height:1.65; color:var(--ink2); margin:10px 0 20px; text-align:center; }

/* ─── CARD PAGES ────────────────────────────────────────────────────────── */
.eg-card-page { gap: 0; position: relative; }
.eg-card-below-cta { display: none !important; }

.eg-card {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: min(660px, 88vw);
  max-height: 88vh;
  overflow-y: auto; scrollbar-width: none;
  border: 1px solid rgba(184,145,47,.2);
  box-shadow: 0 32px 80px rgba(43,38,32,.06), 0 8px 20px rgba(43,38,32,.03);
  /* Start hidden; JS adds .is-visible to trigger entrance */
  opacity: 0;
  transform: translateX(36px) scale(.985);
  transition:
    opacity    0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform  0.72s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}
.eg-card.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.eg-card::-webkit-scrollbar { display: none; }
.eg-card--wide   { width: min(880px, 94vw); }
.eg-card--narrow { width: min(600px, 88vw); }

/* Corner frame (hidden) */
.ec-frame { display: none !important; }

/* ─── SAND WIND TRANSITION OVERLAY ─────────────────────────────────────── */
/* Full-viewport canvas that shows wind-blown sand during page transitions  */
#eg-sand-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;          /* above pages, below header (z-index: 1000) */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#eg-sand-overlay.active {
  opacity: 1;
}
.ec-frame::before {
  content: ''; position: absolute;
  top: 14px; bottom: 14px; left: 14px; right: 14px;
  border: 1px dashed rgba(184,145,47,.28);
}
.ec-corner {
  position: absolute; width: 20px; height: 20px;
  border: 1.5px solid var(--goldf); opacity: .65; transition: opacity 0.3s;
}
.ec-corner::before {
  content: ''; position: absolute; width: 6px; height: 6px;
  border: 1px solid var(--goldf);
}
.ec-corner--tl { top:14px; left:14px;   border-right:none; border-bottom:none; }
.ec-corner--tl::before { top:3px; left:3px;   border-right:none; border-bottom:none; }
.ec-corner--tr { top:14px; right:14px;  border-left:none;  border-bottom:none; }
.ec-corner--tr::before { top:3px; right:3px;  border-left:none;  border-bottom:none; }
.ec-corner--bl { bottom:14px; left:14px;  border-right:none; border-top:none; }
.ec-corner--bl::before { bottom:3px; left:3px;  border-right:none; border-top:none; }
.ec-corner--br { bottom:14px; right:14px; border-left:none;  border-top:none; }
.ec-corner--br::before { bottom:3px; right:3px; border-left:none;  border-top:none; }

/* ─── CARD BODY ─────────────────────────────────────────────────────────── */
.ec-body { padding: 52px 64px; }
.ec-body--center {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.ec-body--two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; padding: 48px 64px;
}
.ec-body--timeline { padding: 32px 48px 48px; }

/* Inline-style replacement: ec-rule with auto margin (used on Before/Intake pages) */
.ec-rule--centered { margin: 0 auto 26px; }
/* Inline-style replacement: grid-column span 3 on Full Schedule button row */
.ec-timeline-footer {
  margin-top: 5px;
  text-align: left;
  grid-column: span 3;
  width: 100%;
}

/* Inline-style replacement: ec-tlink margin-top on Before page */
.ec-tlink--mt { margin-top: 28px; display: inline-block; }
/* Inline-style replacement: ec-btn-primary margin-top on Intake page */
.ec-btn-primary--mt { margin-top: 36px; display: inline-block; }

/* ─── TIMELINE ──────────────────────────────────────────────────────────── */
.ec-timeline-header {
  display: grid;
  grid-template-columns: 105px 1.25fr 1fr;
  gap: 40px;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(139,112,56,.22);
  margin-bottom: 6px;
}
/* Inline-style replacement: grid-column: span 2 on timeline header left */
.ec-header-left  { grid-column: span 2; }
.ec-header-right { /* natural single column */ }

.ec-timeline-row {
  display: grid;
  grid-template-columns: 105px 1.25fr 1fr;
  gap: 40px; padding: 6px 0;
  border-bottom: 1px solid rgba(139,112,56,.08);
  align-items: start;
}
.ec-timeline-row:nth-last-child(2) { border-bottom: none; }
.ec-timeline-left  { display: flex; align-items: baseline; gap: 16px; }
.ec-timeline-right { display: flex; flex-direction: column; }

/* ─── COMMON CARD ELEMENTS ──────────────────────────────────────────────── */
.ec-cartouche {
  margin-bottom: 24px;
  filter: drop-shadow(0 3px 6px rgba(184,145,47,.15));
  transition: transform 0.4s ease;
}
.ec-cartouche:hover { transform: scale(1.05); }

.ec-eyebrow {
  font-family: var(--ff-b); font-size: 11.5px;
  font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 8px;
}
.ec-title {
  font-family: var(--ff-d);
  font-size: clamp(24px,3.2vw,38px);
  font-weight: 400; letter-spacing: 1.5px;
  color: var(--ink); line-height: 1.2; margin-bottom: 12px;
}
.ec-title em { font-style: italic; font-weight: 300; color: var(--gold); }
.ec-rule {
  width: 54px; height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(184,145,47,.1));
  margin-bottom: 16px;
}
.ec-rule--left { margin-left: 0; }
.ec-body-text {
  font-family: var(--ff-b); font-size: 16.5px;
  line-height: 1.8; color: var(--ink2); max-width: 480px;
}

/* Guide nav */
.ec-guide-nav { display: flex; flex-direction: column; }
.ec-guide-link {
  display: flex; align-items: baseline; padding: 20px 0;
  position: relative;
  transition: transform 0.3s cubic-bezier(.25,.8,.25,1);
}
.ec-guide-link:hover { transform: translateX(8px); }
.ec-glabel {
  order: 1; font-family: var(--ff-b); font-size: 14.5px;
  font-weight: 500; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--ink); transition: color .3s;
}
.ec-guide-link:hover .ec-glabel { color: var(--goldf); }
.ec-guide-link::after {
  content: ''; flex-grow: 1; order: 2;
  border-bottom: 1px dotted rgba(139,112,56,.2);
  margin: 0 20px; position: relative; top: -4px;
  transition: border-color .3s;
}
.ec-guide-link:hover::after { border-color: rgba(184,145,47,.6); }
.ec-gnum {
  order: 3; font-family: var(--ff-d); font-size: 20px;
  font-weight: 400; font-style: italic;
  color: rgba(184,145,47,.5); transition: color .3s;
}
.ec-guide-link:hover .ec-gnum { color: var(--goldf); }

/* Legs */
.ec-legs { display: flex; flex-direction: column; gap: 12px; }
.ec-leg {
  padding: 22px 0;
  border-bottom: 1px solid rgba(139,112,56,.08);
  display: grid; grid-template-columns: 1fr 1.1fr auto;
  align-items: center; gap: 28px; transition: all 0.3s ease;
}
.ec-leg:last-child { border-bottom: none; }
.ec-leg--core {
  background: rgba(184,145,47,.035);
  border: 1px solid rgba(184,145,47,.2);
  border-left: 3px solid var(--gold);
  margin: 12px -24px; padding: 24px;
  box-shadow: 0 8px 24px rgba(184,145,47,.03), inset 0 0 12px rgba(255,255,255,.8);
}
.ec-leg-tag {
  font-family: var(--ff-b); font-size: 10.5px;
  font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 6px;
}
.ec-leg--core .ec-leg-tag { color: var(--teal); font-weight: 800; }
.ec-leg h3 { font-family: var(--ff-d); font-size: 21.5px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.ec-leg-dates { font-family: var(--ff-b); font-size: 11.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink3); }
.ec-leg-desc  { font-family: var(--ff-b); font-size: 15.5px; line-height: 1.7; color: var(--ink2); }

/* Itinerary list */
.ec-iti-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.ec-iti-list li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(139,112,56,.08); }
.ec-iti-list li:last-child { border-bottom: none; }
.ec-iti-day { font-family: var(--ff-b); font-size: 15px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); flex-shrink: 0; }
.ec-iti-evt { font-family: var(--ff-d); font-size: 18px; font-weight: 400; color: var(--ink); }

/* Highlights */
.ec-highlights { display: flex; flex-direction: column; gap: 8px; }
.ec-hl { padding: 0; border-bottom: none; }
.ec-hl h4 { font-family: var(--ff-d); font-size: 17px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.ec-hl p  { font-family: var(--ff-b); font-size: 13.5px; line-height: 1.45; color: var(--ink2); }

/* ─── HOTELS — 3D FLIP CARDS ────────────────────────────────────────────── */
.ec-hotels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
  align-items: stretch;   /* grid cells stretch to the tallest in each row */
}

/* Outer container — perspective wrapper */
.ec-hotel--flip {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  height: 100%;           /* fill the stretched grid cell */
  cursor: default;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Shared transition — no overflow:hidden here so front face content isn't clipped */
.ec-hotel-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 2px;
}

/* ── FRONT FACE — position:relative, drives the container height ── */
.ec-hotel-face--front {
  position: relative;
  width: 100%;
  min-height: 100%;       /* stretch to match tallest card in the row */
  background: #FCF9F3;
  border: 1px solid rgba(184,145,47,.12);
  box-shadow: 0 2px 6px rgba(43,38,32,.02);
  transform: rotateY(0deg);
  display: flex;
  flex-direction: row;
  gap: 18px;
  padding: 24px;
  align-items: flex-start;
  overflow: visible;      /* never clip — content must always be visible */
  box-sizing: border-box;
}

/* ── BACK FACE — absolute, covers the same area as front ── */
.ec-hotel-face--back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotateY(180deg);
  display: flex;
  align-items: flex-end;
  overflow: hidden;       /* clip the image to bounds */
}

/* Flip on hover */
.ec-hotel--flip:hover .ec-hotel-face--front { transform: rotateY(-180deg); }
.ec-hotel--flip:hover .ec-hotel-face--back  { transform: rotateY(0deg);    }

/* Dark gradient overlay on back face */
.ec-hotel-back-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 12, 4, 0.85) 0%,
    rgba(20, 12, 4, 0.45) 50%,
    rgba(20, 12, 4, 0.10) 100%
  );
}

/* Text block sitting above the overlay */
.ec-hotel-back-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.ec-hotel-back-num {
  font-family: var(--ff-d);
  font-size: 12px;
  font-weight: 300;
  color: rgba(235,215,155,.70);
  letter-spacing: 2px;
  margin-bottom: 2px;
}
.ec-hotel-back-name {
  font-family: var(--ff-d);
  font-size: 19px;
  font-weight: 500;
  color: #FAF5EC;
  letter-spacing: 0.5px;
  margin: 0 0 2px;
  line-height: 1.2;
}
.ec-hotel-back-city {
  font-family: var(--ff-b);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(220,190,115,.85);
  display: block;
  margin-bottom: 14px;
}
.ec-hotel-back-btn {
  font-family: var(--ff-b);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FAF5EC;
  border: 1.2px solid rgba(235,215,155,.50);
  padding: 8px 20px;
  background: rgba(255,255,255,.08);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.ec-hotel-back-btn:hover {
  background: rgba(235,215,155,.18);
  border-color: rgba(235,215,155,.9);
}

/* Front face inner elements */
.ec-hotel-num {
  font-family: var(--ff-d); font-size: 32px; font-weight: 300;
  color: var(--gold); opacity: .35; line-height: 1; flex-shrink: 0;
  align-self: flex-start;
  transition: opacity 0.3s;
}
.ec-hotel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.ec-hotel-body-text { /* top group: name, city, description */ }
.ec-hotel-body h3   { font-family: var(--ff-d); font-size: 21px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.ec-hotel-city      { font-family: var(--ff-b); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.ec-hotel-body p    { font-family: var(--ff-b); font-size: 15px; line-height: 1.65; color: var(--ink2); margin-bottom: 0; }
/* auto top margin pushes button to the bottom regardless of text length */
.ec-hotel-body .ec-tlink { margin-top: auto; padding-top: 16px; align-self: flex-start; flex-shrink: 0; }

/* Mobile — disable 3D, show front only */
@media (max-width: 700px) {
  .ec-hotels              { grid-template-columns: 1fr; }
  .ec-hotel--flip         { height: auto; perspective: none; }
  .ec-hotel-face--back    { display: none; }
  .ec-hotel-face--front   { transform: none !important; }
}

/* ─── INFO ROWS ─────────────────────────────────────────────────────────── */
.ec-info-rows { display: flex; flex-direction: column; }
.ec-info-row {
  display: grid; grid-template-columns: 190px 1fr auto;
  align-items: center; gap: 32px; padding: 26px 0;
  border-bottom: 1px solid rgba(139,112,56,.08);
  transition: background-color 0.3s;
}
.ec-info-row:last-child { border-bottom: none; }
.ec-info-label h3 { font-family: var(--ff-d); font-size: 23px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.ec-info-label span { font-family: var(--ff-b); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.ec-info-row p { font-family: var(--ff-b); font-size: 16px; line-height: 1.7; color: var(--ink2); }

/* ─── CTA BUTTONS ───────────────────────────────────────────────────────── */
.ec-tlink {
  font-family: var(--ff-b); font-size: 10px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: #A37F2C;
  border: 1.2px solid rgba(163,127,44,.35);
  padding: 8px 20px; background: rgba(255,255,255,.4);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  display: inline-block; white-space: nowrap;
}
.ec-tlink:hover {
  color: #8B7038 !important;
  border-color: rgba(163,127,44,.85) !important;
  background: rgba(163,127,44,.05) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(163,127,44,.06);
}
.ec-btn-primary {
  font-family: var(--ff-b); font-size: 10.5px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: #FAF5EC; background: var(--teal);
  padding: 16px 42px; border: 1px solid var(--teal);
  transition: all 0.4s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 4px 15px rgba(30,59,56,.15); display: inline-block;
}
.ec-btn-primary:hover {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139,112,56,.3);
}
.ec-sub-note {
  font-family: var(--ff-b); font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(43,38,32,.32); margin-top: 18px;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .ec-body               { padding: 36px 32px; }
  .ec-body--two-col      { grid-template-columns: 1fr; gap: 36px; padding: 32px 30px; }
  .ec-info-row           { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .ec-leg                { grid-template-columns: 1fr; gap: 12px; }
  .ec-leg--core          { margin: 12px 0; }
  .h-name                { font-size: clamp(42px, 12vw, 80px); }
}
@media (max-height: 640px) {
  .ec-body               { padding: 28px 40px; }
  .ec-body--timeline     { padding: 20px 32px 40px; }
  .eg-card               { max-height: 90vh; }
}

/* ─── LEGACY LANDING-PAGE.CSS CLASSES (kept for other templates) ─────────── */
.landing-body { background-color: var(--color-sand, #E5D5A8) !important; overflow-x: hidden; }
.opening-sequence { position:fixed; top:0; left:0; width:100vw; height:100vh; background-color:var(--color-sand,#E5D5A8); z-index:100; display:flex; align-items:center; justify-content:center; overflow:hidden; transition:opacity .8s ease; }
.intro-sand-canvas { position:absolute; top:0; left:0; width:100%; height:100%; z-index:2; pointer-events:none; }
.sand-backdrop-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background-size:cover; background-position:center; opacity:.28; mix-blend-mode:multiply; z-index:1; pointer-events:none; }
.opening-content-container { position:relative; z-index:3; text-align:center; width:90%; max-width:800px; }
.reveal-step { opacity:0; transform:translateY(15px); transition:opacity 1.2s cubic-bezier(.25,1,.5,1),transform 1.2s cubic-bezier(.25,1,.5,1); display:none; }
.reveal-step.active { display:block; opacity:1; transform:translateY(0); }
.guest-title { font-family:var(--font-display,serif); font-size:clamp(36px,8vw,68px); font-weight:300; letter-spacing:4px; color:var(--color-ink,#2B2620); text-transform:uppercase; margin-bottom:24px; text-shadow:0 4px 15px rgba(0,0,0,.05); }
.generic-hieroglyphs-container { margin:15px auto 0; opacity:.65; animation:pulseGold 3s infinite ease-in-out; }
@keyframes pulseGold { 0%,100%{opacity:.5} 50%{opacity:.85} }
.invite-lines { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; }
.invite-lines>span { font-family:var(--font-display,serif); color:var(--color-ink,#2B2620); opacity:0; transform:translateY(15px); transition:opacity 1s ease,transform 1s ease; }
.invite-lines .invite-line-1 { font-size:clamp(32px,6vw,48px); font-weight:400; letter-spacing:3px; text-transform:uppercase; }
.invite-lines .invite-line-2 { font-size:clamp(24px,4vw,32px); font-weight:300; font-style:italic; color:var(--color-gold,#8B7038); }
.invite-lines .invite-line-3 { font-size:clamp(18px,3vw,24px); font-weight:300; }
.invite-lines .invite-line-4 { font-size:clamp(34px,7vw,54px); font-weight:300; letter-spacing:4px; text-transform:uppercase; color:var(--color-teal,#1E3B38); margin-top:10px; }
.parchment-scroll-card { background-color:var(--color-cream,#FAF5EC); border:1px solid rgba(184,145,47,.35); border-radius:4px; padding:60px 40px; max-width:600px; width:100%; text-align:center; box-shadow:0 15px 45px rgba(43,38,32,.08),inset 0 0 40px rgba(184,145,47,.05); transform:translateY(40px); opacity:0; transition:opacity 1.2s cubic-bezier(.25,1,.5,1),transform 1.2s cubic-bezier(.25,1,.5,1); position:relative; }
.parchment-scroll-card.visible { opacity:1; transform:translateY(0); }
.parchment-scroll-card.wide-card { max-width:1100px; padding:80px 50px; }
@media (max-width:768px) { .parchment-scroll-card{padding:40px 24px} .parchment-scroll-card.wide-card{padding:45px 24px} .guide-hub-grid{grid-template-columns:1fr;gap:20px} }
