/* Diyar Figma tokens: original style names are kept beside each value. */
:root {
  --primary: #ed7d4b; /* Primary/500 */
  --primary-soft: #fdf0e9;
  --primary-ink: #ac4111;
  --secondary: #1f6f68; /* Secondary/500 */
  --secondary-soft: #eef6f4;
  --secondary-300: #278d84;
  --text: #423d37; /* Neutral/900 */
  --heading: #564f49; /* Neutral/800 */
  --muted: #7f756b; /* Neutral/600 */
  --subtle: #92887e; /* Neutral/500 */
  --border: #d7d3d0; /* Neutral/100 */
  --warm-border: #e7ded5; /* Tertiary/400 */
  --tertiary: #e0d4c8; /* Tertiary/500 */
  --disabled: #e5e6eb;
  --surface: #fff;
  --canvas: #fbfaf8;
  --danger: #af3333;
  --radius: 16px;
  --shadow: 0 4px 12px #838bb429;
  --font: "Anjoman Max", "Anjoman_Max", "Vazirmatn", sans-serif;
  --sidebar-width: 232px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 14px/1.8 var(--font);
  text-align: start;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  background: var(--disabled);
  border-color: var(--disabled);
  color: var(--subtle);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 24px;
  line-height: 1.4;
  color: var(--heading);
  font-weight: 700;
}
h2 {
  font-size: 20px;
  line-height: 1.5;
  color: var(--heading);
}
h3 {
  font-size: 16px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
button {
  background: none;
  border: 0;
}
svg.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
small,
.small {
  font-size: 12px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.subtle {
  color: var(--subtle);
}
.accent {
  color: var(--primary-ink);
}
.green {
  color: var(--secondary);
}
.nowrap {
  white-space: nowrap;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  inset-inline-start: 20px;
  z-index: 999;
  background: var(--secondary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
}
.skip-link:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid var(--secondary-300);
  outline-offset: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 660px) 292px;
  max-width: 1240px;
  margin-inline: auto;
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 36px 22px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  border-inline-end: 1px solid var(--warm-border);
  background: var(--canvas);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand-mark {
  width: 42px;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.brand-mark img {
  width: 129px;
  height: 119px;
  max-width: none;
  transform: scale(0.326);
  transform-origin: center;
  flex-shrink: 0;
  margin-inline: -43px;
}
.wordmark {
  font-family: "Zain", var(--font);
  font-weight: 900;
  font-size: 39px;
  line-height: 1;
  color: var(--secondary);
}
.brand-description {
  font-size: 10px;
  color: var(--subtle);
  margin-top: 5px;
}
.desktop-nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 12px 18px;
  min-height: 48px;
  color: var(--muted);
  font-weight: 500;
}
.nav-item:hover {
  background: var(--secondary-soft);
}
.nav-item.active {
  color: var(--secondary);
  background: var(--secondary-soft);
  font-weight: 700;
}
.nav-item.create {
  background: var(--primary);
  color: var(--text);
  margin-block: 8px;
}
.nav-item.create:hover {
  background: #ea692f;
}
.sidebar-bottom {
  margin-top: auto;
}
.demo-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.demo-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.workspace {
  min-width: 0;
  background: var(--surface);
  border-inline-end: 1px solid var(--warm-border);
}
.topbar {
  height: 84px;
  position: sticky;
  top: 0;
  background: #ffffffef;
  backdrop-filter: blur(12px);
  z-index: 30;
  border-bottom: 1px solid var(--warm-border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-title {
  font-size: 18px;
  font-weight: 700;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  position: relative;
}
.icon-btn:hover {
  background: var(--secondary-soft);
}
.unread-dot {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.mobile-brand {
  display: none;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
}
.avatar.large {
  width: 88px;
  height: 88px;
  font-size: 32px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contextbar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 36px 24px;
}
.context-card {
  padding: 20px;
  border: 1px solid var(--warm-border);
  border-radius: 20px;
  margin-bottom: 20px;
  background: #fff;
}
.context-card.olive {
  background: var(--secondary-soft);
  border: 0;
}
.context-card h3 {
  margin-bottom: 12px;
}
.context-card p {
  color: var(--muted);
  font-size: 12px;
}
.context-card .btn {
  margin-top: 16px;
}
.tiny-place {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}
.tiny-place img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}
.tiny-place strong {
  font-size: 12px;
}
.tiny-place span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.context-footer {
  font-size: 11px;
  color: var(--subtle);
  padding: 8px 10px;
}
.page {
  padding: 28px;
  animation: arrive 0.18s ease;
}
.page.compact {
  padding-top: 22px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 18px;
}
.text-btn {
  min-height: 44px;
  padding: 8px 0;
  color: var(--secondary);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-btn.danger {
  color: var(--danger);
}
.text-btn .icon {
  width: 16px;
  height: 16px;
}
.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
}
.intro p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0;
  margin-bottom: 8px;
}
.btn {
  min-height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 500;
  border: 1.5px solid transparent;
  transition: background 0.15s;
}
.btn.primary {
  background: var(--primary);
  color: var(--text);
}
.btn.primary:hover {
  background: #ea692f;
}
.btn.secondary {
  background: var(--secondary);
  color: #fff;
}
.btn.outline {
  border-color: var(--border);
  background: var(--surface);
}
.btn.outline:hover {
  border-color: var(--secondary);
}
.btn.light {
  background: var(--secondary-soft);
  color: var(--secondary);
}
.btn.small {
  min-height: 40px;
  font-size: 12px;
  padding: 8px 14px;
}
.btn.full {
  width: 100%;
}
.btn.danger {
  border-color: var(--danger);
  color: var(--danger);
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.row.spread {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 18px;
}
.spacer {
  height: 24px;
}
.mt {
  margin-top: 24px;
}
.mb {
  margin-bottom: 24px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--warm-border);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  padding: 12px 0;
  min-height: 48px;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--secondary);
  border-color: var(--secondary);
  font-weight: 700;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  border: 1px solid var(--warm-border);
  border-radius: 100px;
  min-height: 36px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: #fff;
}
.chip.active {
  background: var(--secondary-soft);
  border-color: var(--secondary);
  color: var(--secondary);
}
.chip .icon {
  width: 16px;
  height: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--secondary-soft);
  color: var(--secondary);
  line-height: 1.5;
}
.badge.warm {
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.badge.pending {
  background: #fff6dc;
  color: #795f18;
}
.badge.revision {
  background: #fff0eb;
  color: var(--danger);
}
.badge .icon {
  width: 13px;
  height: 13px;
}
.feed {
  display: grid;
  gap: 30px;
}
.post {
  border: 1px solid var(--warm-border);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
}
.post-header .user {
  flex: 1;
  min-width: 0;
}
.post-header strong {
  display: block;
  font-size: 13px;
}
.post-header small {
  font-size: 10px;
}
.post-media {
  position: relative;
  background: var(--tertiary);
  overflow: hidden;
}
.post-media > a {
  display: block;
}
.post-media img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}
.post-media .multi-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  color: #fff;
  background: #1b292bd4;
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.multi-tag .icon {
  width: 16px;
  height: 16px;
}
.post-media .sample-tag {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  font-size: 9px;
  background: #ffffffda;
  border-radius: 8px;
  padding: 3px 7px;
  color: var(--heading);
}
.post-body {
  padding: 16px 18px 20px;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: -8px;
  margin-bottom: 10px;
}
.post-actions .save-action {
  margin-inline-start: auto;
}
.liked {
  color: var(--primary-ink);
}
.liked .icon {
  fill: var(--primary-soft);
}
.post-body h3 {
  margin-bottom: 6px;
}
.post-body .story {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 14px;
}
.dest-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dest-links a {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 11px;
  color: var(--secondary);
  padding: 4px 8px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
}
.dest-links .icon {
  width: 13px;
  height: 13px;
}
.meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  align-items: center;
}
.meta-row > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.meta-row .icon {
  width: 14px;
  height: 14px;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.place-card {
  border: 1px solid var(--warm-border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.place-card img {
  width: 100%;
  height: 146px;
  object-fit: cover;
}
.place-card-content {
  padding: 12px;
}
.place-card h3 {
  font-size: 14px;
}
.place-card p {
  font-size: 11px;
  color: var(--muted);
}
.place-card .badge {
  margin-top: 8px;
}
.place-card .floating-save {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: #ffffffed;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
}
.collection-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.collection-cover {
  position: relative;
  min-height: 172px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 16px;
  color: #fff;
}
.collection-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #142821d6, transparent);
}
.collection-cover div {
  position: relative;
  z-index: 1;
}
.collection-cover h3 {
  color: #fff;
  font-size: 16px;
}
.collection-cover p {
  font-size: 10px;
  color: #ffffffb0;
}
.search-field {
  position: relative;
  margin-bottom: 20px;
}
.search-field input {
  padding-inline-start: 48px;
  border-radius: 16px;
  background: var(--canvas);
}
.search-field .icon {
  position: absolute;
  inset-inline-start: 16px;
  top: 14px;
  color: var(--subtle);
}
.search-field .icon-btn {
  position: absolute;
  inset-inline-end: 4px;
  top: 2px;
}
.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.filter-selects select {
  font-size: 11px;
  padding-inline: 10px;
  min-width: 0;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.field label,
.field legend {
  font-size: 14px;
  font-weight: 500;
}
.field em {
  font-style: normal;
  color: var(--danger);
}
.field input,
.field textarea,
.field select,
.search-field input {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  min-height: 48px;
  color: var(--text);
  padding: 11px 16px;
  outline-offset: 3px;
}
.field textarea {
  min-height: 138px;
  resize: vertical;
  line-height: 1.9;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--subtle);
  font-size: 12px;
}
.field .hint {
  font-size: 11px;
  color: var(--muted);
}
.field .error {
  font-size: 11px;
  color: var(--danger);
}
.field [aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffafa;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
fieldset.field legend {
  margin-bottom: 10px;
}
.notice {
  padding: 14px 16px;
  border: 1px solid var(--warm-border);
  border-radius: 14px;
  font-size: 12px;
  color: var(--muted);
  background: var(--canvas);
}
.notice.info {
  background: var(--secondary-soft);
  color: var(--secondary);
  border: 0;
}
.notice.warning {
  background: #fff8e6;
  color: #795f18;
  border: 0;
}
.notice.error {
  background: #fff0ee;
  color: var(--danger);
  border: 0;
}
.empty {
  text-align: center;
  padding: 44px 22px;
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px dashed var(--warm-border);
  border-radius: 20px;
}
.empty img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
}
.empty > .icon {
  width: 36px;
  height: 36px;
  color: var(--secondary);
}
.panel {
  background: #fff;
  border: 1px solid var(--warm-border);
  border-radius: 20px;
  padding: 20px;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--subtle);
}
.step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--warm-border);
}
.step.active {
  color: var(--secondary);
  font-weight: 700;
}
.step.active .step-number,
.step.done .step-number {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.step-line {
  height: 1px;
  width: 22px;
  background: var(--warm-border);
}
.form-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--warm-border);
  position: sticky;
  bottom: 0;
  background: #fffffff5;
  backdrop-filter: blur(8px);
  z-index: 15;
  padding-bottom: 16px;
}
.form-actions .btn:first-child {
  flex: 1;
}
.draft-state {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--subtle);
  margin-top: 8px;
}
.draft-state .icon {
  width: 14px;
  height: 14px;
}
.map-view {
  height: 390px;
  border: 1px solid var(--warm-border);
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
  background: #eef1e8;
  position: relative;
}
.map-view.short {
  height: 230px;
}
.map-view .map-canvas {
  height: 100%;
  width: 100%;
}
.map-legend {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 500;
  background: #ffffffe8;
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 10px;
  box-shadow: var(--shadow);
}
.map-pin {
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  background: var(--secondary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 10px #0003;
  display: grid;
  place-items: center;
}
.map-pin > span {
  transform: rotate(45deg);
  color: #fff;
  font: 700 11px var(--font);
}
.map-pin.orange {
  background: var(--primary);
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.leaflet-container {
  font-family: var(--font);
  direction: ltr;
}
.leaflet-popup-content {
  direction: rtl;
  text-align: right;
  font-family: var(--font);
}
.map-error {
  position: absolute;
  bottom: 10px;
  inset-inline: 12px;
  background: #fffdf0e8;
  z-index: 700;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10px;
  color: #795f18;
  pointer-events: none;
}
.destination-card {
  border: 1px solid var(--warm-border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.destination-summary {
  display: flex;
  gap: 12px;
  padding: 16px;
  align-items: center;
}
.destination-summary img {
  width: 82px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
}
.destination-summary .info {
  flex: 1;
  min-width: 0;
}
.destination-number {
  font-size: 10px;
  color: var(--secondary);
  margin-bottom: 2px;
}
.destination-summary h3 {
  font-size: 15px;
}
.destination-summary p {
  font-size: 11px;
  color: var(--muted);
}
.destination-card details {
  border-top: 1px solid var(--warm-border);
  background: var(--canvas);
}
.destination-card summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 11px;
  color: var(--secondary);
  text-align: center;
}
.destination-card summary::-webkit-details-marker {
  display: none;
}
.destination-card summary .icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}
.destination-card details[open] summary .icon {
  transform: rotate(180deg);
}
.destination-extra {
  padding: 4px 16px 16px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-size: 12px;
}
.facts div {
  padding: 12px;
  border-radius: 12px;
  background: var(--canvas);
}
.facts dt {
  color: var(--muted);
  font-size: 10px;
}
.facts dd {
  margin: 4px 0 0;
  font-weight: 500;
}
.upload-area {
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px dashed var(--secondary);
  border-radius: 16px;
  padding: 24px;
  background: var(--secondary-soft);
  cursor: pointer;
  color: var(--secondary);
  font-size: 12px;
  position: relative;
  overflow: hidden;
}
.upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
}
.upload-area:focus-within {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.photo-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
}
.photo-tile.selected {
  border-color: var(--secondary);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-tile > button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.photo-tile .remove-photo {
  inset: auto;
  top: 4px;
  inset-inline-end: 4px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffffef;
  display: grid;
  place-items: center;
}
.photo-tile .remove-photo .icon {
  width: 16px;
  height: 16px;
}
.photo-tile .cover-label {
  position: absolute;
  bottom: 5px;
  inset-inline: 5px;
  background: #ffffffdc;
  padding: 3px;
  text-align: center;
  border-radius: 7px;
  font-size: 10px;
}
.selection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  direction: ltr;
}
.interest-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background: #fff;
  position: relative;
  min-width: 0;
  direction: rtl;
}
.interest-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.interest-card span {
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  padding-inline: 3px;
}
.interest-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.interest-card.selected:after {
  content: "✓";
  position: absolute;
  top: 4px;
  inset-inline-start: 5px;
  color: var(--primary-ink);
  font-size: 10px;
}
.profile-top {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 12px 0 24px;
}
.profile-top h1 {
  font-size: 22px;
}
.profile-top p {
  font-size: 12px;
  color: var(--muted);
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-block: 10px;
}
.profile-stats > a,
.profile-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.profile-stats strong {
  font-size: 20px;
  color: var(--heading);
}
.travel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.stat-card {
  text-align: center;
  background: var(--secondary-soft);
  border-radius: 12px;
  padding: 14px 4px;
}
.stat-card strong {
  display: block;
  font-size: 22px;
  color: var(--secondary);
  line-height: 1.5;
}
.stat-card span {
  font-size: 10px;
  color: var(--secondary);
}
.list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--warm-border);
  font-size: 13px;
  min-height: 56px;
}
.list-link:last-child {
  border: 0;
}
.list-link > span {
  display: flex;
  align-items: center;
  gap: 12px;
}
.list-link .icon {
  color: var(--secondary);
  width: 20px;
  height: 20px;
}
.list-link .arrow {
  color: var(--subtle);
  width: 15px;
}
.notification {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--warm-border);
  align-items: flex-start;
}
.notification.read {
  opacity: 0.7;
}
.notification .event-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary-soft);
  color: var(--secondary);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.notification h3 {
  font-size: 13px;
}
.notification p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.notification .time {
  font-size: 10px;
  color: var(--subtle);
  margin-top: 6px;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--warm-border);
}
.person-row .user {
  flex: 1;
  min-width: 0;
}
.person-row h3 {
  font-size: 13px;
}
.person-row p {
  font-size: 10px;
  color: var(--muted);
}
.progress {
  height: 6px;
  background: var(--warm-border);
  border-radius: 100px;
  overflow: hidden;
  margin: 14px 0;
}
.progress span {
  display: block;
  background: var(--secondary);
  height: 100%;
  border-radius: 100px;
}
.challenge-card {
  border: 1px solid var(--warm-border);
  padding: 20px;
  border-radius: 20px;
}
.challenge-card .badge {
  margin-bottom: 10px;
}
.challenge-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.check-list {
  padding: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 0;
}
.check-list .icon {
  color: var(--secondary);
  width: 16px;
}
.metric-bar {
  display: grid;
  grid-template-columns: 1fr 120px 28px;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  margin-top: 14px;
}
.metric-bar .progress {
  margin: 0;
}
.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 13px;
}
.switch {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
}
.comment {
  padding: 14px;
  border-radius: 14px;
  background: var(--canvas);
  margin-top: 12px;
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}
.comment p {
  font-size: 12px;
}
.comment.reply {
  margin-inline-start: 26px;
  border-inline-start: 2px solid var(--tertiary);
}
.comment-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.photo-gallery {
  display: flex;
  gap: 10px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.photo-gallery img {
  min-width: 100%;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  scroll-snap-align: center;
}
.detail-cover {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
}
.detail-title {
  margin-bottom: 16px;
}
.detail-story {
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.onboarding {
  padding: 36px 24px 24px;
  max-width: 420px;
  margin: auto;
  min-height: calc(100dvh - 84px);
  display: flex;
  flex-direction: column;
}
.onboarding .onboard-media {
  height: 384px;
  border-radius: 32px;
  margin: 18px 0 28px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.onboard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.onboarding h1 {
  font-size: 24px;
}
.onboarding > p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 16px;
  color: var(--subtle);
}
.onboard-bottom {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slider-dots {
  display: flex;
  gap: 8px;
  direction: ltr;
}
.slider-dots span {
  width: 8px;
  height: 8px;
  background: var(--tertiary);
  border-radius: 999px;
}
.slider-dots span.active {
  width: 32px;
  background: var(--primary);
}
.auth-page {
  padding: 40px 24px;
  max-width: 420px;
  margin: auto;
  min-height: calc(100dvh - 84px);
  display: flex;
  flex-direction: column;
}
.auth-page h1 {
  color: var(--primary);
  margin-bottom: 16px;
}
.auth-page .auth-description {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
}
.auth-page form {
  display: grid;
  gap: 32px;
}
.auth-bottom {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--subtle);
  font-size: 11px;
  margin-bottom: 20px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}
.auth-bottom p {
  margin-top: 20px;
}
.auth-bottom .btn img {
  width: 24px;
  height: 24px;
}
.demo-auth-note {
  font-size: 10px;
  margin-top: 16px;
  color: var(--subtle);
}
.interests-page {
  max-width: 420px;
  margin: auto;
  min-height: calc(100dvh - 84px);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
}
.interests-page h1 {
  margin-bottom: 16px;
}
.interests-page p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.interests-page .interests-bottom {
  margin-top: auto;
  padding-top: 36px;
  display: grid;
  gap: 8px;
}
.interests-page .selection-grid {
  max-width: 312px;
  width: 100%;
  margin-inline: auto;
}
.toast {
  position: fixed;
  bottom: 28px;
  inset-inline: 20px;
  margin: auto;
  width: fit-content;
  max-width: min(520px, 90vw);
  padding: 12px 20px;
  z-index: 200;
  background: var(--text);
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.toast.visible {
  opacity: 1;
  transform: none;
}
dialog {
  border: 0;
  border-radius: 24px;
  padding: 26px;
  width: min(460px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 20px 100px #0003;
  color: var(--text);
  font-family: var(--font);
}
dialog::backdrop {
  background: #272a2766;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dialog-heading h2 {
  font-size: 18px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.dialog-content p {
  color: var(--muted);
  font-size: 13px;
}
.collection-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--warm-border);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  min-height: 48px;
  cursor: pointer;
}
.collection-choice input {
  accent-color: var(--secondary);
}
.bottom-nav {
  display: none;
}
.app-shell.focus-mode {
  grid-template-columns: 232px minmax(0, 660px) 292px;
}
.app-shell.focus-mode .contextbar {
  visibility: hidden;
}
.offline-banner {
  font-size: 11px;
  color: var(--primary-ink);
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 6px 12px;
}
.route-map .page {
  padding-bottom: 28px;
}
.report-tile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.report-tile .stat-card {
  padding: 22px;
}
.back-title {
  display: flex;
  gap: 6px;
  align-items: center;
}
.back-title .icon-btn {
  margin-inline-start: -10px;
}
.review-cover {
  position: relative;
}
.review-cover .badge {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
}
.location-list {
  max-height: 220px;
  overflow: auto;
}
.location-option {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--warm-border);
}
.location-option .icon {
  color: var(--secondary);
}
.location-option small {
  display: block;
}
.me-chip {
  background: var(--secondary-soft);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.me-chip p {
  font-size: 10px;
  color: var(--subtle);
}
.success-screen {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.success-screen .success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--secondary-soft);
  color: var(--secondary);
}
.success-screen .success-icon .icon {
  width: 40px;
  height: 40px;
}
.success-screen p {
  max-width: 350px;
  color: var(--muted);
  font-size: 13px;
}
.admin-item {
  padding: 20px;
  border: 1px solid var(--warm-border);
  border-radius: 16px;
}
.admin-item h3 {
  margin-bottom: 8px;
}
.source-footnote {
  font-size: 10px;
  color: var(--subtle);
  margin-top: 18px;
}
.storage-warning {
  position: fixed;
  top: 0;
  inset-inline: 0;
  background: #fff3dc;
  padding: 10px;
  z-index: 300;
  font-size: 12px;
  text-align: center;
}
@keyframes arrive {
  from {
    opacity: 0.5;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1440px) {
  .app-shell {
    max-width: 1320px;
    grid-template-columns: 240px minmax(0, 720px) 320px;
  }
  .sidebar {
    padding-inline: 26px;
  }
  .page {
    padding: 32px;
  }
  .topbar {
    padding-inline: 32px;
  }
}
@media (max-width: 1100px) {
  .app-shell,
  .app-shell.focus-mode {
    grid-template-columns: 210px minmax(0, 700px);
    max-width: 930px;
  }
  .contextbar {
    display: none;
  }
  .sidebar {
    padding-inline: 16px;
  }
  .workspace {
    border-inline-end: 0;
  }
}
@media (max-width: 720px) {
  body {
    background: var(--surface);
  }
  .app-shell,
  .app-shell.focus-mode {
    display: block;
    max-width: 560px;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .sidebar {
    display: none;
  }
  .workspace {
    border: 0;
    min-height: 100dvh;
  }
  .topbar {
    height: 68px;
    padding: 10px 24px;
    padding-top: max(10px, env(safe-area-inset-top));
    gap: 8px;
  }
  .topbar-title {
    font-size: 16px;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
  }
  .mobile-brand .wordmark {
    font-size: 31px;
  }
  .mobile-brand .brand-mark {
    width: 30px;
    height: 28px;
  }
  .mobile-brand .brand-mark img {
    transform: scale(0.233);
    margin-inline: -49px;
  }
  .topbar-actions {
    gap: 0;
  }
  .page {
    padding: 24px;
  }
  .intro {
    margin-bottom: 24px;
  }
  .intro h1 {
    font-size: 22px;
  }
  .intro p {
    font-size: 12px;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 40;
    margin-inline: auto;
    max-width: 560px;
    background: #fffffff7;
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--warm-border);
    display: flex;
    justify-content: space-around;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px #423d3704;
  }
  .bottom-nav a {
    width: 20%;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10px;
    color: var(--muted);
    border-radius: 12px;
  }
  .bottom-nav a.active {
    color: var(--secondary);
    font-weight: 700;
  }
  .bottom-nav a.create .icon-circle {
    background: var(--primary);
    color: var(--text);
    width: 44px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
  }
  .bottom-nav a > .icon {
    width: 23px;
    height: 23px;
  }
  .form-actions {
    bottom: 80px;
    margin-inline: -24px;
    padding: 14px 24px;
    box-shadow: 0 -5px 15px #ffffffa0;
  }
  .post {
    border-radius: 20px;
  }
  .post-media img {
    aspect-ratio: 1.18;
  }
  .post-header {
    padding: 14px;
  }
  .post-body {
    padding: 14px;
  }
  .post-header .btn.small {
    padding-inline: 10px;
  }
  .post-body .story {
    font-size: 12px;
  }
  .post-body h3 {
    font-size: 15px;
  }
  .meta-row {
    font-size: 9px;
    gap: 8px;
  }
  .collection-cover {
    min-height: 160px;
    padding: 14px;
  }
  .collection-cover h3 {
    font-size: 14px;
  }
  .place-card img {
    height: 128px;
  }
  .photo-gallery img {
    height: 280px;
  }
  .detail-cover {
    height: 260px;
  }
  .map-view {
    height: 370px;
  }
  .map-view.short {
    height: 210px;
  }
  .field-grid {
    gap: 14px;
  }
  .toast {
    bottom: 110px;
  }
  .auth-page,
  .onboarding,
  .interests-page {
    min-height: calc(100dvh - 68px);
    padding-bottom: 32px;
  }
  .app-shell.auth-layout {
    padding-bottom: 0;
  }
  .auth-layout ~ .bottom-nav {
    display: none;
  }
  .onboarding .onboard-media {
    height: min(48dvh, 384px);
  }
  .onboarding {
    max-width: 360px;
    padding-top: 20px;
  }
  .auth-page {
    max-width: 360px;
    padding-top: 36px;
  }
  .interests-page {
    max-width: 360px;
    padding-top: 36px;
  }
  .interests-page .selection-grid {
    gap: 12px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .field select {
    font-size: 13px;
  }
  .field-grid .field label {
    font-size: 12px;
  }
  .profile-stats {
    gap: 28px;
  }
  .success-screen {
    min-height: 70dvh;
  }
}
@media (max-width: 359px) {
  .page {
    padding: 20px;
  }
  .topbar {
    padding-inline: 20px;
  }
  .form-actions {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .steps {
    gap: 3px;
  }
  .step {
    font-size: 9px;
  }
  .step-line {
    width: 10px;
  }
  .step-number {
    width: 22px;
    height: 22px;
  }
  .selection-grid {
    gap: 8px !important;
  }
  .interest-card img {
    width: 48px;
    height: 48px;
  }
  .interest-card span {
    font-size: 9px;
  }
  .filter-selects {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .filter-selects select {
    min-height: 44px;
  }
  .destination-summary {
    padding: 12px;
    gap: 8px;
  }
  .destination-summary img {
    width: 64px;
    height: 72px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .profile-stats {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .sidebar,
  .contextbar,
  .bottom-nav,
  .topbar,
  .form-actions {
    display: none !important;
  }
  .app-shell {
    display: block;
  }
  .page {
    padding: 0;
  }
  .post,
  .panel {
    break-inside: avoid;
  }
}
[hidden] {
  display: none !important;
}
.topbar .mobile-brand .brand-description {
  display: none;
}
@media (max-width: 720px) {
  .topbar .mobile-brand {
    display: flex;
  }
  .topbar:has(.mobile-brand) .topbar-title {
    display: none;
  }
}

.onboarding {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.onboard-media {
  background: transparent;
  box-shadow: none !important;
  overflow: visible !important;
}
.onboard-rail {
  display: flex;
  direction: ltr;
  gap: 16px;
  height: 100%;
  align-items: center;
}
.onboard-rail img {
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
  width: calc(100% - 56px);
}
.onboard-rail .active-photo {
  height: 100%;
}
.onboard-rail .preview-photo {
  height: 80%;
}
.onboard-art {
  position: absolute;
  top: 28px;
  inset-inline: 0;
  height: 550px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.onboard-art > img {
  max-width: none;
  width: 774px;
  height: 518px;
  position: absolute;
  left: -314px;
  top: 12px;
}
.onboard-art > span {
  position: absolute;
  top: 18px;
  left: 73px;
}
.onboard-art > span img {
  width: 32px;
  height: 32px;
}
