@font-face {
  font-family: Euclid;
  src: url("/assets/euclid.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Kudry;
  src: url("/assets/headline.woff2") format("woff2");
  font-display: swap;
}

/* Mriya Palette (mriyaresort.com + Brandbook):
   - Primary Canvas:   #FFFFFF (crisp white everywhere, including live feed)
   - Deep Charcoal:    #181C23 / #252932 (text & active filters)
   - Cool Slate Text:  #666C75 (secondary text)
   - Cool Silver Line: #E6E8EC (dividers, zero beige wash)
   - Soft Pearl Grey:  #F4F5F8 (feed cards & neutral secondary surfaces)
   - Signature Accent: #9A7060 (Pantone 4715 C — primary CTAs, active nav, paid tags, live dot) */
:root {
  --bg: #ffffff;
  --surface: #f3f4f7;
  --surface-subtle: #fafbfc;
  --surface-strong: #e6e9ee;
  --line: #e6e8ec;
  --line-hover: #b6bcc6;
  --line-strong: #cfd3da;
  --ink-strong: #181c23;
  --ink: #252932;
  --muted: #666c75;
  --subtle: #949ba6;
  --accent: #9a7060;
  --accent-hover: #825b4c;
  --accent-text: #7c5a4a;
  --accent-soft: #f6efec;
  --pad: clamp(18px, 5vw, 24px);
  --header-h: 56px;
  font:
    15.5px/1.48 Euclid,
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  scrollbar-width: none;
  background: var(--bg);
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}
::selection {
  background: var(--accent-soft);
  color: var(--ink-strong);
}
[hidden] {
  display: none !important;
}

.shell {
  max-width: 560px;
  min-height: 100dvh;
  background: var(--bg);
  margin: auto;
  padding: 0 var(--pad) calc(92px + env(safe-area-inset-bottom));
  position: relative;
}
@media (min-width: 561px) {
  .shell {
    box-shadow: 0 0 0 1px var(--line);
  }
}

a {
  color: inherit;
  text-underline-offset: 3px;
}
main {
  padding-top: 16px;
  overflow-wrap: break-word;
}
main:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3,
.card-title {
  font-family: inherit;
  font-weight: 500;
  color: var(--ink-strong);
  margin: 0;
}
p {
  margin: 8px 0 14px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.ui-icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: block;
}
.pin-sm {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
}

/* --- Unified Fixed / Sticky Top Header --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 6;
  height: var(--header-h);
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  align-items: center;
  background: rgb(255 255 255 / 95%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-mark,
.header-back {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  justify-self: start;
  border-radius: 50%;
  text-decoration: none;
  color: var(--ink-strong);
  transition: background 0.16s ease;
}
.header-mark:hover,
.header-back:hover {
  background: var(--surface);
}
.header-back .ui-icon {
  width: 22px;
  height: 22px;
}
.resort-symbol {
  width: 32px;
  height: 32px;
  display: block;
  mix-blend-mode: multiply;
}
.header-title {
  text-align: center;
  font-family: Kudry, Georgia, serif;
  font-size: 1.16rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-title.is-brand {
  font-size: 1.62rem;
  letter-spacing: 0.06em;
}
.header-tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 2px;
}
.header-tools a {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-strong);
  text-decoration: none;
  transition: background 0.16s ease;
}
.header-tools a:hover {
  background: var(--surface);
}
.header-tools a.has-dot::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px #ffffff;
}

/* --- Bottom Navigation (Signature Top Bar Accent) --- */
nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 560px);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 6;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
nav a {
  position: relative;
  min-height: 50px;
  min-width: 0;
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  text-decoration: none;
  font-size: 0.72rem;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.16s ease;
}
nav a:hover {
  color: var(--ink-strong);
}
nav svg {
  width: 22px;
  height: 22px;
}
nav a[aria-current="page"] {
  color: var(--ink-strong);
  font-weight: 500;
}
nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -6px;
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

/* --- Typography & Section Headers --- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
}
.section-title {
  font-size: 1.14rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 28px 0 12px;
  color: var(--ink-strong);
}
.section-title.first,
.section-head .section-title {
  margin: 0;
}
.section-title.first {
  margin: 4px 0 12px;
}
.textlink {
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.textlink:hover {
  color: var(--ink-strong);
}
.detail-kicker {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 14px 0 4px;
}
.detail-title {
  font-size: clamp(1.45rem, 5.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin: 0 0 16px;
}
.meta,
.plan-subtitle {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 6px 0 12px;
}
.empty-inline {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  padding: 28px 12px;
}

/* --- Buttons & Inputs (Primary CTAs in Mriya #9A7060, like «Забронировать») --- */
button,
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid transparent;
  text-decoration: none;
  background: var(--surface);
  color: var(--ink-strong);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.93rem;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.12s ease;
}
button:active,
.btn:active {
  transform: scale(0.99);
}
.btn:hover,
button:hover {
  background: var(--surface-strong);
}
.primary {
  background: var(--accent);
  color: #ffffff;
}
.primary:hover {
  background: var(--accent-hover);
}
.wide {
  width: 100%;
}
label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
input,
textarea,
select {
  background: #ffffff;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-strong);
  font-size: 0.94rem;
  transition: border-color 0.16s ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666c75' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
textarea {
  min-height: 88px;
}

/* --- Custom Accessible File Picker (#requests) --- */
.field-block {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}
.field-caption {
  font-size: 0.85rem;
  color: var(--muted);
}
.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink-strong);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}
.file-picker:hover {
  border-color: var(--accent);
  background: #ffffff;
}
.file-picker.has-file {
  border-style: solid;
  border-color: #d7bdae;
  background: var(--accent-soft);
}
.file-picker:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.file-input-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.file-picker-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--accent);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.file-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.file-picker-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.file-picker-copy strong {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-picker-copy small {
  font-size: 0.77rem;
  color: var(--muted);
}
.file-picker-btn {
  flex: none;
  padding: 6px 12px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.16s ease;
}
.file-picker:hover .file-picker-btn {
  border-color: var(--line-hover);
}

/* --- Dining Schedule Table (#service/dining) --- */
.dining-card {
  margin: 4px 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}
.dining-table {
  display: grid;
}
.dining-row {
  display: grid;
  grid-template-columns: minmax(90px, 1.05fr) 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.dining-row:last-child {
  border-bottom: 0;
}
.dining-row > * {
  padding: 13px 12px;
}
.dining-row > :not(:first-child) {
  border-left: 1px solid var(--line);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.dining-row.is-head {
  background: var(--surface);
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.dining-row.is-head > :not(:first-child) {
  color: var(--accent-text);
  font-weight: 600;
}
.dining-row strong {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-strong);
}
.dining-row span[role="cell"] {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* --- Airy Silver-Grey Hairline Lists (Clean Line Hover, Zero Beige) --- */
.card-list {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin: 14px 0 22px;
}
.row,
.meta-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding: 13px 2px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.16s ease;
}
.row:hover {
  border-bottom-color: var(--line-hover);
}
.row:hover .row-trail {
  color: var(--ink-strong);
  transform: translateX(2px);
}
.row-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.row-icon .ui-icon {
  width: 19px;
  height: 19px;
}
.row-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.row-body strong {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.28;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}
.row-body small {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.3;
}
.row-trail {
  color: var(--subtle);
  font-size: 0.95rem;
  white-space: nowrap;
  flex: none;
  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

/* --- Editorial Notes & Form Panels --- */
.info-card {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0;
  margin: 12px 0 20px;
}
.panel,
.stage-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0 20px;
}
.panel h2,
.info-card h2,
.stage-card h3 {
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink-strong);
  margin: 0 0 8px;
}
.panel p:last-child,
.info-card p:last-child,
.stage-card p:last-child {
  margin-bottom: 0;
}
.stage-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.84rem;
  font-weight: 500;
}

/* --- Editorial Photo Stories Strip (Home Top) --- */
.editorial-strip {
  margin: 0 0 22px;
}
.stories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px;
}
.stories::-webkit-scrollbar {
  display: none;
}
.story-card {
  position: relative;
  isolation: isolate;
  flex: 0 0 98px;
  height: 128px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #252932;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
}
.story-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.28s ease;
}
.story-card:hover img {
  transform: scale(1.035);
}
.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgb(20 24 31 / 76%),
    rgb(20 24 31 / 8%) 56%,
    transparent
  );
}
.story-card span {
  padding: 9px 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.2;
}

/* --- Home Hero (Nearest Event on Clean White Surface) --- */
.hero {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 4px 0 24px;
}
.hero.is-ticket {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  filter: drop-shadow(1px 0 0 #dfe3e8)
    drop-shadow(-1px 0 0 #dfe3e8)
    drop-shadow(0 1px 0 #dfe3e8)
    drop-shadow(0 -1px 0 #dfe3e8);
}
.hero-media {
  position: relative;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.hero.is-ticket .hero-media {
  -webkit-mask:
    radial-gradient(circle 11px at 0 100%, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 100%, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 100%, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 100%, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
}
.hero-media > img,
.cover {
  width: 100%;
  aspect-ratio: 2.05;
  object-fit: cover;
  display: block;
}
.cover {
  border-radius: 14px;
}
.hero-media > .cover {
  border-radius: 0;
}
.hero-time-chip {
  position: absolute;
  left: 14px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgb(24 28 35 / 74%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hero-time-chip .ui-icon {
  width: 14px;
  height: 14px;
}
.hero-body {
  position: relative;
  padding: 16px 18px 18px;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
}
.hero.is-ticket .hero-body {
  margin-top: -1px;
  padding-top: 17px;
  background: #ffffff;
  color: var(--ink);
  -webkit-mask:
    radial-gradient(circle 11px at 0 0, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 0, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 0, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 0, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
}
.hero-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.ticket-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid transparent;
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  flex: none;
  transition: background 0.16s ease;
}
.ticket-mini-btn:hover {
  background: var(--surface-strong);
}
.ticket-mini-btn .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.hero .card-title {
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}
.hero .card-title a {
  text-decoration: none;
}
.hero-place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 15px;
}
.hero-place .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.hero-cta {
  display: flex;
  gap: 8px;
}

/* --- Home Next-in-Plan (Minimalist Hairline Schedule on White) --- */
.plan-cards {
  display: block;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}
.plan-card {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-decoration: none;
  transition: border-color 0.16s ease;
}
.plan-card:hover {
  border-bottom-color: var(--line-hover);
}
.plan-card:hover .row-trail {
  color: var(--ink-strong);
  transform: translateX(2px);
}
.plan-card-time {
  min-width: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.94rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-strong);
  flex: none;
}
.plan-card-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.plan-card-body strong {
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--ink-strong);
}
.plan-card-body small {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.3;
}
.plan-card .row-trail {
  align-self: center;
}
.plan-add-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 2px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--accent-text);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    color 0.16s ease,
    border-color 0.16s ease;
}
.plan-cards .plan-add-card {
  border-top: 0;
}
.plan-add-card:hover {
  border-bottom-color: var(--line-hover);
  color: var(--ink-strong);
}
.plan-add-card:hover .row-trail {
  color: var(--ink-strong);
  transform: translateX(2px);
}
.plan-add-card .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.plan-add-card span:nth-child(2) {
  flex: 1;
}

/* --- Live Resort Feed Entry Block (White Surface + #9A7060 Accent Button) --- */
.live-feed-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  margin: 20px 0 24px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.16s ease;
}
.live-feed-card:hover {
  border-color: var(--line-hover);
}
.live-feed-card:hover .live-feed-cta {
  background: var(--accent-hover);
}
.live-avatars {
  display: flex;
  align-items: center;
  flex: none;
}
.live-avatars img,
.live-avatar-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  background: var(--surface-strong);
  display: block;
}
.live-avatars > :not(:first-child) {
  margin-left: -12px;
}
.live-feed-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.live-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.67rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--accent-text);
}
.live-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgb(154 112 96 / 18%);
}
.live-feed-copy strong {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.24;
  color: var(--ink-strong);
}
.live-feed-copy small {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-feed-cta {
  flex: none;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.16s ease;
}

/* --- Home Resort Directory (Open Architectural Hairline Grid on White) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bento-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none;
}
.bento-card:nth-child(odd) {
  padding-left: 2px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.bento-card:nth-child(even) {
  padding-left: 16px;
  padding-right: 2px;
}
.bento-card:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.bento-card:hover .bento-icon {
  color: var(--accent);
}
.bento-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 6px;
  transition: color 0.16s ease;
}
.bento-card strong {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.24;
  color: var(--ink-strong);
}
.bento-card small {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.32;
}

/* --- Physical Ticket Screen (#ticket / #pass) --- */
.ticket-surface {
  background: var(--surface);
  margin: -16px calc(var(--pad) * -1) 20px;
  padding: 22px var(--pad) 28px;
  border-bottom: 1px solid var(--line);
}
.admission {
  position: relative;
  filter: drop-shadow(0 8px 20px rgb(24 28 35 / 6%))
    drop-shadow(0 1px 2px rgb(24 28 35 / 4%));
}
.admission-media {
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  -webkit-mask:
    radial-gradient(circle 11px at 0 100%, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 100%, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 100%, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 100%, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
}
.admission-media > .cover {
  border-radius: 0;
  aspect-ratio: 2.1;
}
.admission-body {
  position: relative;
  background: #ffffff;
  padding: 18px 20px 20px;
  border-radius: 18px 18px 0 0;
  -webkit-mask:
    radial-gradient(circle 11px at 0 100%, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 100%, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 100%, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 100%, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
}
.admission.has-photo .admission-body {
  border-radius: 0;
  -webkit-mask:
    radial-gradient(circle 11px at 0 0, transparent 10.5px, #000 11px) top left / 51% 51% no-repeat,
    radial-gradient(circle 11px at 100% 0, transparent 10.5px, #000 11px) top right / 51% 51% no-repeat,
    radial-gradient(circle 11px at 0 100%, transparent 10.5px, #000 11px) bottom left / 51% 51% no-repeat,
    radial-gradient(circle 11px at 100% 100%, transparent 10.5px, #000 11px) bottom right / 51% 51% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 0, transparent 10.5px, #000 11px) top left / 51% 51% no-repeat,
    radial-gradient(circle 11px at 100% 0, transparent 10.5px, #000 11px) top right / 51% 51% no-repeat,
    radial-gradient(circle 11px at 0 100%, transparent 10.5px, #000 11px) bottom left / 51% 51% no-repeat,
    radial-gradient(circle 11px at 100% 100%, transparent 10.5px, #000 11px) bottom right / 51% 51% no-repeat;
}
.admission-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}
.ticket-valid {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-text);
  letter-spacing: 0.02em;
}
.admission-body h2 {
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.22;
  margin: 0 0 14px;
}
.admission dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.admission dt {
  color: var(--muted);
  font-size: 0.84rem;
}
.admission dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}
.admission-stub {
  position: relative;
  background: #ffffff;
  border-radius: 0 0 18px 18px;
  padding: 18px 20px 20px;
  display: grid;
  gap: 10px;
  justify-items: center;
  -webkit-mask:
    radial-gradient(circle 11px at 0 0, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 0, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 0, transparent 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 0, transparent 10.5px, #000 11px) right / 51% 100% no-repeat;
}
.admission-stub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  border-top: 1px dashed var(--line-strong);
}
.ticket-barcode {
  width: 100%;
  height: 36px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink-strong) 0 2px,
    transparent 2px 5px,
    var(--ink-strong) 5px 8px,
    transparent 8px 10px,
    var(--ink-strong) 10px 11px,
    transparent 11px 15px,
    var(--ink-strong) 15px 19px,
    transparent 19px 22px
  );
  opacity: 0.82;
}
.admission-code {
  text-align: center;
  display: grid;
  gap: 2px;
}
.admission-code strong {
  font-size: 0.96rem;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-strong);
}
.admission-code small {
  font-size: 0.78rem;
  color: var(--muted);
}

/* --- Events Hub & Minimalist "My Plan" Block --- */
.my-plan-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-strong);
  text-decoration: none;
  margin: 2px 0 14px;
  transition: border-color 0.16s ease;
}
.my-plan-banner:hover {
  border-color: var(--line-hover);
}
.my-plan-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.my-plan-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.my-plan-copy strong {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-strong);
}
.my-plan-copy small {
  font-size: 0.8rem;
  color: var(--muted);
}
.my-plan-cta {
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* --- Agenda & Event Items (Clear Paid #9A7060 Tag vs Included) --- */
.weekend {
  display: flex;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.weekend button {
  flex: 1;
  background: var(--surface);
  border-radius: 8px;
  font-size: 0.9rem;
  min-height: 42px;
}
.weekend [aria-pressed="true"] {
  background: var(--ink);
  color: #ffffff;
}
.agenda-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 12px;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  align-items: start;
  transition: border-color 0.16s ease;
}
.agenda-item:hover {
  border-bottom-color: var(--line-hover);
}
.agenda-item:hover .chev {
  color: var(--ink-strong);
  transform: translateX(2px);
}
.agenda-time {
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.agenda-time time {
  font-weight: 500;
  font-size: 0.95rem;
}
.agenda-copy {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.agenda-title {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1rem;
  line-height: 1.26;
  font-weight: 500;
  color: var(--ink-strong);
}
.ruble-mark {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.98rem;
  flex: none;
}
.agenda-category {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}
.agenda-place {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.84rem;
  color: var(--muted);
}
.agenda-status {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  padding: 2.5px 8.5px;
  border-radius: 6px;
  margin-top: 2px;
}
.chev {
  color: var(--subtle);
  align-self: center;
  font-size: 1.05rem;
  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

/* --- Event Detail Page --- */
.event-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-bottom: 8px;
}
.event-gallery::-webkit-scrollbar {
  display: none;
}
.event-gallery .cover {
  flex: 0 0 89%;
  width: 89%;
  scroll-snap-align: start;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
  margin: 12px 0 20px;
}
.fact-item {
  padding: 0 12px;
  display: grid;
  gap: 2px;
}
.fact-item:first-child {
  padding-left: 0;
}
.fact-item + .fact-item {
  border-left: 1px solid var(--line);
}
.fact-item small {
  font-size: 0.76rem;
  color: var(--muted);
}
.fact-item b {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.facts.is-place .fact-item b {
  font-size: 0.94rem;
  line-height: 1.25;
}
.event-desc {
  line-height: 1.56;
  color: var(--ink);
  margin: 0 0 18px;
}
.event-actions {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
}
.plan-toggle {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--ink-strong);
}
.plan-toggle:hover {
  background: var(--surface-subtle);
  border-color: var(--accent);
}
.plan-toggle[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: #d7bdae;
  color: var(--accent-text);
}
.conflict-note {
  font-size: 0.82rem;
  color: var(--accent-text);
  padding: 0 2px;
}

/* --- Plan & Session Rows --- */
.actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 14px;
}
.actions::-webkit-scrollbar {
  display: none;
}
.plan-day {
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 14px;
  font-size: 0.86rem;
  white-space: nowrap;
  min-height: 40px;
  font-variant-numeric: tabular-nums;
}
.plan-day[aria-pressed="true"] {
  background: var(--ink);
  color: #ffffff;
}
.session {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 12px;
  gap: 12px;
  padding: 15px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: border-color 0.16s ease;
}
.session:hover {
  border-bottom-color: var(--line-hover);
}
.session:hover .chev {
  color: var(--ink-strong);
  transform: translateX(2px);
}
.times {
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.times b {
  font-size: 0.95rem;
  font-weight: 500;
}
.session-info strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-strong);
  line-height: 1.26;
  margin: 2px 0 3px;
}
.session-info small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.badges i {
  font-style: normal;
  font-size: 0.74rem;
  padding: 2.5px 8.5px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.plan-empty {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 0;
  margin: 12px 0 18px;
}
.plan-empty h3 {
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 6px;
}

/* --- Catalog Tiles & Open Editorial Offer Cards --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 24px;
}
.catalog-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1.05;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
  background: #252932;
  color: #ffffff;
  text-decoration: none;
}
.catalog-tile img,
.catalog-tile::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.catalog-tile img {
  transition: transform 0.28s ease;
}
.catalog-tile:hover img {
  transform: scale(1.03);
}
.catalog-tile::after {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, rgb(20 24 31 / 76%), transparent 62%);
}
.catalog-tile strong {
  padding: 13px;
  font-size: clamp(0.94rem, 3.6vw, 1.04rem);
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.menu-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 14px;
  position: sticky;
  top: var(--header-h);
  z-index: 3;
  background: var(--bg);
}
.menu-pills::-webkit-scrollbar {
  display: none;
}
.menu-pill {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.84rem;
  white-space: nowrap;
}
.menu-pill.is-active {
  background: var(--ink);
  color: #ffffff;
}
.menu-section {
  scroll-margin-top: calc(var(--header-h) + 52px);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
  margin: 8px 0 24px;
}
.offer-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none;
}
.offer-thumb {
  position: relative;
  aspect-ratio: 1.18;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
}
.offer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.offer-card:hover .offer-thumb img {
  transform: scale(1.03);
}
.offer-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
}
.offer-meta {
  padding: 9px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.offer-meta small {
  font-size: 0.74rem;
  color: var(--muted);
}
.offer-meta strong {
  font-size: 0.89rem;
  font-weight: 500;
  line-height: 1.26;
  color: var(--ink-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.offer-price {
  margin-top: auto;
  padding-top: 3px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--accent-text);
}

.collection-hero {
  display: block;
  width: 100%;
  aspect-ratio: 1.85;
  object-fit: cover;
  margin: 2px 0 16px;
  border-radius: 14px;
}
.catalog-description {
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.54;
}
.deal-banner {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 500;
}
.menu-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.menu-option b {
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink-strong);
}
.order-sum {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink-strong);
  margin: 12px 0;
}
.basket-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.basket-line small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}
.basket-line button {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.82rem;
}
.basket-shortcut {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  right: max(18px, calc((100vw - 520px) / 2));
  background: var(--accent);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 500;
  z-index: 5;
  box-shadow: 0 6px 18px rgb(24 28 35 / 18%);
}
.basket-shortcut:hover {
  background: var(--accent-hover);
}

/* --- Profile & Cool Pearl-Grey Loyalty Card --- */
.loyalty-intro {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px auto 22px;
  max-width: 360px;
}
.loyalty-levels {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.loyalty-tier {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.loyalty-tier.is-current {
  background: var(--surface-subtle);
  border-color: var(--accent);
}
.loyalty-tier-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
.tier-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink-strong);
  flex: none;
}
.tier-badge.tier-1 {
  border-color: var(--line);
}
.tier-badge.tier-2 {
  border-color: var(--accent);
}
.tier-badge.tier-3 {
  border-color: #b8c0c8;
}
.tier-badge.tier-4 {
  border-color: #c2b28b;
}
.tier-badge.tier-5 {
  border-color: var(--ink-strong);
}
.tier-title-wrap {
  display: grid;
  gap: 2px;
}
.tier-title-wrap h2 {
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--ink-strong);
  line-height: 1.18;
}
.tier-meta {
  font-size: 0.79rem;
  color: var(--muted);
}
.loyalty-tier p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 10px;
}
.loyalty-tier p:last-child {
  margin-bottom: 0;
}
.tier-accent {
  color: var(--accent-text);
  font-weight: 500;
}

.wallet {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-strong);
  margin: 2px 0 18px;
}
.wallet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.wallet-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-lotus {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}
.wallet-lotus img {
  width: 24px;
  height: 24px;
  display: block;
}
.wallet small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}
.wallet h2 {
  font-size: 1.38rem;
  font-weight: 500;
  margin: 1px 0 0;
  color: var(--ink-strong);
}
.wallet-cashback {
  padding: 5px 10px;
  border-radius: 99px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}
.wallet-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wallet-stat {
  display: grid;
  gap: 2px;
}
.wallet-stat strong {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.wallet-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}
.wallet-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.wallet-btn {
  flex: 1;
  min-height: 40px;
  padding: 8px 8px;
  font-size: 0.81rem;
  white-space: nowrap;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-strong);
}
.wallet-btn:hover {
  background: var(--surface-subtle);
  border-color: var(--line-hover);
}
.wallet-btn.is-solid {
  background: var(--accent);
  border-color: transparent;
  color: #ffffff;
}
.wallet-btn.is-solid:hover {
  background: var(--accent-hover);
}

.trip-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0 4px;
  margin: 0 0 14px;
}
.trip-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.trip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-strong);
}
.trip-badge .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.trip-add-btn {
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid transparent;
  font-size: 0.8rem;
  gap: 4px;
}
.trip-add-btn .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.trip-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.trip-controls label {
  margin: 0;
}

/* --- Hotel Info Page (Open Editorial Layout on White) --- */
.hotel-hero {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0 0 18px;
}
.hotel-hero img {
  width: 100%;
  aspect-ratio: 2.1;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}
.hotel-hero-body {
  padding: 16px 0 4px;
}
.hotel-hero-body h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.hotel-hero-body p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.88rem;
}
.hotel-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hotel-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hotel-info-tile {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hotel-info-tile:nth-child(odd) {
  padding-left: 2px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.hotel-info-tile:nth-child(even) {
  padding-left: 16px;
  padding-right: 2px;
}
.hotel-info-tile:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.hotel-info-tile small {
  font-size: 0.77rem;
  color: var(--muted);
}
.hotel-info-tile strong {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-strong);
}
.hotel-info-tile > span:last-child {
  font-size: 0.77rem;
  color: var(--muted);
}

/* --- Notifications & Empty States --- */
.notif-list {
  border-top: 1px solid var(--line);
}
.notif-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 2px;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.16s ease;
}
.notif-card:hover {
  border-bottom-color: var(--line-hover);
}
.notif-card:hover .row-trail {
  color: var(--ink-strong);
  transform: translateX(2px);
}
.notif-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.notif-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.notif-kind {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent-text);
}
.notif-body strong {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-strong);
}
.notif-body small {
  font-size: 0.8rem;
  color: var(--muted);
}
.empty-state {
  text-align: center;
  padding: 40px 18px;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: 8px 0 18px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.empty-state h2 {
  font-size: 1.14rem;
  font-weight: 500;
}
.empty-state p {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 300px;
  margin: 0 0 8px;
}
.empty-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Resort Feed («Курортный движ»: Clear Segmented Switcher + Borderless Cool-Grey Cards on White) --- */
main:has(#live-feed) {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h) - 68px - env(safe-area-inset-bottom));
  padding-top: 10px;
}
.topic-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
  padding: 4px;
  margin: 0 0 10px;
  border-radius: 10px;
  background: #eff1f5;
  flex: none;
}
.topic-tabs::-webkit-scrollbar {
  display: none;
}
.topic-tabs a {
  flex: 0 0 auto;
  justify-content: center;
  text-align: center;
  border-radius: 7px;
  background: transparent;
  padding: 8px 7px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.15;
  color: #505660;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.topic-tabs a:first-child {
  padding-inline: 11px;
}
.topic-tabs a:hover {
  color: var(--ink-strong);
}
.topic-tabs a[aria-current="true"] {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 3px rgb(24 28 35 / 14%);
}
#live-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 calc(var(--pad) * -1);
  padding: 4px var(--pad) 28px;
  background: #ffffff;
  scrollbar-width: none;
  overflow-anchor: none;
}
#live-feed::-webkit-scrollbar {
  display: none;
}
.message-day {
  text-align: center;
  margin: 6px 0 10px;
  padding: 4px 0;
  color: var(--subtle);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.feed-post,
.chat-post {
  padding: 15px 16px;
  margin: 0 0 12px;
  border-radius: 16px;
  background: #f4f5f8;
  border: 0;
}
.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.post-sender {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.post-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  flex: none;
}
.post-avatar img {
  width: 15px;
  height: 15px;
  display: block;
}
.post-author {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-strong);
}
.message-time {
  font-size: 0.75rem;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.clip-message {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.clip-message p {
  margin: 0;
  white-space: pre-line;
  font-size: 0.93rem;
  color: var(--ink);
}
.post-more {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
}
.post-more:hover {
  color: var(--ink-strong);
}
.chat-clip-stage {
  display: flex;
  justify-content: center;
  margin: 14px 0 2px;
}
.clip-play {
  padding: 0;
  display: block;
  position: relative;
  width: clamp(184px, 52vw, 214px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #dfe3ea;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 18px rgb(24 28 35 / 11%);
  transition:
    width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s ease;
}
.clip-play[aria-pressed="true"] {
  width: min(76vw, 308px, 48dvh);
  box-shadow: 0 10px 26px rgb(24 28 35 / 16%);
}
.clip-play video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.clip-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: transparent;
  color: rgb(255 255 255 / 76%);
  filter: drop-shadow(0 2px 10px rgb(0 0 0 / 32%));
  display: grid;
  place-items: center;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}
.clip-play:hover .clip-play-badge {
  color: rgb(255 255 255 / 92%);
  transform: translate(-50%, -50%) scale(1.06);
}
.clip-play-badge svg {
  width: 36px;
  height: 36px;
  margin-left: 2px;
}
.clip-play[aria-pressed="true"] .clip-play-badge {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
}
.clip-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgb(255 255 255 / 34%);
  stroke-width: 2.2;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 2px rgb(0 0 0 / 40%));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.clip-play[aria-pressed="true"] .clip-ring {
  opacity: 1;
}
.clip-progress {
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.clip-event-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e3e6ed;
  text-decoration: none;
}
.clip-event-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.clip-event-info strong {
  font-size: 0.91rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clip-event-info small {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clip-event-btn {
  flex: none;
  padding: 6px 11px;
  border-radius: 7px;
  background: #ffffff;
  color: var(--accent-text);
  font-size: 0.79rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.clip-event-bar:hover .clip-event-btn {
  background: var(--accent);
  color: #ffffff;
}

.post-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 12px;
}
.post-media > :only-child,
.post-media > :first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}
.post-photo {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  min-height: 0;
}
.post-photo img,
.post-media video {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}
.post-media:has(> :nth-child(2)) img {
  height: 132px;
  object-fit: cover;
}
.photo-view {
  border: 0;
  border-radius: 16px;
  padding: 10px;
  max-width: 96vw;
  background: #ffffff;
}
.photo-view::backdrop {
  background: rgb(20 24 31 / 84%);
}
.photo-view > button {
  display: block;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  font-size: 1.5rem;
}
.photo-view img {
  display: block;
  max-width: 100%;
  max-height: 75dvh;
  margin: auto;
  border-radius: 10px;
}
.photo-view div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}
.photo-view div button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  font-size: 1.5rem;
}

/* --- Dispatch Detail --- */
.dispatch {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
  margin: 12px 0;
}
.clip-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.clip-detail .circle {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  padding: 2px;
  overflow: hidden;
}
.clip-detail .circle img,
.clip-detail .circle video {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.clip-detail p {
  white-space: pre-line;
  margin: 6px 0 0;
}

/* --- Instagram-style Photo Story Viewer --- */
#viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #14161a;
  overflow: hidden;
  color: #ffffff;
}
#viewer::backdrop {
  background: #14161a;
}
body:has(#viewer[open]) {
  overflow: hidden;
}
.story-stage {
  position: relative;
  isolation: isolate;
  height: 100%;
  width: min(100%, 560px);
  margin: auto;
  overflow: hidden;
  background: #181b20;
}
.story-stage .progress {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 4px;
  transition: opacity 0.2s ease;
}
.story-stage .progress span {
  flex: 1;
  height: 2px;
  border-radius: 99px;
  background: rgb(255 255 255 / 34%);
  overflow: hidden;
}
.story-stage .progress b {
  display: block;
  height: 100%;
  background: #ffffff;
}
.story-stage .story-head {
  position: absolute;
  top: max(22px, calc(env(safe-area-inset-top) + 12px));
  left: 12px;
  right: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.2s ease;
}
.story-account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.story-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / 26%);
}
.story-avatar img {
  width: 22px;
  height: 22px;
  display: block;
}
.story-account strong {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgb(0 0 0 / 50%);
}
.story-close {
  background: transparent;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  min-height: 44px;
  color: #ffffff;
  border-radius: 0;
  filter: drop-shadow(0 1px 5px rgb(0 0 0 / 55%));
}
.story-close:hover {
  background: transparent;
  opacity: 0.8;
}
.story-close svg {
  width: 26px;
  height: 26px;
}
.story-frame {
  position: absolute;
  inset: 0;
  touch-action: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.story-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 110px;
  z-index: 2;
  background: linear-gradient(rgb(0 0 0 / 45%), transparent);
  pointer-events: none;
}
.story-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-frame .tap-prev,
.story-frame .tap-next {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  z-index: 3;
}
.story-frame .tap-next {
  left: 40%;
  width: 60%;
}
.story-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.story-cta-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 11px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 18px rgb(0 0 0 / 28%);
}
#viewer.is-paused .progress,
#viewer.is-paused .story-head,
#viewer.is-paused .story-cta {
  opacity: 0.15;
}

/* --- Map, Territory Directory & Place Cards --- */
.map-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 12px;
  margin: 0;
}
.map-filters::-webkit-scrollbar {
  display: none;
}
.map-filter-pill {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 500;
  white-space: nowrap;
}
.map-filter-pill[aria-pressed="true"] {
  background: var(--ink);
  color: #ffffff;
}
.territory {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  touch-action: none;
  user-select: none;
  cursor: grab;
  border: 1px solid var(--line);
}
.territory:active {
  cursor: grabbing;
}
.map-layer {
  transform-origin: top left;
}
.map-layer .map {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--pin-scale, 1));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  isolation: isolate;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.map-pin::before {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--accent);
  inset: 9px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgb(24 28 35 / 34%);
  transition:
    transform 0.16s ease,
    background 0.16s ease;
}
.map-pin:hover::before {
  background: var(--accent-hover);
  transform: scale(1.1);
}
.map-pin.is-selected {
  z-index: 2;
}
.map-pin.is-selected::before {
  background: var(--ink-strong);
  inset: 7px;
  box-shadow:
    0 0 0 3px rgb(154 112 96 / 42%),
    0 4px 12px rgb(24 28 35 / 38%);
}
.place-spotlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 6px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: var(--surface-subtle);
  text-decoration: none;
}
.place-kicker {
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.place-open {
  flex: none;
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.79rem;
  font-weight: 500;
  white-space: nowrap;
}
.territory-head {
  margin: 22px 0 10px;
}
.territory-caption {
  font-size: 0.79rem;
  color: var(--muted);
  white-space: nowrap;
}
.place-list {
  margin: 0 calc(var(--pad) * -1) 12px;
  border-top: 1px solid var(--line);
}
.place-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px var(--pad);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.place-row:hover {
  background: var(--surface-subtle);
}
.place-row.is-selected {
  background: var(--surface-subtle);
}
.place-row:hover .place-num,
.place-row.is-selected .place-num,
.place-num.is-selected {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}
.place-row:hover .row-trail {
  color: var(--ink-strong);
  transform: translateX(2px);
}
.place-num {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
  flex: none;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}
.place-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.place-body strong {
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.26;
  color: var(--ink-strong);
}
.place-body small {
  font-size: 0.82rem;
  line-height: 1.38;
  color: var(--muted);
}
.place-meta {
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent-text);
}
.place-row .row-trail {
  align-self: center;
}
.place-highlights {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.place-highlights li {
  position: relative;
  padding: 12px 2px 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.91rem;
  line-height: 1.44;
  color: var(--ink);
}
.place-highlights li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.map-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgb(24 28 35 / 10%);
}
.map-controls button {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  background: transparent;
  font-size: 1.35rem;
}
.map-controls output {
  min-width: 4ch;
  font-size: 0.84rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.map-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin: 0 0 12px;
}
.map-caption .ui-icon {
  color: var(--accent);
}
.resort-search {
  margin-top: 2px;
}
.resort-search input {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
}
.resort-search input:focus {
  border-color: var(--accent);
}

/* --- Toast Notice --- */
#notice:not(:empty) {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-strong);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 0.88rem;
  z-index: 8;
  width: max-content;
  max-width: 90vw;
  box-shadow: 0 6px 20px rgb(24 28 35 / 20%);
}

@media (prefers-reduced-motion: no-preference) {
  .story-stage {
    animation: story-enter 0.16s ease-out;
  }
  @keyframes story-enter {
    from {
      opacity: 0.72;
      transform: translateX(var(--story-offset, 8px));
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
