
:root{
  --gate-blue:#173D6B;
  --gate-blue-dark:#102E51;
  --gate-sky:#EAF4FF;
  --gate-yellow:#F4C842;
  --gate-white:#FFFFFF;
  --gate-text:#17324D;
  --gate-muted:#5D7184;
}

.gate-popup-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(9,24,39,.58);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .35s ease, visibility .35s ease;
}

.gate-popup-overlay.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.gate-popup-dialog{
  position:relative;
  width:min(1040px, 94vw);
  max-height:90vh;
  overflow:auto;
  background:var(--gate-white);
  border-radius:28px;
  box-shadow:0 32px 90px rgba(4,18,31,.30);
  transform:translateY(24px) scale(.985);
  transition:transform .42s cubic-bezier(.2,.8,.2,1);
}

.gate-popup-overlay.is-visible .gate-popup-dialog{
  transform:translateY(0) scale(1);
}

.gate-popup-content{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  min-height:620px;
}

.gate-popup-content.gate-popup-no-image{
  grid-template-columns:1fr;
  min-height:auto;
}

.gate-popup-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:56px 56px 52px;
}

.gate-popup-eyebrow{
  display:inline-flex;
  align-self:flex-start;
  margin-bottom:18px;
  padding:8px 13px;
  border-radius:999px;
  background:var(--gate-sky);
  color:var(--gate-blue);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.gate-popup-copy h2{
  margin:0 0 18px;
  color:var(--gate-blue-dark);
  font-size:clamp(30px,3vw,44px);
  line-height:1.04;
  letter-spacing:-.035em;
  font-weight:800;
}

.gate-popup-intro,
.gate-popup-activities,
.gate-popup-details,
.gate-popup-availability,
.gate-popup-note{
  color:var(--gate-text);
  font-size:16px;
  line-height:1.65;
}

.gate-popup-intro p{
  margin:0;
}

.gate-popup-activities{
  margin-top:18px;
  padding:15px 17px;
  border-radius:16px;
  background:#F7FAFD;
  border:1px solid #E8EEF5;
  line-height:1.8;
}

.gate-popup-details{
  margin-top:18px;
  line-height:1.85;
}

.gate-popup-availability{
  margin-top:16px;
  color:var(--gate-blue);
}

.gate-popup-note{
  margin-top:4px;
  font-size:13px;
  color:var(--gate-muted);
}

.gate-popup-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  align-self:flex-start;
  margin-top:24px;
  padding:16px 22px;
  border-radius:14px;
  background:var(--gate-blue);
  color:#fff !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:800;
  letter-spacing:.025em;
  box-shadow:0 12px 30px rgba(23,61,107,.22);
  transition:transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.gate-popup-button:hover{
  transform:translateY(-2px);
  background:var(--gate-blue-dark);
  box-shadow:0 16px 34px rgba(23,61,107,.28);
}

.gate-popup-media{
  position:relative;
  min-height:620px;
  overflow:hidden;
  border-radius:0 28px 28px 0;
  background:linear-gradient(160deg,#EAF4FF,#DCEBFA);
}

.gate-popup-media img{
  width:100%;
  height:100%;
  min-height:620px;
  object-fit:cover;
  display:block;
}

.gate-popup-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 55%,rgba(10,29,48,.20) 100%);
  pointer-events:none;
}

.gate-popup-date-badge{
  position:absolute;
  z-index:2;
  right:22px;
  bottom:22px;
  width:88px;
  height:88px;
  border-radius:22px;
  background:rgba(255,255,255,.94);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-shadow:0 14px 34px rgba(0,0,0,.18);
  color:var(--gate-blue-dark);
}

.gate-popup-date-badge span{
  font-size:33px;
  line-height:1;
  font-weight:800;
}

.gate-popup-date-badge small{
  margin-top:4px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
}

.gate-popup-close{
  position:absolute;
  top:16px;
  right:16px;
  z-index:10;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  color:var(--gate-blue-dark);
  font-size:28px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,.12);
  transition:transform .2s ease, background .2s ease;
}

.gate-popup-close:hover{
  transform:rotate(4deg) scale(1.04);
  background:#fff;
}

body.gate-popup-open{
  overflow:hidden;
}

@media (max-width: 820px){
  .gate-popup-overlay{
    padding:14px;
    align-items:flex-end;
  }

  .gate-popup-dialog{
    width:100%;
    max-height:92vh;
    border-radius:24px 24px 18px 18px;
  }

  .gate-popup-content{
    display:flex;
    flex-direction:column-reverse;
    min-height:0;
  }

  .gate-popup-copy{
    padding:28px 24px 26px;
  }

  .gate-popup-copy h2{
    font-size:30px;
  }

  .gate-popup-media{
    min-height:230px;
    max-height:260px;
    border-radius:24px 24px 0 0;
  }

  .gate-popup-media img{
    min-height:230px;
    max-height:260px;
  }

  .gate-popup-date-badge{
    width:74px;
    height:74px;
    right:16px;
    bottom:16px;
    border-radius:18px;
  }

  .gate-popup-date-badge span{
    font-size:28px;
  }

  .gate-popup-button{
    align-self:stretch;
    text-align:center;
  }
}

@media (max-width: 480px){
  .gate-popup-copy{
    padding:24px 18px 22px;
  }

  .gate-popup-copy h2{
    font-size:27px;
  }

  .gate-popup-intro,
  .gate-popup-activities,
  .gate-popup-details,
  .gate-popup-availability{
    font-size:14px;
  }

  .gate-popup-activities{
    padding:12px 14px;
  }
}

@media (prefers-reduced-motion: reduce){
  .gate-popup-overlay,
  .gate-popup-dialog,
  .gate-popup-button,
  .gate-popup-close{
    transition:none !important;
  }
}
