.app {
  padding-bottom: 72px;
  background: #fff;
}
.modern-hero {
  height: 350px !important;
  padding: 0 !important;
  background:
    linear-gradient(0deg, #101c2ddd 0%, #15253615 85%),
    url("assets/frechen-rathaus.jpg") center 46% / cover;
}
.modern-hero:before,
.modern-hero:after {
  display: none !important;
}
.hero-top {
  position: absolute;
  inset: 22px 20px auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  color: white;
}
.hero-top .wordmark {
  font-size: 27px;
  letter-spacing: -1.5px;
  font-weight: 750;
}
.hero-top .wordmark span {
  color: #fff;
}
.hero-meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 7px;
  text-align: right;
  font-size: 10px;
  line-height: 1.5;
  text-shadow: 0 1px 4px #0007;
}
.hero-meta button {
  grid-column: 1/-1;
  justify-self: end;
  background: #10212e45;
  color: #fff;
  border: 1px solid #ffffff44;
  padding: 5px 9px;
  border-radius: 18px;
  font: inherit;
  min-height: 32px;
}
.hero-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 45px;
  color: white;
}
.hero-copy > span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  opacity: 0.85;
}
.hero-copy h1 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -1.3px;
  color: white;
  margin: 14px 0 12px;
  font-weight: 650;
  white-space: normal;
}
.hero-copy p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}
.modern-hero .photo-label {
  bottom: 12px;
  right: 15px;
  font-size: 8px;
  background: #13263644;
}
.heart-button {
  border: 0;
  background: #ffffff24;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.hero-heart {
  position: absolute;
  right: 18px;
  top: 140px;
}
.heart-button svg,
.place-heart svg,
.nav-icon svg,
.mini-art svg,
.overview-pin svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.welcome {
  border-radius: 22px 22px 0 0;
  margin-top: -18px;
  position: relative;
  padding: 22px 18px 25px;
}
.welcome .handle,
.welcome .examples,
.welcome #welcome-title,
.welcome .intro,
.demo-explanation {
  display: none;
}
.welcome .privacy {
  font-size: 10px;
  line-height: 1.5;
}
.welcome details {
  font-size: 10px;
}
.nearby {
  padding-top: 20px;
  background: #fff;
}
.nearby-header {
  justify-content: flex-end;
  margin: 0 !important;
}
.nearby-header .wordmark {
  display: none;
}
.nearby-header .text-button {
  font-size: 10px;
  min-height: 32px;
}
.location-note {
  font-size: 10px;
}
.view-title {
  font-size: 22px;
  margin-top: 14px;
}
.place-search-wrap {
  margin-bottom: 12px;
}
.discovery-actions {
  margin-top: 3px;
}
.nearby-status {
  margin-bottom: 14px;
  font-size: 10px;
}
.place-description {
  color: #738094;
  font-size: 10px !important;
  line-height: 1.5;
  margin: 7px 0 !important;
}
.rating-unavailable {
  font-size: 8px !important;
  color: #8a94a2;
  margin-top: 6px !important;
}
.place-heart {
  position: absolute;
  z-index: 4;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #e6e9ef;
  background: #ffffffed;
  color: #6b7687;
  border-radius: 50%;
  padding: 6px;
}
.place-heart svg {
  width: 18px;
  height: 18px;
}
.place-heart[aria-pressed="true"] {
  color: #e6002d;
  border-color: #ffdee5;
}
.place-heart[aria-pressed="true"] svg {
  fill: #e6002d;
}
.place-art {
  position: relative;
  overflow: hidden;
}
.place-art img,
.mini-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-credit {
  display: block;
  position: relative;
  z-index: 4;
  font-size: 8px;
  line-height: 1.4;
  margin-top: 6px;
  color: #78869a;
}
.bottom-nav {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 390px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 9px 5px max(10px, env(safe-area-inset-bottom));
  background: #fffffff5;
  border-top: 1px solid #edf0f4;
  box-shadow: 0 -4px 20px #12263806;
  backdrop-filter: blur(12px);
}
.bottom-nav button {
  border: 0;
  background: none;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  font:
    9px/1.2 Inter,
    Arial,
    sans-serif;
  color: #7c8697;
  padding: 0;
  cursor: pointer;
}
.bottom-nav button[aria-current="page"] {
  color: #e6002d;
  font-weight: 650;
}
.nav-icon {
  display: block;
  height: 23px;
}
.app-toast {
  position: fixed;
  z-index: 50;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: min(330px, calc(100vw - 40px));
  background: #172437f0;
  color: white;
  border-radius: 14px;
  padding: 12px 15px;
  box-shadow: 0 5px 20px #10253620;
  font-size: 12px;
  line-height: 1.5;
}
.map-open .hero,
.overview-open .hero,
.aux-open .hero {
  display: none !important;
}
.map-open {
  padding-bottom: 0;
}
.route-view {
  height: calc(100dvh - 70px) !important;
  min-height: 450px;
}
.route-header {
  min-height: 62px;
}
.overview-panel {
  position: relative;
  height: calc(100dvh - 70px);
  min-height: 500px;
  background: #f4f6f8;
}
.overview-panel > header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: #fff;
  padding: 16px 18px 11px;
}
.overview-panel h2 {
  font-size: 18px;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}
.overview-panel header p {
  font-size: 10px;
  color: #7c899a;
  margin: 0;
}
.map-search-label {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  top: 82px;
}
.map-search-label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.map-search-label input {
  font:
    12px Inter,
    Arial,
    sans-serif;
  border: 1px solid #e5e9f0;
  box-shadow: 0 3px 15px #19354c13;
  padding: 14px 16px;
  border-radius: 24px;
  width: 100%;
  min-height: 46px;
  background: #fffffff5;
}
#overview-map {
  position: absolute;
  inset: 70px 0 0;
}
#overview-note {
  position: absolute;
  bottom: 196px;
  left: 14px;
  right: 14px;
  z-index: 3;
  font-size: 10px;
  line-height: 1.5;
  color: #5b6d82;
  background: #fffffff0;
  border-radius: 12px;
  padding: 8px 10px;
  margin: 0;
}
.map-cards {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 14px 6px;
  scrollbar-width: none;
}
.mini-place {
  position: relative;
  border: 1px solid #edf0f5;
  background: white;
  border-radius: 18px;
  box-shadow: 0 4px 16px #263e5b0d;
  overflow: hidden;
}
.map-cards .mini-place {
  min-width: 285px;
  max-width: 285px;
  scroll-snap-align: center;
}
.mini-route {
  width: 100%;
  padding: 13px;
  border: 0;
  background: none;
  display: flex;
  gap: 12px;
  text-align: left;
  color: #172638;
  min-height: 150px;
  cursor: pointer;
  font-family: inherit;
}
.mini-art {
  position: relative;
  flex-shrink: 0;
  background: #fff0f2;
  color: #c9657b;
  border-radius: 12px;
  display: grid;
  place-items: center;
  width: 66px;
  height: 80px;
  overflow: hidden;
}
.mini-body {
  padding-right: 13px;
  min-width: 0;
}
.mini-body h3 {
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 7px;
  font-weight: 650;
}
.mini-body p {
  font-size: 10px;
  line-height: 1.5;
  color: #78879a;
  margin: 0 0 8px;
}
.mini-body strong,
.mini-body small {
  font-size: 10px;
  line-height: 1.5;
  color: #657c95;
}
.mini-place .place-heart {
  right: 7px;
  top: 7px;
  width: 25px;
  height: 25px;
  padding: 4px;
}
.mini-place .photo-credit {
  font-size: 7px;
}
.overview-pin {
  background: #e6002d;
  color: white;
  border: 3px solid white;
  border-radius: 24px;
  width: 35px;
  height: 40px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px #49223133;
  padding: 3px;
}
.overview-pin svg {
  width: 19px;
  height: 24px;
}
.overview-panel .maplibregl-ctrl-bottom-right,
.overview-panel .maplibregl-ctrl-bottom-left {
  bottom: 240px;
}
.favorites-panel,
.more-panel {
  padding: 27px 18px;
  min-height: calc(100dvh - 70px);
}
.favorites-panel > h2,
.more-panel h2 {
  font-size: 25px;
  letter-spacing: -0.9px;
  margin: 0 0 12px;
}
.favorites-panel > p,
.more-panel p {
  font-size: 12px;
  line-height: 1.7;
  color: #748196;
}
.favorites-panel .places {
  grid-template-columns: 1fr;
  margin-top: 20px;
}
.more-panel button {
  background: #fff0f2;
  border: 1px solid #ffdce4;
  border-radius: 12px;
  color: #c31b42;
  padding: 13px;
  min-height: 44px;
  font:
    12px Inter,
    Arial,
    sans-serif;
}
.more-panel a {
  color: #b73550;
}
@media (max-width: 350px) {
  .hero-copy h1 {
    font-size: 29px;
  }
  .hero-top {
    inset: 18px 15px auto;
  }
  .hero-top .wordmark {
    font-size: 24px;
  }
  .hero-meta {
    font-size: 9px;
  }
  .hero-copy {
    left: 18px;
  }
  .modern-hero {
    height: 325px !important;
  }
  .mini-route {
    min-height: 145px;
  }
  .map-cards .mini-place {
    min-width: 260px;
    max-width: 260px;
  }
}

.hero-copy {
  bottom: 108px;
}
.home-search-label {
  position: absolute;
  bottom: 38px;
  left: 18px;
  right: 18px;
}
.home-search-label input {
  width: 100%;
  border: 0;
  border-radius: 25px;
  background: #fffffff5;
  padding: 14px 17px;
  min-height: 48px;
  font:
    12px Inter,
    Arial,
    sans-serif;
  color: #26364a;
  box-shadow: 0 4px 18px #0002;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.location-ready .modern-hero {
  height: 310px !important;
}
.location-ready .nearby {
  position: relative;
  padding-top: 20px;
}
.location-ready .nearby .place-search-wrap,
.location-ready .nearby .location-note {
  display: none;
}
.location-ready .nearby-header {
  position: absolute;
  right: 18px;
  top: 14px;
}
.location-ready .nearby .view-title {
  font-size: 20px;
  margin: 0 0 16px;
  max-width: 70%;
}
.location-ready .hero-copy h1 {
  font-size: 30px;
}
.location-ready .hero-heart {
  top: 100px;
}
.hero-top {
  z-index: 3;
}
.hero-copy {
  z-index: 1;
}
.hero-heart,
.home-search-label {
  z-index: 4;
}
.hero-meta button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.hero-meta button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 0.5.1: compact start card and stronger top contrast. */
.modern-hero {
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.74) 0%,
      rgba(0, 0, 0, 0.4) 22%,
      rgba(0, 0, 0, 0) 48%
    ),
    linear-gradient(0deg, #101c2ddd 0%, #15253615 85%),
    url("assets/frechen-rathaus.jpg");
}
.hero-top {
  text-shadow: 0 1px 6px #0009;
}
.hero-meta button {
  background: #0003;
  border-color: #ffffff35;
}
.welcome {
  min-height: 0;
  height: auto;
  padding: 17px 18px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 25px #20375108;
}
.welcome #activate {
  margin: 0;
  min-height: 48px;
}
.welcome .privacy {
  margin: 14px 0 10px;
  font-size: 10px;
  line-height: 1.5;
}
.welcome details {
  margin: 0;
  padding-top: 4px;
}
.welcome details summary {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.app:not(.location-ready):not(.map-open):not(.overview-open):not(.aux-open) {
  min-height: 0;
  background: transparent;
  box-shadow: none;
  padding-bottom: 84px;
}

/* Clear search controls and readable filters. */
.hero-copy {
  bottom: 119px;
}
.hero-copy h1 {
  margin-bottom: 0;
}
.home-search-label {
  bottom: 39px;
  left: 18px;
  right: 18px;
}
.home-search-label input {
  min-height: 44px;
  padding: 12px 48px 12px 42px;
  background: #fffffff0;
  box-shadow: 0 2px 9px #00000012;
  border: 1px solid #ffffff70;
  font-size: 11px;
}
.home-search-icon {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #465669;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.voice-search {
  position: absolute;
  z-index: 5;
  bottom: 39px;
  right: 21px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: #d4002a;
  padding: 11px;
  cursor: pointer;
}
.voice-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.voice-search:disabled {
  color: #7a8491;
  opacity: 0.55;
  cursor: default;
}
.voice-search.listening {
  background: #e6002d;
  color: #fff;
}
.categories button {
  background: #f0f2f5;
  color: #29384b;
  border: 1px solid #bac4d1;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px #20375109;
}
.categories button[aria-pressed="true"] {
  background: #dc002b;
  color: #fff;
  border-color: #dc002b;
  box-shadow: 0 3px 9px #dc002b20;
}
.categories button:focus-visible {
  outline: 2px solid #192d47;
  outline-offset: 3px;
}
.start-inspiration {
  background: #fff;
  padding: 22px 18px 24px;
  margin-top: 14px;
  border-radius: 20px;
}
.start-inspiration h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 0 0 7px;
}
.start-inspiration > p {
  font-size: 10px;
  line-height: 1.5;
  color: #69788b;
  margin: 0 0 15px;
}
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.inspiration-grid article {
  min-width: 0;
}
.inspiration-grid .example-image {
  width: 100%;
  height: 83px;
  border-radius: 12px;
}
.inspiration-grid h3 {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: -0.1px;
  margin: 8px 0 0;
  font-weight: 600;
  color: #26354a;
}
@media (max-width: 350px) {
  .categories button {
    font-size: 11px;
  }
  .inspiration-grid {
    gap: 7px;
  }
  .inspiration-grid .example-image {
    height: 71px;
  }
  .start-inspiration {
    padding: 20px 14px;
  }
}
.modern-hero {
  background-size: cover, cover, cover;
  background-position:
    center,
    center,
    center 46%;
  background-repeat: no-repeat;
}

/* 0.6: generous photo and a single connected white discovery surface. */
.modern-hero,
.location-ready .modern-hero {
  height: clamp(420px, 58svh, 580px) !important;
}
.hero-copy,
.location-ready .hero-copy {
  bottom: 128px;
}
.hero-copy h1,
.location-ready .hero-copy h1 {
  font-size: 31px;
  line-height: 1.13;
  max-width: 290px;
}
.hero-heart,
.location-ready .hero-heart {
  top: auto;
  bottom: 172px;
  right: 16px;
}
.home-search-label {
  bottom: 49px;
}
.voice-search {
  bottom: 49px;
}
.discovery-sheet {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  border-radius: 26px 26px 0 0;
  background: white;
  overflow: hidden;
  padding-bottom: 23px;
}
.welcome {
  margin: 0;
  padding: 20px 18px 15px;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.welcome .privacy {
  margin: 12px 0 5px;
}
.welcome details {
  font-size: 9px;
}
.welcome details summary {
  min-height: 28px;
}
.recent-section {
  padding: 8px 18px 10px;
  background: transparent;
}
.recent-section header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}
.recent-section h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 0;
}
.recent-section header button {
  font:
    10px Inter,
    Arial,
    sans-serif;
  color: #778697;
  background: none;
  border: 0;
  min-height: 40px;
}
.recent-section > p {
  font-size: 12px;
  color: #8290a0;
  line-height: 1.6;
  margin: 0;
}
.recent-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.recent-cards .mini-route {
  flex-direction: column;
  min-height: 0;
  padding: 0;
  gap: 10px;
}
.recent-cards .mini-art {
  width: 100%;
  height: 105px;
}
.recent-cards .mini-place {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.recent-cards .mini-body {
  padding-right: 0;
}
.recent-cards .mini-body h3 {
  font-size: 12px;
}
.recent-cards .mini-body p {
  display: none;
}
.recent-cards .mini-body small {
  font-size: 10px;
}
.recent-cards .community-rating {
  margin-top: 8px;
}
.map-open .discovery-sheet,
.overview-open .discovery-sheet,
.aux-open .discovery-sheet {
  display: none !important;
}
.app:not(.location-ready):not(.map-open):not(.overview-open):not(.aux-open) {
  background: white;
  padding-bottom: 72px;
}
.nearby {
  background: transparent;
}
.place {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
.place-art {
  height: 110px;
}
.place-body {
  padding-bottom: 12px;
}
.place-body h3 {
  font-size: 13px;
}
.place .card-hit {
  border-radius: 12px !important;
}
.place-heart {
  right: 7px;
  top: 7px;
}
.community-rating {
  position: relative;
  z-index: 4;
  color: #657488;
  font:
    11px/1.5 Inter,
    Arial,
    sans-serif;
  margin-top: 7px;
}
.community-rating .rating-summary {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.rating-summary .gold-star {
  color: #f0b327;
  font-size: 18px;
}
.community-rating button {
  display: block;
  min-height: 36px;
  padding: 4px 0;
  background: none;
  border: 0;
  color: #c6002b;
  font:
    10px Inter,
    Arial,
    sans-serif;
  cursor: pointer;
}
.mini-place > .community-rating {
  padding: 0 13px 8px;
}
.community-rating:empty {
  display: none;
}
.rating-dialog {
  border: 0;
  border-radius: 24px;
  padding: 25px 22px 22px;
  width: min(360px, calc(100vw - 30px));
  box-shadow: 0 20px 70px #13263840;
  color: #17283e;
}
.rating-dialog::backdrop {
  background: #14233666;
  backdrop-filter: blur(3px);
}
.rating-dialog h2 {
  font:
    650 20px/1.3 Inter,
    Arial,
    sans-serif;
  margin: 6px 0 12px;
  letter-spacing: -0.5px;
}
.rating-eyebrow {
  font:
    600 9px Inter,
    Arial,
    sans-serif;
  letter-spacing: 1.2px;
  color: #a43850;
}
.rating-close {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font-size: 25px;
  color: #778397;
}
.rating-dialog > p:not(.rating-eyebrow) {
  font-size: 11px;
  line-height: 1.6;
  color: #718095;
}
.rating-stars {
  display: flex;
  gap: 4px;
  justify-content: space-between;
  margin: 20px 0;
}
.rating-stars button {
  min-width: 44px;
  min-height: 48px;
  border: 0;
  background: none;
  font-size: 34px;
  line-height: 1;
  color: #bac2cd;
  padding: 0;
  cursor: pointer;
}
.rating-stars button.selected {
  color: #f2b327;
}
.rating-dialog .primary {
  width: 100%;
  font:
    600 13px Inter,
    Arial,
    sans-serif;
}
.rating-dialog .rating-disclosure {
  font-size: 10px !important;
  margin: 12px 0 0;
}
@media (max-width: 350px) {
  .modern-hero,
  .location-ready .modern-hero {
    height: clamp(405px, 57svh, 490px) !important;
  }
  .hero-copy h1,
  .location-ready .hero-copy h1 {
    font-size: 28px;
  }
  .recent-section,
  .welcome {
    padding-left: 14px;
    padding-right: 14px;
  }
  .rating-stars {
    gap: 0;
  }
  .rating-stars button {
    min-width: 40px;
    font-size: 30px;
  }
}
.app:not(.location-ready):not(.map-open):not(.overview-open):not(.aux-open) {
  min-height: 100svh;
}
.rating-arrival-note {
  font-size: 11px;
  line-height: 1.5;
  color: #6f7d90;
  margin: 10px 0 0;
}
.route-bottom > .text-button {
  font-size: 11px;
  min-height: 36px;
}
