/* Customer workspace: compact navigation, map overlays and in-place authentication. */
.travel-app {
  --rail-width: 72px;
}
.travel-app .notice,
.travel-app > footer {
  display: none;
}
.account-trigger {
  border: 0;
  background: transparent;
}
.user-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: #e5ece5;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.account-identity {
  display: flex;
  gap: 12px;
  padding: 8px 4px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.account-identity strong,
.account-identity small {
  display: block;
  overflow-wrap: anywhere;
}
.travel-app .map-suggestions > * {
  min-width: 0;
}
.travel-app .map-suggestions .sort-pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  white-space: normal;
  flex: none;
  max-width: 100%;
}
.travel-app .map-suggestions .sort-pick select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.travel-app .map-suggestions .place-card .poster {
  width: 100%;
  height: 160px;
  min-height: 160px;
}
.travel-app .map-suggestions .rail {
  scroll-snap-type: none;
}
#dialog:has(.menu-list) .menu-list > a,
#dialog:has(.menu-list) .menu-list > button {
  border: 0;
  background: transparent;
}
#dialog:has(.menu-list)::backdrop {
  background: transparent;
  backdrop-filter: none;
}
.auth-privacy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 12px;
}
.account-identity small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
#dialog:has(.menu-list) {
  width: min(320px, calc(100% - 24px));
  padding: 16px;
}
#dialog:has(.menu-list) .dialog-heading h2 {
  font-size: 16px;
}
#dialog:has(.menu-list) .menu-list {
  display: grid;
  gap: 2px;
}
#dialog:has(.menu-list) .menu-list > a,
#dialog:has(.menu-list) .menu-list > button {
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 44px;
  text-decoration: none;
}
#dialog:has(.menu-list) .menu-list > a:hover {
  background: var(--soft);
}
#auth-dialog {
  width: min(480px, calc(100% - 24px));
  max-height: calc(var(--auth-height, 100dvh) - 32px);
  margin: auto;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#auth-dialog[open] {
  animation: auth-enter 0.18s ease-out;
}
@keyframes auth-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 801px) and (max-height: 580px) {
  .travel-app header.site {
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .travel-app header.site nav {
    gap: 2px;
  }
  .travel-app header.site nav a {
    height: 44px;
    min-height: 44px;
  }
}
#auth-dialog .dialog-heading {
  margin-bottom: 8px;
}
#auth-dialog .dialog-heading h2 {
  font-size: 13px;
  color: var(--muted);
}
#auth-dialog .auth-card {
  padding: 4px;
  box-shadow: none;
  border: 0;
  background: transparent;
}
#auth-dialog .auth-card h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 18px 0 10px;
}
.auth-tabs button {
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
}
.auth-tabs button.active {
  background: var(--ink);
  color: white;
}
#auth-dialog .secret {
  overflow-wrap: anywhere;
  user-select: all;
}
.video-photos {
  display: none;
}
.map-filter-panel .chips.kinds {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}
.map-filter-panel .chips.kinds button {
  font-size: 12px;
  min-height: 44px;
  padding: 8px 10px;
}
.travel-app .map-filter-panel {
  width: 360px;
  max-height: 65dvh;
  bottom: auto;
}
.travel-app .map-suggestions {
  width: clamp(380px, 36vw, 520px);
}
.travel-app .map-suggestions .place-card {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 12px;
}
.travel-app .map-suggestions .place-card .cover {
  height: 100%;
  min-height: 160px;
}
.travel-app .map-group-dock {
  gap: 3px;
  padding: 5px;
}
.travel-app .map-group-dock button {
  width: 44px;
  height: 44px;
  min-height: 44px;
}
@media (min-width: 801px) {
  .travel-app {
    padding-left: var(--rail-width);
  }
  .travel-app header.site {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-width);
    height: 100dvh;
    min-height: 0;
    padding: 14px 8px max(16px, env(safe-area-inset-bottom));
    z-index: 20;
    gap: 22px;
  }
  .travel-app header.site .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    letter-spacing: -0.4px;
  }
  .travel-app header.site nav {
    gap: 8px;
  }
  .travel-app header.site nav a {
    min-height: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    position: relative;
  }
  .travel-app header.site nav a > [data-i18n] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .travel-app header.site nav a:hover::after,
  .travel-app header.site nav a:focus-visible::after {
    content: attr(aria-label);
    position: absolute;
    left: 58px;
    white-space: nowrap;
    background: var(--ink);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: 0 4px 18px #0002;
  }
  .travel-app header.site nav .nav-icon {
    display: block;
    font-size: 24px;
  }
  .travel-app header.site #plan-count {
    position: absolute;
    right: 0;
    top: 0;
  }
  .travel-app header.site .account-trigger {
    margin-top: auto;
    min-height: 54px;
    width: 100%;
    padding: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .travel-app header.site .account-trigger .menu-label {
    font-size: 9px;
    max-width: 56px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .travel-app header.site .account-trigger .user-avatar {
    width: 36px;
    height: 36px;
  }
  #dialog:has(.menu-list) {
    position: fixed;
    left: 84px;
    right: auto;
    top: auto;
    bottom: 20px;
    margin: 0;
    max-height: calc(100dvh - 40px);
  }
  .travel-app .map-workspace #map {
    height: calc(100dvh - 24px);
    min-height: 420px;
  }
  .travel-app[data-demo='true'] .map-workspace #map {
    height: calc(100dvh - 74px);
  }
  .travel-app .video-pages {
    grid-template-columns: minmax(160px, 1fr) minmax(280px, 1.6fr) minmax(260px, 1fr);
  }
  .travel-app .immersive-video .video-frame {
    grid-column: 2;
    grid-row: 1;
  }
  .travel-app .immersive-video .video-copy {
    grid-column: 3;
    grid-row: 1;
    padding: 24px;
  }
  .travel-app .video-photos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: 1;
    grid-row: 1;
    background: #f1f4ef;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .video-photos img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    max-height: 280px;
  }
  .video-photos a {
    display: block;
    min-height: 44px;
  }
  .travel-app .immersive-video .feed-step {
    right: calc(27.78% + 12px);
  }
  .travel-app .video-info-hint {
    display: none;
  }
  .travel-app .immersive-video .video-copy h2 {
    font-size: 28px;
  }
}
@media (max-width: 800px) {
  .travel-app header.site {
    position: sticky;
    top: 0;
    z-index: 15;
    padding: 6px 12px;
    gap: 2px;
    background: #fffffff5;
    backdrop-filter: blur(16px);
  }
  .travel-app .brand-copy {
    display: none;
  }
  .travel-app header.site .account-trigger {
    padding: 0;
    gap: 6px;
  }
  .travel-app header.site .account-trigger .menu-label {
    font-size: 12px;
  }
  .travel-app header.site nav {
    background: transparent;
  }
  .travel-app header.site nav a {
    min-height: 44px;
    gap: 4px;
    font-size: 10px;
  }
  .travel-app header.site nav .nav-icon {
    display: block;
    font-size: 20px;
  }
  .travel-app .map-workspace #map {
    height: calc(100dvh - 122px);
    min-height: 330px;
  }
  .travel-app[data-view='map'] .container,
  .travel-app[data-view='place'] .container,
  .travel-app[data-view='eat'] .container {
    padding: 0;
  }
  .travel-app .map-workspace .map-panel {
    border-radius: 0;
    border: 0;
  }
  .travel-app .map-suggestions {
    inset: 0;
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 0;
    padding: 16px;
    z-index: 10;
    max-height: none;
  }
  .travel-app .map-suggestions .place-card {
    display: block;
  }
  .travel-app .map-suggestions .place-card .cover {
    height: 170px;
  }
  .travel-app .map-filter-panel {
    right: 68px;
    left: 8px;
    top: 68px;
    width: auto;
    max-width: none;
    max-height: calc(100% - 90px);
    padding: 12px;
  }
  .travel-app .map-filter-panel .eyebrow {
    display: none;
  }
  .travel-app .map-filter-panel .map-panel-heading {
    margin-bottom: 6px;
  }
  .travel-app .map-filter-panel .map-panel-heading h2 {
    font-size: 16px;
  }
  .travel-app .map-group-dock {
    right: 8px;
    top: 68px;
  }
  .travel-app .map-overlay-toolbar {
    left: 8px;
    right: 8px;
    top: 10px;
  }
  #auth-dialog {
    padding: 16px;
    max-height: calc(var(--auth-height, 100dvh) - 24px);
  }
  .travel-app .video-photos {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .travel-app * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* One map surface, switching between a preserved list and the selected place. */
.travel-app .map-list-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.travel-app .map-suggestions .map-detail {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  animation: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.travel-app .map-suggestions.showing-detail {
  z-index: 12;
}
.map-detail-heading {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.stage-image {
  position: absolute;
  inset: 0;
  background: #0c1714;
  z-index: 5;
}
.stage-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stage-image > button {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: white;
  background: #14281fd9;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  font-size: 25px;
}
.review-thumbnail {
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 12px;
  flex: none;
  background: transparent;
  overflow: hidden;
}
.review-thumbnail[aria-pressed='true'] {
  border-color: var(--accent);
}
.video-image-shortcuts,
.video-map-exit,
.mobile-feed-next {
  display: none;
}
@media (min-width: 801px) {
  .travel-app .video-pages {
    grid-template-columns: 112px minmax(280px, 1.4fr) minmax(290px, 1fr);
  }
  .travel-app .video-photos {
    padding: 14px 10px;
    align-items: center;
    gap: 12px;
  }
  .travel-app .video-photos .review-thumbnail {
    width: 88px;
    height: 104px;
  }
  .travel-app .video-photos img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }
  .travel-app .immersive-video .feed-step {
    right: calc((100% - 112px) / 2.4 + 14px);
  }
  .travel-app .photo-open .feed-step {
    visibility: hidden;
  }
}
@media (max-width: 800px) {
  .travel-app .map-panel > header.site {
    position: absolute;
    inset: 0 0 auto;
    z-index: 14;
    border-bottom: 0;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    background: linear-gradient(#ffffffed, #ffffffd9);
    backdrop-filter: blur(12px);
  }
  .travel-app .map-panel > header.site nav {
    margin-top: 8px;
    border: 1px solid #ffffffb3;
    border-radius: 18px;
    background: #ffffffd9;
    box-shadow: 0 4px 20px #18392d10;
    padding: 4px;
  }
  .travel-app .map-panel > header.site nav a {
    min-height: 52px;
    padding: 5px 2px;
    border-radius: 13px;
  }
  .travel-app .map-panel > header.site nav a[aria-current] {
    background: var(--ink);
    color: white;
  }
  .travel-app .map-workspace #map {
    height: 100dvh;
    min-height: 440px;
  }
  .travel-app[data-demo='true'] .map-workspace #map {
    height: calc(100dvh - 50px);
  }
  .travel-app .map-overlay-toolbar {
    top: 136px;
  }
  .travel-app .map-group-dock {
    top: 194px;
  }
  .travel-app .map-filter-panel {
    top: 194px;
    max-height: calc(100% - 212px);
  }
  .travel-app .map-suggestions {
    top: 64px;
    bottom: 12px;
    border-radius: 22px 22px 0 0;
    z-index: 16;
    box-shadow: 0 -8px 35px #18392d20;
  }
  .travel-app .map-suggestions.showing-detail {
    z-index: 16;
  }
  .travel-app[data-view='video'] .container {
    padding: 0;
    margin: 0;
  }
  .travel-app .immersive-video:has(#feed) > .feed-scope {
    display: none;
  }
  .travel-app .immersive-video .feed {
    height: 100dvh;
  }
  .travel-app[data-view='video'] .demo-banner {
    display: none;
  }
  .travel-app .immersive-video .feed-step {
    display: none;
  }
  .video-map-exit {
    display: grid;
    place-items: center;
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    left: 14px;
    width: 44px;
    height: 44px;
    padding: 0;
    z-index: 3;
    color: white;
    background: #14281fb8;
    border-color: #ffffff60;
  }
  .travel-app .video-info-hint {
    top: max(16px, env(safe-area-inset-top));
    left: 68px;
    min-height: 44px;
    padding: 6px 12px;
  }
  .video-image-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: 12px;
    z-index: 3;
    max-height: 34%;
    overflow-y: auto;
  }
  .video-image-shortcuts .review-thumbnail {
    width: 48px;
    height: 60px;
    background: #14281fb8;
    border-color: #ffffff80;
  }
  .video-image-shortcuts img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
  }
  .video-overlay {
    bottom: max(72px, env(safe-area-inset-bottom));
    padding-right: 84px;
  }
  .video-overlay h3,
  .video-overlay p {
    max-width: 100%;
  }
  .video-overlay .video-mobile-tools {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 58px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .video-overlay .video-mobile-tools .actions {
    position: static;
    width: 100%;
    gap: 8px;
  }
  .video-overlay .actions button {
    width: 58px;
    min-height: 58px;
  }
  .video-overlay .mobile-feed-next {
    display: block;
    width: 58px;
    min-height: 44px;
    padding: 0;
    color: white;
    background: #14281fb8;
    border-color: #ffffff60;
    font-size: 24px;
  }
  .photo-open .video-overlay,
  .photo-open .video-info-hint {
    visibility: hidden;
  }
  .info-open .video-image-shortcuts {
    visibility: hidden;
  }
}

/* Map navigation stays inside the map, clear of Safari/Chrome viewport controls. */
@media (max-width: 800px) {
  .travel-app .map-workspace #map,
  .travel-app[data-demo='true'] .map-workspace #map {
    height: calc(100dvh - var(--map-start, 0px));
  }
  .travel-app .map-panel > nav {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: max(28px, env(safe-area-inset-bottom));
    z-index: 14;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 5px;
    border-radius: 22px;
    background: #fffffff2;
    box-shadow: 0 8px 32px #18392d26;
    backdrop-filter: blur(16px);
  }
  .travel-app .map-panel > nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 5px 2px;
    font-size: 10px;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 17px;
  }
  .travel-app .map-panel > nav a[aria-current] {
    background: var(--ink);
    color: white;
  }
  .travel-app .map-panel > nav .nav-icon {
    display: block;
    font-size: 22px;
  }
  .travel-app .map-panel > nav #plan-count:empty {
    display: none;
  }
  .travel-app .map-panel > nav #plan-count:not(:empty) {
    position: absolute;
    top: 3px;
    right: 3px;
  }
  .travel-app .map-overlay-toolbar {
    top: 76px;
  }
  .travel-app .map-group-dock {
    top: 134px;
  }
  .travel-app .map-filter-panel {
    top: 134px;
    max-height: calc(100% - 240px);
  }
  .travel-app .map-tools {
    bottom: 108px;
  }
  .travel-app .maplibregl-ctrl-top-right {
    bottom: 108px;
  }
  .travel-app .map-suggestions {
    bottom: 108px;
  }
}
.review-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 10px;
}
.following-list > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.following-list a {
  overflow-wrap: anywhere;
  min-width: 0;
}
.following-list button {
  flex: none;
  min-height: 44px;
}
.author-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d9e9df;
  color: #203c35;
  border: 2px solid white;
  font-size: 21px;
  font-weight: 700;
}
.review-author strong {
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.review-author button {
  padding: 4px;
  min-height: 44px;
  font-size: 10px;
  width: 100%;
}
.video-frame {
  container-type: size;
}
.video-media {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100cqw, calc(100cqh * 9 / 16));
  height: min(100cqh, calc(100cqw * 16 / 9));
  background: #07110e;
}
.travel-app .video-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stage-image {
  z-index: 1;
}
.stage-image > button {
  right: auto;
  left: 14px;
  top: 90px;
  z-index: 2;
}
.video-overlay {
  z-index: 3;
}
.travel-app .photo-open .video-overlay,
.travel-app .photo-open .video-info-hint,
.travel-app .photo-open .feed-step {
  visibility: visible;
}
@media (max-width: 800px) {
  .video-image-shortcuts {
    max-height: 45%;
    width: 52px;
    align-items: center;
    z-index: 4;
  }
  .video-image-shortcuts .review-author {
    color: white;
    margin-bottom: 2px;
  }
  .video-image-shortcuts .review-author strong {
    display: none;
  }
  .video-image-shortcuts .review-author button {
    background: #14281fdb;
    color: white;
    border-color: #ffffff60;
  }
}
