.passport-hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: 58% 42%;
  background: #203d2b;
  color: #fff;
  overflow: hidden;
}
.passport-hero-inner {
  align-self: center;
  padding: 68px 6vw 76px max(6vw, calc((100vw - 1320px) / 2));
}
.passport-hero h1 {
  font-size: clamp(46px, 5.8vw, 84px);
  line-height: 1.14;
}
.passport-hero h1 em {
  color: #f0d49a;
}
.passport-hero-inner > p:not(.eyebrow) {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: #e4ecde;
  margin: 22px 0 28px;
}
.passport-hero-inner > a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  gap: 12px;
  border: 1px solid #efd194;
  border-radius: 100px;
  padding: 12px 20px;
  color: #efd194;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.passport-hero-inner > a:hover {
  background: #efd194;
  color: #203d2b;
}
.passport-hero-art {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 460px;
  background: radial-gradient(circle at 60% 45%, #4b6944, #25402e 62%, #172e22);
  overflow: hidden;
}
.passport-3d-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 430px;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}
.passport-3d-canvas:active {
  cursor: grabbing;
}
.passport-3d-controls {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.passport-flip-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(240, 207, 141, 0.78);
  background: rgba(16, 36, 23, 0.84);
  color: #f6dfab;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.passport-flip-btn[aria-pressed="true"],
.passport-flip-btn:hover {
  background: #f0cf8d;
  color: #163220;
}
.passport-3d-hint {
  font-size: 11px;
  color: rgba(240, 245, 236, 0.86);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.passport-hero-art::before,
.passport-hero-art::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(212, 203, 146, 0.4);
  border-radius: 50%;
  transform: rotate(-20deg);
}
.passport-hero-art::after {
  width: 670px;
  height: 670px;
  opacity: 0.5;
}
.passport-cover {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 290px;
  height: 368px;
  padding: 28px;
  background: #f6ecd4;
  color: #244132;
  border: 7px double #9e7b49;
  box-shadow: 22px 22px 38px rgba(7, 24, 14, 0.5);
  transform: rotate(-8deg);
}
.passport-cover > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.passport-cover strong {
  margin-top: 48px;
  font: 500 40px/1.15 "Playfair Display", Georgia, serif;
  letter-spacing: -0.04em;
}
.passport-cover i {
  font-size: 58px;
  font-style: normal;
  color: #9e7738;
  align-self: center;
  margin-top: 12px;
}
.passport-cover small {
  margin-top: auto;
  border-top: 1px solid #b5a782;
  padding-top: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.checkin-status {
  width: min(1320px, 90vw);
  margin: 22px auto 0;
  padding: 16px 20px;
  border: 1px solid #96b48c;
  border-radius: 8px;
  background: #e6f1e2;
  color: #1f4f2d;
  font-size: 14px;
  font-weight: 700;
}
.checkin-status.error {
  border-color: #cf9e92;
  background: #f8e8e3;
  color: #8a382b;
}

.passport-body {
  width: min(1320px, 90vw);
  margin: auto;
  padding: 72px 0 68px;
}
.passport-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.passport-top h2,
.passport-trip h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.15;
  margin: 0;
}
.passport-top h2 em,
.passport-trip h2 em {
  color: #876030;
  font-weight: 500;
}
.passport-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.passport-stats div {
  min-width: 136px;
  padding: 13px 18px;
  border: 1px solid #c9d4c2;
  border-radius: 8px;
  background: #faf9f3;
}
.passport-stats strong {
  display: block;
  font: 500 32px "Playfair Display", Georgia, serif;
  color: #264f30;
  font-variant-numeric: tabular-nums;
}
.passport-stats span {
  font-size: 11px;
  font-weight: 700;
  color: #495b4a;
}
.passport-intro {
  margin: 16px 0 28px;
  color: #485a49;
  font-size: 15px;
}

.passport-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.passport-card {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  background: #fff;
  border: 1px solid #d2dcd0;
  border-radius: 8px;
  overflow: hidden;
}
.passport-card-photo {
  position: relative;
  min-height: 210px;
  background-color: #214530;
  background-size: cover;
  background-position: center;
}
.passport-card-photo span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(16, 40, 25, 0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.passport-card-copy {
  padding: 20px;
}
.passport-card-copy > small {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: #705329;
  text-transform: uppercase;
}
.passport-card h3 {
  font-size: 25px;
  line-height: 1.22;
  margin: 8px 0;
}
.passport-card p {
  color: #495b4a;
  font-size: 13px;
  margin: 0 0 16px;
}
.passport-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.passport-card-actions a,
.passport-card-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid #265333;
  border-radius: 100px;
  background: #fff;
  color: #265333;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.passport-card-actions a:first-child {
  background: #265333;
  color: #fff;
}
.passport-card-actions button.remove {
  border-color: #d6b6b0;
  color: #8a3f37;
}
.passport-card-actions a:hover,
.passport-card-actions button:hover {
  filter: brightness(1.1);
}
.passport-card-actions .not-mapped {
  font-size: 12px;
  color: #4d5f4e;
  padding: 6px 2px;
}

.passport-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 280px;
  padding: 36px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid #d2dcd0;
  border-radius: 8px;
  color: #435644;
}
.passport-empty > span {
  font-size: 42px;
  color: #967238;
}
.passport-empty h3 {
  font-size: 30px;
  line-height: 1.2;
  margin: 12px 0;
}
.passport-empty p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 530px;
  margin: 0 0 18px;
  color: #495b4a;
}
.passport-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 100px;
  padding: 11px 20px;
  background: #1e492e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.passport-missing {
  color: #664c34;
  font-size: 13px;
  margin-top: 16px;
}

.passport-trip {
  width: min(1320px, 90vw);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 42px;
  padding: 46px 0 58px;
  border-top: 1px solid #c6d0c1;
}
.passport-trip > div:first-child > p:not(.eyebrow) {
  font-size: 15px;
  color: #485a49;
  line-height: 1.65;
}
.trip-preview {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}
.trip-preview a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid #a8bca4;
  border-radius: 100px;
  padding: 9px 14px;
  background: #fff;
  color: #244c2e;
  font-size: 13px;
  font-weight: 600;
}
.passport-trip-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border-radius: 100px;
  background: #214a2f;
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
}
.passport-stamp {
  padding: 26px 28px;
  background: #e7ecdf;
  border: 1px dashed #829472;
  border-radius: 8px;
}
.passport-stamp > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 2px solid #6c7f5e;
  border-radius: 50%;
  font-size: 32px;
  color: #556d4f;
}
.passport-stamp h3 {
  font-size: 27px;
  margin: 16px 0 10px;
}
.passport-stamp p {
  font-size: 14px;
  line-height: 1.65;
  color: #465847;
  margin: 0;
}
.stamp-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.stamp-item {
  padding: 12px 15px;
  border: 1px solid #a2b39b;
  border-radius: 6px;
  background: #fafbf6;
}
.stamp-item strong {
  display: block;
  font: 500 20px "Playfair Display", Georgia, serif;
  color: #244a2e;
}
.stamp-item small {
  display: block;
  margin-top: 5px;
  color: #495b4a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.passport-privacy {
  width: min(1320px, 90vw);
  margin: 0 auto 64px;
  padding-top: 18px;
  border-top: 1px solid #c6d0c1;
  color: #495b4a;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 950px) {
  .passport-hero {
    grid-template-columns: 1fr;
    position: relative;
  }
  .passport-hero-art {
    min-height: 390px;
  }
  .passport-3d-canvas {
    height: 360px;
  }
  .passport-hero-inner {
    position: relative;
    z-index: 1;
    padding: 68px 7vw 36px;
  }
  .passport-list {
    grid-template-columns: 1fr;
  }
  .passport-trip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .passport-hero {
    min-height: 0;
  }
  .passport-hero-art {
    min-height: 350px;
  }
  .passport-3d-canvas {
    height: 320px;
  }
  .passport-cover {
    transform: rotate(-8deg) scale(0.84);
  }
  .passport-hero-inner {
    padding: 52px 20px 28px;
  }
  .passport-hero h1 {
    font-size: clamp(38px, 10.5vw, 54px);
  }
  .passport-hero-inner > p:not(.eyebrow) {
    font-size: 15px;
  }
  .checkin-status {
    width: auto;
    margin: 16px 18px 0;
  }
  .passport-body {
    width: auto;
    margin: 0 18px;
    padding: 50px 0;
  }
  .passport-top {
    display: block;
  }
  .passport-stats {
    margin-top: 20px;
  }
  .passport-stats div {
    flex: 1;
    min-width: 95px;
    padding: 11px 12px;
  }
  .passport-card {
    grid-template-columns: 1fr;
  }
  .passport-card-photo {
    min-height: 182px;
  }
  .passport-trip {
    width: auto;
    margin: 0 18px;
    padding: 38px 0;
  }
  .passport-privacy {
    width: auto;
    margin: 0 18px 50px;
  }
}
