/* Hotel Europe by Booking.com — interactive map, 32:9 (3840 × 1080)
   Colours, type and assets follow the Hotel Europe 2026 design system;
   look and feel matches the Hotel Europe photobooth. */

@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: block; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: block; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Bold.woff2") format("woff2"); font-weight: 700; font-display: block; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }

:root {
  /* brand */
  --brand-navy: #003b95;
  --brand-yellow: #ffc11f;
  --brand-blue: #006ce4;
  --brand-sky: #7ec8f0;
  --brand-cream: #fff3d2;
  --white: #ffffff;

  /* roles */
  --surface-paper: var(--brand-cream);
  --ink: var(--brand-navy);

  /* map */
  --map-active: var(--brand-navy);
  --map-active-hover: var(--brand-blue);
  --map-active-stroke: var(--white);
  --map-selected: var(--brand-yellow);
  --map-selected-stroke: var(--brand-navy);
  --map-muted: rgba(255, 255, 255, .42);

  /* type */
  --font-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* layout (stage px) */
  --stage-w: 3840px;
  --stage-h: 1080px;
  --space-canvas: 112px;
  --radius-chip: 8px;

  --ease-out: cubic-bezier(.2, .8, .25, 1);
  --ease-pop: cubic-bezier(.34, 1.5, .64, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--brand-navy);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

body.is-kiosk, body.is-kiosk * { cursor: none !important; }

img { display: block; -webkit-user-drag: none; }
button { font: inherit; color: inherit; }

/* ---------- stage: fixed 3840 × 1080, scaled to fit the window ---------- */

.viewport { position: fixed; inset: 0; overflow: hidden; }

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  transform-origin: center;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  overflow: hidden;
  background: var(--brand-sky) url("../assets/img/sky-clouds.webp") center / cover;
}

/* ---------- shared: lockup, concierge chips, buttons ---------- */

.lockup__wordmark { width: 100%; height: auto; }
.lockup__by {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: 4px;
  line-height: 1;
}
.lockup__by img { width: auto; }

/* concierge chip: avatar + cream bubble; bubble shows typing dots, then the line */
.cc {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1.25;
  white-space: nowrap;
}
.cc img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-navy);
  object-fit: cover;
  object-position: 50% 10%;
}
.cc__bubble {
  display: inline-block;
  min-width: 96px;
  min-height: 1.25em;
  padding: 10px 18px;
  border-radius: var(--radius-chip);
  background: var(--surface-paper);
  color: var(--ink);
  transform-origin: left center;
}
.cc__bubble:empty { visibility: hidden; }
.cc__bubble.is-popping { animation: pop .45s var(--ease-pop) both; }
.cc--lg { font-size: 36px; }
.cc--lg img { width: 84px; height: 84px; }

.dots { display: inline-flex; gap: 8px; padding: 0 4px; }
.dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-navy);
  opacity: .35;
  animation: dot 1.1s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  border: 0;
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}
.btn--navy {
  background: var(--brand-navy);
  color: var(--brand-yellow);
  outline: 3px solid rgba(0, 59, 149, .35);
  outline-offset: 12px;
}
.btn--outline {
  padding: 18px 30px;
  background: rgba(255, 243, 210, .9);
  color: var(--brand-navy);
  font-size: 28px;
  box-shadow: inset 0 0 0 3px var(--brand-navy);
}

/* ---------- map screen ---------- */

.map { position: absolute; inset: 0; }
.map__svg, .map__link { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map__link { pointer-events: none; }

.map__country {
  stroke-linejoin: round;
  transition: fill .4s ease, stroke .4s ease;
}
.map__country--muted {
  fill: var(--map-muted);
  stroke: none;
  pointer-events: none;
}
.map__country--active {
  fill: var(--map-active);
  stroke: var(--map-active-stroke);
  stroke-width: 1.4;
  cursor: pointer;
}
.map__country--active:hover { fill: var(--map-active-hover); }
.map__country--selected,
.map__country--selected:hover {
  fill: var(--map-selected);
  stroke: var(--map-selected-stroke);
  stroke-width: 3;
}
.map__copy { pointer-events: none; animation: fade-in .2s ease both; }

/* invisible, larger tap area for countries too small for a finger (Malta) */
.map__hit { fill: transparent; cursor: pointer; }

/* countries arrive from west to east; --d is set per shape in map.js */
.map.is-entering .map__country--active {
  animation: country-in .7s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}
.map.is-entering .map__country--muted { animation: fade-in 1.2s ease both; }

/* the line from the country to its card */
.link__line {
  fill: none;
  stroke: var(--brand-navy);
  stroke-width: 4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.link__ring, .link__dot { opacity: 0; }
.link__ring { fill: none; stroke: var(--brand-navy); stroke-width: 4; transform-box: fill-box; transform-origin: center; }
.link__dot { fill: var(--brand-yellow); stroke: var(--brand-navy); stroke-width: 4; }
.map__link.is-on .link__line { animation: draw .55s var(--ease-out) .1s both; }
.map__link.is-on .link__dot { opacity: 1; }
.map__link.is-on .link__ring { animation: ring-pulse 2s ease-out infinite; }

.brand {
  position: absolute;
  left: var(--space-canvas);
  top: 80px;
  width: 440px;
  pointer-events: none;
}
.brand .lockup__by { font-size: 32px; }
.brand .lockup__by img { height: 40px; }

.map-title {
  position: absolute;
  left: var(--space-canvas);
  top: 330px;
  max-width: 760px;
  margin: 0;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-navy);
  pointer-events: none;
  transition: opacity .4s ease;
}

.hint {
  position: absolute;
  left: var(--space-canvas);
  bottom: 88px;
  transition: opacity .4s ease, transform .4s var(--ease-out);
}

.eu-button {
  position: absolute;
  right: var(--space-canvas);
  bottom: 120px;
  transition: opacity .4s ease;
}

/* while a card is open, the title, hint and Europe button step aside */
.is-away { opacity: 0; pointer-events: none; }
.hint.is-away { transform: translateY(16px); }

.source {
  position: absolute;
  right: var(--space-canvas);
  bottom: 44px;
  margin: 0;
  font-size: 24px;
  font-style: italic;
  color: var(--brand-navy);
  pointer-events: none;
}

/* ---------- the pop-up card ---------- */

.card {
  position: absolute;
  z-index: 3;
  width: 860px;
  padding: 40px 48px 44px;
  background: var(--surface-paper);
  box-shadow: 0 0 0 14px rgba(255, 243, 210, .55);
  transform-origin: var(--ox, 0) 50%;
}
.card[hidden] { display: none; }
.card.is-open { animation: card-in .55s var(--ease-pop) both; }
.card.is-closing { animation: card-out .3s ease-in both; }

.card__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--brand-navy);
  cursor: pointer;
}

.card__kicker {
  margin: 0 0 6px;
  min-height: 1em;
  font-family: var(--font-mono);
  font-size: 26px;
}
.card__kicker:empty { display: none; }
.card__name {
  margin: 0 96px 28px 0;
  font-size: 76px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.card__figures { display: flex; flex-direction: column; gap: 24px; }
.figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 3px solid var(--brand-navy);
}
.card.is-open .figure { animation: rise-in .5s var(--ease-out) both; }
.card.is-open .figure:nth-child(1) { animation-delay: .18s; }
.card.is-open .figure:nth-child(2) { animation-delay: .28s; }
.card.is-open .figure:nth-child(3) { animation-delay: .38s; }
.figure__label {
  font-family: var(--font-mono);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.figure__text {
  margin: 0;
  font-size: 38px;
  line-height: 1.3;
  font-weight: 500;
}
.figure__text b {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- start screen ---------- */

.attract {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1200px 1fr;
  align-items: center;
  padding: 0 var(--space-canvas);
  background: var(--brand-sky) url("../assets/img/sky-clouds.webp") center / cover;
  cursor: pointer;
  transition: opacity .7s ease, transform 1s var(--ease-in-out);
}
/* v2: yellow start screen */
.attract--yellow { background: var(--brand-yellow) url("../assets/img/yellow-grid.webp") center / cover; }

.attract.is-gone {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.attract__lockup { width: 1000px; }
.attract__lockup .lockup__by { font-size: 60px; }
.attract__lockup .lockup__by img { height: 80px; }

.attract__bellhop { position: relative; align-self: stretch; }
.attract__hologram {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1000px;
  height: auto;
  transform: translateX(-50%);
}
/* hologram light on the phone screen, the only thing about him that moves */
.attract__glow {
  position: absolute;
  left: 50%;
  bottom: 110px;
  width: 560px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 250, 225, .95) 0%, rgba(255, 220, 140, .5) 40%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: glow 3.2s ease-in-out infinite;
}
/* chips are anchored beside his head and grow away from it, so no line ever covers his face */
.attract__chip { position: absolute; z-index: 2; }
.attract__chip--1 { right: calc(50% + 150px); top: 250px; }
.attract__chip--2 { left: calc(50% + 160px); top: 360px; }
.attract__chip--1 .cc__bubble { transform-origin: right center; }

.attract__cta {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 56px;
}
.attract__title {
  margin: 0;
  max-width: 1060px;
  text-align: right;
  font-size: 64px;
  line-height: 1.1;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-navy);
}
.start {
  position: relative;
  gap: 24px;
  padding: 36px 52px 36px 68px;
  font-size: 72px;
  line-height: 1;
  outline: none;
  /* navy with a slow light sweep */
  background: linear-gradient(105deg, var(--brand-navy) 42%, #1d5bc0 50%, var(--brand-navy) 58%) 120% 0 / 300% 100%;
  animation: sweep 4.5s ease-in-out infinite;
}
/* two rings pulsing out from the button, like a tap target */
.start__ring {
  position: absolute;
  inset: 0;
  border: 4px solid var(--brand-navy);
  pointer-events: none;
  animation: start-ring 2.6s var(--ease-out) infinite;
}
.start__ring--late { animation-delay: 1.3s; }
.start__arrow { animation: nudge-x 1.6s ease-in-out infinite; }

/* ---------- motion ---------- */

@keyframes country-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: none; }
}
@keyframes dot {
  0%, 60%, 100% { opacity: .35; transform: none; }
  30% { opacity: 1; transform: translateY(-6px); }
}
@keyframes card-in {
  from { opacity: 0; transform: scale(.5) translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes card-out {
  to { opacity: 0; transform: scale(.9) translateY(10px); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring-pulse {
  0%   { opacity: .9; transform: scale(.5); }
  100% { opacity: 0;  transform: scale(2.2); }
}
@keyframes glow {
  0%, 100% { opacity: .35; }
  50%      { opacity: .85; }
}
@keyframes start-ring {
  0%   { opacity: .8; transform: scale(1); }
  100% { opacity: 0;  transform: scale(1.14, 1.5); }
}
@keyframes sweep {
  0%, 30% { background-position: 120% 0; }
  100%    { background-position: -20% 0; }
}
@keyframes nudge-x {
  0%, 100% { transform: none; }
  50%      { transform: translateX(14px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
