/* ========================================================================== */
/* app.css – wersja czytelna (odtworzona z app.min.css) */
/* -------------------------------------------------------------------------- */
/* MENU / SPIS BLOKÓW (wg najczęstszych selektorów bazowych) */
/*
  - routePreview (43 reguł)
  - placeAdd (35 reguł)
  - atCard (31 reguł)
  - routeEditor (31 reguł)
  - dropdown (28 reguł)
  - routeItem (27 reguł)
  - is-messages (27 reguł)
  - tagHead (27 reguł)
  - is-route-creator (24 reguł)
  - footer (23 reguł)
  - mlRowCard (22 reguł)
  - topbar (18 reguł)
  - footerLang (18 reguł)
  - stories (18 reguł)
  - cookieConsent (18 reguł)
  - wikiFacts (17 reguł)
  - searchField (17 reguł)
  - toggle (17 reguł)
  - searchSuggest (16 reguł)
  - msgThread (15 reguł)
  - modal (15 reguł)
  - iconBtn (15 reguł)
  - userMenuBtn (14 reguł)
  - topbarSearch (14 reguł)
  - suggest (13 reguł)
  - travelDrawer (13 reguł)
  - tripCard (11 reguł)
  - tripCollage (11 reguł)
  - sidebar (10 reguł)
  - profile (10 reguł)
  - listsHeader (10 reguł)
  - detailTop (10 reguł)
  - cComposer (10 reguł)
  - themeToggle (10 reguł)
  - dd (9 reguł)
  - card (9 reguł)
  - slider (9 reguł)
  - adSlot (8 reguł)
  - cItem (8 reguł)
  - uiBackdrop (8 reguł)
*/
/* ========================================================================== */

/* Altitrip – app.css (generated from app.min.css)
   Uwaga: Nie edytuj app.min.css ręcznie. Edytuj app.css i potem minifikuj.
*/

.adSlot {
  display: none;
  margin: 12px 0;
}

.adSlot.adSlot--loaded {
  display: block;
}

.adSlot__link {
  display: block;
  position: relative;
  text-decoration: none;
}

.adSlot__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.adSlot__text {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  pointer-events: none;
}

.adSlot__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 4px 0;
}

.adSlot__subtitle {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.25;
  opacity: 0.9;
}

.homeVideo {
  position: relative;
}

.homeVideo .adSlot--hero {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  z-index: 3;
}

.homeVideo .adSlot--hero.adSlot--loaded {
  display: block;
}

.adHero {
  display: block;
  position: relative;
  width: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
}

.adHero .adMedia {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.adLabel {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: rgba(0,0,0,.55);
  color: #fff;
}

.adSlot--heroList {
  margin: 24px 0 18px;
}

.adSlotRow {
  width: 100%;
  margin-top: 16px;
}

.homeVideo .adHero {
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.homeVideo .adHero .adMedia {
  width: 100%;
  height: 100%;
}


/* ========================================================================== */
/* atCard */
/* ========================================================================== */

.atCard.atCard--ad .atCard__time {
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.atCard.atCard--ad .atCard__comments,.atCard.atCard--ad .atLike {
  display: none;
}

.atCard.atCard--ad .atCard__open {
  cursor: pointer;
}


/* ========================================================================== */
/* routeItem */
/* ========================================================================== */

.routeItem.routeItem--ad {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.02);
}

.routeItem.routeItem--ad .routeItem__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 56px;
}

.routeItem.routeItem--ad .routeItem__title {
  font-weight: 700;
}

.routeItem.routeItem--ad .routeItem__sub {
  opacity: .85;
}

.routeItem.routeItem--ad.routeItem__link {
  text-decoration: none;
  color: inherit;
}

.routeItem.routeItem--ad .routeItem__sponsored {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .85;
}


/* ========================================================================== */
/* msgThread */
/* ========================================================================== */

.msgThread.msgThread--ad {
  border-radius: 14px;
  outline: 1px solid rgba(255,255,255,.08);
}

.msgThread.msgThread--ad .p {
  opacity: .85;
}

.adHero__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: rgba(0,0,0,.55);
  color: #fff;
}


/* ========================================================================== */
/* wikiFacts */
/* ========================================================================== */

.wikiFacts {
  margin-top: 14px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: transparent;
}

.wikiFacts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wikiFacts__title {
  font-weight: 700;
  letter-spacing: .2px;
}

.wikiFacts__body {
  color: var(--wikiFacts-text);
}

.wikiFacts__loading,.wikiFacts__empty {
  color: var(--wikiFacts-muted);
  font-size: 14px;
}

.wikiFacts__list {
  margin: 0;
  padding-left: 18px;
}

.wikiFacts__list li {
  margin: 0 0 10px;
  line-height: 1.55;
}

.wikiFacts__p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.wikiFacts__full {
  margin-top: 8px;
}

.wikiFacts__footer {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wikiFacts__toggle {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--wikiFacts-link);
  cursor: pointer;
}

.wikiFacts__toggle:hover {
  color: var(--wikiFacts-linkHover);
  text-decoration: underline;
}

.wikiFacts__link {
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  color: var(--wikiFacts-link);
  text-decoration: none;
  margin-left: auto;
  opacity: .9;
}

html[data-theme="dark"] .wikiFacts {
  padding: 14px 14px 12px;
  border: 1px solid var(--wikiFacts-border);
  background: var(--wikiFacts-bg);
}

html[data-theme="dark"] .wikiFacts__toggle {
  border: 0;
  color: #07dc43;
}

html[data-theme="dark"] .wikiFacts__link {
  color: #7b92ad;
}

.wikiFacts__link:hover {
  color: var(--wikiFacts-linkHover);
  text-decoration: underline;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
}


/* ========================================================================== */
/* topbar */
/* ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
}

.brand {
  display: flex;
  align-items: center;
}

.logoLink {
  display: inline-flex;
  align-items: center;
}

.logo {
  font-weight: 900;
  letter-spacing: 1px;
}

.tagline {
  font-size: 12px;
  color: var(--muted);
}

.shell {
  display: block;
}


/* ========================================================================== */
/* sidebar */
/* ========================================================================== */

.sidebar {
  position: fixed;
  left: 0;
  top: 62px;
  width: 260px;
  height: calc(100vh - 62px);
  overflow: auto;
  padding: 16px 14px;
  border-right: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.sidebar__head {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 8px 14px;
}

.sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar__links a {
  color: var(--fg);
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.sidebar__links a:hover {
  background: #f6f7fb;
}

.sidebar__links a.followItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.followItem__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.followItem__icon {
  width: 8px;
  text-align: center;
  color: var(--muted);
  flex: 0 0 18px;
}

.followItem__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.followItem__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #07dc43;
  flex: 0 0 8px;
}

.shell__main {
  margin-left: 260px;
  min-height: calc(100vh - 170px);
}

@media (max-width:980px) {
  .sidebar {
    display: none;
  }

  .shell__main {
    margin-left: 0;
  }
}


/* ========================================================================== */
/* footer */
/* ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 0;
  margin-top: 50px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  padding: 16px 15px;
  padding-left: calc(260px + 15px);
}

@media (max-width:980px) {
  .footer__inner {
    padding-left: 15px;
  }
}

.footer__left {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 0;
}

.footer__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}

.footer__link:hover {
  color: var(--fg);
}

.footer__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 220px;
}

.footer__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex-direction: row-reverse;
}

.footer__rights {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__social {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}

.footer__social:hover {
  color: var(--fg);
}

.footer__flag {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  display: inline-block;
  object-fit: cover;
  border: none;
}


/* ========================================================================== */
/* footerLang */
/* ========================================================================== */

.footerLang {
  position: relative;
}

.footerLang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
}

.footerLang__label {
  font-size: 13px;
}

.footerLang__chev {
  opacity: .7;
}

.footerLang__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: none;
  z-index: 40;
}

.footerLang[open] .footerLang__menu {
  display: block;
}

.footerLang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  font-size: 13px;
  cursor: pointer;
}

.footerLang__item:hover {
  background: rgba(0,0,0,.04);
}

.search {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  max-width: 520px;
}

.search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
}

button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

button.primary {
  background: #000;
  color: #fff;
  border-color: #0f172a;
}

button.ghost {
  background: #fff;
  color: var(--fg);
}

.btn--success {
  background: #07dc43;
  border-color: #07dc43;
  color: #052e16;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.btn--success:hover {
  filter: brightness(0.98);
}

.textBtn,.textBTN {
  border: none !important;
  background: transparent !important;
  padding: 6px 8px;
  border-radius: 10px;
}

.textBtn:hover {
  background: #f6f7fb;
}

.textBtn:focus {
  outline: 2px solid rgba(15,23,42,.12);
  outline-offset: 2px;
}

.textBtn .btnIcon {
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
}

.auth {
  display: flex;
  gap: 8px;
  align-items: center;
}

#btnLogin,#btnRegister {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
}

#btnRegister.btn--primary {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
}

#btnLogin.btn--link {
  padding: 6px 8px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--fg);
}

#btnLogin.btn--link:hover {
  background: #f6f7fb;
}

.userMenuWrap {
  position: relative;
}

.userMenuWrap.hasMsgDot::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
}

#userMenuPanel a.hasMsgDot {
  position: relative;
}

#userMenuPanel a.hasMsgDot::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
}

#userMenuPanel a.hasNotifDot {
  position: relative;
}

#userMenuPanel a.hasNotifDot::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
}


/* ========================================================================== */
/* dropdown */
/* ========================================================================== */

.dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  width: 360px;
  max-height: 440px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
  padding: 10px;
  z-index: 60;
}

.dropdown .dropdown__top {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.dropdown input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
}

.dropdown .list {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}

.dropdown .list__head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.dropdown .list__name {
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.dropdown .list__meta {
  font-size: 12px;
  color: var(--muted);
}

.dropdown .list__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dropdown .iconBtn {
  border: 1px solid var(--border);
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dropdown .items {
  margin-top: 10px;
  display: none;
}

.dropdown .list.is-open .items {
  display: block;
}

.dropdown .itemRow {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.dropdown .itemRow:hover {
  background: var(--card);
}

.dropdown .itemRow__title {
  font-weight: 600;
  font-size: 14px;
}

.dropdown .itemRow__city {
  font-size: 12px;
  color: var(--muted);
}

.dropdown .itemRow__rm {
  margin-left: auto;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.dd {
  position: relative;
  display: inline-block;
}

.dd__panel {
  position: absolute;
  top: 44px;
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
  padding: 10px;
  z-index: 70;
}

.dd__panel.hidden {
  display: none;
}

.dd__panel .row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dd__panel .opt {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.dd__panel .opt:hover {
  background: var(--card);
}

.dd__panel .new {
  margin-top: 8px;
}

.filters {
  margin: 10px 0 18px;
}

.filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filters input,.filters select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
}

.home-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.home-cities__link {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}

.home-cities__link:hover {
  background: var(--card);
}

.home-banner {
  margin: 24px 0 48px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.home-banner__inner {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.home-h4 {
  margin: 14px 0 12px;
  font-size: 18px;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

@media (max-width:980px) {
  .masonry {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:768px) {
  .masonry {
    grid-template-columns: 1fr;
  }
}

.card {
  break-inside: avoid;
  padding: 14px;
  margin: 0 0 16px;
}

.atCard {
  break-inside: avoid;
  border: none;
  border-radius: 14px;
  margin: 0 0 16px;
  box-shadow: none;
  background: transparent;
}

.atCard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.atCard__author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.atCard__author:focus {
  outline: 2px solid rgba(15,23,42,.12);
  outline-offset: 2px;
  border-radius: 14px;
}

.atCard__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
  flex: 0 0 28px;
}

.atCard__avatar img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.atCard__authorLine {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.atCard__authorName {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.atCard__time {
  color: var(--muted);
  font-size: 13px;
}

.atCard__dot {
  color: var(--muted);
}

.atCard__comments {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 999px;
}

.atCard__commentsIcon {
  font-size: 14px;
}

.atCard__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.atCard__open {
  text-decoration: none;
  color: inherit;
  display: block;
}

.atCard__img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: var(--card);
}

.atCard__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.atLike {
  position: absolute;
  top: 10px;
  left: 10px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.atLike__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border-radius: 999px;
  box-shadow: none;
  border: none;
}

.atLike__dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #07dc43;
  color: #111;
}

.atLike svg {
  display: block;
}

.atLike__count {
  font-weight: 600;
  font-size: 13px;
  color: #111;
}

.detailHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.detailHead__left {
  min-width: 0;
}

.detailHead__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.detailHead__loc {
  margin-top: 4px;
}

.detailHead__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.detailAuthor {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
}

.detailAuthor__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  background: #e9eef6;
}

.detailAuthor__handle {
  font-weight: 600;
}

.detailActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}

.detailActions__left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detailMedia {
  position: relative;
}

.mapBtn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  background: #fff;
  border: 1px solid var(--border);
  color: #0f172a;
}

.mapBtn:hover {
  border-color: #0f172a;
}

@media (max-width:520px) {
  .mapBtn {
    right: 12px;
    bottom: 12px;
  }
}

.mapModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.mapModal.hidden {
  display: none;
}

.mapModal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10002;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.mapModal__canvas {
  width: 100%;
  background: #e9ebef;
  position: relative;
  z-index: 1;
}

.mapModal__close span {
  font-size: 22px;
  line-height: 1;
}

.mapModal__close:focus {
  outline: 2px solid rgba(7,220,67,.7);
  outline-offset: 2px;
}

.mapPin {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #07dc43;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  position: relative;
}

.mapPin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  background: var(--bg);
  opacity: .18;
}

.mapPin--other {
  background: var(--bg);
}

.mapPin--other::after {
  background: #fff;
  opacity: .35;
}

.mapPin--here {
  width: 30px;
  height: 30px;
  background: #07dc43;
}

.mapPinBubble {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #0f172a;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.mapPinBubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: translateX(-50%) rotate(-45deg);
}

body.noScroll {
  overflow: hidden;
}

@media (max-width:520px) {

}

.detailLike {
  left: auto;
  right: 10px;
  top: 10px;
}

.atCard__body {
  padding: 10px 2px 4px;
}

.atCard__title {
  display: block;
  font-weight: 700;
  font-size: 18px;
  margin: 2px 0 4px;
  text-decoration: none;
  color: inherit;
}

.atCard__title:hover {
  text-decoration: underline;
}

.atCard__loc {
  display: inline-block;
  text-decoration: none;
}

.atCard__loc:hover {
  text-decoration: underline;
}

.card__title {
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 14px;
}

.card__meta {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}


/* ========================================================================== */
/* modal */
/* ========================================================================== */

.modal__panel {
  width: min(920px,100%);
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow: hidden;
  position: relative;
}

#modalBody,#authBody {
  max-height: calc(90vh - 64px);
  overflow: auto;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 8px;
}

#modalClose {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1002;
  background: none;
  border: none;
  width: auto;
  height: auto;
  border-radius: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.modal h2 {
  margin: 8px 0 8px;
}

.muted {
  color: var(--muted);
}

.hr {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.detail__top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kpi {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

textarea,input[type="text"],input[type="password"],input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
}

.formrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.formrow>div {
  flex: 1;
  min-width: 240px;
}

.cardlist .item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
}


/* ========================================================================== */
/* profile */
/* ========================================================================== */

.profile__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 16px 16px;
  box-shadow: none;
}

.profile__handle {
  margin: 0;
}

.profile__bio {
  max-width: 720px;
}

.profile__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (max-width:980px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.profileTabs {
  width: 100%;
}

.tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.tab {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.tab.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.tabsPanels {
  min-height: 120px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 12px;
}

.tiles--profile {
  grid-template-columns: repeat(3,1fr);
}

@media (max-width:640px) {
  .tiles--profile {
    grid-template-columns: 1fr;
  }
}

.tileCard {
  display: block;
  border: 1px solid #e7eaf0;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.tileCard:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.tileCard__title {
  font-weight: 700;
}

.tileCard__meta {
  font-size: 12px;
  margin-top: 6px;
}

.tileCard__sub {
  font-size: 13px;
  margin-top: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  border-radius: 999px;
  user-select: none;
  font-size: 13px;
}

.shareDd {
  padding: 10px;
}

.shareDd__title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.shareDd__grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}

.shareDd__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}

.shareDd__item i {
  font-size: 20px;
}

.shareDd__item:hover {
  background: rgba(15,23,42,.06);
}

html[data-theme="dark"] #btnRegister.btn--primary {
  background: var(--bg) !important;
}

html[data-theme="dark"] #pSend.btn--success {
  background: #07dc43 !important;
  border-color: transparent !important;
  color: #04120a !important;
}

.chip--click {
  border: 1px solid #e7eaf2;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.chip--click:hover {
  background: #f3f5fa;
}

.dropzone {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  user-select: none;
}

.dropzone.on {
  border-color: #0f172a;
  background: rgba(15,23,42,.04);
}

.dropzone--tall {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.preview {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(88px,1fr));
  gap: 8px;
  margin-top: 10px;
}

.preview__item {
  position: relative;
  cursor: grab;
}

.preview__item:active {
  cursor: grabbing;
}

.preview__item.is-dragging {
  outline: 2px dashed #0f172a;
  outline-offset: 2px;
  opacity: .92;
}

.badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(15,23,42,.85);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.img {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

.img--tile {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.img--thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
}

.card__media {
  margin: -12px -12px 10px;
  overflow: hidden;
  border-radius: 16px;
}

.img--cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.img--hero {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 10px 0;
}

.detail__media {
  margin-top: 14px;
  margin-bottom: 24px;
}

.gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.gallery__item {
  display: block;
}

.slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 10px 0;
}

.slider__slides {
  position: relative;
  height: min(460px,55vh);
}

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
}

.slider__slide.is-active {
  opacity: 1;
}

.slider__slide img {
  width: 100%;
    height: 100%;
object-fit: cover;
  display: block;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(15,23,42,.28);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider__btn:hover {
  background: rgba(15,23,42,.38);
}

.slider__btn--prev {
  left: 10px;
}

.slider__btn--next {
  right: 10px;
}

.commentForm {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.commentForm button {
  align-self: flex-end;
}


/* ========================================================================== */
/* stories */
/* ========================================================================== */

.stories {
  margin-top: 16px;
}

.stories__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.stories__title {
  margin: 0;
  font-size: 18px;
}

.stories__nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stories__arrow {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories__arrow:hover {
  border-color: #0f172a;
}

.stories__tile--locked {
  opacity: .65;
}

.stories__strip {
  --storytile: 120px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stories__strip::-webkit-scrollbar {
  display: none;
}

.stories__tile {
  flex: 0 0 var(--storyTile);
  width: var(--storyTile);
  aspect-ratio: 1/1;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.stories__tile img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.stories__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  padding: 10px;
  text-align: center;
}

.stories__tile--add {
  font-size: 34px;
  line-height: 1;
  border: 1px dashed var(--border);
  background: transparent;
  cursor: pointer;
}

.stories__tile--add:hover {
  border-color: #0f172a;
}

.stories__form {
  margin-top: 12px;
}

.stories__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width:520px) {
  .stories__strip {
    --storytile: calc((100% - 36px)/4);
  }
}

@media (min-width:900px) {
  .stories__strip {
    --storytile: calc((100% - 84px)/8);
  }
}


/* ========================================================================== */
/* suggest */
/* ========================================================================== */

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100%+6px);
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  z-index: 1000;
}

.suggest.hidden {
  display: none;
}

.suggest__item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.suggest__item:hover {
  background: rgba(15,23,42,.04);
}

.suggest__empty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
}

.rel {
  position: relative;
}


/* ========================================================================== */
/* placeAdd */
/* ========================================================================== */

.placeAdd__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.placeAdd__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.placeAdd__actions .btn--success {
  margin-left: auto;
}

.placeAdd__manualLink {
  margin-top: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}

.placeAdd__manualLink:hover {
  color: #0f172a;
}

.placeAdd__manualPanel {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  background: #fff;
}

.placeAdd__manualPanel.hidden {
  display: none;
}

.placeAdd__manualHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.placeAdd__manualMap {
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e7eaf0;
}

.placeAdd__manualActions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.tagpick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tagbtn {
  border: 1px solid var(--border);
  background: transparent !important;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.tagbtn:hover {
  border-color: #0f172a;
}

.dupeGoBtn {
  background: #07dc43;
  border-color: #07dc43;
  color: #000;
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 38px;
}

.dupeGoBtn:hover {
  filter: brightness(.97);
}

.chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip__x {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

#btnSaved::after {
  content: " ▾";
  opacity: .7;
  font-size: 12px;
}

.card__actions--between {
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.card__actions-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card__actions-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.dd .row input,#savedNewList,#saveNewListName {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.listsPage {
  max-width: none;
  margin: 0;
}


/* ========================================================================== */
/* listsHeader */
/* ========================================================================== */

.listsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
}

.listsHeader__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.listsHeader__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.listsHeader h1 {
  font-size: 26px;
  margin: 0;
}

.listsHeader .iconPlus {
  display: inline-block;
  width: 10px;
  text-align: center;
  margin-right: 5px;
  font-weight: 700;
  line-height: 1;
}

.listsList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listsHeader__right .ghost {
  border-radius: 999px;
}

.mlSearchRow {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 14px;
}

.mlSearchRow .filterSearchField {
  width: min(420px,100%);
  border-radius: 999px;
}

.mlSearchRow .filterSearchField input {
  border-radius: 999px;
}


/* ========================================================================== */
/* mlRowCard */
/* ========================================================================== */

.mlRowCard {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(220px,360px) 1fr auto;
  gap: 18px;
  align-items: stretch;
}

.mlRowCard:hover {
  box-shadow: none;
}

.mlRowCard__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mlRowCard__titleLine {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.mlRowCard__title {
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mlRowCard__title:hover {
  text-decoration: underline;
}

.mlStatus {
  font-size: 12px;
  font-weight: 400;
  color: #000;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

.mlRowCard__sub {
  font-size: 13px;
  color: var(--muted);
}

.mlRowCard__mid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-end;
  align-items: flex-end;
  min-height: 35px;
}

.mlThumb {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e7eaf2;
  background: #f0f2f6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mlThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

.mlThumb--empty {
  background: #f0f2f6;
}

.mlRowCard__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  min-width: 200px;
}

.mlRowCard__menu {
  position: relative;
}

.mlRowCard__by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg);
  white-space: nowrap;
}

.mlRowCard__ava {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e7eaf2;
  background: #f0f2f6;
}

.mlRowCard__author {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.mlRowCard__author:hover {
  text-decoration: underline;
}

.mlRowCard__sep {
  opacity: .6;
}

.mlRowCard__when {
  color: var(--muted);
}

@media (max-width:900px) {
  /* Messages: mobile-only layout tweaks */
  body.is-messages #topbar,

/* ========================================================================== */
/* is-messages */
/* ========================================================================== */

  body.is-messages header.topbar {
    display: none;
  }

  .mlRowCard {
    grid-template-columns: 1fr;
    gap: 12px;
    position: relative;
  }

  .mlRowCard__menu {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .mlRowCard__left {
    padding-right: 34px;
  }

  .mlRowCard__right {
    min-width: 0;
    align-items: flex-start;
  }

  .mlRowCard__by {
    flex-wrap: wrap;
    white-space: normal;
  }
}

.listCard {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: transparent;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 24px;
  flex-direction: row-reverse;
}

.listCard:hover {
  box-shadow: none;
}

.listCollage {
  display: block;
  width: 180px;
  flex: 0 0 180px;
  text-decoration: none;
  color: inherit;
}

.listsPage .listCollage .tripCollage {
  margin: 0;
  border-radius: 14px;
  aspect-ratio: 1/1;
}

.listsPage .listCollage .tripCollage--1 {
  aspect-ratio: 1/1;
}

.listsPage .listCollage .tripCollage--2,.listsPage .listCollage .tripCollage--3,.listsPage .listCollage .tripCollage--4 {
  aspect-ratio: 1/1;
}

.listTopRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.listAuthorLine {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg);
}

.listAuthorLink {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.listAuthorLink:hover {
  text-decoration: underline;
}

.listAuthorSep {
  opacity: .6;
}

.listWhen {
  color: var(--muted);
}

.kebabBtn {
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}

.kebabBtn:hover {
  background: #f6f7fb;
  color: var(--fg);
}

.kebabBtn:focus {
  outline: 2px solid rgba(15,23,42,.12);
  outline-offset: 2px;
}

.listTitleRow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.listBadge {
  font-size: 12px;
  font-weight: 400;
  color: #000;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
}

.listThumbs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.listThumbs img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e7eaf2;
  background: #f0f2f6;
}

.listMeta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.listMetaTop {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.listMeta .muted {
  font-size: 13px;
}

.listActions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 14px;
}

.listActions .iconBtn {
  white-space: nowrap;
}


/* ========================================================================== */
/* iconBtn */
/* ========================================================================== */

.iconBtn--gray {
  background: #f6f7fb;
  border-color: #e7eaf0;
  color: #000;
}

.iconBtn--gray:hover {
  background: #eef2f7;
}

.listAuthor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.listAuthor__ava {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e7eaf2;
  background: #f0f2f6;
}

.listAuthor__name {
  font-size: 13px;
  font-weight: 500;
  opacity: .75;
  text-decoration: none;
}

.listAuthor__name:hover {
  text-decoration: underline;
}

.tripGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(190px,1fr));
  gap: 12px;
}


/* ========================================================================== */
/* tripCard */
/* ========================================================================== */

.tripCard {
  display: block;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.tripCard:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.tripCard__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f2f6;
}

.tripCard__img img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.tripCard__meta {
  padding: 10px 12px;
}

.tripCard__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.tripCard__loc {
  margin-top: 4px;
  font-size: 12px;
}

.tripCard__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 0 12px;
}

.tripCard__ava {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e7eaf2;
  background: #f0f2f6;
}

.tripCard__author {
  font-size: 13px;
  font-weight: 600;
  opacity: .85;
}


/* ========================================================================== */
/* tripCollage */
/* ========================================================================== */

.tripCollage {
  margin: 10px 12px 0 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f2f6;
}

.tripCollage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tripCollage--1 {
  aspect-ratio: 4/3;
}

.tripCollage--2,.tripCollage--3,.tripCollage--4 {
  display: grid;
  gap: 2px;
  aspect-ratio: 4/3;
}

.tripCollage--2 {
  grid-template-columns: 1fr 1fr;
}

.tripCollage--3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.tripCollage--3 .c:first-child {
  grid-row: 1 / span 2;
}

.tripCollage--3 .c {
  min-width: 0;
  min-height: 0;
}

.tripCollage--3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tripCollage--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.tripCollage .c {
  background: #f0f2f6;
}

.atCard__media .tripCollage {
  margin: 0;
  border-radius: 0;
  aspect-ratio: 1/1;
}

.atCard__media .tripCollage--1 {
  aspect-ratio: 1/1;
}

.atCard__media .tripCollage--2,.atCard__media .tripCollage--3,.atCard__media .tripCollage--4 {
  aspect-ratio: 1/1;
}

.tripCard--collage .tripCard__meta {
  padding: 10px 12px 12px 12px;
}

.listManage {
  position: relative;
}

.listsPage .itemRow__title {
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: inherit;
}

.listsPage .itemRow__title:hover {
  text-decoration: underline;
}

@media (max-width:640px) {
  .listsHeader {
    flex-direction: column;
    align-items: stretch;
  }

  .listsHeader__left {
    width: 100%;
  }

  .listsHeader__right {
    width: 100%;
    justify-content: flex-start;
  }

  .listsHeader__right .input {
    width: 100%;
  }

  .listCard {
    flex-direction: column;
    padding: 16px;
  }

  .listCollage {
    width: 100%;
    flex: 0 0 auto;
  }
}

.placeList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.placeRow {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e7eaf0;
  border-radius: 16px;
  padding: 10px 12px;
  background: #fff;
}

.placeRow__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.placeRow__thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #f3f5f9;
}

.placeRow__title {
  font-weight: 700;
}

.placeRow__sub {
  font-size: 13px;
  opacity: .75;
}

.inlineEdit {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inlineEdit input {
  padding: 10px 12px;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  width: min(520px,100%);
}


/* ========================================================================== */
/* routeEditor */
/* ========================================================================== */

.routeEditor__titleRow .inlineEdit {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.routeEditor__titleRow .inlineEdit .visPill {
  align-self: flex-start;
}

.dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}

.dropdown__row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  border: 1px solid #e7eaf0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.dropdown__row--spread {
  justify-content: space-between;
}

.dropdown__row:hover {
  background: #f6f7fb;
}

.dropdown__hint {
  padding: 8px 12px;
}

.flashSaved {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000000;
  padding: 10px 14px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  opacity: 1;
  transition: opacity .35s ease,transform .35s ease;
}

.flashSaved--success {
  background: #16a34a;
}

.flashSaved--error {
  background: #dc3545;
}

.flashSaved--warning {
  background: #f59e0b;
  color: #111;
}

.flashSaved.out {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}

.flashSaved.hidden {
  display: none;
}

.authorRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  text-decoration: none;
  color: inherit;
}

.authorRow__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.authorRow__handle {
  font-weight: 700;
}


/* ========================================================================== */
/* userMenuBtn */
/* ========================================================================== */

.userMenuBtn__caret {
  opacity: .7;
}

@media (min-width:761px) {
  .userMenuBtn__avatar {
    order: 1;
  }

  .userMenuBtn__handle {
    order: 2;
  }

  .userMenuBtn__caret {
    order: 3;
  }
}

.profile__meta {
  flex: 1;
  min-width: 0;
}

.profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatarImg {
  width: 100%;
  object-fit: cover;
  display: block;
}

.avatarFallback {
  font-size: 36px;
  font-weight: 700;
  opacity: .8;
}

.profile__edit .hint {
  font-size: 12px;
  margin-top: 6px;
}

.profile__edit .hint.ok {
  color: #7CFF9B;
}

.profile__edit .hint.bad {
  color: #FF7C7C;
}

.placeRowLink {
  display: block;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.06);
  margin-bottom: 10px;
}

.placeRowLink:hover {
  background: rgba(255,255,255,0.10);
}

.placeRowLink__title {
  font-weight: 700;
}

.placeRowLink__sub {
  font-size: 12px;
  margin-top: 4px;
}


/* ========================================================================== */
/* tagHead */
/* ========================================================================== */

.tagHead {
  margin: 10px 0 18px;
}

.tagHead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tagHead__h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.tagHead__breadcrumbRow {
  display: block;
}

.tagHead__titleRow {
  margin-top: 2px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
}

.breadcrumb__home i {
  font-size: 14px;
}

.breadcrumb__sep {
  margin: 0 6px;
}

.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 18px 0;
}

.pager__a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

.pager__a:hover {
  background: var(--card);
}

.pager__a.is-active {
  font-weight: 700;
}

.pager__a.is-disabled {
  pointer-events: none;
  opacity: .45;
}

.tagHead__meta {
  margin-top: 6px;
}

.tagHead__toolsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tagHead__search {
  max-width: 360px;
}

.tagHead__searchRow .input {
  flex: 1;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.tagHead__follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dfe7f2;
  border-radius: 999px;
  background: #fff;
}

.tagHead__follow:hover {
  background: #f7f9fc;
}

.tagHead__follow .bi {
  color: #000;
  font-size: 16px;
  line-height: 1;
}

.tagHead__sortWrap {
  position: relative;
}

.tagHead__sortBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tagHead__caret {
  opacity: .75;
}

.userMenuBtn,.userMenuBtn:focus,.userMenuBtn:active {
  outline: none;
  box-shadow: none;
}

#btnSearch {
  background: #07dc43;
  color: #000;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#btnSearch i,#btnSearch svg {
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.tagHead__label {
  font-weight: 400;
  color: var(--fg);
  display: none !important;
}

.tagHead__searchRow {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

#tagSearch {
  padding-left: 36px;
}

.citySelect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dfe7f2;
  border-radius: 999px;
  background: #fff;
  min-width: 220px;
  max-width: 220px;
}

.citySelect__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.citySelect__caret {
  margin-left: auto;
}

.cityTagRow {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.cityTagLink {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  font-size: 13px;
  color: inherit;
}

.cityTagLink:hover {
  text-decoration: underline;
}

.cityTagLink.is-active {
  color: #07dc43;
}

.cityTagLink.is-dim {
  opacity: .35;
}

.has-search-icon {
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%252364748b%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M11.742%2010.344a6.5%206.5%200%201%200-1.397%201.398h-.001l3.85%203.85a1%201%200%200%200%201.414-1.415l-3.85-3.85zm-5.242.656a5.5%205.5%200%201%201%200-11%205.5%205.5%200%200%201%200%2011z%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}

.filterSearchField {
  position: relative;
  display: inline-block;
}

.filterSearchField .searchIcon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #64748b;
  pointer-events: none;
}

.filterSearchField input {
  padding-left: 38px;
}

.tagHead__tools {
  margin-top: 36px;
}

.distTile.is-active {
  border-color: #07dc43;
}

.distTile {
  width: 160px;
  min-width: 160px;
  height: 100px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.distTile i {
  font-size: 24px;
  line-height: 1;
}

.distTile span {
  font-size: 14px;
  line-height: 1.05;
  text-align: center;
  font-weight: 400;
  margin-top: 8px;
}

.cityDistanceTiles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (max-width:720px) {
  .tagHead .tagHead__toolsRow {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tagHead .tagHead__toolsRow::-webkit-scrollbar {
    display: none;
  }

  .cityDistanceTiles {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .cityDistanceTiles::-webkit-scrollbar {
    display: none;
  }

  .tagHead .cityTagRow {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tagHead .cityTagRow::-webkit-scrollbar {
    display: none;
  }
}

.placeAdd__hint {
  font-size: 12px;
}

.placeAdd__picked {
  margin-top: 8px;
}

.fieldErr {
  color: #991b1b;
  font-size: 13px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 12px;
  line-height: 1.25;
}

.fieldErr:empty {
  display: none;
}

.placeAdd .is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}

.placeAdd .dropzone.is-invalid {
  border-color: #ef4444 !important;
  background: #fff7ed;
}

.placeAdd .tagpick.is-invalid {
  border: 1px solid #ef4444;
  border-radius: 14px;
  padding: 8px;
}

.placeAdd {
  position: relative;
}

.placeAdd.is-loading .placeAdd__inner {
  filter: blur(2px);
  opacity: .85;
  pointer-events: none;
  user-select: none;
}

.placeAdd__loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  z-index: 3000;
}

.placeAdd__loading--global {
  z-index: 1000000;
}

.placeAdd__spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(15,23,42,.18);
  border-top-color: rgba(15,23,42,.75);
  animation: spin 1s linear infinite;
}

.placeAdd__loadingText {
  font-size: 14px;
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.placeAdd__dupeOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  z-index: 200000;
}

.placeAdd__dupeCard {
  width: min(520px,92vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(15,23,42,.12);
  text-align: center;
}

.placeAdd__dupeTitle {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.placeAdd__dupeText {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.placeAdd label {
  display: block;
  margin: 0 0 8px;
}

.placeAdd input,.placeAdd textarea {
  margin: 0;
}

.placeAdd .card__actions {
  margin-bottom: 0;
}

.placeAdd__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 14px;
}

.placeAdd input.input--solid {
  border-radius: 12px;
  font-weight: 500;
  padding: 12px 14px;
  font-size: 15px;
}

.placeAdd textarea.input--solid {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}

.placeAdd #pLocMe,.placeAdd__actions .btn,.placeAdd__manualActions .btn,.placeAdd__manualActions .primary {
  padding: 12px 18px;
  font-size: 15px;
}

.savedWrap {
  position: relative;
  display: none !important;
}

.dropdown__row[data-sort] {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown__row[data-sort]::before {
  display: none;
  content: none;
}

.profile__actions .ghost {
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}

.messages {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  min-height: 70vh;
}

@media (max-width:900px) {
  /* Messages: mobile-only layout tweaks */
  body.is-messages #topbar,
  body.is-messages header.topbar {
    display: none;
  }

  .messages {
    grid-template-columns: 1fr;
  }
}

.msgList {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid var(--border);
  overflow: auto;
}

.msgThread {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.msgThread:hover {
  background: rgba(0,0,0,.03);
}

.msgThread.is-active {
  background: rgba(34,197,94,.10);
}

.msgThread .avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(0,0,0,.05);
}

.msgThread .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msgThread .meta {
  min-width: 0;
  flex: 1;
}

.msgThread .meta .h {
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}

.msgThread .meta .h a {
  color: inherit;
  text-decoration: none;
}

.msgThread .meta .h a:hover {
  text-decoration: underline;
}

.msgThread .meta .p {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.msgThread .badge {
  font-size: 12px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}

.msgPanel {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}

.msgHeader {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.msgHeader .title {
  font-weight: 600;
}

.msgHeader .title a {
  color: inherit;
  text-decoration: none;
}

.msgHeader .title a:hover {
  text-decoration: underline;
}

.msgBack {
  display: none;
}

.msgBody {
  padding: 14px;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msgBody,.msgList,#modalBody,#authBody,.modal__body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.msgBody::-webkit-scrollbar,.msgList::-webkit-scrollbar,#modalBody::-webkit-scrollbar,#authBody::-webkit-scrollbar,.modal__body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.msgBubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  word-break: break-word;
}

.msgBubble.me {
  align-self: flex-end;
  text-align: right;
  background: rgba(34,197,94,.10);
}

.msgBubble.other {
  align-self: flex-start;
  text-align: left;
  background: rgba(0,0,0,.02);
}

.msgTime {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.msgComposer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.msgComposer textarea {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 140px;
  font: inherit;
  font-size: inherit;
  line-height: 1.3;
}

.msgComposer button {
  white-space: nowrap;
}

.msgSendIcon {
  position: relative;
  min-width: 22px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.msgSendIcon::before {
  content: "";
  width: 8px;
  height: 8px;
  display: block;
  /* restore send icon */
  background: url("/public/assets/img/send.svg") center/contain no-repeat;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width:900px) {
  /* Messages: mobile-only layout tweaks */
  body.is-messages #topbar,
  body.is-messages header.topbar {
    display: none;
  }

  body.is-messages {
    overflow: hidden;
  }

  .messages {
    /* full height (topbar hidden), keep space for bottom bar */
    height: calc(100vh - var(--alt-mobilebar-h,64px) - env(safe-area-inset-bottom));
    width: 100vw;
    gap: 0;
  }

  body.is-messages:not(.msg-open) .msgPanel {
    display: none;
  }

  body.is-messages.msg-open .msgList {
    display: none;
  }

  body.is-messages.msg-open .msgPanel {
    display: flex;
    height: 100%;
  }

  body.is-messages.msg-open .msgHeader {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg);
  }

  body.is-messages.msg-open .msgComposer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--alt-mobilebar-h,64px)+env(safe-area-inset-bottom));
    z-index: 6;
    background: var(--bg);
  }

  body.is-messages.msg-open .msgBody {
    overflow: auto;
    padding-bottom: calc(140px+var(--alt-mobilebar-h,64px));
  }

  .msgBack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
  }
}


/* ========================================================================== */
/* detailTop */
/* ========================================================================== */

.detailTop__author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.detailTop__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  background: #e9eef6;
}

.detailTop__name {
  font-weight: 600;
}

.detailTop__dot {
  color: var(--muted);
}

.detailTop__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iconBtn:hover {
  opacity: 0.8;
}

.iconBtn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
}

.iconBtn__text {
  font-size: 14px;
}

.iconBtn__caret {
  margin-left: 6px;
  font-size: 14px;
  line-height: 1;
  opacity: .9;
}

#detailSaveWrap .dd__panel {
  right: 0;
  left: auto;
}

.detailTitle {
  margin: 0 0 2px 0;
  font-size: 26px;
  line-height: 1.15;
}

.detailLoc__link {
  text-decoration: none;
  color: var(--muted);
}

.detailLoc__link:hover {
  text-decoration: underline;
}

.detailLike--left {
  left: 10px;
  right: auto;
  top: 10px;
}

.cHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 14px;
}

.cHead__title {
  font-weight: 700;
  font-size: 18px;
}


/* ========================================================================== */
/* cComposer */
/* ========================================================================== */

.cComposer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.cComposer__reply {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.cComposer__reply.hidden {
  display: none;
}

.cReplyCancel {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 16px;
  padding: 0;
}

.cReplyCancel:hover {
  background: #f8fafc;
}

.cComposer__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  background: #e9eef6;
}

.cComposer__input {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  min-height: 44px;
  line-height: 1.2;
}

.cComposer__send {
  border-radius: 14px;
  padding: 10px 14px;
}

.cItem {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cItem__avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  background: #e9eef6;
}

.cItem__main {
  flex: 1;
  min-width: 0;
}

.cItem__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cItem__author {
  font-weight: 700;
}

.cItem__time {
  font-size: 13px;
}

.cItem__body {
  margin: 6px 0 8px 0;
  white-space: pre-wrap;
}

.cReplyBtn {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.cReplyBtn:hover {
  background: #f8fafc;
}

.cItem--reply {
  border-bottom: none;
  padding: 12px 0;
}

.cList {
  padding-top: 8px;
  border: none;
}

.cReplies {
  margin-top: 10px;
  border-left: none;
  padding-left: 14px;
}

.detailTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detailLoc {
  margin-bottom: 24px;
}

.detailActions .iconBtn__icon svg {
  display: block;
}

.detailActions .iconBtn__icon {
  color: #000;
}

:root {
  --font: "Inter",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  --bg: #fff;
  --fg: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --radius: 18px;
  --mobile-topbar-h: 124px;
  --mobile-bottom-bar-h: 64px;
  --wikifacts-bg: rgba(99,102,241,0.04);
  --wikifacts-border: rgba(17,24,39,0.10);
  --wikifacts-text: var(--fg);
  --wikifacts-muted: var(--muted);
  --wikifacts-link: rgba(37,99,235,0.95);
  --wikifacts-linkhover: rgba(37,99,235,1);
}

@media (max-width:768px) {
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1502;
    padding: 12px 12px 10px;
    background: #fff;
    backdrop-filter: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border);
  }


/* ========================================================================== */
/* searchField */
/* ========================================================================== */

  .searchField input {
    padding: 10px 14px;
  }

  .searchField .search-btn .btnText {
    display: none !important;
  }

  .searchField .search-btn i,.searchField .search-btn svg {
    display: inline-block !important;
    font-size: 18px;
  }

  #topbarBrand {
    order: 1;
  }

  #topbarAuth {
    order: 2;
  }


/* ========================================================================== */
/* topbarSearch */
/* ========================================================================== */

  #topbarSearch {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    width: 100%;
  }

  .topbar .search {
    width: 100%;
    max-width: none;
  }

  .topbar .auth>#btnLogin,.topbar .auth>#btnRegister,.topbar .auth>#btnAddPlace,.topbar .auth>#btnLogout {
    display: none !important;
  }

  .search input {
    padding: 16px 16px;
  }

  .search button,.search .search-btn {
    padding: 16px 16px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .search-btn {
    font-weight: 700;
  }

  #detailShare .iconBtn__text,#detailSaveBtn .iconBtn__text {
    display: none;
  }

  body {
    padding-top: var(--mobile-topbar-h);
    padding-bottom: var(--mobile-bottom-bar-h);
  }

  body.is-scrolled #topbarBrand,body.is-scrolled #topbarAuth {
    display: none !important;
  }

  .userMenuWrap {
    display: block;
  }

  .userMenuBtn {
    padding: 0 2px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .userMenuBtn__handle {
    display: none;
    order: 3;
  }

  .topbar.topbar--guest #topbarAuth {
    display: none !important;
  }

  .userMenuBtn__caret {
    order: 1;
    font-size: 12px;
    line-height: 1;
    color: var(--muted);
  }

  .userMenuBtn__avatar {
    order: 2;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border);
    object-fit: cover;
  }

  .mobileBottomBar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--mobile-bottom-bar-h);
    z-index: 1000;
    display: block;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 8px 10px;
  }

  .mobileBottomBar__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  .mobileBottomBar__btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
    background: transparent;
    text-decoration: none;
  }

  .mobileBottomBar__btn i {
    font-size: 22px;
  }

  .mobileBottomBar__btn:active {
    transform: scale(.98);
  }

  .drawerOverlay {
    position: fixed;
    inset: 0;
    z-index: 1599;
    background: rgba(0,0,0,.35);
  }

  .drawerOverlay.hidden {
    display: none;
  }

  .sidebar {
    display: block;
    top: 0;
    height: 100vh;
    width: min(84vw,320px);
    transform: translateX(-110%);
    transition: transform .22s ease;
    z-index: 1600;
    border-right: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    padding-top: 16px;
  }

  .sidebar.sidebar--open {
    transform: translateX(0);
  }

  .shell {
    padding-left: 0;
  }

  .shell__main {
    margin-left: 0;
  }

  .tagHead__toolsRow {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .tagHead__toolsRow>* {
    flex: 0 0 auto;
  }

  .cityTools__left {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 0 0 auto;
  }

  .tagHead__search {
    max-width: none;
    min-width: 240px;
  }

  .uiBackdrop {
    position: fixed;
    inset: 0;
    z-index: 1599;
    background: rgba(0,0,0,.18);
  }

  .uiBackdrop.hidden {
    display: none;
  }

  .uiDropdownPortal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
  }

  .dropdown.is-portal {
    position: fixed !important;
    z-index: 1201;
    pointer-events: auto;
    right: auto !important;
    top: 0;
    left: 0;
  }
}

@media (max-width:768px) {
  .search-btn__text {
    display: none !important;
  }
}

@media (min-width:769px) {
  .mobileBottomBar {
    display: none;
  }

  .searchField .search-btn .btnText {
    display: inline !important;
  }

  .drawerOverlay {
    display: none !important;
  }
}

#guestBanner {
  margin-top: auto;
}

#guestBanner.hidden {
  display: none;
}

.placeAdd>div {
  margin-bottom: 14px;
  position: relative;
  overflow: visible;
}

.profileEdit input[disabled] {
  opacity: 1;
  color: inherit;
  background: #fff;
  cursor: not-allowed;
}

.profileEdit input,.profileEdit textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  outline: none;
}

#avatarDrop {
  cursor: pointer;
}

#avatarDrop.on {
  outline: 2px solid rgba(7,220,67,.35);
  outline-offset: 2px;
}

.atCard[data-open-place] {
  cursor: pointer;
}

.atCard.is-skeleton {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.atCard.is-skeleton img {
  filter: grayscale(1);
  opacity: 0.65;
}

.atCard.is-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-60%);
  background: linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.65),rgba(255,255,255,0));
  animation: altitripSkeleton 1.2s ease-in-out infinite;
}

@keyframes altitripSkeleton {
  0% {
    transform: translateX(-60%);
  }

  100% {
    transform: translateX(60%);
  }
}

.topbar .search {
  position: relative;
}


/* ========================================================================== */
/* searchSuggest */
/* ========================================================================== */

.searchSuggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  overflow: hidden;
}

.searchSuggest__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.searchSuggest__row:hover,.searchSuggest__row.is-active {
  background: rgba(25,177,90,0.10);
}

.searchSuggest__left {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.04);
  overflow: hidden;
  flex: 0 0 28px;
}

.searchSuggest__img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.searchSuggest__text {
  min-width: 0;
  flex: 1;
}

.searchSuggest__label {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.searchSuggest__subtitle {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.searchSuggest__empty {
  padding: 10px 12px;
  color: rgba(0,0,0,0.55);
  font-size: 13px;
}

.uiBackdrop {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgba(0,0,0,.18);
}

.uiBackdrop.hidden {
  display: none;
}

#uiBackdrop.topSearchBackdrop {
  background: rgba(0,0,0,0.45);
  z-index: 1500;
}

#uiBackdrop.travelBackdrop {
  background: rgba(0,0,0,0.45);
  z-index: 8990;
}

@media (min-width:768px) {
  .topbar.isTopSearchOpen {
    position: sticky;
    top: 0;
    z-index: 1502;
  }

  #topbarSearch {
    max-width: 380px;
    transition: max-width .28s ease;
    will-change: max-width;
  }

  .topbar.isTopSearchOpen #topbarSearch {
    max-width: 60vw;
  }

  .topbar.isTopSearchOpen .search {
    width: 100%;
    max-width: none;
  }

  .topbar.isTopSearchOpen #topbarBrand,.topbar.isTopSearchOpen #topbarAuth {
    opacity: .25;
    pointer-events: none;
  }
}

.topbar.isTopSearchOpen .searchSuggest {
  z-index: 1503;
}

.topbar.isTopSearchOpen .searchSuggest__row {
  padding: 14px 14px;
  gap: 12px;
}

.topbar.isTopSearchOpen .searchSuggest__left {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 18px;
}

.topbar.isTopSearchOpen .searchSuggest__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar.isTopSearchOpen .searchSuggest__label {
  font-size: 18px;
  line-height: 1.15;
}

.topbar.isTopSearchOpen .searchSuggest__subtitle {
  font-size: 14px;
  margin-top: 4px;
}

.topbar.isTopSearchOpen .searchSuggest__empty {
  padding: 14px 14px;
  font-size: 14px;
}

.searchSuggest__recent {
  padding: 14px 14px 18px;
}

.searchSuggest__recentTitle {
  font-weight: 700;
  margin-bottom: 10px;
}

.searchSuggest__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.searchSuggest__chip {
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.searchSuggest__chip:hover {
  background: rgba(0,0,0,0.04);
}

.topbarSearch,.topbar .topbarSearch,.topbar form.topbarSearch,.topbar .search.topbarSearch,#topbarSearch {
  position: relative;
  display: flex;
  align-items: center;
  width: min(560px,100%);
  transition: width 180ms ease,max-width 180ms ease,margin 180ms ease;
}

@media (min-width:768px) {
  #topbarBrand,#topbarAuth {
    transition: opacity 180ms ease;
  }
}

.topbarSearch input,.topbarSearch .topbarSearch__input {
  width: 100%;
  border-radius: 999px;
  font-weight: 500;
  padding: 10px 14px 10px 5px;
  padding-left: 40px;
}

.topbarSearch .search-input__icon,.topbarSearch .topbarSearch__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbarSearch button,.topbarSearch .topbarSearch__btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 12px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

@media (min-width:761px) {
  .topbarSearch .search-btn__icon {
    display: none !important;
  }

  .topbarSearch .search-btn__text {
    display: inline !important;
  }

  .topbarSearch .search-input__icon,.topbarSearch .topbarSearch__icon {
    display: inline-flex !important;
  }

  .topbarSearch input,.topbarSearch .topbarSearch__input {
    padding-left: 40px;
  }
}

@media (max-width:760px) {
  .topbarSearch .search-input__icon,.topbarSearch .topbarSearch__icon {
    display: none !important;
  }

  .topbarSearch input,.topbarSearch .topbarSearch__input {
    padding-left: 14px;
  }

  .topbarSearch .search-btn__text {
    display: none !important;
  }

  .topbarSearch .search-btn__icon {
    display: inline-flex !important;
  }
}

.searchField {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e6eaf2;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(16,24,40,.08);
  overflow: hidden;
  padding-left: 0;
}

body.isTopSearchOpen {
  overflow: visible;
}

.topSearchResult__img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: #f0f2f6;
  border: 1px solid #e7eaf2;
  flex: 0 0 64px;
}

.topSearchResult__txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.topSearchResult__t {
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topSearchResult__s {
  font-size: 13px;
  color: rgba(0,0,0,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width:769px) {
  .searchField {
    padding-left: 16px;
    box-shadow: none;
  }

  .searchField .search-btn {
    padding: 15px 24px;
  }

  .searchField .search-btn i,.searchField .search-btn svg {
    display: none !important;
  }

  .searchField .search-btn .btnText {
    display: inline !important;
  }
}

@media (max-width:768px) {
  .searchField {
    padding-left: 14px;
  }

  .searchField i {
    display: none;
  }

  .searchField input {
    padding: 10px 14px;
  }

  .searchField .search-btn .btnText {
    display: none !important;
  }

  .searchField .search-btn i,.searchField .search-btn svg {
    display: inline-block !important;
    font-size: 18px;
  }
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(15,23,42,.28) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(15,23,42,.28);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(15,23,42,.40);
}

.iconBtn--green {
  border-color: rgba(0,0,0,.12);
  background: #07dc43 !important;
  color: #000;
}

.iconBtn--green:hover {
  filter: brightness(.96);
}

@media (max-width:760px) {
  .detailTop__time {
    display: inline-block;
    max-width: 92px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
}

#btnAddPlace.primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iconBtn--green .iconBtn__icon,.iconBtn--green .iconBtn__icon i {
  color: inherit;
}

@media (max-width:520px) {
  .cComposer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cComposer__avatar {
    display: none;
  }

  .cComposer__input {
    width: 100%;
  }

  .cComposer__send {
    width: 100%;
  }
}

@media (max-width:520px) {
  .placeAdd__row {
    flex-direction: column;
    align-items: stretch;
  }

  #pLocMe {
    width: 100%;
  }
}

.similarTags {
  margin-top: 16px;
}

.similarTags__head {
  font-weight: 700;
  margin: 0 0 8px;
}

.similarTags__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.similarTags .tagbtn {
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  font-size: 13px;
}

.similarTags .tagbtn:hover {
  border-color: #0f172a;
}

.detailTop__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.detailTop__time {
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb--compact {
  margin: 6px 0 10px;
  font-size: 13px;
}

.routeEditor {
  display: flex;
  min-height: calc(100vh - 72px);
  gap: 0;
  background: #f7f8fb;
  border-radius: 16px;
  overflow: hidden;
}

.routeEditor__sidebar {
  width: 420px;
  max-width: 100%;
  background: #fff;
  border-right: 1px solid #e7eaf2;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.routeEditor__add {
  position: relative;
}

.routeEditor__add input {
  width: 100%;
}

.routeEditor__add .suggest {
  z-index: 2000;
}

.routeEditor__sidebar.is-disabled {
  opacity: .15;
  pointer-events: none;
}

.routeEditor__sidebar.is-disabled * {
  cursor: not-allowed;
}

.rtDotIcon {
  background: transparent;
  border: 0;
}

.rtDotIcon .rtDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00ff3b;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.routeEditor__map {
  flex: 1;
  min-height: 520px;
  position: relative;
}

.rtGeoOverlay {
  position: absolute;
  inset: 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
}

.rtGeoOverlay.hidden {
  display: none;
}

.rtGeoOverlay__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rtGeoOverlay__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.rtGeoOverlay__top .suggest {
  margin-top: 8px;
  max-height: 340px;
  overflow: auto;
  z-index: 4001;
}

.routeSearchField--big input {
  height: 46px;
  font-size: 15px;
}

.rtGeoOverlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
}

.rtGeoOverlay__top {
  padding: 14px;
  pointer-events: auto;
  position: relative;
}

.textLink {
  color: var(--muted);
  text-decoration: none;
}

.textLink:hover {
  text-decoration: underline;
}

.routeEditor__titleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.routeEditor__titleLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.routeEditor__titleLeft {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.routeEditor__titleLeft h1 {
  font-size: 26px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.routeEditor__titleActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visPill {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e7eaf2;
  background: #fff;
  cursor: default;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.visPill:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.routeEditor__titleActions .iconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.routeEditor__metaRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.routeEditor__mode {
  display: flex;
  align-items: center;
}

.modeToggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #e7eaf2;
  background: #f3f5fa;
}

.modeToggle__btn {
  width: 36px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.modeToggle__btn.is-active {
  background: #07dc43;
  color: #000;
}

.modeToggle__btn:focus {
  outline: 2px solid rgba(7,220,67,.35);
  outline-offset: 2px;
}

.routeEditor__visibility {
  position: relative;
}

.routeEditor__visibility .citySelect {
  min-width: 160px;
  max-width: 200px;
  width: 200px;
}

.routeEditor__visibility .dropdown {
  top: 46px;
  right: 0;
}

.routeEditor__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.routeItem {
  display: flex;
  gap: 10px;
  align-items: stretch;
  border: 1px solid #e7eaf2;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.routeItem.is-dragging {
  opacity: .6;
}

.routeItem__handle {
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a93a6;
  cursor: grab;
  user-select: none;
}

.routeItem__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #f0f2f6;
  border: 1px solid #e7eaf2;
}

.routeItem__thumb--empty {
  display: inline-block;
}

.routeItem__thumb--custom {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-color: #0f172a;
  color: #fff;
}

.routeItem__thumb--custom svg {
  display: block;
}

.routeItem__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.routeItem__sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.routeItem__note {
  font-size: 12px;
  color: #2d3442;
}

.routeItem__noteBtn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 0;
  height: auto;
}

.routeItem__noteEdit {
  margin-top: 6px;
}

.routeItem__noteEdit textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
}

.routeItem__noteActions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.routeItem__noteActions .primary {
  padding: 8px 12px;
  border-radius: 10px;
}

.routeEditor__addCustom {
  margin-top: 6px;
  align-self: flex-start;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch input {
  transform: scale(1.1);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 99999;
}

.modal.hidden {
  display: none;
}

.modal__card {
  width: min(520px,92vw);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e7eaf2;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e7eaf2;
}

.modal__title {
  font-weight: 800;
}

.modal__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal.modal--addplace .modal__card {
  min-height: 360px;
  width: min(680px,92vw);
}

.modal.modal--addplace #modalBody {
  padding: 10px;
}

@media (max-width:900px) {
  /* Messages: mobile-only layout tweaks */
  body.is-messages #topbar,
  body.is-messages header.topbar {
    display: none;
  }

  .routeEditor {
    flex-direction: column;
  }

  .routeEditor__sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #e7eaf2;
  }

  .routeEditor__map {
    min-height: 380px;
  }
}

.rtMobileBack,.rtMobileDrawerBtn {
  display: none;
}

.rtDrawerHandleWrap {
  display: none;
}

.srOnly {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.rtDrawerHandle {
  display: block;
  width: 22px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(0,0,0,.25);
  box-shadow: none;
  line-height: 0;
  font-size: 0;
}

.rtDrawerHandle:active {
  transform: scale(.99);
}

@media (max-width:900px) {
  /* Messages: mobile-only layout tweaks */
  body.is-messages #topbar,
  body.is-messages header.topbar {
    display: none;
  }


/* ========================================================================== */
/* is-route-creator */
/* ========================================================================== */

  body.is-route-creator .routeEditor {
    min-height: 100vh;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  body.is-route-creator .routeEditor__map {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    width: 100vw;
    z-index: 1;
  }

  body.is-route-creator .routeEditor__sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(78vh,680px);
    width: 100vw;
    max-width: 100vw;
    transform: translateY(calc(100% - var(--rt-drawer-peek,150px)));
    transition: transform .22s ease;
    z-index: 10002;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid #e7eaf2;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 46px rgba(0,0,0,.18);
    overflow: auto;
    padding-top: 24px;
  }

  body.is-route-creator.rtDrawerOpen .routeEditor__sidebar {
    transform: translateY(0);
  }

  body.is-route-creator.rtDrawerSuppressed .routeEditor__sidebar {
    transform: translateY(100%) !important;
  }

  body.is-route-creator.rtDrawerSuppressed .rtDrawerBackdrop {
    display: none !important;
  }

  body.is-route-creator .rtDrawerHandleWrap {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    z-index: 10003;
    pointer-events: none;
  }

  body.is-route-creator .rtDrawerHandle {
    pointer-events: auto;
  }

  body.is-route-creator .rtDrawerBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 10001;
  }

  body.is-route-creator .rtDrawerBackdrop.hidden {
    display: none;
  }

  body.is-route-creator .rtMobileBack {
    display: none;
  }

  body.is-route-creator .rtMobileDrawerBtn {
    display: none;
  }

  body.is-route-creator .routeEditor__addCustom {
    width: 100%;
    align-self: stretch;
    justify-content: flex-start;
  }
}


/* ========================================================================== */
/* routePreview */
/* ========================================================================== */

.routePreview__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.routePreview__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.routePreview__avatarLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.routePreview__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e7eaf2;
  background: #f0f2f6;
}

.routePreview__authorText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.routePreview__authorNameLink {
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.routePreview__authorNameLink:hover {
  text-decoration: underline;
}

.routePreview__date {
  font-size: 12px;
}

.routePreview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.routePreview__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.routePreview__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.routePreview__right .iconBtn__icon {
  width: 16px;
}

.routePreview__right .iconBtn__icon svg {
  display: block;
}

.routePreview__saveBtn.is-saved {
  opacity: .85;
}

.routePreview__meta {
  margin-top: 6px;
}

.routePreview--public .routePreview__title {
  font-size: 24px;
  line-height: 1.2;
}

.routePreview__loc,.routePreview__count {
  font-size: 14px;
  line-height: 1.2;
}

.routePreview__gmapsRow {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.routePreview {
  max-width: var(--container-max,1120px);
  margin: 0 auto;
  padding: 16px;
  position: relative;
}

.routePreview.is-loading .rpReal {
  opacity: 0;
  pointer-events: none;
}

.rpSkeletonOverlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

#rpGmapsAnchor {
  display: none !important;
}

@media (max-width:760px) {
  .routePreview__topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .routePreview__right {
    width: 100%;
    justify-content: flex-end;
  }

  .routePreview__head {
    margin-top: 10px;
  }

  .routePreview__gmapsRow {
    justify-content: flex-start;
  }
}

.routePreview__split {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.routePreview__splitMap {
  order: 1;
}

.routePreview__splitList {
  order: 2;
}

.routePreview__map {
  height: 460px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e7eaf2;
  background: #f0f2f6;
}

@media (min-width:981px) {
  .routePreview__split {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }

  .routePreview__splitList {
    order: 1;
    flex: 2 1 0;
    min-width: 0;
  }

  .routePreview__splitMap {
    order: 2;
    flex: 1 1 0;
    min-width: 280px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
  }

  .routePreview__map {
    height: 100%;
    margin-top: 0;
  }

  .routePreview__gmapsRow.is-empty {
    display: none;
  }
}

.routePreview__gmapsBtn--top {
  margin-left: 12px;
}

.rpTimeline {
  margin-top: 0;
  margin-left: 0;
  display: flex;
  flex-direction: column;
}

.rpTDelta {
  font-size: 12px;
  margin: 0 0 6px 10px;
}

.rpTItem {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  gap: 14px;
  align-items: center;
}

.rpTLane {
  position: relative;
  align-self: stretch;
}

.rpTLane::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 2px solid rgba(7,220,67,0.35);
  transform: translateX(-50%);
}

.rpTItem:first-child .rpTLane::before {
  top: 50%;
}

.rpTItem:last-child .rpTLane::before {
  bottom: 50%;
}

.rpTStep {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #07dc43;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
}

.rpTStepNum {
  display: none;
}

.rpTStem,.rpTStem--end {
  display: none;
}

.rpTCard {
  display: flex;
  gap: 12px;
  align-items: stretch;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  min-width: 0;
  max-width: 100%;
  transition: background .15s ease;
}

.rpTMain {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.rpTItem.is-hover .rpTCard {
  background: #f3f4f6;
}

.rpTActions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.rpTActions .iconBtn {
  font-weight: 500;
}

.rpTActions .iconBtn__text {
  white-space: nowrap;
}

.rpTImg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: #f0f2f6;
  border: 1px solid #e7eaf2;
  flex: 0 0 auto;
}

.rpTImg--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f6;
  border: 1px solid #e7eaf2;
  position: relative;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url(/public/assets/img/place_placeholder.svg);
}

.rpTBody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.rpTTitle {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.rpTSub {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width:760px) {
  .routePreview__map {
    height: 360px;
  }

  .routePreview__title {
    font-size: 28px;
  }

  .routePreview--public .routePreview__title {
    font-size: 22px;
  }

  .rpTImg {
    width: 72px;
    height: 72px;
  }

  .rpTCard {
    flex-direction: column;
    gap: 10px;
  }

  .rpTActions {
    margin-left: 0;
    justify-content: flex-start;
  }

  .rpTActions .iconBtn {
    width: 100%;
    justify-content: center;
  }

  .rpTTitle,.rpTSub,.rpTNote {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .rpTTitle {
    -webkit-line-clamp: 2;
  }

  .rpTSub {
    -webkit-line-clamp: 2;
  }

  .rpTNote {
    -webkit-line-clamp: 3;
  }

  .rpTStep {
    top: 50px;
  }

  .rpTItem:first-child .rpTLane::before {
    top: 50px;
  }

  .rpTItem:last-child .rpTLane::before {
    bottom: calc(100% - 50px);
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #e9edf3;
  border-radius: 12px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
  animation: skShimmer 1.1s infinite;
}

@keyframes skShimmer {
  100% {
    transform: translateX(100%);
  }
}

.sk-ava {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.sk-line {
  height: 12px;
  border-radius: 999px;
  margin: 3px 0;
}

.sk-title {
  height: 28px;
  border-radius: 14px;
  margin: 4px 0;
}

.sk-btn {
  height: 38px;
  border-radius: 999px;
}

.sk-map {
  height: 100%;
  min-height: 280px;
}

.sk-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

@media (max-width:760px) {
  .routePreview--public .routePreview__title {
    font-size: 22px;
  }
}

body.is-route-creator .shell,body.is-route-creator .shell__main,body.is-route-creator main.shell__main,body.is-route-creator .container {
  max-width: none;
  width: 100%;
}

body.is-route-creator .container {
  padding: 0;
}

body.is-route-creator .shell {
  min-height: 100vh;
}

body.is-route-creator .routeEditor {
  position: fixed;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
  min-height: 100vh;
}

body.is-route-creator .routeEditor__map {
  min-height: 100vh;
}

@media (min-width:901px) {
  body.is-route-creator .routeEditor__sidebar {
    height: 100vh;
    overflow: auto;
  }
}

html.is-route-creator,body.is-route-creator {
  overflow: hidden;
}

.routeEditor__title {
  font-size: 26px;
  line-height: 1.15;
}

.rtTopRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rtPublishBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.18);
  color: inherit;
  font-weight: 600;
}

.rtPublishBtn:hover {
  background: rgba(0,0,0,.03);
}

.rtPublishBtn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iconBtn.iconBtn--plain {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 4px;
}

.iconBtn.iconBtn--plain:hover {
  background: transparent;
}


/* ========================================================================== */
/* cookieConsent */
/* ========================================================================== */

.cookieConsent {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
}

.cookieConsent.hidden {
  display: none;
}

.cookieConsent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.cookieConsent__card {
  position: relative;
  max-width: 760px;
  width: min(760px,92vw);
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}

.cookieConsent__title {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
}

.cookieConsent__text {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.cookieConsent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookieConsent__prefs {
  margin-top: 10px;
}

.cookieConsent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

.cookieConsent__rowTitle {
  font-weight: 700;
}

.cookieConsent__switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(0,0,0,.06);
  position: relative;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
}

.cookieConsent__switch .cookieConsent__dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transform: translateX(2px);
  transition: transform .18s ease;
}

.cookieConsent__switch.is-on {
  background: rgba(46,166,107,.20);
  border-color: rgba(46,166,107,.45);
}

.cookieConsent__switch.is-on .cookieConsent__dot {
  transform: translateX(22px);
}

.cookieConsent__switch.is-locked {
  opacity: .55;
  cursor: not-allowed;
}

.cookieConsent__links {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
}

@media (max-width:520px) {
  .cookieConsent {
    padding: 12px;
  }

  .cookieConsent__card {
    padding: 16px;
  }
}

body.is-route-creator .topbar,body.is-route-creator .sidebar,body.is-route-creator footer,body.is-route-creator .mobileNav {
  display: none !important;
}

.input {
  width: 100%;
  border: 1px solid #e7eaf2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.2;
  background-color: #fff;
  color: #111827;
}

.input--solid {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  border-color: #dbe2f0;
}

.input::placeholder {
  color: #9aa3b2;
}

.input:focus {
  outline: none;
  border-color: #07dc43;
  box-shadow: 0 0 0 3px rgba(7,220,67,0.18);
}

textarea.input {
  resize: vertical;
  min-height: 96px;
}

body.is-route-creator .routeEditor__add .suggest {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin-top: 6px;
  z-index: 5000;
}

.rpStat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
}

.rpTNote {
  margin-top: 6px;
  font-size: 13px;
  color: #111;
  white-space: pre-wrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.routePreview__stats {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logoImg {
  height: 28px;
  width: auto;
  display: block;
}

.searchField input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
}

.searchField .search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: #07dc43;
  color: #000;
  margin: 0;
  border-radius: 9999px;
  padding: 15px 24px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(7,220,67,.20);
  cursor: pointer;
}

.userMenuBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 44px;
}

.userMenuBtn__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

#btnAddPlace {
  height: 44px;
  display: inline-flex;
  align-items: center;
}

#btnLogin,#btnRegister {
  height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width:768px) {
  .searchField .search-btn {
    padding: 12px 18px;
  }
}

html.isAuthed .sidebarSection .sidebar__links>*:nth-child(n/**/+7) {
  display: none;
}

html.isAuthed .sidebarSection.is-expanded .sidebar__links>* {
  display: block;
}

.sidebarMoreLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  margin-left: 10px;
  color: #07dc43;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
}

.sidebarMoreLink:focus {
  outline: none;
  text-decoration: underline;
}

#followedTagsSection,#myListsSection {
  margin-top: 24px;
}

html:not(.isAuthed) #followedTagsSection,html:not(.isAuthed) #myListsSection {
  display: none !important;
}

html:not(.isAuthed) .sidebarMoreLink {
  display: none !important;
}

.home-h1 {
  font-size: 32px;
  margin: 14px 0 14px 0;
}

.home .home-cities {
  margin: 14px 0 36px;
}

.homeVideo {
  margin: 24px 0 68px;
}

.homeVideo video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.homeFeedWrap {
  position: relative;
}

.routeSearchField {
  position: relative;
}

.routeSearchField .searchIcon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #64748b;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.routeSearchField input {
  padding-left: 44px;
}

.suggest__item--place {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggest__thumb {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 34px;
  background: #eef2f7;
}

.suggest__thumb.placeholder {
  display: inline-block;
}

.suggest__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suggest__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.suggest__more {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-top: 1px solid #eef2f7;
}

.suggest__more:hover {
  background: #f7f9fc;
  color: #0f172a;
}

.u-underline {
  text-decoration: underline;
}

.routeEditor__add .filterSearchField {
  display: block;
  width: 100%;
}

.routeEditor__add .filterSearchField input {
  width: 100%;
}

.routeEditor__add .routeAdd__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.routeEditor__add .routeSearchField .searchIcon {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.routeItem__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.routeItem__title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.routeItem__open {
  padding: 4px;
}

.routeItem__del {
  padding: 4px;
}

.routeItem__actions {
  margin-top: 8px;
}

.mlTabs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0 16px;
}

.mlTab {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
}

.mlTab:hover {
  background: #f8fafc;
}

.mlTab.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.iconBtn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 500;
}

.detailActions .iconBtn {
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  color: #000;
  align-items: center;
}

.routePreview__right .iconBtn {
  font-size: 14px;
  font-weight: 500;
}

html.is-messages,body.is-messages {
  height: 100%;
}

body.is-messages .shell__main {
  display: flex;
  flex: 1;
  min-height: 0;
}

body.is-messages .shell__main>.container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex: 1;
  min-height: 0;
}

body.is-messages .messagesPage {
  display: flex;
  flex: 1;
  min-height: 0;
}

body.is-messages #messagesApp.messages {
  flex: 1;
  min-height: 0;
}

body.is-messages .messages {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  /* full height (topbar hidden), keep space for bottom bar */
    height: calc(100vh - var(--alt-mobilebar-h,64px) - env(safe-area-inset-bottom));
  width: calc(100vw - 275px);
  min-height: 0;
}

@media (max-width:900px) {
  /* Messages: mobile-only layout tweaks */
  body.is-messages #topbar,
  body.is-messages header.topbar {
    display: none;
  }

  body.is-messages .messages {
    grid-template-columns: 1fr;
    width: 100vw;
  }
}

body.is-messages .msgList {
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 10px;
  background: #fff;
  overflow: auto;
}

body.is-messages .msgPanel {
  border: 0;
  border-radius: 0;
  background: #fff;
  min-height: 0;
}

body.is-messages footer {
  margin-top: 0;
}

body.is-messages .msgThread .p {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notifHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 16px;
}

.notifHeader h1 {
  font-size: 26px;
  margin: 0;
}

.notifList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notifItem {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.notifItem.is-unread {
  background: rgba(255,255,255,0.02);
}

.notifItem.is-unread .notifText>div:first-child {
  font-weight: 500;
}

.notifText {
  flex: 1;
  line-height: 1.35;
}

.notifText a {
  color: inherit;
  text-decoration: underline;
}

.notifMeta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.notifActions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toggleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

.toggleRow__text {
  line-height: 1.3;
}


/* ========================================================================== */
/* toggle */
/* ========================================================================== */

.toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 12px;
  flex: 0 0 auto;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle span {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border: 1px solid var(--border);
  transition: .18s;
  border-radius: 999px;
}

.toggle span:before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  transition: .18s;
  border-radius: 999px;
}

.toggle input:checked+span {
  background: rgba(15,23,42,.22);
  border-color: rgba(15,23,42,.22);
}

.toggle input:checked+span:before {
  transform: translateX(18px);
}

.settingsHeader {
  margin: 10px 0 16px;
}

.settingsHeader h1 {
  font-size: 26px;
  margin: 0 0 10px 0;
}

.settingsSectionTitle {
  font-size: 20px;
  margin: 0 0 10px 0;
}

.deleteAccountNote {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  margin-bottom: 10px;
  background: var(--card);
}

.deleteAccountNote__mail {
  display: inline-block;
  margin-top: 8px;
  text-decoration: underline;
  color: var(--fg);
}

.staticPage {
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 0 40px 0;
}

.staticPage h1 {
  font-size: 26px;
  margin: 0 0 14px 0;
}

.staticPage h2 {
  font-size: 18px;
  margin: 18px 0 10px 0;
}

.staticPage p,.staticPage li {
  line-height: 1.55;
}

.staticPage ul {
  padding-left: 18px;
}

.staticPage a {
  text-decoration: underline;
}

.faqItem {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
}

.faqItem strong {
  display: block;
  margin-bottom: 6px;
}

.contactForm {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 16px;
}

.contactGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contactGrid .full {
  grid-column: 1 / -1;
}

.formLabel {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px 0;
}

.formInput,.formSelect,.formTextarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

.formTextarea {
  min-height: 120px;
  resize: vertical;
}

.formError {
  font-size: 12px;
  color: #b42318;
  margin-top: 6px;
}

.formOk {
  border: 1px solid rgba(22,163,74,.35);
  background: rgba(22,163,74,.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
}

.formAlert {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
}

.formAlert--ok {
  border: 1px solid rgba(22,163,74,.35);
  background: rgba(22,163,74,.08);
}

.contactActions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

@media (max-width:768px) {
  .contactGrid {
    grid-template-columns: 1fr;
  }
}

.footer__inner--split {
  justify-content: space-between;
  align-items: center;
}

.footer__left {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer__right {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
}

.footer__social:hover {
  color: var(--fg);
  background: var(--card);
}

.footer__rights {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.footerLang {
  position: relative;
}

.footerLang__btn {
  list-style: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--fg);
  font-size: 13px;
}

.footerLang__btn::-webkit-details-marker {
  display: none;
}

.footerLang[open] .footerLang__btn {
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

.footerLang__panel {
  position: absolute;
  right: 0;
  bottom: 46px;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
  padding: 8px;
  z-index: 80;
}

.footerLang__opt {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--fg);
}

.footerLang__opt:hover {
  background: var(--card);
}

@media (max-width:640px) {
  .footer__inner--split {
    justify-content: center;
  }

  .footer__right {
    justify-content: center;
  }

  .footer__rights {
    white-space: normal;
    text-align: center;
  }

  .footerLang__panel {
    right: auto;
    left: 0;
  }
}


/* ========================================================================== */
/* themeToggle */
/* ========================================================================== */

.themeToggle {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
}

.themeToggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.themeToggle__label {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(2,6,23,.06);
}

.themeToggle__label:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transition: transform .18s ease;
}

.themeToggle__input:focus+.themeToggle__label {
  outline: 2px solid rgba(2,6,23,.25);
  outline-offset: 2px;
}

.themeToggle__input:checked+.themeToggle__label {
  background: #22c55e;
}

.themeToggle__input:checked+.themeToggle__label:after {
  transform: translateX(20px);
}

.tagpick__btn {
  background: transparent;
}

@media (max-width:768px) {
  .userMenuBtn__avatar {
    order: 2;
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px;
    border: 1px solid var(--border);
    object-fit: cover;
  }

  .tagpick__btn {
    background: transparent;
  }
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --fg: #ffffff;
  --muted: #7c8aa5;
  --border: #1f2a3a;
  --shadow: 0 10px 30px rgba(0,0,0,.38);
  --wikifacts-bg: rgba(255,255,255,0.03);
  --wikifacts-border: rgba(255,255,255,0.10);
  --wikifacts-text: var(--fg);
  --wikifacts-muted: var(--muted);
  --wikifacts-link: rgba(96,165,250,0.95);
  --wikifacts-linkhover: rgba(96,165,250,1);
}

html[data-theme="dark"] body {
  background: var(--bg) !important;
  color: var(--fg) !important;
}

html[data-theme="dark"] .topbar,html[data-theme="dark"] .navbar,html[data-theme="dark"] header,html[data-theme="dark"] footer,html[data-theme="dark"] .sidebar {
  background-color: var(--bg) !important;
  color: var(--fg) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .sidebar__links a:hover {
  background: rgba(255,255,255,.06);
}

html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border);
}

html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder {
  color: #94a3b8;
}

html[data-theme="dark"] .card,html[data-theme="dark"] .panel,html[data-theme="dark"] .dropdown,html[data-theme="dark"] .dropdown-menu,html[data-theme="dark"] .toast,html[data-theme="dark"] .offcanvas,html[data-theme="dark"] .list-group-item,html[data-theme="dark"] .table,html[data-theme="dark"] .searchField,html[data-theme="dark"] .searchField input,html[data-theme="dark"] .content,html[data-theme="dark"] .container,html[data-theme="dark"] .container-fluid,html[data-theme="dark"] .searchSuggest,html[data-theme="dark"] .modal__panel {
  background: var(--bg);
  border-color: var(--border);
  color: var(--fg);
}

html[data-theme="dark"] .uiBackdrop {
  background: rgba(0,0,0,.45);
}

html[data-theme="dark"] .muted,html[data-theme="dark"] .text-muted {
  color: var(--muted) !important;
}

html[data-theme="dark"] .btn,html[data-theme="dark"] .primary,html[data-theme="dark"] .ghost,html[data-theme="dark"] .chip,html[data-theme="dark"] .tag,html[data-theme="dark"] .tagBtn {
  background: transparent !important;
  color: var(--fg) !important;
  border-color: rgba(255,255,255,.22) !important;
}

html[data-theme="dark"] .btn:hover,html[data-theme="dark"] .primary:hover,html[data-theme="dark"] .ghost:hover,html[data-theme="dark"] .chip:hover,html[data-theme="dark"] .tag:hover,html[data-theme="dark"] .tagBtn:hover {
  background: rgba(255,255,255,.06) !important;
}

html[data-theme="dark"] .search-btn,html[data-theme="dark"] #btnSearch {
  background: #07dc43 !important;
  border-color: transparent !important;
  color: #04120a !important;
}

html[data-theme="dark"] #btnRegister.btn--primary {
  background: var(--bg) !important;
}

html[data-theme="dark"] #pSend.btn--success {
  background: #07dc43 !important;
  border-color: transparent !important;
  color: #04120a !important;
}

html[data-theme="dark"] .themeToggle__label {
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

html[data-theme="dark"] .themeToggle__input:checked+.themeToggle__label {
  background: rgba(255,255,255,.16);
}

html[data-theme="dark"] .themeToggle__input:focus+.themeToggle__label {
  outline: 2px solid rgba(255,255,255,.25);
  outline-offset: 2px;
}

html[data-theme="dark"] .iconBtn {
  background: transparent;
}

html[data-theme="dark"] .iconBtn.mapBtn {
  border-color: #ffffff;
  color: #ffffff;
}

html[data-theme="dark"] .searchSuggest {
  background: #0b1220;
}

html[data-theme="dark"] .searchSuggest__chip {
  background: #121d34;
}

html[data-theme="dark"] .footerLang__btn {
  background: transparent;
}

html[data-theme="dark"] .tab {
  background: transparent;
}

html[data-theme="dark"] .tab.is-active {
  background: #ffffff;
  color: #141b2a;
}

html[data-theme="dark"] .sidebarMoreLink {
  color: #07dc43 !important;
}

.logoImg--dark {
  display: none;
}

html[data-theme="dark"] .logoImg--light {
  display: none;
}

html[data-theme="dark"] .logoImg--dark {
  display: inline-block;
}

html[data-theme="dark"] .mobileBottomBar {
  background: var(--bg) !important;
}

html[data-theme="dark"] .footerLang__menu {
  background: var(--bg) !important;
}

html[data-theme="dark"] .suggest {
  background: var(--bg) !important;
}

html[data-theme="dark"] .dd__panel {
  background: var(--bg) !important;
}

html[data-theme="dark"] .mlRowCard__author {
  color: #fff;
}

html[data-theme="dark"] body.is-messages .msgList {
  background: transparent;
}

html[data-theme="dark"] .routeItem {
  display: flex;
  gap: 10px;
  align-items: stretch;
  border: 1px solid #213150;
  border-radius: 12px;
  padding: 10px;
  background: transparent;
}

html[data-theme="dark"] .modeToggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #111c33;
}

html[data-theme="dark"] .rtPublishBtn {
  background: transparent;
}

.mlTab {
  background: transparent;
}

body.is-messages .msgPanel {
  background: transparent;
}

.switch,.toggle,.formSwitch {
  background: transparent;
}

.switch .dot,.toggle .dot,.formSwitch .dot {
  width: 18px;
  height: 18px;
}

.switch:hover,.toggle:hover,.formSwitch:hover {
  opacity: .8;
}

.iconDots:hover {
  background: transparent;
  opacity: .8;
}

html[data-theme="dark"] .mlTab.is-active {
  background-color: #ffffff;
  color: #141b2a;
}

html[data-theme="dark"] .kebabBtn:hover {
  background: transparent;
  opacity: .8;
}

html[data-theme="dark"] .mlThumb {
  border: 0;
}

html[data-theme="dark"] .msgThread.is-active,html[data-theme="dark"] .msgBubble.me {
  background: #080d18;
}

html[data-theme="dark"] body.is-route-creator .routeEditor__sidebar {
  background: var(--bg) !important;
}

@media (max-width:768px) {
  .userMenuBtn__avatar {
    width: 36px !important;
    height: 36px !important;
  }
}

html[data-theme="dark"] .mlTab.is-active {
  background-color: #ffffff;
  color: #141b2a;
}

html[data-theme="dark"] .kebabBtn:hover {
  background: transparent;
  opacity: 0.8;
}

html[data-theme="dark"] .mlThumb {
  border: 0;
}

html[data-theme="dark"] .msgThread.is-active,html[data-theme="dark"] .msgBubble.me {
  background: #080d18;
}

html[data-theme="dark"] body.is-route-creator .routeEditor__sidebar {
  background: var(--bg) !important;
}

@media (max-width:768px) {
  .userMenuBtn__avatar {
    width: 36px !important;
    height: 36px !important;
  }
}

html[data-theme="dark"] .modeToggle {
  border: 0;
}

html[data-theme="dark"] .modal__head {
  border-bottom: 1px solid #13203a;
}

html[data-theme="dark"] .modal__card {
  border: 0;
  background: var(--bg) !important;
}

html[data-theme="dark"] .mlTab:hover {
  background: transparent;
  opacity: .8;
}

html[data-theme="dark"] .placeAdd__manualPanel {
  background: transparent;
}

html[data-theme="dark"] .msgBubble {
  border: 0;
}

html[data-theme="dark"] .msgBubble.other {
  align-self: flex-start;
  text-align: left;
  background: rgb(14 23 40);
}

.dropdown__row {
  background: transparent;
  border: 0;
}

html[data-theme="dark"] .citySelect {
  border: 1px solid rgba(255,255,255,.22) !important;
}

html[data-theme="dark"] .dropdown__row:hover {
  background: transparent;
  opacity: .8;
}

html[data-theme="dark"] .dropdown__row svg,html[data-theme="dark"] .dropdown__row i,html[data-theme="dark"] .citySelect svg,html[data-theme="dark"] .citySelect i {
  color: #fff;
  fill: #fff;
}

.dropdown__row {
  background: transparent;
  border: 0;
}

.toggle {
  width: 44px !important;
  height: 24px !important;
}

.toggle span {
  border-radius: 999px !important;
}

.toggle span:before {
  width: 18px !important;
  height: 18px !important;
  left: 2px !important;
  bottom: 2px !important;
  border-radius: 999px !important;
}

.toggle input:checked+span:before {
  transform: translateX(20px) !important;
}

.toggle span:hover {
  opacity: .8;
}

html[data-theme="dark"] .citySelect {
  background: var(--bg) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #fff;
}

html[data-theme="dark"] .citySelect svg,html[data-theme="dark"] .citySelect i,html[data-theme="dark"] .iconBtn svg,html[data-theme="dark"] .iconBtn i,html[data-theme="dark"] .dropdown__row svg,html[data-theme="dark"] .dropdown__row i {
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
}

html[data-theme="dark"] .citySelect svg *,html[data-theme="dark"] .iconBtn svg *,html[data-theme="dark"] .dropdown__row svg * {
  fill: #fff !important;
  stroke: #fff !important;
}

html[data-theme="dark"] .toggle span {
  background: #111c33 !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}

html[data-theme="dark"] .toggle input:checked+span {
  background: #111c33 !important;
  border-color: rgba(255,255,255,.22) !important;
}

html[data-theme="dark"] .toggle span:before {
  background: #fff !important;
  border: 0 !important;
}

html:not([data-theme="dark"]) .toggle span {
  background: #fff !important;
  border: 1px solid rgba(15,23,42,.22) !important;
}

html:not([data-theme="dark"]) .toggle input:checked+span {
  background: #fff !important;
  border-color: rgba(15,23,42,.22) !important;
}

html:not([data-theme="dark"]) .toggle span:before {
  background: #0b1220 !important;
  border: 0 !important;
}

html[data-theme="dark"] .tagHead__follow .bi {
  color: #ffffff !important;
}

html[data-theme="dark"] .tagHead__follow {
  color: #ffffff !important;
}

html[data-theme="dark"] .distTile:not(.is-active) {
  background: transparent;
  border: 1px solid var(--border);
}

html[data-theme="dark"] .distTile:not(.is-active):hover {
  background: transparent;
  opacity: .8;
}

html[data-theme="dark"] .distTile.is-active {
  border-color: #07dc43;
  background: transparent;
}

.travelInfoCtaRow {
  margin: 10px 0 0;
}

.travelInfoCtaRow .travelInfoBtn {
  font-size: 14px;
  gap: 8px;
}


/* ========================================================================== */
/* travelDrawer */
/* ========================================================================== */

.travelDrawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 30vw;
  min-width: 340px;
  max-width: 540px;
  z-index: 9000;
  display: block;
}

@media (max-width:900px) {
  /* Messages: mobile-only layout tweaks */
  body.is-messages #topbar,
  body.is-messages header.topbar {
    display: none;
  }

  .travelDrawer {
    width: 100vw;
    min-width: 0;
  }
}

.travelDrawer__panel {
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .18s ease;
  display: flex;
  flex-direction: column;
}

.travelDrawer.is-open .travelDrawer__panel {
  transform: translateX(0);
}

.travelDrawer__head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.travelDrawer__titleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.travelDrawer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
}

.travelDrawer__close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.travelDrawer__close:hover {
  background: var(--card);
}

.travelDrawer__subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.travelDrawer__body {
  padding: 12px 14px 18px;
  overflow: auto;
  flex: 1;
}

.travelDrawer__loading,.travelDrawer__empty {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}

.travelDrawer__sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.travelCard {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 12px;
}

.travelCard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 800;
}

.travelCard__head i {
  color: var(--muted);
}

.travelCard ul {
  margin: 0;
  padding-left: 18px;
}

.travelCard li {
  line-height: 1.45;
  margin: 4px 0;
}

.uiBackdrop.travelBackdrop {
  display: block;
}

.modal .suggest {
  position: relative;
}

html[data-theme="dark"] .iconBtn.iconBtn--green .iconBtn__icon,html[data-theme="dark"] .iconBtn.iconBtn--green {
  color: #000;
}

.routePreview {
  max-width: none;
  margin: 0;
  padding: 0;
}

@media (min-width:981px) {
  .routePreview__splitList,.routePreview__splitMap {
    flex: 1 1 0;
  }
}

html[data-theme="dark"] .rpTCard {
  background: transparent;
}

html[data-theme="dark"] .rpTCard:hover {
  background: rgba(255,255,255,.06);
}

html[data-theme="dark"] .rpTImg {
  border: 0;
}

html[data-theme="dark"] .rpTNote {
  color: #fff;
}

.adSlotRow {
  margin-top: 24px;
}

.routePreview__gmapsBtn--top .iconBtn__icon {
  color: #000;
}

html[data-theme="dark"] .detailTop__actions .iconBtn--green .iconBtn__icon,html[data-theme="dark"] .detailTop__actions .iconBtn--green .iconBtn__icon i,html[data-theme="dark"] .detailTop__actions .iconBtn--green .iconBtn__icon svg,html[data-theme="dark"] .routePreview__top .iconBtn--green .iconBtn__icon,html[data-theme="dark"] .routePreview__top .iconBtn--green .iconBtn__icon i,html[data-theme="dark"] .routePreview__top .iconBtn--green .iconBtn__icon svg {
  color: #000 !important;
  fill: #000 !important;
  stroke: #000 !important;
}

html[data-theme="dark"] #detailSaveBtn .iconBtn__icon,html[data-theme="dark"] #detailSaveBtn .iconBtn__icon i,html[data-theme="dark"] #detailSaveBtn .iconBtn__icon svg,html[data-theme="dark"] .routePreview__gmapsBtnn .iconBtn__icon,html[data-theme="dark"] .routePreview__gmapsBtnn .iconBtn__icon i,html[data-theme="dark"] .routePreview__gmapsBtnn .iconBtn__icon svg {
  color: #000 !important;
  fill: #000 !important;
  stroke: #000 !important;
}
.routePreview__backLink{display:inline-block;text-decoration:none;margin-bottom:14px}.routePreview__titleRow{display:flex;align-items:center;gap:8px}
.glightbox-container,.pswp,.lb-outerContainer,.lightbox,.imageLightbox{z-index:200000!important}