﻿:root {
  --paper: #eef3f9;
  --paper-2: #e3ebf4;
  --surface: #fbfdff;
  --surface-soft: #f5f9ff;
  --ink: #0c1c2e;
  --ink-soft: #283a4d;
  --muted: #5f7288;
  --muted-2: #7c8da2;
  --line: #d3deea;
  --line-soft: #e3ebf4;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #dbeafe;
  --green: #0b2545;
  --green-2: #123e66;
  --sage: #a9bcd0;
  --gold: #9bc8ff;
  --gold-soft: #d9eaff;
  --white: #fbfdff;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --shadow-card: 0 8px 28px rgba(16, 34, 56, 0.08);
  --shadow-float: 0 18px 50px rgba(8, 26, 47, 0.20);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #cfd9e5;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow-x: clip;
  padding-bottom: calc(78px + var(--safe-bottom));
  box-shadow: 0 0 80px rgba(10, 28, 48, 0.18);
}

.boot-screen {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.boot-logo {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: var(--green);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 28px;
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* ---------- Shared bits ---------- */
.page {
  animation: pageIn 0.32s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: inline-grid;
  place-items: center;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.94);
}

.btn {
  border: 0;
  border-radius: 16px;
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--white);
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn:active {
  transform: scale(0.975);
}

.btn.accent {
  background: var(--accent);
}

.btn.accent:hover {
  background: var(--accent-dark);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn.soft {
  background: var(--paper-2);
  color: var(--ink);
}

.btn.block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  min-height: 40px;
  border-radius: 13px;
  padding: 0 15px;
  font-size: 12px;
}

.text-link {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-soft);
  background: var(--paper-2);
}

.pill.accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pill.green {
  background: #e0edfb;
  color: #2f5c86;
}

.divider {
  height: 1px;
  background: var(--line-soft);
}

/* ---------- Top navigation ---------- */
.topbar {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + var(--safe-top)) 18px 0;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.13);
  border: 1px solid rgba(255, 253, 248, 0.32);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-cn {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-en {
  margin-top: 4px;
  font-size: 7px;
  letter-spacing: 0.34em;
  opacity: 0.6;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-pill {
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  border: 1px solid rgba(255, 253, 248, 0.24);
  background: rgba(6, 20, 38, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
}

.city-pill .icon {
  width: 14px;
  height: 14px;
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 248, 0.45);
  background: var(--gold);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--serif);
}

.page-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: calc(58px + var(--safe-top));
  padding: var(--safe-top) 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(238, 243, 249, 0.9);
  border-bottom: 1px solid rgba(211, 222, 234, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.page-topbar.solid {
  background: rgba(255, 253, 248, 0.94);
}

.page-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.page-topbar .spacer {
  width: 40px;
  flex: none;
}

.page-topbar .topbar-text {
  flex: none;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  padding-right: 4px;
}

/* ---------- Home hero ---------- */
.home-page {
  padding-bottom: 0;
}

.home-hero {
  position: relative;
  height: 445px;
  overflow: hidden;
  background: #0b233b;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  transform: scale(1.015);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 12, 24, 0.62) 0%, rgba(3, 12, 24, 0.08) 31%, rgba(3, 12, 24, 0.36) 63%, #0b1e33 100%),
    linear-gradient(90deg, rgba(3, 12, 24, 0.34), transparent 62%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-inner {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 39px;
  padding: 0 21px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(155, 200, 255, 0.38);
  border-radius: 999px;
  background: rgba(8, 27, 49, 0.28);
  color: var(--gold-soft);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(155, 200, 255, 0.15);
}

.hero-title {
  margin: 13px 0 9px;
  font-family: var(--serif);
  font-size: 43px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.18);
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  max-width: 292px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 253, 248, 0.68);
  letter-spacing: 0.02em;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 17px;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.hero-stat b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
}

.hero-stat span {
  font-size: 9.5px;
  color: rgba(255, 253, 248, 0.55);
}

.hero-stat + .hero-stat {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 253, 248, 0.18);
}

/* ---------- Search card ---------- */
.home-search {
  position: relative;
  z-index: 10;
  margin: -31px 16px 0;
  padding: 11px;
  border-radius: 25px;
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.deal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #e3ebf4;
  border-radius: 16px;
}

.deal-tab {
  height: 35px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6b7f94;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
  transition: all 0.22s ease;
}

.deal-tab.active {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 5px 14px rgba(8, 27, 49, 0.26);
}

.search-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px;
  gap: 7px;
  margin-top: 9px;
}

.select-wrap {
  position: relative;
  height: 55px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface-soft);
  overflow: hidden;
}

.select-wrap .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 15px;
  height: 15px;
  color: var(--accent);
  transform: translateY(-50%);
  pointer-events: none;
}

.select-wrap .select-kicker {
  position: absolute;
  left: 32px;
  top: 8px;
  font-size: 8px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  pointer-events: none;
}

.select-wrap select {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  padding: 19px 24px 3px 32px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #8496a9;
  border-bottom: 1.5px solid #8496a9;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.search-go {
  width: 52px;
  height: 55px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.30);
  transition: transform 0.18s ease, background 0.18s ease;
}

.search-go:active {
  transform: scale(0.95);
}

.search-go .icon {
  width: 21px;
  height: 21px;
  stroke-width: 2.1;
}

/* ---------- Quick chips / sections ---------- */
.quick-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 13px 16px 2px;
  scrollbar-width: none;
}

.quick-scroll::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex: none;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.64);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #465d73;
  font-size: 11px;
  white-space: nowrap;
}

.quick-chip .icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.section {
  padding: 23px 16px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.section-title {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.section-title small {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.24em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding-bottom: 1px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.section-link .icon {
  width: 13px;
  height: 13px;
}

/* ---------- Cards ---------- */
.featured-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 23px;
  box-shadow: var(--shadow-card);
}

.featured-media {
  position: relative;
  aspect-ratio: 16 / 10.3;
  overflow: hidden;
  background: #10263d;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-card:hover .featured-media img {
  transform: scale(1.025);
}

.featured-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.featured-badge .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.featured-fav {
  position: absolute;
  right: 11px;
  top: 11px;
}

.fav-btn {
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.9);
  color: #53687e;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.fav-btn .icon {
  width: 16px;
  height: 16px;
}

.fav-btn:active {
  transform: scale(0.9);
}

.fav-btn.active {
  color: var(--accent);
  background: #fff;
}

.fav-btn.active .icon {
  fill: currentColor;
}

.featured-body {
  padding: 14px 15px 15px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--accent);
}

.price-big {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price-unit {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
}

.price-note {
  margin-left: 4px;
  font-size: 9px;
  color: var(--muted-2);
}

.featured-title {
  margin-top: 7px;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  overflow: hidden;
  white-space: nowrap;
}

.featured-meta .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #b4c0ce;
}

.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}

.featured-foot-left {
  display: flex;
  gap: 5px;
  overflow: hidden;
}

.mini-tag {
  flex: none;
  padding: 3px 6px;
  border-radius: 5px;
  background: #edf2f8;
  color: #5f7388;
  font-size: 8.5px;
  line-height: 1.3;
  white-space: nowrap;
}

.listing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-card {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 8px;
  border-radius: 19px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 5px 20px rgba(16, 34, 56, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:active {
  transform: scale(0.99);
}

.listing-thumb {
  position: relative;
  width: 114px;
  height: 116px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: #ccd8e6;
}

.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-badge {
  position: absolute;
  left: 7px;
  top: 7px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(8, 27, 49, 0.86);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.deal-badge.sale {
  background: rgba(13, 122, 153, 0.94);
}

.listing-body {
  flex: 1;
  min-width: 0;
  padding: 4px 2px 2px 0;
  display: flex;
  flex-direction: column;
}

.listing-title {
  padding-right: 22px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-loc {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.listing-loc .icon {
  width: 11px;
  height: 11px;
  color: #8a9daf;
}

.listing-tags {
  display: flex;
  gap: 4px;
  margin-top: 7px;
  overflow: hidden;
}

.listing-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
  padding-top: 5px;
}

.card-price {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.card-price small {
  font-family: var(--sans);
  margin-left: 2px;
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 600;
}

.listing-distance {
  padding-bottom: 1px;
  color: var(--muted-2);
  font-size: 8.5px;
  white-space: nowrap;
}

.listing-fav {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 29px;
  height: 29px;
  background: transparent;
}

.listing-fav .icon {
  width: 15px;
  height: 15px;
}

.listing-fav.active {
  background: transparent;
}

/* ---------- Trust ---------- */
.trust-band {
  margin: 23px 16px 0;
  padding: 15px 10px;
  border-radius: 20px;
  background: #e4edf7;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  text-align: center;
  padding: 0 6px;
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(120, 145, 175, 0.28);
}

.trust-item .icon {
  width: 18px;
  height: 18px;
  color: #4a6076;
}

.trust-item b {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 650;
}

.trust-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
}

.app-footer {
  padding: 29px 20px 8px;
  text-align: center;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.app-footer b {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.16em;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 0;
  width: min(100%, 480px);
  transform: translateX(-50%);
  height: calc(69px + var(--safe-bottom));
  padding: 7px 4px var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: rgba(255, 253, 248, 0.94);
  border-top: 1px solid rgba(211, 222, 234, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-item {
  height: 55px;
  border: 0;
  background: transparent;
  color: #8496a9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 9px;
  letter-spacing: 0.03em;
  position: relative;
}

.nav-item .icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
}

.nav-item.active {
  color: var(--ink);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-publish {
  padding-top: 0;
}

.nav-publish .publish-circle {
  width: 50px;
  height: 50px;
  margin-top: -20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border: 4px solid var(--paper);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.30);
  transition: transform 0.2s ease;
}

.nav-publish:active .publish-circle {
  transform: scale(0.92);
}

.nav-publish .publish-circle .icon {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.nav-publish span:last-child {
  margin-top: 1px;
}

/* ---------- Search page ---------- */
.search-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 18px;
}

.search-top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  background: rgba(238, 243, 249, 0.94);
  border-bottom: 1px solid rgba(211, 222, 234, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.search-top-inner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 10px;
}

.search-box {
  flex: 1;
  min-width: 0;
  height: 43px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}

.search-box .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-cancel {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 0 2px;
  height: 40px;
}

.search-tabs {
  display: flex;
  gap: 23px;
  padding: 0 17px;
}

.search-tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0 1px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.search-tab.active {
  color: var(--ink);
}

.search-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 11px 16px 12px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: none;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  color: #5a6e84;
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.filter-chip .icon {
  width: 12px;
  height: 12px;
}

.filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
}

.results-count {
  font-size: 11px;
  color: var(--muted);
}

.results-count b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-right: 2px;
}

.sort-select-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
}

.sort-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0 15px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  outline: 0;
}

.sort-select-wrap::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-right: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.results-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.load-more {
  margin: 16px auto 4px;
  display: block;
  height: 41px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- Empty states ---------- */
.empty-state {
  padding: 52px 24px 54px;
  text-align: center;
}

.empty-art {
  position: relative;
  width: 98px;
  height: 98px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4edf7;
}

.empty-art::before,
.empty-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed #c8d4e2;
}

.empty-art::before {
  inset: -9px;
  opacity: 0.7;
}

.empty-art::after {
  inset: -19px;
  opacity: 0.35;
}

.empty-art .icon {
  width: 34px;
  height: 34px;
  color: #8497aa;
  stroke-width: 1.5;
}

.empty-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 650;
}

.empty-text {
  max-width: 245px;
  margin: 7px auto 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- Overlays / sheets ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 14, 30, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.overlay-panel {
  width: min(100%, 480px);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 27px 27px 0 0;
  padding: 7px 19px calc(18px + var(--safe-bottom));
  animation: sheetUp 0.34s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

@keyframes sheetUp {
  from {
    transform: translateY(32px);
    opacity: 0.4;
  }
}

.sheet-grabber {
  width: 36px;
  height: 4px;
  margin: 0 auto 13px;
  border-radius: 4px;
  background: #c6d2e0;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.sheet-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
}

.sheet-sub {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.6;
}

.sheet-close {
  margin: -5px -6px 0 0;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--muted);
  display: grid;
  place-items: center;
}

.sheet-close .icon {
  width: 17px;
  height: 17px;
}

.filter-section {
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
}

.filter-section:last-of-type {
  border-bottom: 0;
}

.filter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 650;
}

.filter-label small {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 400;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.option-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.option-chip {
  min-height: 39px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: #52657a;
  font-size: 10.5px;
  transition: all 0.18s ease;
}

.option-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.price-custom {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.price-custom input {
  flex: 1;
  min-width: 0;
  height: 41px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 11px;
  outline: 0;
}

.price-custom input:focus {
  border-color: var(--accent);
}

.price-custom span {
  color: var(--muted-2);
  font-size: 10px;
}

.filter-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 13px 0 2px;
  background: linear-gradient(180deg, rgba(238, 243, 249, 0), var(--paper) 24%);
}

.filter-actions .btn {
  flex: 1;
}

.filter-actions .reset {
  flex: 0 0 92px;
}

/* ---------- Booking sheet ---------- */
.booking-listing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  margin: 12px 0 6px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.booking-listing img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.booking-listing b {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.booking-listing span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--muted);
}

.booking-form {
  margin-top: 6px;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.booking-slots .option-chip {
  min-height: 37px;
  font-size: 10px;
}

.booking-success {
  padding: 19px 4px 8px;
  text-align: center;
}

.success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  display: grid;
  place-items: center;
  position: relative;
}

.success-mark::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed #b7c4d4;
  animation: spin 16s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-mark .icon {
  width: 31px;
  height: 31px;
  stroke-width: 2;
}

.booking-success h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 650;
}

.booking-success p {
  margin: 7px auto 17px;
  max-width: 280px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.booking-summary {
  margin: 0 0 18px;
  padding: 13px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  text-align: left;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

.booking-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.booking-summary span {
  flex: none;
  color: var(--muted);
}

.booking-summary b {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

/* ---------- Form elements ---------- */
.field {
  margin-top: 13px;
}

.field:first-child {
  margin-top: 0;
}

.field > label,
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #405368;
}

.field > label em,
.field-label em {
  font-style: normal;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 400;
}

.input,
.textarea,
.select-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  font-size: 13px;
  outline: 0;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.input,
.select-input {
  height: 47px;
  padding: 0 13px;
}

.textarea {
  min-height: 105px;
  padding: 12px 13px;
  line-height: 1.7;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select-input:focus {
  border-color: var(--accent);
  background: #fff;
}

.input::placeholder,
.textarea::placeholder {
  color: #a6b3c3;
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8a9bb0 50%),
    linear-gradient(135deg, #8a9bb0 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.field-error {
  margin-top: 5px;
  color: #d6455a;
  font-size: 9.5px;
}

.input.invalid,
.textarea.invalid,
.select-input.invalid {
  border-color: #dc5a6b;
  background: #fff5f6;
}

.form-hint {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 47px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  padding: 0 12px;
}

.phone-input:focus-within {
  border-color: var(--accent);
  background: #fff;
}

.phone-input span {
  color: var(--muted);
  font-size: 11px;
  border-right: 1px solid var(--line);
  padding-right: 8px;
  white-space: nowrap;
}

.phone-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 13px;
}

/* ---------- Listing detail ---------- */
.detail-page {
  padding-bottom: calc(87px + var(--safe-bottom));
  background: var(--paper);
}

.detail-hero {
  position: relative;
  height: 338px;
  overflow: hidden;
  background: #0a1d31;
}

.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 12, 24, 0.47), transparent 28%, rgba(3, 12, 24, 0.08) 62%, rgba(3, 12, 24, 0.64));
}

.detail-topbar {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(13px + var(--safe-top)) 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-topbar-group {
  display: flex;
  gap: 8px;
}

.round-btn {
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255, 253, 248, 0.26);
  border-radius: 50%;
  background: rgba(4, 16, 32, 0.32);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.round-btn .icon {
  width: 18px;
  height: 18px;
}

.round-btn.active {
  background: var(--surface);
  color: var(--accent);
}

.round-btn.active .icon {
  fill: currentColor;
}

.detail-photo-count {
  position: absolute;
  right: 15px;
  bottom: 37px;
  z-index: 3;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(4, 16, 32, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.detail-photo-count .icon {
  width: 11px;
  height: 11px;
}

.detail-sheet {
  position: relative;
  z-index: 5;
  margin-top: -28px;
  border-radius: 27px 27px 0 0;
  background: var(--paper);
  padding: 21px 17px 0;
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-kicker .pill {
  font-size: 9px;
}

.detail-kicker .verified {
  color: #2f5c86;
  background: #e0edfb;
}

.detail-title {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.detail-location {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.detail-location .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.detail-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
}

.detail-price .num {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 0.95;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.detail-price .unit {
  margin-left: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.detail-price .note {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9px;
}

.detail-price-side {
  text-align: right;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.8;
  padding-bottom: 2px;
}

.detail-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 2px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: 0 5px 20px rgba(16, 34, 56, 0.05);
}

.quick-stat {
  min-width: 0;
  padding: 0 6px;
  text-align: center;
}

.quick-stat + .quick-stat {
  border-left: 1px solid var(--line-soft);
}

.quick-stat .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  stroke-width: 1.6;
}

.quick-stat b {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
}

.detail-section {
  margin-top: 23px;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.detail-section-head h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.detail-section-head small {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.detail-desc {
  color: #34475a;
  font-size: 12.5px;
  line-height: 1.9;
  white-space: pre-line;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag-cloud .pill {
  padding: 6px 9px;
  font-size: 9.5px;
  background: #e4edf7;
  color: #465a70;
}

.map-card {
  display: block;
  position: relative;
  height: 166px;
  border-radius: 19px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(28deg, transparent 0 29px, rgba(255, 255, 255, 0.5) 29px 30px),
    repeating-linear-gradient(118deg, transparent 0 39px, rgba(255, 255, 255, 0.45) 39px 40px),
    #d7e5f4;
}

.map-card::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 43%;
  height: 23px;
  background: #f4f8fd;
  transform: rotate(-7deg);
  box-shadow: 0 1px 0 rgba(120, 145, 175, 0.42), 0 -1px 0 rgba(120, 145, 175, 0.32);
}

.map-card::after {
  content: "";
  position: absolute;
  left: 38%;
  top: -15%;
  bottom: -15%;
  width: 14px;
  background: #f4f8fd;
  transform: rotate(13deg);
  opacity: 0.9;
}

.map-block {
  position: absolute;
  width: 51px;
  height: 31px;
  border-radius: 4px;
  background: rgba(160, 185, 212, 0.72);
  border: 1px solid rgba(135, 160, 190, 0.32);
}

.map-block.b1 {
  left: 13%;
  top: 17%;
}

.map-block.b2 {
  right: 17%;
  top: 18%;
  height: 42px;
}

.map-block.b3 {
  left: 18%;
  bottom: 8%;
}

.map-pin {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 43%;
  width: 37px;
  height: 37px;
  border-radius: 50% 50% 50% 8px;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 6px 18px rgba(10, 55, 120, 0.28);
  transform: translate(-50%, -70%) rotate(-45deg);
  display: grid;
  place-items: center;
  color: #fff;
}

.map-pin .icon {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  stroke-width: 2;
}

.map-label {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 11px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.4;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.map-label .icon {
  width: 11px;
  height: 11px;
  color: var(--accent);
}

.landlord-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.landlord-avatar {
  width: 45px;
  height: 45px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 650;
}

.landlord-info {
  flex: 1;
  min-width: 0;
}

.landlord-info b {
  font-size: 12.5px;
  font-weight: 650;
}

.landlord-info p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.landlord-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 5px;
  color: #2f5c86;
  font-size: 8px;
}

.landlord-badge .icon {
  width: 11px;
  height: 11px;
}

.landlord-side {
  text-align: right;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.5;
}

.landlord-side .icon {
  width: 19px;
  height: 19px;
  color: #7f93a8;
}

.similar-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -17px;
  padding: 0 17px 4px;
  scrollbar-width: none;
}

.similar-scroll::-webkit-scrollbar {
  display: none;
}

.similar-card {
  display: block;
  width: 210px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.similar-card img {
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.similar-body {
  padding: 9px 10px 10px;
}

.similar-body b {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-body .similar-price {
  margin-top: 5px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.similar-body .similar-price small {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
}

.detail-actions {
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: 0;
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px calc(9px + var(--safe-bottom));
  background: rgba(255, 253, 248, 0.95);
  border-top: 1px solid rgba(211, 222, 234, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.action-fav {
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: #53667c;
  display: grid;
  place-items: center;
}

.action-fav.active {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: #f2f7ff;
}

.action-fav.active .icon {
  fill: currentColor;
}

.action-fav .icon {
  width: 20px;
  height: 20px;
}

.detail-actions .btn {
  flex: 1;
  height: 46px;
  min-height: 46px;
  border-radius: 14px;
}

.action-price {
  flex: none;
  padding: 0 3px 0 1px;
}

.action-price b {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.action-price span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8px;
}

/* ---------- Publish ---------- */
.publish-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(93px + var(--safe-bottom));
}

.publish-intro {
  padding: 17px 18px 5px;
}

.publish-intro h1 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.publish-intro p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.publish-progress {
  padding: 17px 18px 11px;
}

.progress-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.progress-segment {
  height: 3px;
  border-radius: 3px;
  background: #d7e1ec;
  overflow: hidden;
}

.progress-segment.active {
  background: var(--ink);
}

.progress-segment.current {
  background: linear-gradient(90deg, var(--ink) 55%, #d7e1ec 55%);
}

.step-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.step-labels span.active {
  color: var(--ink);
  font-weight: 650;
}

.publish-form {
  padding: 0 16px;
}

.form-card {
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 5px 20px rgba(16, 34, 56, 0.055);
}

.form-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.form-card-head .step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 10px;
}

.form-card-head h2 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 650;
}

.form-card-head small {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 8px;
}

.deal-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.deal-option {
  position: relative;
  min-height: 70px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  text-align: left;
  transition: all 0.18s ease;
}

.deal-option .icon {
  width: 20px;
  height: 20px;
  color: #6d8196;
}

.deal-option b {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 650;
}

.deal-option span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
}

.deal-option.active {
  border-color: var(--green);
  background: #e7f0fb;
  box-shadow: inset 0 0 0 1px var(--green);
}

.deal-option.active .icon {
  color: var(--green);
}

.deal-option.active::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-option {
  min-height: 33px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #566a7f;
  font-size: 9.5px;
}

.tag-option.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.price-input-wrap {
  position: relative;
}

.price-input-wrap .input {
  padding-right: 49px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
}

.price-input-wrap span {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 10px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.upload-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
}

.upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-remove {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(5, 18, 36, 0.62);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

.upload-remove .icon {
  width: 12px;
  height: 12px;
}

.upload-progress {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 24, 44, 0.48);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.upload-add {
  aspect-ratio: 1;
  border: 1.5px dashed #c7d3e2;
  border-radius: 12px;
  background: rgba(245, 249, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 8px;
}

.upload-add .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.upload-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.6;
}

.upload-note .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.agreement input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex: none;
}

.agreement a {
  color: var(--accent);
}

.publish-footer {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 0;
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 253, 248, 0.95);
  border-top: 1px solid rgba(211, 222, 234, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.publish-footer .btn {
  flex: 1;
  min-height: 48px;
}

.publish-footer .back-btn {
  flex: 0 0 88px;
}

.publish-footer .submit-btn {
  flex: 1.45;
}

.publish-note {
  padding: 1px 4px 16px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.7;
  text-align: center;
}

/* ---------- Success ---------- */
.success-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 20px calc(30px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 19%, rgba(155, 200, 255, 0.34), transparent 26%),
    var(--paper);
}

.success-badge {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 18px 44px rgba(9, 34, 62, 0.26);
}

.success-badge::before,
.success-badge::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed #b8c5d5;
}

.success-badge::before {
  inset: -11px;
}

.success-badge::after {
  inset: -25px;
  opacity: 0.45;
}

.success-badge .icon {
  width: 38px;
  height: 38px;
  stroke-width: 2;
}

.success-eyebrow {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.24em;
  font-weight: 650;
}

.success-page h1 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 650;
  line-height: 1.3;
}

.success-page p {
  margin: 9px auto 22px;
  max-width: 300px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.success-summary {
  padding: 13px 14px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  text-align: left;
}

.success-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 10.5px;
}

.success-summary b {
  color: var(--ink);
  font-weight: 600;
  max-width: 68%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-actions {
  display: flex;
  gap: 8px;
}

.success-actions .btn {
  flex: 1;
}

/* ---------- My ---------- */
.my-page {
  padding-bottom: 0;
}

.my-hero {
  position: relative;
  overflow: hidden;
  padding: calc(24px + var(--safe-top)) 19px 53px;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 91% 8%, rgba(155, 200, 255, 0.22), transparent 32%),
    var(--green);
  color: #fff;
}

.my-hero::before,
.my-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(155, 200, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.my-hero::before {
  width: 215px;
  height: 215px;
  right: -82px;
  top: -78px;
}

.my-hero::after {
  width: 135px;
  height: 135px;
  right: -42px;
  top: -38px;
}

.my-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.my-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 253, 248, 0.68);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.my-wordmark .brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  font-size: 15px;
}

.my-edit {
  width: 33px;
  height: 33px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
}

.my-edit .icon {
  width: 15px;
  height: 15px;
}

.my-profile {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
}

.my-avatar {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(155, 200, 255, 0.52);
  background: rgba(255, 253, 248, 0.08);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 650;
}

.my-id b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.my-id p {
  margin-top: 4px;
  color: rgba(255, 253, 248, 0.52);
  font-size: 9px;
  line-height: 1.6;
}

.my-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 25px;
  padding: 13px 0;
  border: 1px solid rgba(255, 253, 248, 0.13);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.06);
  backdrop-filter: blur(10px);
}

.my-stat {
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
}

.my-stat + .my-stat {
  border-left: 1px solid rgba(255, 253, 248, 0.13);
}

.my-stat b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.my-stat span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 253, 248, 0.48);
  font-size: 8.5px;
}

.my-content {
  position: relative;
  z-index: 2;
  margin-top: -30px;
  padding: 0 16px;
}

.my-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
}

.my-tab {
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.my-tab.active {
  background: var(--ink);
  color: #fff;
}

.my-panel {
  padding-top: 15px;
}

.my-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  margin-bottom: 9px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.my-item img {
  width: 61px;
  height: 61px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.my-item-main {
  flex: 1;
  min-width: 0;
}

.my-item-main b {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-item-main p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-item-main .my-price {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.my-item-side {
  flex: none;
  text-align: right;
}

.my-item-side span {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
}

.my-item-side .icon {
  width: 15px;
  height: 15px;
  color: #97a6b8;
  margin-top: 7px;
}

.booking-mini {
  display: flex;
  gap: 11px;
  padding: 12px;
  margin-bottom: 9px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.booking-date {
  width: 48px;
  height: 53px;
  flex: none;
  border-radius: 10px;
  background: var(--green);
  color: var(--gold);
  text-align: center;
  padding-top: 7px;
}

.booking-date b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
}

.booking-date span {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  opacity: 0.65;
}

.booking-mini-main {
  flex: 1;
  min-width: 0;
}

.booking-mini-main b {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-mini-main p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.booking-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  color: #3f6b94;
  font-size: 8px;
}

.booking-status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4c84c6;
}

.my-empty {
  padding: 26px 12px 18px;
  text-align: center;
}

.my-empty .icon {
  width: 31px;
  height: 31px;
  color: #9aabba;
  stroke-width: 1.5;
}

.my-empty p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.my-empty .text-link {
  margin-top: 8px;
}

.my-cta {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  padding: 17px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
}

.my-cta::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -24px;
  top: -42px;
  border-radius: 50%;
  border: 1px solid rgba(155, 200, 255, 0.24);
}

.my-cta small {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.19em;
}

.my-cta h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.my-cta p {
  margin-top: 5px;
  color: rgba(255, 253, 248, 0.58);
  font-size: 9px;
  line-height: 1.6;
}

.my-cta .btn {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  height: 38px;
  min-height: 38px;
  border-radius: 11px;
  background: var(--gold);
  color: var(--green);
  font-size: 10px;
}

.settings {
  margin-top: 19px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row .icon {
  width: 16px;
  height: 16px;
  color: #7f93a8;
}

.setting-row .chevron {
  margin-left: auto;
  color: #a9b6c6;
}

.setting-row .setting-badge {
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 7.5px;
}

.my-version {
  padding: 19px 0 22px;
  text-align: center;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.13em;
}

/* ---------- Favorites page ---------- */
.favorites-page {
  min-height: 100vh;
  min-height: 100dvh;
}

.favorites-head {
  padding: 17px 18px 6px;
}

.favorites-head h1 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 650;
}

.favorites-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.favorites-list {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: calc(84px + var(--safe-bottom));
  width: min(calc(100% - 40px), 420px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: 100%;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(8, 27, 49, 0.96);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 10px 28px rgba(8, 27, 49, 0.28);
  animation: toastIn 0.25s ease both;
}

.toast.leaving {
  animation: toastOut 0.25s ease both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  body {
    padding: 0;
  }

  .app-shell {
    min-height: 100dvh;
  }

  .bottom-nav,
  .detail-actions,
  .publish-footer {
    box-shadow: 0 0 40px rgba(10, 28, 48, 0.10);
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: 38px;
  }

  .home-hero {
    height: 424px;
  }

  .hero-inner {
    bottom: 34px;
  }

  .hero-sub {
    max-width: 260px;
    font-size: 11px;
  }

  .hero-stats {
    gap: 14px;
  }

  .hero-stat + .hero-stat {
    padding-left: 14px;
  }

  .search-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px;
  }

  .search-go {
    width: 48px;
  }

  .select-wrap select {
    font-size: 11px;
  }

  .listing-thumb {
    width: 105px;
  }

  .detail-title {
    font-size: 23px;
  }

  .detail-price .num {
    font-size: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Interaction layers & additions ---------- */
.listing-hit,
.featured-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.listing-card:focus-within,
.featured-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.listing-fav,
.featured-fav {
  position: absolute;
  z-index: 3;
}

.featured-fav {
  right: 11px;
  top: 11px;
}

.listing-fav {
  right: 8px;
  top: 8px;
}

.listing-thumb,
.listing-body,
.featured-media,
.featured-body {
  position: relative;
}

/* ---------- Skeleton ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e1e9f3;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 253, 248, 0.64) 47%, transparent 74%);
  transform: translateX(-100%);
  animation: shimmer 1.45s ease-in-out infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.skeleton-hero {
  height: 445px;
  background: #ccd8e6;
}

.skeleton-search {
  height: 138px;
  margin: -31px 16px 0;
  border-radius: 25px;
  background: #f5f9ff;
}

.skeleton-line-wrap {
  padding: 28px 16px 14px;
}

.skeleton-line {
  height: 16px;
  border-radius: 7px;
  margin-bottom: 8px;
}

.skeleton-line.w40 {
  width: 40%;
}

.skeleton-line.w70 {
  width: 70%;
}

.skeleton-card {
  height: 310px;
  margin: 0 16px 14px;
  border-radius: 23px;
}

.skeleton-card.small {
  height: 132px;
}

.page-skeleton {
  min-height: 100vh;
  background: var(--paper);
}

.skeleton-topbar {
  height: 74px;
}

.skeleton-title {
  width: 42%;
  height: 26px;
  margin: 18px 16px 22px;
  border-radius: 8px;
}

/* ---------- Gallery ---------- */
.gallery-overlay {
  align-items: stretch;
  background: rgba(2, 10, 22, 0.94);
  padding: 0;
}

.gallery-panel {
  width: min(100%, 480px);
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(14px + var(--safe-top)) 15px calc(14px + var(--safe-bottom));
  animation: fadeIn 0.24s ease both;
}

.gallery-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  padding: 2px 0 13px;
}

.gallery-head b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.gallery-head span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 253, 248, 0.52);
  font-size: 9px;
}

.gallery-head .round-btn {
  background: rgba(255, 253, 248, 0.12);
}

.gallery-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-scroll img {
  width: 100%;
  border-radius: 16px;
  background: #0a1d31;
}

/* ---------- Terms ---------- */
.terms-body {
  max-height: 53dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 14px 0 18px;
  padding-right: 4px;
}

.terms-body h3 {
  margin: 14px 0 5px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}

.terms-body h3:first-child {
  margin-top: 0;
}

.terms-body p {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.85;
}

/* ---------- Small polish ---------- */
.bottom-nav.nav-scrolled {
  box-shadow: 0 -8px 28px rgba(10, 28, 48, 0.08);
}

@media (max-width: 375px) {
  .skeleton-hero {
    height: 424px;
  }
}



.input.invalid:focus-visible,
.textarea.invalid:focus-visible,
.select-input.invalid:focus-visible {
  outline: none;
  border-color: #dc5a6b;
  box-shadow: 0 0 0 3px rgba(220, 90, 107, 0.14);
}


@media (max-width: 360px) {
  .select-wrap select {
    padding-left: 28px;
    padding-right: 17px;
    font-size: 10.5px;
  }

  .select-wrap .icon {
    left: 9px;
    width: 13px;
    height: 13px;
  }

  .select-wrap .select-kicker {
    left: 28px;
    font-size: 7.5px;
  }

  .select-wrap::after {
    right: 8px;
  }
}



