:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #657089;
  --line: #dfe5ee;
  --brand: #0f766e;
  --brand-dark: #134e4a;
  --blue: #2563eb;
  --coral: #e05243;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  border-radius: var(--radius);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

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

.nav,
.auth,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: #334155;
  padding: 8px 10px;
  border-radius: 6px;
}

.nav a:hover {
  background: #eef3f8;
}

.auth form {
  display: inline;
}

main {
  min-height: calc(100vh - 136px);
}

.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 5vw, 64px);
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(10, 18, 33, 0.8), rgba(10, 18, 33, 0.36)), var(--hero);
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(1040px, 100%);
}

.eyebrow {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a7f3d0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
}

.hero p {
  max-width: 680px;
  color: #dbe7f3;
  font-size: 18px;
  line-height: 1.5;
}

.search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 210px 210px auto;
  gap: 10px;
  margin-top: 28px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search input,
.search select,
.compact-filter input,
.field input,
.field select,
.field textarea,
.inline-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search input,
.search select,
.compact-filter input,
.field input,
.field select {
  min-height: 44px;
  padding: 0 12px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  padding: 12px;
}

.primary,
.ghost,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

.primary {
  color: #fff;
  background: var(--brand);
}

.primary:hover {
  background: var(--brand-dark);
}

.ghost {
  color: #1f2937;
  background: #fff;
  border-color: var(--line);
}

.ghost:hover,
.ghost.active {
  border-color: #9cc7be;
  background: #e8f5f2;
}

.small {
  min-height: 36px;
}

.block {
  width: 100%;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.section.narrow,
.auth-page {
  width: min(760px, calc(100% - 32px));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head h1,
.section-head h2 {
  margin-bottom: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
}

.category-tile:hover,
.category-tile.selected {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.category-tile span {
  color: var(--muted);
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.place-card,
.panel,
.auth-card,
.side-panel,
.post,
.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.place-card {
  overflow: hidden;
}

.place-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d8e2ee;
}

.place-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.place-card:hover .place-image img {
  transform: scale(1.04);
}

.place-image span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.place-body {
  padding: 16px;
}

.place-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.place-head p,
.place-body p,
.muted,
.booking-row p,
.table-row small,
.post small {
  color: var(--muted);
}

.place-head strong {
  white-space: nowrap;
}

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

.chips span,
.chips a {
  padding: 6px 9px;
  color: #334155;
  background: #edf2f7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.chips a:hover {
  color: var(--brand);
  background: #dff5ef;
}

.chips.large span,
.chips.large a {
  font-size: 14px;
}

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

.icon-button {
  width: 42px;
  padding: 0;
  color: #64748b;
  background: #fff;
  border-color: var(--line);
}

.icon-button.active {
  color: #f59e0b;
  background: #fffbeb;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.detail-gallery img,
.detail-gallery video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #0f172a;
}

.detail-gallery img:first-child,
.detail-gallery video:first-child {
  height: 530px;
  grid-row: span 2;
}

.detail-main {
  padding: 28px 0;
}

.detail-main h1 {
  color: var(--ink);
}

.detail-main p {
  color: #40506a;
  line-height: 1.65;
}

.side-panel {
  padding: 16px;
  align-self: start;
}

.sticky-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
}

.facts,
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.facts div,
.stats div {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.facts span,
.stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.booking-form,
.review-form,
.stack {
  display: grid;
  gap: 12px;
}

.booking-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.booking-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.booking-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.booking-hero h1 {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 48px);
}

.booking-wizard {
  display: grid;
  gap: 14px;
}

.booking-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.booking-step > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

.booking-step h2 {
  margin-bottom: 10px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field span,
.check {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.review {
  padding: 14px;
  margin-bottom: 10px;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 28px 0;
}

.auth-card,
.panel {
  width: 100%;
  padding: 22px;
}

.auth-card {
  max-width: 440px;
}

.auth-card h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
}

.error,
.notice {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.error {
  color: #991b1b;
  background: #fee2e2;
}

.notice {
  color: #065f46;
  background: #d1fae5;
}

.notice.inline {
  width: 100%;
  margin: 0;
}

.reset-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reset-box span {
  font-weight: 900;
}

.reset-box small {
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.wide {
  grid-row: span 2;
}

.booking-row,
.table-row,
.moderation-row,
.mini-object {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.booking-row:last-child,
.table-row:last-child,
.moderation-row:last-child {
  border-bottom: 0;
}

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

.inline-form select {
  min-height: 38px;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-object {
  justify-content: start;
  padding: 0;
  border: 0;
}

.mini-object img {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}

.mini-object span,
.mini-object small {
  display: block;
}

.feed {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.post {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

.post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post div {
  padding: 16px;
}

.price {
  font-size: 34px;
  font-weight: 900;
}

.empty {
  padding: 28px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #b8c3d4;
  border-radius: var(--radius);
}

.compact-filter {
  display: flex;
  gap: 8px;
}

.social-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 640px) 300px;
  gap: 24px;
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
  align-items: start;
}

.social-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.rail-card,
.composer,
.social-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rail-card {
  padding: 16px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card span {
  color: var(--muted);
  font-size: 13px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  border-radius: 50%;
  font-weight: 900;
}

img.avatar {
  display: block;
  object-fit: cover;
  background: #e2e8f0;
}

.profile-inline-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-inline-head h1 {
  margin: 0;
}

.social-menu,
.topic-list {
  display: grid;
  gap: 8px;
}

.social-menu a,
.topic-list a {
  padding: 10px 12px;
  color: #243044;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.social-menu a:hover,
.social-menu a.active,
.topic-list a:hover {
  border-color: #9cc7be;
  background: #eef8f5;
}

.social-search {
  display: grid;
  gap: 8px;
}

.social-search input,
.comment-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.stories {
  display: flex;
  gap: 14px;
  min-width: 0;
  margin-bottom: 16px;
  padding: 12px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scrollbar-width: thin;
}

.story {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 78px;
  flex: 0 0 78px;
  text-align: center;
}

.story span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 3px;
  background: linear-gradient(135deg, #0f766e, #e05243, #2563eb);
  border-radius: 50%;
}

.story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 50%;
}

.story strong {
  width: 100%;
  color: #273244;
  font-size: 12px;
  line-height: 1.2;
}

.composer {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
}

.modal-composer {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.modal-composer .composer-plus {
  width: 82px;
  min-height: 82px;
}

.composer-head,
.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer strong,
.post-head strong {
  overflow-wrap: anywhere;
}

.composer.guest {
  grid-template-columns: auto 1fr;
}

.composer.guest > div,
.post-head > div,
.social-main {
  min-width: 0;
}

.composer-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.quick-composer textarea {
  min-height: 74px;
  padding: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  resize: vertical;
}

.simplified-composer [hidden] {
  display: none !important;
}

.upload-mini,
.upload-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 14px;
  color: #223047;
  background: #f8fafc;
  border: 1px dashed #9fb0c7;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
}

.media-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.upload-mini input,
.upload-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-mini span,
.upload-drop span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  font-weight: 900;
}

.upload-drop {
  min-height: 178px;
}

.plus-drop {
  min-height: 178px;
}

.camera-drop {
  min-height: 178px;
}

.video-drop {
  min-height: 178px;
}

.circle-drop {
  min-height: 178px;
}

.plus-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
}

.plus-mark::before,
.plus-mark::after {
  content: "";
  grid-area: 1 / 1;
  width: 30px;
  height: 4px;
  background: currentColor;
  border-radius: 999px;
}

.plus-mark::after {
  transform: rotate(90deg);
}

.plus-drop .plus-mark {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #155e75);
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.plus-drop:hover .plus-mark {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 44px rgba(15, 118, 110, 0.32);
}

.plus-glyph {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #155e75);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.25);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.plus-drop:hover .plus-glyph {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 44px rgba(15, 118, 110, 0.32);
}

.upload-drop .picker-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  min-height: 0;
  padding: 0;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.upload-drop .picker-icon::before,
.upload-drop .picker-icon::after {
  position: absolute;
  content: "";
}

.camera-icon {
  background: #e8f5f2;
}

.camera-icon::before {
  width: 34px;
  height: 24px;
  border: 4px solid #0f766e;
  border-radius: 10px;
}

.camera-icon::after {
  width: 12px;
  height: 12px;
  background: #0f766e;
  border-radius: 50%;
  box-shadow: -13px -15px 0 -5px #0f766e;
}

.video-icon {
  background: #ffedd5;
}

.video-icon::before {
  width: 34px;
  height: 26px;
  background: #9a3412;
  border-radius: 8px;
}

.video-icon::after {
  right: 17px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #9a3412;
}

.circle-icon {
  background:
    radial-gradient(circle at 50% 50%, #fff 0 36%, transparent 37%),
    linear-gradient(135deg, #ede9fe, #c4b5fd);
  border: 2px solid #ddd6fe;
  border-radius: 50%;
}

.upload-drop .circle-icon {
  border-radius: 50%;
}

.circle-icon::before {
  inset: 15px;
  border: 5px solid #6d28d9;
  border-radius: 50%;
}

.circle-icon::after {
  width: 14px;
  height: 14px;
  background: #6d28d9;
  border-radius: 50%;
}

.camera-drop span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  color: #0f766e;
  background: #e8f5f2;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
}

.video-drop span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
}

.circle-drop span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  color: #6d28d9;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 42%, transparent 43%),
    linear-gradient(135deg, #ede9fe, #c4b5fd);
  border: 2px solid #ddd6fe;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
}

.media-choice-grid .upload-drop {
  align-content: center;
  gap: 10px;
  padding: 16px 12px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #f9fbfd);
  border: 1px solid #e3eaf2;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.media-choice-grid .upload-drop:hover,
.media-choice-grid .upload-drop:focus-within {
  background: #fff;
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.media-choice-grid .upload-drop .picker-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  min-height: 0;
  padding: 0;
  color: #0f766e;
  background: #edf8f6;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 20px;
  box-shadow: none;
}

.media-choice-grid .upload-drop .image-icon {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.media-choice-grid .upload-drop .image-icon img {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.media-choice-grid .upload-drop .picker-icon::before,
.media-choice-grid .upload-drop .picker-icon::after {
  position: absolute;
  content: "";
}

.gallery-icon::before,
.gallery-icon::after {
  width: 28px;
  height: 4px;
  background: currentColor;
  border-radius: 999px;
}

.gallery-icon::after {
  transform: rotate(90deg);
}

.camera-icon::before {
  width: 34px;
  height: 24px;
  border: 4px solid currentColor;
  border-radius: 10px;
}

.camera-icon::after {
  width: 11px;
  height: 11px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: -13px -15px 0 -5px currentColor;
}

.video-icon::before {
  width: 34px;
  height: 24px;
  border: 4px solid currentColor;
  border-radius: 10px;
}

.video-icon::after {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.circle-icon::before {
  inset: 16px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.circle-icon::after {
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 50%;
}

.media-choice-grid .upload-drop strong {
  font-size: 18px;
  line-height: 1.15;
}

.media-choice-grid .upload-drop small {
  color: #65758b;
  font-size: 13px;
  line-height: 1.25;
}

.composer-plus {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #155e75);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.28);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.composer-plus::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
  border-radius: inherit;
  pointer-events: none;
}

.composer-plus::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 8px;
  height: 8px;
  background: #a7f3d0;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(167, 243, 208, 0.16);
  pointer-events: none;
}

.composer-plus:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(15, 118, 110, 0.36);
  filter: saturate(1.05);
}

.composer-plus:active {
  transform: translateY(0) scale(0.98);
}

.composer-plus .plus-mark {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}

.composer-plus .plus-mark::before,
.composer-plus .plus-mark::after {
  width: 22px;
  height: 3px;
}

.composer-plus input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

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

.suggestion-pills button {
  min-height: 32px;
  padding: 0 10px;
  color: #134e4a;
  background: #e8f5f2;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.upload-drop strong,
.upload-drop small {
  display: block;
}

.upload-drop small {
  color: var(--muted);
}

.media-preview {
  display: grid;
  overflow: hidden;
  background: #eef3f8;
  border-radius: var(--radius);
}

.media-preview:empty {
  display: none;
}

.media-preview img,
.media-preview video {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.media-preview.small img,
.media-preview.small video {
  max-height: 240px;
}

.media-preview.circle-preview {
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.media-preview.circle-preview .video-circle-media {
  border-radius: 18px;
}

.optional-post-fields {
  display: grid;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.optional-post-fields summary {
  cursor: pointer;
  font-weight: 900;
}

.optional-post-fields[open] {
  gap: 12px;
}

.optional-post-fields[open] summary {
  margin-bottom: 10px;
}

.composer.guest p {
  margin: 6px 0 12px;
  color: var(--muted);
}

.file-field input {
  min-height: 44px;
  padding: 10px;
}

.social-feed {
  gap: 18px;
}

.social-post {
  overflow: hidden;
}

.visual-post,
.visual-object {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.post-head {
  padding: 14px 16px;
}

.post-head strong,
.post-head a,
.post-head span {
  display: block;
}

.post-head a,
.post-head span,
.post-head small {
  color: var(--muted);
  font-size: 13px;
}

.post-media {
  display: block;
  background: #dbe4ef;
}

.post-media img,
.post-media video {
  width: 100%;
  max-height: 780px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #0f172a;
}

.video-circle-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 16px 34px;
  --circle-progress: 0%;
  --circle-size: min(300px, 68vw);
  --circle-ring-size: calc(var(--circle-size) + 22px);
  background: #fff;
}

.circle-progress-ring {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: var(--circle-ring-size);
  height: var(--circle-ring-size);
  background:
    conic-gradient(#0f766e var(--circle-progress), rgba(15, 118, 110, 0.14) 0),
    radial-gradient(circle, rgba(15, 118, 110, 0.1), transparent 70%);
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(15, 118, 110, 0.18));
  transform: translate(-50%, -50%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  pointer-events: none;
}

.video-circle-media video {
  position: relative;
  z-index: 1;
  width: var(--circle-size);
  height: var(--circle-size);
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  overflow: hidden;
  cursor: pointer;
  border: 6px solid #fff;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
}

.circle-play,
.circle-sound {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.circle-play {
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
}

.circle-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 21px solid currentColor;
}

.circle-player.is-playing .circle-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.circle-sound {
  right: max(22px, calc(50% - min(150px, 34vw) + 12px));
  bottom: 44px;
  width: 38px;
  height: 38px;
}

.circle-sound::before {
  content: "";
  width: 20px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 35%, 34% 35%, 72% 0, 72% 100%, 34% 65%, 0 65%);
}

.circle-sound::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 3px;
  background: #ef4444;
  border-radius: 999px;
  transform: rotate(-42deg);
  opacity: 0;
}

.circle-sound.muted::after {
  opacity: 1;
}

.circle-play:hover,
.circle-sound:hover {
  background: #fff;
  transform: scale(1.04);
}

.circle-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.circle-remaining {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 44px;
  min-width: 52px;
  padding: 6px 9px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.circle-player.is-playing .circle-progress-ring {
  filter: drop-shadow(0 0 18px rgba(15, 118, 110, 0.44));
}

.circle-recorder {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.circle-recorder-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(520px, 100%);
  padding: 24px;
  color: #fff;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.circle-live-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(360px, 76vw);
  height: min(360px, 76vw);
  overflow: hidden;
  background: #020617;
  border: 8px solid #fff;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.circle-live-frame::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 4px solid rgba(167, 243, 208, 0);
  border-radius: 50%;
  pointer-events: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.circle-recorder.recording .circle-live-frame::after {
  border-color: #ef4444;
  box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.12);
}

.circle-live-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.circle-recorder-status {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
}

.circle-recorder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

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

.post-actions form {
  display: inline-flex;
}

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: #223047;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.text-button:hover,
.text-button.liked {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.post-actions .post-counts {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.post-actions .post-counts span {
  margin-left: 0;
}

.post-caption {
  padding: 10px 16px 0;
}

.post-caption p {
  margin: 4px 0 0;
  line-height: 1.55;
}

.visual-object .post-caption p,
.visual-post .post-caption p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.post-tags a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.post-tags a:hover {
  text-decoration: underline;
}

.comments {
  display: grid;
  gap: 6px;
  padding: 12px 16px 16px;
}

.comments-list {
  display: grid;
  gap: 6px;
}

.comments p {
  margin: 0;
  color: #2f3d52;
  font-size: 14px;
}

.comment-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  background: #f4f7fb;
  border-radius: 14px;
}

.all-comments {
  display: grid;
  gap: 6px;
}

.all-comments summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.comments small,
.post-status,
.comment-login {
  color: var(--muted);
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 4px;
}

.comment-form button {
  min-height: 40px;
  color: var(--brand);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.post-status {
  display: block;
  padding: 0 16px 14px;
  font-size: 12px;
}

.mobile-tabbar {
  display: none;
}

.create-post-page,
.profile-page,
.tag-page,
.search-page,
.region-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.search-hero,
.region-hero {
  margin-bottom: 22px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-hero h1,
.region-hero h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 54px);
}

.big-search {
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(780px, 100%);
  margin-top: 18px;
  padding: 10px;
}

.search-results-section {
  margin-top: 22px;
}

.search-results-grid,
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.result-card,
.route-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-card h3,
.route-card h3,
.result-card p,
.route-card p {
  margin: 4px 0;
}

.result-card small,
.route-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #dbe4ef;
  border-radius: 6px;
}

.result-media img,
.result-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-result {
  grid-template-columns: auto minmax(0, 1fr);
}

.route-points,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.route-points a,
.quick-tags a {
  padding: 7px 10px;
  color: #134e4a;
  background: #e8f5f2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.region-hero {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(10, 18, 33, 0.78), rgba(10, 18, 33, 0.25)), var(--hero);
  background-position: center;
  background-size: cover;
}

.region-hero h1,
.region-hero p {
  color: #fff;
}

.region-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.region-summary span {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.section.flush {
  padding-right: 0;
  padding-left: 0;
}

.profile-type-block {
  display: grid;
  gap: 10px;
}

.profile-type-block > span {
  font-weight: 900;
}

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

.profile-type-card {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.profile-type-card input {
  position: absolute;
  top: 10px;
  right: 10px;
}

.profile-type-card:has(input:checked) {
  border-color: #0f766e;
  background: #e8f5f2;
}

.profile-type-card small {
  color: var(--muted);
}

.create-post-card {
  display: grid;
  gap: 14px;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.post-modal {
  position: relative;
  width: min(720px, calc(100% - 24px));
  max-height: calc(100dvh - 34px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.post-modal::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
}

.post-modal .create-post-card {
  width: 100%;
  max-height: calc(100dvh - 34px);
  overflow: auto;
  border-radius: 18px;
}

.post-modal .create-post-card .eyebrow {
  margin: 0;
  letter-spacing: 0;
}

.post-modal .create-post-card h1 {
  margin: 0 54px 0 0;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.08;
}

.composer-subtitle {
  margin: -6px 54px 2px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.modal-close-form {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
}

.modal-close-form .ghost {
  min-height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.9);
}

.modal-x {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.modal-x:hover {
  background: #f8fafc;
}

.create-post-card h1,
.tag-hero h1,
.public-profile-head h1 {
  color: var(--ink);
}

.tag-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.tag-hero {
  margin-bottom: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.location-page {
  max-width: 1180px;
  margin: 0 auto;
}

.location-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
  min-height: 420px;
  margin: 18px 0 24px;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 23, 35, 0.82), rgba(9, 23, 35, 0.26)),
    var(--hero) center / cover;
  border-radius: 18px;
  overflow: hidden;
}

.location-hero h1 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(38px, 6vw, 76px);
}

.location-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
}

.location-hero .eyebrow {
  color: #b7f0df;
}

.weather-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.weather-card span,
.weather-card small {
  color: var(--muted);
  font-weight: 800;
}

.weather-card strong {
  font-size: 24px;
}

.section.flush {
  margin: 0 0 24px;
  padding-right: 0;
  padding-left: 0;
}

.public-profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.object-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 18px auto 22px;
  padding: 24px;
  max-width: 1180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.object-profile-head h1 {
  margin: 4px 0;
  color: var(--ink);
}

.object-avatar {
  border: 4px solid #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.object-guest-feed {
  margin-top: 18px;
}

.avatar.big {
  width: 110px;
  height: 110px;
  font-size: 34px;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0;
}

.profile-stats span {
  color: var(--muted);
}

.profile-stats strong {
  color: var(--ink);
}

.profile-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.profile-tabs a {
  flex: 0 0 auto;
  padding: 10px 13px;
  color: #223047;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.profile-tabs a:hover {
  color: #134e4a;
  border-color: #9cc7be;
  background: #e8f5f2;
}

.profile-sections {
  display: grid;
  gap: 22px;
}

.profile-tab-section {
  scroll-margin-top: 90px;
}

.profile-tab-section > h2 {
  margin-bottom: 12px;
}

.question-preview {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.question-preview p {
  margin: 4px 0 0;
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #dbe4ef;
}

.profile-tile img,
.profile-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-tile span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.circle-result-media {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.22), transparent 55%),
    #0f172a;
}

.circle-mini-player,
.circle-profile-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 4px;
  --circle-progress: 0%;
  background: conic-gradient(#34d399 var(--circle-progress), rgba(255, 255, 255, 0.18) 0);
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
}

.circle-mini-player {
  width: min(118px, calc(100% - 18px));
  height: min(118px, calc(100% - 18px));
}

.circle-profile-media {
  width: 86%;
  height: 86%;
}

.circle-mini-player video,
.circle-profile-media video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0f172a;
  border: 3px solid #fff;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

.circle-mini-player::after,
.circle-profile-media::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.32));
  pointer-events: none;
  transition: opacity 160ms ease;
}

.circle-mini-player.is-playing::after,
.circle-profile-media.is-playing::after {
  opacity: 0;
}

.profile-tile.circle-profile-tile {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.22), transparent 58%),
    #0f172a;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

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

  .category-grid,
  .place-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout,
  .dashboard-grid,
  .social-shell,
  .tag-layout,
  .booking-hero {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .sticky-panel,
  .social-rail {
    position: static;
  }

  .social-rail.right {
    display: none;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 66px;
  }

  .topbar .nav {
    display: none;
  }

  .topbar {
    min-height: 68px;
  }

  .hero {
    min-height: 540px;
    padding: 24px 16px;
  }

  .search,
  .category-grid,
  .place-grid,
  .facts,
  .stats,
  .two,
  .post {
    grid-template-columns: 1fr;
  }

  .section-head,
  .booking-row,
  .table-row,
  .moderation-row,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery img,
  .detail-gallery video,
  .detail-gallery img:first-child,
  .detail-gallery video:first-child {
    height: 260px;
  }

  .post img {
    height: 220px;
  }

  .social-shell {
    width: 100%;
    padding: 0 0 18px;
    gap: 0;
  }

  .create-post-page,
  .profile-page,
  .tag-page,
  .search-page,
  .region-page {
    width: 100%;
    padding: 0 0 18px;
  }

  .create-post-card,
  .public-profile-head,
  .tag-hero,
  .search-hero,
  .region-hero,
  .profile-grid {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .public-profile-head {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .profile-stats,
  .public-profile-head .actions {
    justify-content: center;
  }

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

  .search-results-grid,
  .route-grid,
  .profile-type-grid {
    grid-template-columns: 1fr;
  }

  .result-card,
  .route-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .big-search {
    grid-template-columns: 1fr;
  }

  .social-rail.left,
  .social-rail.right {
    display: none;
  }

  .stories,
  .composer,
  .social-post {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .stories {
    margin-bottom: 0;
  }

  .composer {
    margin-bottom: 0;
  }

  .post-media img,
  .post-media video {
    max-height: 560px;
  }

  .video-circle-media {
    --circle-size: min(270px, 70vw);
    --circle-ring-size: calc(var(--circle-size) + 18px);
    padding: 20px 12px 32px;
  }

  .circle-play {
    width: 56px;
    height: 56px;
  }

  .circle-play::before {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 19px;
  }

  .circle-sound {
    right: max(18px, calc(50% - min(135px, 35vw) + 10px));
    bottom: 40px;
    width: 34px;
    height: 34px;
  }

  .circle-remaining {
    bottom: 40px;
    font-size: 12px;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .mobile-tabbar {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 60px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .mobile-tabbar a {
    display: grid;
    grid-template-rows: 24px auto;
    place-items: center;
    gap: 2px;
    color: #223047;
    font-weight: 900;
  }

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

  .mobile-tabbar small {
    font-size: 11px;
  }

  .post-modal {
    align-self: start;
    width: min(100% - 24px, 680px);
    max-height: 90dvh;
    margin: 5dvh auto auto;
    border-radius: 18px;
  }

  .post-modal .create-post-card {
    gap: 10px;
    max-height: 90dvh;
    padding: 16px;
    border-radius: 18px;
  }

  .post-modal .create-post-card .eyebrow {
    margin: 0;
    font-size: 12px;
  }

  .post-modal .create-post-card h1 {
    margin: 0 44px 0 0;
    font-size: clamp(25px, 7vw, 29px);
    line-height: 1.08;
  }

  .composer-subtitle {
    margin: -4px 44px 2px 0;
    font-size: 13px;
  }

  .modal-close-form {
    top: 12px;
    right: 12px;
  }

  .modal-x {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .media-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .plus-drop,
  .camera-drop,
  .video-drop,
  .circle-drop {
    min-height: 124px;
    gap: 6px;
    padding: 10px 8px;
  }

  .plus-glyph,
  .plus-drop .plus-mark,
  .gallery-icon,
  .upload-drop .picker-icon,
  .camera-drop span,
  .video-drop span,
  .circle-drop span {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    font-size: 25px;
  }

  .media-choice-grid .upload-drop .image-icon,
  .media-choice-grid .upload-drop .image-icon img {
    width: 64px;
    height: 64px;
  }

  .plus-glyph {
    font-size: 42px;
  }

  .upload-drop strong {
    font-size: 15px;
    line-height: 1.15;
  }

  .upload-drop small {
    font-size: 11px;
    line-height: 1.25;
  }

  .object-profile-head,
  .location-hero {
    grid-template-columns: 1fr;
    margin-right: 0;
    margin-left: 0;
    border-radius: 0;
  }

  .object-profile-head {
    text-align: center;
    justify-items: center;
  }

  .location-hero {
    min-height: 520px;
  }
}
