:root {
  --pink: #ff5a7a;
  --pink-dark: #e84363;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --surface: #ffffff;
  --font: "Google Sans Flex", "Google Sans", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-height: 100dvh;
  --viewport-offset-top: 0px;
  --cta-height: 54px;
  --cta-gap: 54px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #ffffff;
  font-family: var(--font);
  color: var(--ink);
}

button, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

html.custom-cursor-enabled,
html.custom-cursor-enabled * {
  cursor: none !important;
}

.custom-cursor {
  width: 44px;
  height: 44px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  border: 1px solid rgba(50, 50, 50, 0.05);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out, opacity 0.12s ease-out;
}

.custom-cursor.visible {
  opacity: 1;
}

.custom-cursor.clicking {
  transform: translate(-50%, -50%) scale(0.85);
}

.app-shell {
  width: 402px;
  height: 874px;
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 54px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.18);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.app-shell * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.app-shell input,
.app-shell textarea {
  -webkit-user-select: text;
  user-select: text;
}

.stage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.screen {
  width: min(402px, 100%);
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.status-bar {
  width: 100%;
  height: 60px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 35;
  display: flex;
  justify-content: center;
  padding-top: 11px;
  pointer-events: none;
}

.dynamic-island {
  width: 126px;
  height: 37px;
  border-radius: 100px;
  background: #000000;
}

.app-header {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  /* Fade in/out over the full sheet duration so chrome hits 0%/100% when the sheet settles. */
  transition: opacity 0.42s ease;
}

.app-header.is-away {
  opacity: 0;
  pointer-events: none;
}

.trip-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  text-align: center;
  color: var(--ink);
  background-color: var(--surface);
}

.trip-pill:active {
  opacity: 0.9;
}

.trip-title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.trip-subtitle {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #a3a3a3;
}

.reset-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.reset-btn:active {
  opacity: 0.75;
}

.material-symbol {
  font-family: "Material Symbols Outlined";
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.map-action-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(54px + var(--safe-bottom));
  z-index: 15;
  height: var(--cta-height);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  /* Fade in/out over the full sheet duration so chrome hits 0%/100% when the sheet settles. */
  transition:
    opacity 0.42s ease,
    visibility 0s linear 0s;
  will-change: opacity;
}

.map-action-bar.is-away {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.42s ease,
    visibility 0s linear 0.42s;
}

.map-action-bar .map-icon-btn,
.map-action-bar .plan-trip-btn {
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: none;
}

.map-icon-btn {
  width: var(--cta-height);
  min-width: var(--cta-height);
  background: #ffffff;
  color: #222222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border-color: rgba(0, 0, 0, 0.08);
}

.map-icon-btn:active {
  opacity: 0.8;
}

.map-icon-btn svg {
  display: block;
}

.map-action-bar .plan-trip-btn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-action-bar .plan-trip-btn:not(:disabled)::before {
  content: "✦";
  margin-right: 8px;
  font-size: 14px;
}

.map-action-bar .plan-trip-btn.is-busy::before {
  opacity: 0;
}

.map-action-bar .plan-trip-btn:disabled {
  background: #c8c8c8;
  opacity: 1;
  box-shadow: none;
}

.reframe-btn {
  position: absolute;
  right: 16px;
  bottom: calc(360px + 16px);
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #222222;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.reframe-btn:not([hidden]) {
  display: flex;
}

.reframe-btn:active {
  opacity: 0.75;
}

.reframe-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Hide Google logo + map data / Terms attribution chrome. */
#map .gm-style-cc,
#map .gmnoprint.gm-style-cc,
#map a[href^="https://maps.google.com/maps"],
#map a[href^="http://maps.google.com/maps"],
#map .gm-style a[target="_blank"] img {
  display: none !important;
}

.cluster-box-overlay {
  position: absolute;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  pointer-events: auto;
  overflow: visible;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.cluster-box-overlay.is-dimmed {
  opacity: 0.5;
}

.cluster-box-overlay.is-selected {
  z-index: 10;
}

.cluster-box {
  position: absolute;
  inset: 0;
  border: 2px solid;
  border-radius: 8px;
  box-sizing: border-box;
  background: transparent;
  pointer-events: none;
}

.cluster-box-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  font-family: var(--font);
  transform: translateY(calc(-100% - 4px));
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
}

.marker-pin.is-day-dimmed {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

@keyframes marker-enter {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.marker-enter {
  transform-origin: center bottom;
  animation: marker-enter 150ms cubic-bezier(0.32, 0, 0.01, 1) forwards;
}

.marker-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d9d9d9;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.marker-pin img {
  width: 16px;
  height: 16px;
  display: block;
}

.marker-airbnb.dimmed img {
  filter: grayscale(100%) brightness(0.55);
  opacity: 0.85;
}

.marker-airbnb.dimmed::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 1px;
  background: #d9d9d9;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

.bottom-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 16px calc(var(--cta-gap) + var(--safe-bottom));
}

.input-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translate3d(0, calc(100% + 32px), 0);
  pointer-events: none;
  visibility: hidden;
  transition:
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0.42s;
  will-change: transform;
}

.input-panel.is-open {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  visibility: visible;
  transition:
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0s;
}

.link-tags {
  width: 100%;
  min-height: 120px;
  max-height: 200px;
  padding: 12px;
  border: 1.5px solid #222222;
  border-radius: 14px;
  background: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-tags:focus-within {
  border-color: #222222;
}

.link-tags-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-tags-list:empty {
  display: none;
}

.link-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px;
  border-radius: 8px;
  background: #f0f0f0;
}

.link-tag-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #fff;
}

img.link-tag-icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  object-fit: contain;
  object-position: center;
}

.link-tag-icon.is-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 14px;
  line-height: 1;
}

.link-tag-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-tag-name.is-loading {
  color: #a3a3a3;
  font-weight: 400;
}

.link-tag-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: transparent;
  color: #222222;
  font-family: "Material Symbols Outlined";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  padding: 0;
}

.link-tag-remove:hover,
.link-tag-remove:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.link-tags-input {
  width: 100%;
  min-height: 28px;
  padding: 4px 2px;
  border: none;
  border-radius: 0;
  resize: none;
  font-size: 14px;
  line-height: 1.45;
  background: transparent;
  color: #222;
}

.link-tags-input:focus,
.link-tags-input:focus-visible {
  outline: none;
  box-shadow: none;
  border: none;
}

.link-tags.has-tags .link-tags-input {
  min-height: 24px;
  padding: 2px;
}

.link-tags.has-tags .link-tags-input::placeholder {
  color: #c0c0c0;
}

.input-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #A3A3A3;
}

.input-action-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
  height: var(--cta-height);
}

.input-action-row .map-icon-btn,
.input-action-row .primary-btn {
  height: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: none;
}

.input-action-row .map-icon-btn {
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.input-action-row .primary-btn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  width: 100%;
  height: var(--cta-height);
  min-height: var(--cta-height);
  margin-top: 12px;
  padding: 0 20px;
  border-radius: 8px;
  background: #222222;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  flex-shrink: 0;
}

.primary-btn:disabled {
  background: #c8c8c8;
  opacity: 1;
}

.primary-btn.is-busy:disabled {
  background: #222222;
}

.primary-btn.is-busy {
  color: transparent;
  position: relative;
  opacity: 1;
}

.primary-btn.is-busy::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 750ms ease infinite;
}

@keyframes btn-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  40% {
    transform: translate(-50%, -50%) rotate(280deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.primary-btn:active {
  background: #1a1a1a;
}

.secondary-btn {
  width: 100%;
  height: var(--cta-height);
  min-height: var(--cta-height);
  padding: 0 20px;
  border-radius: 8px;
  background: #f2f2f2;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  flex-shrink: 0;
}

.secondary-btn:active {
  background: #e8e8e8;
}

.confirm-modal {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.confirm-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.confirm-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.confirm-modal-body {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 18px;
}

.confirm-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-modal-actions .primary-btn,
.confirm-modal-actions .secondary-btn {
  margin-top: 0;
}

.spots-panel {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 54px 20px calc(20px + var(--safe-bottom));
  overflow: hidden;
  transform: translate3d(0, 100%, 0);
  pointer-events: none;
  visibility: hidden;
  transition:
    transform 0.44s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0.44s;
  will-change: transform;
}

.spots-panel.is-open {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  visibility: visible;
  transition:
    transform 0.44s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0s;
}

/* After JS mounts panels, allow transform animation even if [hidden] remains briefly. */
.input-panel.is-mounted,
.spots-panel.is-mounted {
  display: flex !important;
}

.plan-panel.is-mounted {
  display: block !important;
}

.spots-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.spots-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  color: #6b6b6b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spots-icon-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

.spots-title {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: #222222;
}

.spots-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.spots-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.spots-share-btn .material-symbol {
  font-size: 18px;
}

.spots-share-btn:disabled {
  opacity: 1;
  color: #6b6b6b;
}

.spots-section-label {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 500;
  color: #222222;
}

.spots-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.spot-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  min-height: 72px;
}

.spot-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f0f0;
}

.spot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.spot-thumb img.is-loaded {
  opacity: 1;
}

.spot-thumb.is-shimmer {
  animation: photo-shimmer 1.2s ease-in-out infinite;
}

.spot-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 400;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-priority {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #6b6b6b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  border: none;
}

.spot-priority .material-symbol {
  font-size: 16px;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
  color: #8a8a8a;
}

.spot-priority.is-maybe {
  color: #8a8a8a;
}

.status-text {
  min-height: 0;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.status-text:not(:empty) {
  min-height: 18px;
}

.plan-panel {
  height: 360px;
  max-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
  /* Plan sheet has no CTA — don't reserve the input-mode button inset. */
  padding-bottom: calc(16px + var(--safe-bottom));
  transform: translate3d(0, calc(100% + 32px), 0);
  pointer-events: none;
  visibility: hidden;
  transition:
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0.42s;
  will-change: transform;
}

.plan-panel.is-open {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  visibility: visible;
  transition:
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0s;
}

.option-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.option-tab {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: transparent;
  color: #838383;
  font-size: 13px;
  font-weight: 500;
}

.option-tab.active {
  border-color: var(--pink);
  background: color-mix(in srgb, var(--pink) 10%, transparent);
  color: var(--pink);
}

.option-tab:active {
  opacity: 0.85;
}

.option-tab::before {
  content: "✦ ";
}

.recommendation {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.recommendation strong,
.recommendation .rec-listing {
  color: var(--pink);
  font-weight: 700;
}

.rec-loading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rec-shimmer-line {
  display: block;
  height: 1.5em;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8e8e8 0%, #f5f5f5 45%, #e8e8e8 90%);
  background-size: 200% 100%;
  animation: photo-shimmer 1.2s ease-in-out infinite;
}

.rec-shimmer-line--short {
  width: 68%;
}

.day-block {
  margin-bottom: 20px;
}

.day-block h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.day-dot {
  font-size: 0.5em;
  vertical-align: middle;
  margin: 0 0.15em;
}

.place-row {
  margin-bottom: 14px;
}

.place-row h4,
.place-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.place-name {
  min-width: 0;
}

.place-advisory {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #5c5c5c;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.place-advisory[hidden] {
  display: none;
}

.photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-inline: -16px;
  padding-inline: 16px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.photo-strip::-webkit-scrollbar {
  display: none;
}

.photo-item,
.photo-strip .photo-placeholder {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #e8e8e8;
}

.photo-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.photo-item img.is-loaded {
  opacity: 1;
}

.photo-shimmer {
  background: linear-gradient(90deg, #e8e8e8 0%, #f5f5f5 45%, #e8e8e8 90%);
  background-size: 200% 100%;
  animation: photo-shimmer 1.2s ease-in-out infinite;
}

@keyframes photo-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 440px), (max-height: 956px) {
  html {
    height: 100%;
    overflow: hidden;
  }

  html,
  body {
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .app-shell {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--viewport-offset-top);
    width: 100%;
    height: var(--app-height);
    max-width: 100%;
    max-height: var(--app-height);
    border-radius: 0;
    box-shadow: none;
  }

  .status-bar {
    display: none;
  }

  .stage,
  .screen {
    height: var(--app-height);
  }

  .screen {
    padding-top: var(--safe-top);
  }

  .app-header {
    top: calc(12px + var(--safe-top));
  }

  .spots-panel {
    padding-top: calc(12px + var(--safe-top));
  }

  .link-tags-input {
    font-size: 16px;
  }

  html.keyboard-open {
    --cta-gap: 20px;
  }
}
