:root {
  --ink: #30272b;
  --muted: #7b6d72;
  --rose: #c8657d;
  --deep: #98455d;
  --blush: #f8dfe3;
  --cream: #fffaf7;
  --paper: rgba(255, 255, 255, 0.78);
  --line: #eadbdc;
  --shadow: 0 22px 65px rgba(103, 60, 70, 0.13);
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: #fff8f5;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(145deg, #fffaf7 0%, #fdf2f1 50%, #f7e8ec 100%);
  overflow-x: hidden;
}
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  opacity: 0.55;
}
.ambient-one {
  width: 330px;
  height: 330px;
  top: -170px;
  right: -130px;
  background: radial-gradient(circle, #efb5c2, transparent 70%);
}
.ambient-two {
  width: 340px;
  height: 340px;
  bottom: -180px;
  left: -180px;
  background: radial-gradient(circle, #f0cfc1, transparent 70%);
}
button,
input {
  font: inherit;
}
.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  min-height: 100vh;
  margin: auto;
  padding: 18px;
}
.screen {
  min-height: calc(100vh - 36px);
  padding: 25px 20px 18px;
  display: flex;
  flex-direction: column;
  animation: arrive 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.top-mark {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(152, 69, 93, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 2px auto;
  color: var(--deep);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--rose);
  margin: 0 0 13px;
}
.welcome-screen {
  text-align: center;
}
.hero-art {
  width: 190px;
  height: 190px;
  position: relative;
  margin: 32px auto 22px;
  display: grid;
  place-items: center;
}
.heart {
  font-size: 75px;
  color: var(--rose);
  filter: drop-shadow(0 12px 18px rgba(174, 75, 99, 0.2));
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: scale(1.06);
  }
}
.orbit {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(200, 101, 125, 0.26);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.orbit-two {
  inset: 29px -8px;
  transform: rotate(62deg);
}
.sparkle {
  position: absolute;
  color: #c99768;
}
.s1 {
  top: 13px;
  right: 22px;
  font-size: 20px;
}
.s2 {
  bottom: 25px;
  left: 10px;
}
.s3 {
  right: 0;
  bottom: 54px;
  font-size: 35px;
}
.screen h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.35rem, 11vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}
.screen h1 em {
  color: var(--rose);
  font-weight: 600;
}
.intro {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 360px;
}
.journey-preview {
  margin: 30px auto 24px;
  width: 100%;
  padding: 18px 10px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 10px 35px rgba(99, 56, 67, 0.07);
  backdrop-filter: blur(12px);
}
.journey-preview div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.journey-preview strong {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  color: var(--deep);
}
.journey-preview span {
  font-size: 0.67rem;
  color: var(--muted);
}
.journey-preview i {
  width: 1px;
  height: 26px;
  background: var(--line);
}
.primary-btn,
.secondary-btn {
  width: 100%;
  border: 0;
  border-radius: 17px;
  padding: 17px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--deep));
  box-shadow: 0 11px 26px rgba(152, 69, 93, 0.25);
}
.primary-btn span {
  float: right;
  font-size: 1.2rem;
}
.primary-btn:active,
.secondary-btn:active {
  transform: scale(0.98);
}
.secondary-btn {
  color: var(--deep);
  border: 1px solid rgba(152, 69, 93, 0.25);
  background: rgba(255, 255, 255, 0.65);
}
.microcopy,
.route-note {
  font-size: 0.7rem;
  color: #9d8e93;
  margin: 12px 0 0;
}
.route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1px 0 13px;
}
.route-header .eyebrow {
  margin-bottom: 4px;
}
.route-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  margin: 0;
}
.step-pill {
  padding: 9px 12px;
  border-radius: 30px;
  background: #fff;
  color: var(--deep);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(90, 50, 60, 0.08);
}
.progress-track {
  height: 4px;
  background: #eddddf;
  border-radius: 4px;
  margin-bottom: 18px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--rose);
  transition: width 0.4s;
}
.map-wrap {
  height: min(42vh, 355px);
  min-height: 285px;
  position: relative;
  border: 6px solid rgba(255, 255, 255, 0.8);
  border-radius: 27px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eadfd9;
}
.map-wrap #map {
  height: 100%;
  z-index: 0;
}
.map-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    transparent 55%,
    rgba(247, 226, 228, 0.12)
  );
}
.leaflet-control-attribution {
  font-size: 7px !important;
}
.leaflet-control-zoom {
  display: none;
}
.secret-badge {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(12px);
  padding: 9px 15px 9px 10px;
  border-radius: 35px;
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 7px 20px rgba(56, 39, 43, 0.12);
}
.secret-badge > span {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blush);
  color: var(--deep);
}
.secret-badge div {
  display: flex;
  flex-direction: column;
}
.secret-badge small {
  font-size: 0.57rem;
  color: var(--muted);
}
.secret-badge strong {
  font-family: "Playfair Display", serif;
  font-size: 0.88rem;
}
.locate-btn {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--deep);
  font-size: 1.4rem;
  box-shadow: 0 5px 18px rgba(60, 30, 40, 0.15);
}
.direction-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 14px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid white;
  border-radius: 21px;
}
.compass {
  flex: 0 0 51px;
  height: 51px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blush);
  color: var(--deep);
  transition: transform 0.5s;
}
.compass span {
  transform: rotate(-45deg);
  font-size: 1.3rem;
}
.direction-copy {
  display: flex;
  flex-direction: column;
}
.direction-copy p {
  margin: 0;
  color: var(--rose);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.direction-copy strong {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
}
.direction-copy small {
  color: var(--muted);
  font-size: 0.68rem;
}
.arrival-zone {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 15px;
  border-radius: 16px;
  background: #f0ddd5;
}
.arrival-zone.near {
  display: flex;
}
.arrival-icon {
  font-size: 1.5rem;
  color: var(--deep);
}
.arrival-zone div:last-child {
  display: flex;
  flex-direction: column;
}
.arrival-zone strong {
  font-size: 0.78rem;
}
.arrival-zone span {
  font-size: 0.67rem;
  color: var(--muted);
}
.route-note {
  text-align: center;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
  margin: 8px auto 0;
}
.reveal-screen {
  text-align: center;
  justify-content: center;
}
.reveal-count {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  background: var(--blush);
  color: var(--deep);
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}
.reveal-screen h1 {
  color: var(--deep);
}
.place-note {
  color: var(--muted);
  font-family: "Playfair Display", serif;
  font-style: italic;
  line-height: 1.55;
  margin: 0 auto 28px;
}
.plan-card {
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid white;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(97, 52, 63, 0.09);
}
.plan-icon {
  font-size: 1.8rem;
}
.plan-card small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose);
  font-size: 0.59rem;
  font-weight: 700;
}
.plan-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  margin: 4px 0;
}
.plan-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
}
.love-note {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--deep);
  margin: 0 auto 28px;
  padding: 0 14px;
}
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #d591a2 1.5px, transparent 2px),
    radial-gradient(circle, #d5a36f 1px, transparent 1.5px);
  background-position:
    10% 20%,
    80% 35%;
  background-size: 80px 95px;
  opacity: 0.35;
}
.finish-screen {
  text-align: center;
  justify-content: center;
}
.final-heart {
  font-size: 64px;
  color: var(--rose);
  margin: 48px 0 22px;
}
.signature {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--deep);
  margin: 28px 0 38px;
}
.finish-screen .secondary-btn {
  margin-top: 10px;
}
dialog {
  width: min(calc(100% - 36px), 420px);
  border: 1px solid white;
  border-radius: 25px;
  padding: 30px;
  background: #fffaf8;
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: rgba(50, 36, 42, 0.35);
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 10px;
}
dialog > p:not(.eyebrow) {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 13px;
  border: 0;
  background: none;
  font-size: 1.6rem;
  color: var(--muted);
}
.organizer-panel {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 16px;
}
.organizer-panel label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 7px;
}
.organizer-panel input {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  margin-bottom: 9px;
  text-align: center;
  letter-spacing: 0.3em;
}
.organizer-panel .secondary-btn {
  padding: 12px;
}
.error {
  color: #b13f58 !important;
  margin: 6px 0 !important;
  text-align: center;
}
.leaflet-user-marker {
  width: 18px !important;
  height: 18px !important;
  margin: -9px !important;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(200, 101, 125, 0.25);
}
/*.simulate-btn{margin-top:12px;padding:12px;font-size:.75rem;border-style:dashed} /*TEST*/
.language-switcher {
  position: fixed;
  z-index: 100;
  top: max(10px, env(safe-area-inset-top));
  right: 12px;
  display: flex;
  padding: 4px;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 18px rgba(90, 50, 60, 0.1);
  backdrop-filter: blur(12px);
}
.language-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 20px;
  padding: 6px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}
.language-switcher button.active {
  color: #fff;
  background: var(--rose);
}
[dir="rtl"] .language-switcher {
  right: auto;
  left: 12px;
}
[dir="rtl"] .primary-btn span {
  float: left;
  transform: rotate(180deg);
}
[dir="rtl"] .plan-card {
  text-align: right;
}
[dir="rtl"] .direction-card,
[dir="rtl"] .arrival-zone,
[dir="rtl"] .secret-badge {
  direction: rtl;
}
.overview-screen {
  padding-top: 58px;
}
.overview-header {
  display: flex;
  gap: 14px;
  align-items: center;
}
.overview-header .eyebrow {
  margin-bottom: 3px;
}
.overview-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  margin: 0;
}
.back-btn {
  flex: 0 0 42px;
  height: 42px;
  border: 1px solid white;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--deep);
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(90, 50, 60, 0.08);
  cursor: pointer;
}
.overview-intro {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 18px 0 22px;
}
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 23px;
  bottom: 23px;
  left: 22px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px 14px 12px;
  border: 1px solid white;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 25px rgba(97, 52, 63, 0.06);
}
.timeline-number {
  position: relative;
  z-index: 1;
  flex: 0 0 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}
.timeline-icon {
  font-size: 1.45rem;
}
.timeline-copy {
  min-width: 0;
}
.timeline-copy h3 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--deep);
  margin: 0 0 3px;
}
.timeline-copy p {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}
.memory-note-card {
  padding: 21px;
  margin-bottom: 16px;
  border: 1px solid rgba(200, 101, 125, 0.17);
  border-radius: 21px;
  background: rgba(248, 223, 227, 0.45);
}
.note-heading {
  color: var(--deep);
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.note-heading span {
  font-size: 1.1rem;
  margin-right: 5px;
}
.personal-note {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-line;
}
.note-signature {
  text-align: right;
  margin-top: 15px;
  color: var(--deep);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.82rem;
}
.overview-screen > .secondary-btn {
  margin-top: 4px;
}
[dir="rtl"] .overview-header,
[dir="rtl"] .timeline-item,
[dir="rtl"] .memory-note-card {
  text-align: right;
}
[dir="rtl"] .back-btn {
  transform: rotate(180deg);
}
[dir="rtl"] .timeline::before {
  left: auto;
  right: 22px;
}
[dir="rtl"] .note-heading span {
  margin-right: 0;
  margin-left: 5px;
}
[dir="rtl"] .note-signature {
  text-align: left;
}
.memory-picture-btn {
  margin-top: 2px;
}
.picture-status {
  min-height: 18px;
  margin: 7px 0;
  color: var(--deep);
  font-size: 0.67rem;
  text-align: center;
}
@media (min-width: 700px) {
  body {
    padding: 26px;
  }
  .app-shell {
    min-height: calc(100vh - 52px);
    background: rgba(255, 255, 255, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 35px;
    box-shadow: var(--shadow);
  }
  .screen {
    min-height: calc(100vh - 88px);
  }
}
/* iPhone 16 Pro Max: 440 × 956 CSS pixels in portrait. */
@media (min-width: 430px) and (max-width: 450px) and (min-height: 850px) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
  }
  body {
    padding: 0;
    overscroll-behavior-y: none;
  }
  .app-shell {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 max(18px, env(safe-area-inset-right)) 0
      max(18px, env(safe-area-inset-left));
  }
  .screen {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(env(safe-area-inset-top) + 58px) 20px
      calc(env(safe-area-inset-bottom) + 22px);
  }
  .language-switcher {
    top: calc(env(safe-area-inset-top) + 9px);
    right: max(13px, env(safe-area-inset-right));
  }
  [dir="rtl"] .language-switcher {
    right: auto;
    left: max(13px, env(safe-area-inset-left));
  }
  .welcome-screen {
    justify-content: center;
    padding-top: calc(env(safe-area-inset-top) + 52px);
  }
  .welcome-screen .hero-art {
    width: 205px;
    height: 205px;
    margin: 32px auto 26px;
  }
  .welcome-screen h1 {
    font-size: 3.15rem;
  }
  .journey-preview {
    margin: 34px auto 28px;
    padding: 20px 10px;
  }
  .route-screen {
    padding-top: calc(env(safe-area-inset-top) + 55px);
  }
  .route-header {
    margin-bottom: 18px;
  }
  .map-wrap {
    height: 375px;
    min-height: 375px;
    max-height: 375px;
    border-radius: 29px;
  }
  .direction-card {
    margin-top: 18px;
    padding: 19px 15px;
  }
  .reveal-screen,
  .finish-screen {
    justify-content: center;
  }
  .overview-screen {
    padding-top: calc(env(safe-area-inset-top) + 62px);
  }
  dialog {
    max-height: calc(
      100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 30px
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}