:root {
  --bg: #f8faf9;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(243, 246, 246, 0.86);
  --ink: #222222;
  --muted: #6f6f6f;
  --line: rgba(33, 42, 48, 0.12);
  --accent: #ff385c;
  --accent-dark: #df2449;
  --teal: #0f766e;
  --gold: #f5a524;
  --danger: #b42318;
  --shadow: 0 18px 56px rgba(30, 38, 46, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.54);
  --glass-bg-soft: rgba(255, 255, 255, 0.42);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.68);
  --glass-border-muted: rgba(33, 42, 48, 0.1);
  --glass-shadow: 0 24px 80px rgba(30, 38, 46, 0.14), 0 8px 28px rgba(255, 56, 92, 0.08);
  --glass-shadow-soft: 0 12px 34px rgba(30, 38, 46, 0.1);
  --glass-blur: 22px;
  --radius: 20px;
  --radius-xl: 26px;
  --radius-2xl: 32px;
  --transition-soft: 180ms ease;
  --content: min(1560px, calc(100vw - 48px));
  --site-header-height: 166px;
  color-scheme: light;
}

@property --search-glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -8%, rgba(255, 56, 92, 0.14), transparent 34vw),
    radial-gradient(circle at 84% 2%, rgba(15, 118, 110, 0.13), transparent 32vw),
    linear-gradient(135deg, #fbfcff 0%, #f5faf8 48%, #fff7f9 100%);
  overscroll-behavior: none;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 18px);
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -8%, rgba(255, 56, 92, 0.14), transparent 34vw),
    radial-gradient(circle at 84% 2%, rgba(15, 118, 110, 0.13), transparent 32vw),
    linear-gradient(135deg, #fbfcff 0%, #f5faf8 48%, #fff7f9 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

html,
body,
.auth-view,
.place-modal {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.auth-view::-webkit-scrollbar,
.place-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 56, 92, 0.22);
  outline-offset: 3px;
}

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

.svg-sprite {
  display: none;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.glass-panel,
.glass-card,
.glass-header,
.glass-input {
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48));
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
}

.glass-button {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, rgba(255, 56, 92, 0.98), rgba(223, 36, 73, 0.98));
  box-shadow: 0 14px 34px rgba(255, 56, 92, 0.22);
}

.glow-bg {
  position: relative;
  isolation: isolate;
}

.glow-bg::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 56, 92, 0.12), transparent 46%),
    radial-gradient(circle at 88% 8%, rgba(15, 118, 110, 0.11), transparent 44%);
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 56, 92, 0.2), rgba(15, 118, 110, 0.22));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.is-hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding-top: var(--site-header-height);
}

.auth-view {
  position: fixed;
  inset: 0;
  z-index: 520;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.18), transparent 42%),
    rgba(24, 28, 32, 0.58);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.auth-view::before {
  display: none;
}

.auth-panel {
  width: min(560px, 100%);
  position: relative;
  z-index: 1;
}

.auth-close {
  position: absolute;
  top: 66px;
  right: 18px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.94);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(30, 38, 46, 0.12);
}

.brand-row,
.top-line,
.main-nav,
.auth-tabs,
.card-meta,
.card-actions,
.section-heading,
.catalog-tools,
.subscription-row,
.profile-hero,
.checkbox-line,
.route-link,
.ghost-button,
.primary-button,
.danger-button,
.link-button,
.status-pill,
.rating-line {
  display: flex;
  align-items: center;
}

.brand-row {
  justify-content: space-between;
  margin-bottom: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 21px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.brand-wordmark span:last-child {
  color: var(--accent);
}

.brand-wordmark::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--teal);
  transform: translateY(-1px);
}

.status-pill {
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(30, 38, 46, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.status-pill.accent {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
  font-weight: 700;
}

.auth-grid {
  display: block;
}

.auth-copy,
.auth-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52));
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.18);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.18);
}

.auth-copy {
  display: none;
}

.auth-copy::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.54)),
    url("https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1400&q=82")
      center / cover;
}

.auth-copy > * {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  color: #ffffff;
}

.auth-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.auth-copy .eyebrow {
  margin-bottom: 12px;
  color: #ffffff;
}

.auth-card {
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-modal-heading {
  padding-right: 48px;
  margin-bottom: 18px;
}

.auth-modal-heading h2 {
  font-size: clamp(24px, 4vw, 34px);
}

.social-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.social-auth-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--glass-border-muted);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(30, 38, 46, 0.06);
  transition:
    border-color var(--transition-soft),
    box-shadow var(--transition-soft),
    transform var(--transition-soft);
}

.social-auth-button:hover {
  border-color: rgba(255, 56, 92, 0.24);
  box-shadow: 0 12px 28px rgba(30, 38, 46, 0.1);
  transform: translateY(-1px);
}

.social-auth-button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 56, 92, 0.1);
  color: var(--accent);
  font-weight: 950;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(33, 42, 48, 0.1);
}

.auth-tabs {
  gap: 8px;
  padding: 4px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--glass-border-muted);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.auth-tab {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition:
    background var(--transition-soft),
    color var(--transition-soft),
    box-shadow var(--transition-soft);
}

.auth-tab.is-active {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(30, 38, 46, 0.1);
}

.auth-form {
  display: none;
}

.auth-form.is-active {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--glass-border-muted);
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    border-color var(--transition-soft),
    box-shadow var(--transition-soft),
    background var(--transition-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

input[type="file"] {
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 56, 92, 0.55);
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 3px rgba(255, 56, 92, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

textarea {
  min-height: 104px;
  padding: 12px;
  line-height: 1.45;
  resize: vertical;
}

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.native-select {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-select-button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--glass-border-muted);
  border-radius: calc(var(--radius) - 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62));
  color: var(--ink);
  padding: 0 12px;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 20px rgba(30, 38, 46, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color var(--transition-soft),
    box-shadow var(--transition-soft),
    background var(--transition-soft),
    transform var(--transition-soft);
}

.custom-select-button:hover,
.custom-select.is-open .custom-select-button {
  border-color: rgba(255, 56, 92, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  box-shadow:
    0 0 0 4px rgba(255, 56, 92, 0.08),
    0 14px 34px rgba(30, 38, 46, 0.1);
}

.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  width: 10px;
  height: 10px;
  justify-self: end;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--transition-soft), opacity var(--transition-soft);
}

.custom-select.is-open .custom-select-chevron {
  opacity: 1;
  transform: translateY(2px) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 120;
  max-height: min(320px, 54vh);
  overflow-y: auto;
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 250, 252, 0.985));
  box-shadow:
    0 24px 70px rgba(30, 38, 46, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity var(--transition-soft),
    visibility var(--transition-soft),
    transform var(--transition-soft);
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select-option {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #42484f;
  padding: 8px 10px;
  text-align: left;
  font-weight: 820;
  cursor: pointer;
  transition:
    background var(--transition-soft),
    color var(--transition-soft),
    transform var(--transition-soft);
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  background: rgba(255, 56, 92, 0.09);
  color: var(--ink);
  outline: none;
}

.custom-select-option[aria-selected="true"] {
  background:
    linear-gradient(135deg, rgba(255, 56, 92, 0.18), rgba(15, 118, 110, 0.1));
  color: var(--ink);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.checkbox-line {
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 500;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
}

.primary-button,
.ghost-button,
.danger-button,
.link-button,
.icon-button,
.round-search,
.favorite-button,
.modal-close {
  border: 0;
  cursor: pointer;
}

.primary-button,
.ghost-button,
.danger-button,
.route-link {
  min-height: 44px;
  justify-content: center;
  gap: 8px;
  border-radius: calc(var(--radius) - 6px);
  font-weight: 800;
  padding: 0 16px;
  transition:
    transform var(--transition-soft),
    border-color var(--transition-soft),
    background var(--transition-soft),
    box-shadow var(--transition-soft),
    color var(--transition-soft);
}

.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, var(--accent), #ef2f57 58%, #d72b4f);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(255, 56, 92, 0.22);
}

.primary-button:hover {
  background: linear-gradient(135deg, #ff4b6a, var(--accent-dark));
  box-shadow: 0 18px 44px rgba(255, 56, 92, 0.28);
  transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.primary-button:disabled:hover {
  background: var(--accent);
  transform: none;
}

.primary-button.wide {
  width: 100%;
}

.ghost-button {
  border: 1px solid var(--glass-border-muted);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(30, 38, 46, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ghost-button:hover {
  border-color: rgba(255, 56, 92, 0.22);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(30, 38, 46, 0.12);
  transform: translateY(-1px);
}

.ghost-button.small {
  min-height: 42px;
  padding: 0 14px;
}

.danger-button {
  border: 1px solid rgba(180, 35, 24, 0.14);
  background: rgba(255, 245, 245, 0.76);
  color: var(--danger);
}

.form-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 40px rgba(30, 38, 46, 0.08);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
  touch-action: pan-y;
  transform: translateZ(0);
}

.top-line {
  width: var(--content);
  min-height: 78px;
  justify-content: space-between;
  margin: 0 auto;
  gap: 24px;
  position: relative;
  touch-action: pan-y;
}

.main-nav {
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-button,
.icon-button,
.notification-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background var(--transition-soft),
    color var(--transition-soft),
    box-shadow var(--transition-soft);
}

.nav-button:hover,
.nav-button.is-active,
.icon-button:hover,
.icon-button.is-active,
.notification-pill:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(30, 38, 46, 0.08);
}

.notification-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--glass-border-muted);
  background: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.notification-pill svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.notification-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 56, 92, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.notification-panel {
  position: absolute;
  top: calc(100% - 10px);
  right: 42px;
  z-index: 360;
  width: min(430px, calc(100vw - 28px));
  max-height: min(560px, 72vh);
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(33, 42, 48, 0.08);
  border-radius: 24px;
  background: #ffffff;
  isolation: isolate;
  box-shadow:
    0 0 0 10px #ffffff,
    0 24px 72px rgba(30, 38, 46, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.notification-panel .notification-count {
  position: static;
  inset: auto;
  flex: 0 0 auto;
}

.notification-panel-head,
.notification-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-panel-head h3,
.notification-panel-head p {
  margin: 0;
}

.notification-list {
  display: grid;
  gap: 9px;
  overflow: auto;
  padding-right: 2px;
}

.notification-item {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 1px solid var(--glass-border-muted);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--transition-soft),
    border-color var(--transition-soft),
    transform var(--transition-soft);
}

.notification-item:hover {
  border-color: rgba(255, 56, 92, 0.22);
  background: #fff7f9;
  transform: translateY(-1px);
}

.notification-item-top strong,
.notification-item-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-top small {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.notification-item-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-item-text {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.notification-empty {
  padding: 14px;
  border: 1px dashed rgba(33, 42, 48, 0.16);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.icon-button {
  width: 42px;
  padding: 0;
  display: grid;
  place-items: center;
}

.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 6px 16px rgba(255, 56, 92, 0.24);
}

.search-bar {
  position: relative;
  z-index: 15;
  isolation: isolate;
  width: min(900px, calc(100vw - 40px));
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 56px;
  align-items: center;
  gap: 0;
  margin: 0 auto 18px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(24px) saturate(1.24);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
  touch-action: pan-y;
  overflow: visible;
}

.search-bar::before,
.mobile-search-toggle::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background:
    conic-gradient(
      from var(--search-glow-angle),
      rgba(255, 56, 92, 0.06),
      rgba(255, 56, 92, 0.42) 12%,
      rgba(15, 118, 110, 0.4) 24%,
      rgba(255, 255, 255, 0.26) 36%,
      rgba(255, 56, 92, 0.07) 52%,
      rgba(15, 118, 110, 0.28) 74%,
      rgba(255, 56, 92, 0.06)
    );
  pointer-events: none;
  opacity: 0.64;
  animation: searchGlowOrbit 11s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

@keyframes searchGlowOrbit {
  to {
    --search-glow-angle: 360deg;
  }
}

.mobile-search-toggle {
  display: none;
}

.search-bar label {
  position: relative;
  min-width: 0;
  padding: 0 24px;
  border-right: 1px solid rgba(33, 42, 48, 0.1);
}

.search-bar label:focus-within {
  z-index: 40;
}

.search-bar label > span {
  display: block;
}

.search-bar label::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 37px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  pointer-events: none;
  transform: translateY(-50%) rotate(45deg);
}

.search-bar label.has-custom-select::after {
  display: none;
}

.search-bar select {
  appearance: none;
  min-height: 24px;
  padding: 0 28px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 15px;
}

.search-bar .custom-select-button {
  min-height: 26px;
  padding: 0 28px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.search-bar .custom-select-button:hover,
.search-bar .custom-select.is-open .custom-select-button {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.search-bar .custom-select-menu {
  min-width: 220px;
  left: -12px;
  right: -12px;
}

.round-search {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(255, 56, 92, 0.24);
  transition:
    transform var(--transition-soft),
    box-shadow var(--transition-soft);
}

.round-search:hover {
  box-shadow: 0 16px 34px rgba(255, 56, 92, 0.3);
  transform: translateY(-1px);
}

main {
  width: var(--content);
  margin: 0 auto;
  padding: 52px 0 76px;
}

.page-view {
  display: none;
}

.page-view.is-active {
  display: block;
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-top: 50px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 7px;
  line-height: 1.22;
}

.link-button {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--glass-border-muted);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  padding: 0 16px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(30, 38, 46, 0.08);
  transition:
    background var(--transition-soft),
    box-shadow var(--transition-soft),
    transform var(--transition-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.link-button:hover {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(30, 38, 46, 0.12);
  transform: translateY(-1px);
}

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  align-items: stretch;
  gap: 18px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 4px 4px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.horizontal-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.horizontal-strip .place-card {
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.horizontal-strip .place-card:hover {
  box-shadow: none;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px 18px;
}

.place-card {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  box-shadow: 0 16px 48px rgba(30, 38, 46, 0.1);
  padding: 8px;
  scroll-snap-align: start;
  transition:
    border-color var(--transition-soft),
    box-shadow var(--transition-soft),
    transform var(--transition-soft);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.place-card:hover {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 62px rgba(30, 38, 46, 0.14);
  transform: translateY(-2px);
}

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

.card-image {
  position: relative;
  aspect-ratio: 1.16;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 70px);
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 20px rgba(30, 38, 46, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ad-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.78);
  color: #ffffff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 22px rgba(30, 38, 46, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform var(--transition-soft),
    background var(--transition-soft),
    color var(--transition-soft),
    box-shadow var(--transition-soft);
}

.favorite-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.favorite-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(30, 38, 46, 0.2);
}

.favorite-button svg {
  stroke-width: 2.2;
}

.card-body {
  min-height: 318px;
  display: flex;
  flex-direction: column;
  padding: 12px 4px 0;
}

.card-meta {
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.category {
  color: var(--teal);
  font-weight: 800;
}

.rating-line {
  gap: 4px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.rating-stack {
  display: grid;
  justify-items: end;
  gap: 3px;
  font-size: 12px;
  line-height: 1.1;
}

.rating-stack .rating-line > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.rating-stack .user-rating {
  color: var(--teal);
}

.rating-stack .user-rating.is-empty {
  color: var(--muted);
}

.rating-line svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  fill: currentColor;
  stroke: currentColor;
}

.place-card h3 {
  min-height: 42px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 8px 0 5px;
  font-size: 16px;
}

.place-card p {
  margin-bottom: 8px;
  color: var(--muted);
}

.location {
  min-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review {
  min-height: 66px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink) !important;
  font-weight: 650;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.description {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.methodology-note {
  display: grid;
  gap: 5px;
  margin: 18px 0 34px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.methodology-note strong {
  color: var(--ink);
  font-size: 14px;
}

.methodology-note a {
  width: fit-content;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  margin-top: auto;
}

.route-link {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  background: linear-gradient(135deg, #202326, #111315);
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.1;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(17, 19, 21, 0.18);
}

.card-actions .route-link {
  width: 100%;
  gap: 6px;
  padding: 0 10px;
  font-size: 11.8px;
  overflow: hidden;
}

.card-actions .route-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.route-link:hover {
  background: linear-gradient(135deg, #2a2e32, #151719);
  box-shadow: 0 14px 30px rgba(17, 19, 21, 0.24);
  transform: translateY(-1px);
}

.details-button {
  min-height: 40px;
  border: 1px solid var(--glass-border-muted);
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--transition-soft),
    background var(--transition-soft),
    box-shadow var(--transition-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.details-button:hover {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(30, 38, 46, 0.1);
  transform: translateY(-1px);
}

.horizontal-strip .card-actions {
  grid-template-columns: 1fr;
}

#weekendGrid .card-actions,
#catalogGrid .card-actions {
  grid-template-columns: 1fr;
}

.catalog-tools {
  position: relative;
  z-index: 20;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}

.catalog-tools:has(.custom-select.is-open) {
  z-index: 140;
}

.weekend-tools {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(170px, 220px) auto;
  align-items: end;
  gap: 10px;
}

.weekend-filter-panel {
  position: relative;
  z-index: 25;
  width: min(720px, 100%);
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: visible;
}

.weekend-filter-panel:has(.custom-select.is-open) {
  z-index: 150;
}

.weekend-tools label {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.weekend-tools label:has(.custom-select.is-open),
.catalog-tools > label:has(.custom-select.is-open) {
  z-index: 160;
}

.weekend-tools select {
  min-height: 40px;
}

.section-subline {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog-tools > label {
  width: min(280px, 100%);
}

.search-input {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input svg {
  position: absolute;
  bottom: 13px;
  left: 12px;
  color: var(--muted);
}

.search-input input {
  padding-left: 12px;
}

.result-counter {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.empty-state {
  min-height: 270px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  border: 1px dashed rgba(33, 42, 48, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  padding: 32px;
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.compact-empty {
  min-height: 180px;
  margin-bottom: 18px;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  color: var(--accent);
}

.empty-state p {
  color: var(--muted);
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
}

.profile-block {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5));
  padding: 22px;
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.18);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.18);
}

.profile-hero {
  gap: 14px;
  margin-bottom: 22px;
}

.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 56, 92, 0.18);
}

.profile-hero h3,
.subscription-row h3 {
  margin: 0 0 4px;
}

.profile-hero p,
.subscription-row p {
  margin: 0;
  color: var(--muted);
}

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

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.legal-links span {
  color: var(--muted);
}

.legal-links a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--glass-border-muted);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 0 10px;
  white-space: nowrap;
}

.legal-links a:hover {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.register-legal-links {
  flex-wrap: nowrap;
  margin-top: -4px;
  padding-top: 2px;
}

.site-footer {
  width: var(--content);
  margin: 0 auto 30px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(33, 42, 48, 0.1);
}

.footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.footer-links a,
.footer-links button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 0 10px;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--transition-soft),
    color var(--transition-soft),
    box-shadow var(--transition-soft);
}

.footer-links a:not(:first-child)::before,
.footer-links button::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(33, 42, 48, 0.28);
  transform: translateY(-50%);
}

.footer-links a:hover,
.footer-links button:hover {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(30, 38, 46, 0.08);
}

.footer-popover {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  width: min(760px, calc(100vw - 28px));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 56, 92, 0.13), transparent 46%),
    radial-gradient(circle at 92% 14%, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68));
  box-shadow: var(--glass-shadow);
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.footer-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.footer-popover-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  padding: 0;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30, 38, 46, 0.08);
  transition:
    background var(--transition-soft),
    box-shadow var(--transition-soft),
    transform var(--transition-soft);
}

.footer-popover-close:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(30, 38, 46, 0.14);
  transform: translateY(-1px);
}

.footer-popover-close::before,
.footer-popover-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.footer-popover-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.footer-popover-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.footer-panel {
  display: grid;
  gap: 12px;
  padding-right: 38px;
}

.footer-panel .eyebrow,
.footer-panel h3,
.footer-panel p {
  margin: 0;
}

.footer-panel h3 {
  font-size: 22px;
  line-height: 1.14;
}

.footer-panel p {
  max-width: 620px;
  color: var(--muted);
}

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

.footer-contact-card {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(33, 42, 48, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 38, 46, 0.06);
}

.footer-contact-card span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  text-transform: none;
}

.footer-contact-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.footer-socials button {
  min-height: 34px;
  border: 1px solid rgba(33, 42, 48, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.subscription-row {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.stats-block {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
  gap: 12px;
}

.stats-block div {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border-muted);
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.stats-block strong {
  display: block;
  font-size: 28px;
}

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

.danger-zone {
  display: grid;
  gap: 12px;
}

.profile-admin-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(33, 42, 48, 0.1);
}

.admin-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border-muted);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.admin-tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background var(--transition-soft),
    color var(--transition-soft),
    box-shadow var(--transition-soft);
}

.admin-tab.is-active {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(30, 38, 46, 0.1);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.admin-form,
.admin-table-block {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.54));
  padding: 18px;
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
}

.admin-form {
  position: sticky;
  top: 164px;
}

.admin-form-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-form-head h3 {
  margin: 0;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.wide-field {
  grid-column: 1 / -1;
}

.admin-subsection-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.admin-subsection-head h4,
.admin-subsection-head p {
  margin: 0;
}

.admin-subsection-head h4 {
  font-size: 15px;
}

.admin-subsection-head p {
  color: var(--muted);
  font-size: 12px;
}

.admin-booking-links {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  padding: 12px;
}

.booking-link-admin-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--glass-border-muted);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  padding: 12px;
}

.booking-link-admin-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.booking-link-admin-head .checkbox-line {
  margin: 0;
}

.booking-link-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(33, 42, 48, 0.07);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.booking-link-admin-card.is-active .booking-link-status {
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal);
}

.booking-link-admin-card.has-error {
  border-color: rgba(180, 35, 24, 0.26);
  background: rgba(255, 245, 245, 0.72);
}

.booking-link-admin-card.has-error .booking-link-status {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

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

.admin-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--glass-border-muted);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 22px rgba(30, 38, 46, 0.06);
}

.admin-place-row {
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
}

.admin-place-row img {
  width: 74px;
  height: 74px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.admin-row-main,
.admin-row-meta,
.admin-row-actions {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-row-main strong,
.admin-row-main span,
.admin-row-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row-main span,
.admin-row-meta {
  color: var(--muted);
  font-size: 13px;
}

.admin-row-meta {
  justify-items: end;
}

.admin-place-row .admin-row-meta,
.admin-place-row .admin-row-actions {
  grid-column: 2 / -1;
}

.admin-place-row .admin-row-meta {
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  justify-items: start;
  gap: 6px 14px;
}

.admin-row-actions {
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
}

.review-admin-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.danger-button.small {
  min-height: 42px;
  padding: 0 14px;
}

.place-modal {
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  padding: 0;
  box-shadow: var(--glass-shadow);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  backdrop-filter: blur(var(--glass-blur)) saturate(1.18);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.18);
}

.place-modal::backdrop {
  background: rgba(18, 22, 26, 0.48);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 0;
  font-size: 0;
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 26px rgba(30, 38, 46, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform var(--transition-soft),
    box-shadow var(--transition-soft),
    background var(--transition-soft);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(30, 38, 46, 0.22);
  transform: translateY(-1px);
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-media {
  aspect-ratio: 2.2;
  background: var(--surface);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74));
}

.modal-body h3 {
  font-size: 24px;
}

.modal-facts {
  display: grid;
  grid-template-columns: minmax(104px, 0.62fr) minmax(154px, 0.74fr) minmax(250px, 1.5fr) minmax(138px, 0.7fr);
  gap: 8px;
  margin: 12px 0 14px;
}

.fact-card {
  min-width: 0;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--glass-border-muted);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.modal-facts span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.modal-facts strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.18;
}

.fact-score strong {
  font-size: 16px;
}

.fact-address strong,
.fact-tag strong {
  font-size: 13px;
}

.fact-address strong,
.fact-tag strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-facts small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fact-value-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 4px;
  white-space: nowrap;
}

.fact-value-row strong,
.fact-value-row small {
  display: inline;
  margin-top: 0;
}

.fact-value-row small {
  min-width: 0;
  padding-top: 2px;
}

.rating-disclaimer,
.place-disclaimer,
.review-rules {
  color: var(--muted) !important;
  font-size: 12px;
  line-height: 1.45;
}

.rating-disclaimer {
  margin: -4px 0 16px;
}

.place-disclaimer {
  margin: 12px 0 0;
  border: 1px solid var(--glass-border-muted);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
}

.ad-disclosure {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  border: 1px solid rgba(34, 34, 34, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52)),
    radial-gradient(circle at 0 0, rgba(255, 56, 92, 0.1), transparent 34%);
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 34px rgba(30, 38, 46, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.ad-disclosure-head strong {
  color: var(--ink);
  font-size: 13px;
}

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

.ad-disclosure-grid div,
.promo-box {
  min-width: 0;
  border: 1px solid var(--glass-border-muted);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  padding: 9px 10px;
}

.ad-disclosure span,
.promo-box > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.ad-disclosure strong,
.promo-copy-button strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.promo-copy-button {
  min-width: 150px;
  border: 1px solid rgba(255, 56, 92, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  padding: 7px 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30, 38, 46, 0.08);
}

.promo-copy-button small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.affiliate-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 56, 92, 0.2);
  border-radius: calc(var(--radius) - 6px);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 56, 92, 0.2);
  transition:
    transform var(--transition-soft),
    box-shadow var(--transition-soft);
}

.affiliate-link:hover {
  box-shadow: 0 16px 34px rgba(255, 56, 92, 0.26);
  transform: translateY(-1px);
}

.ad-disclosure p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.booking-links {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.54)),
    radial-gradient(circle at 0 0, rgba(15, 118, 110, 0.1), transparent 36%);
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 34px rgba(30, 38, 46, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.booking-links-head .eyebrow,
.booking-links-head h4,
.booking-links p {
  margin: 0;
}

.booking-links-head h4 {
  font-size: 18px;
  line-height: 1.2;
}

.booking-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking-link-item {
  display: grid;
  gap: 6px;
  min-width: min(220px, 100%);
}

.booking-link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 26px rgba(30, 38, 46, 0.08);
  transition:
    transform var(--transition-soft),
    box-shadow var(--transition-soft),
    background var(--transition-soft);
}

.booking-link-button:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(30, 38, 46, 0.12);
  transform: translateY(-1px);
}

.booking-promo {
  display: block;
  border: 1px dashed rgba(15, 118, 110, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  padding: 7px 9px;
  font-size: 11.5px;
  font-weight: 800;
}

.booking-promo strong {
  color: var(--ink);
}

.booking-links p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.ad-pill {
  width: fit-content;
  margin-top: 10px;
  background: rgba(34, 34, 34, 0.08);
  color: var(--ink);
}

.user-reviews {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(33, 42, 48, 0.1);
}

.reviews-heading,
.review-actions,
.user-review {
  display: flex;
  align-items: center;
}

.reviews-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.reviews-heading h4 {
  margin: 0;
  font-size: 20px;
}

.review-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border-muted);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.review-login-prompt {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border-muted);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.review-login-prompt p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.review-form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: start;
}

.review-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.review-confirm {
  align-items: start;
  font-size: 12.5px;
}

.reviews-list {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.user-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 10px 14px;
  padding: 14px;
  border: 1px solid var(--glass-border-muted);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.user-review.is-mine {
  border-color: rgba(255, 56, 92, 0.35);
  background: rgba(255, 56, 92, 0.04);
}

.user-review.is-highlighted {
  border-color: rgba(255, 56, 92, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.12);
}

.user-review div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.user-review span:not(.rating-line) {
  color: var(--muted);
  font-size: 12px;
}

.user-review p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-reply,
.admin-reply-form {
  grid-column: 1 / -1;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(15, 118, 110, 0.06);
}

.admin-reply {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.admin-reply strong {
  color: var(--teal);
}

.admin-reply span {
  color: var(--muted);
  font-size: 12px;
}

.admin-reply p {
  margin-top: 2px;
}

.admin-reply-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-reply-form label {
  gap: 7px;
}

.admin-reply-form textarea {
  min-height: 84px;
}

.admin-reply-form .ghost-button {
  justify-self: start;
}

.user-review .rating-line {
  align-self: start;
  justify-self: end;
}

.report-review-button {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.report-review-button:hover {
  color: var(--ink);
}

.reviews-empty {
  padding: 18px;
  border: 1px dashed rgba(33, 42, 48, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 32px));
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(25, 28, 32, 0.86);
  color: #ffffff;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.legal-page {
  width: var(--content);
  margin: 0 auto;
  padding: 34px 0 64px;
}

.legal-document {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.66));
  padding: 28px;
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.legal-document h1,
.legal-document h2,
.legal-document p,
.legal-document ul {
  margin: 0;
}

.legal-document h1 {
  font-size: 32px;
  line-height: 1.1;
}

.legal-document h2 {
  margin-top: 12px;
  font-size: 19px;
}

.legal-document p {
  color: var(--muted);
  line-height: 1.55;
}

.legal-document ul,
.legal-document ol {
  display: grid;
  gap: 6px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel,
  .glass-card,
  .glass-header,
  .glass-input,
  .auth-copy,
  .auth-card,
  .site-header,
  .search-bar,
  .place-card,
  .profile-block,
  .admin-form,
  .admin-table-block,
  .place-modal,
  .legal-document,
  .footer-popover {
    background: rgba(255, 255, 255, 0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .place-card:hover,
  .primary-button:hover,
  .ghost-button:hover,
  .link-button:hover,
  .details-button:hover,
  .route-link:hover,
  .round-search:hover,
  .favorite-button:hover,
  .modal-close:hover,
  .footer-popover-close:hover,
  .booking-link-button:hover {
    transform: none;
  }

  .search-bar::before,
  .mobile-search-toggle::before {
    animation: none;
    opacity: 0.36;
  }
}

@media (max-width: 1180px) {
  .place-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --content: min(100vw - 20px, 760px);
  }

  .auth-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: 360px;
    padding: 32px;
  }

  .top-line {
    min-height: auto;
    padding: 16px 0 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    gap: 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-button,
  .icon-button,
  .notification-pill {
    min-height: 40px;
    padding: 0 10px;
    font-size: 14px;
  }

  .nav-count {
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    font-size: 11px;
  }

  .notification-pill {
    position: relative;
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .notification-pill > span:not(.notification-count) {
    display: none;
  }

  .notification-pill .notification-count {
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    font-size: 10px;
  }

  .notification-panel {
    top: calc(100% + 6px);
    right: 0;
  }

  .search-bar {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius);
    padding: 10px;
    gap: 8px;
  }

  .search-bar .custom-select-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    box-shadow: none;
    border-radius: 18px;
    transform: none;
    transform-origin: top center;
  }

  .search-bar .custom-select.is-open .custom-select-menu {
    max-height: min(260px, 46vh);
    margin-top: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow:
      0 18px 46px rgba(30, 38, 46, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: none;
  }

  .search-bar label:has(.custom-select.is-open) {
    align-self: start;
  }

  .weekend-tools .custom-select-menu,
  .catalog-tools .custom-select-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    box-shadow: none;
    border-radius: 18px;
    transform: none;
    transform-origin: top center;
  }

  .weekend-tools .custom-select.is-open .custom-select-menu,
  .catalog-tools .custom-select.is-open .custom-select-menu {
    max-height: min(260px, 46vh);
    margin-top: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow:
      0 18px 46px rgba(30, 38, 46, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: none;
  }

  .weekend-tools label:has(.custom-select.is-open),
  .catalog-tools > label:has(.custom-select.is-open) {
    align-self: start;
  }

  .search-bar label {
    border-right: 0;
    padding: 0;
  }

  .round-search {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: var(--radius);
  }

  main {
    padding-top: 34px;
  }

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

  .catalog-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .weekend-tools {
    width: 100%;
    grid-template-columns: 1fr 1fr auto;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-form {
    position: static;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-tools > label,
  .search-input {
    width: 100%;
    min-width: 0;
  }

  .search-input {
    grid-column: 1 / -1;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .footer-links::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --content: calc(100vw - 16px);
  }

  body {
    font-size: 14px;
  }

  .auth-view {
    padding: 18px 8px;
  }

  .brand-row {
    align-items: center;
    flex-direction: column;
    gap: 12px;
  }

  .auth-view .brand-row {
    justify-content: center;
    text-align: center;
  }

  .auth-copy {
    min-height: 300px;
    padding: 24px;
  }

  .notification-panel {
    width: calc(100vw - 24px);
    right: 0;
    max-height: 70vh;
  }

  .top-line {
    gap: 10px;
    padding: 14px 0 10px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: minmax(74px, 1fr) minmax(62px, 1fr) minmax(96px, 1.08fr) 30px 30px;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    overflow: hidden;
    padding-bottom: 0;
  }

  .main-nav .nav-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 0 5px;
    font-size: clamp(12px, 3.15vw, 14px);
    line-height: 1;
    white-space: nowrap;
  }

  .main-nav .nav-button[data-nav="favorites"] {
    gap: 3px;
    padding-right: 5px;
  }

  .main-nav .nav-button[data-nav="favorites"] .nav-count {
    position: static;
    flex: 0 0 auto;
    min-width: 15px;
    height: 15px;
    margin: 0;
    padding: 0 4px;
    font-size: 9px;
    box-shadow: none;
  }

  .main-nav .notification-pill,
  .main-nav .icon-button {
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    min-height: 38px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #5f6368;
    padding: 0;
  }

  .main-nav .notification-pill:hover,
  .main-nav .icon-button:hover,
  .main-nav .icon-button.is-active {
    background: transparent;
    box-shadow: none;
    color: var(--ink);
  }

  .main-nav .notification-pill svg,
  .main-nav .icon-button svg {
    width: 21px;
    height: 21px;
    stroke-width: 2.1;
  }

  .main-nav .notification-pill .notification-count {
    top: 2px;
    right: -1px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    font-size: 9px;
    box-shadow: none;
  }

  .auth-copy::before {
    inset: 10px;
  }

  .auth-copy h1 {
    font-size: 30px;
  }

  .auth-copy p {
    font-size: 15px;
  }

  .auth-card,
  .profile-block {
    padding: 18px;
  }

  .auth-modal-heading {
    padding-right: 44px;
  }

  .auth-modal-heading h2 {
    font-size: 20px;
    line-height: 1.12;
    white-space: nowrap;
  }

  .legal-links {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    max-width: 100%;
    margin-top: 12px;
    padding-bottom: 2px;
    font-size: 10.5px;
    scrollbar-width: none;
  }

  .legal-links::-webkit-scrollbar {
    display: none;
  }

  .legal-links a {
    min-height: 26px;
    flex: 0 0 auto;
    padding: 0 6px;
  }

  .legal-links span {
    flex: 0 0 auto;
  }

  .register-legal-links {
    margin-top: -6px;
  }

  .search-bar {
    width: var(--content);
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .mobile-search-toggle {
    position: relative;
    isolation: isolate;
    width: var(--content);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px auto 8px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    padding: 0 14px;
    font-weight: 900;
    box-shadow: var(--glass-shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: visible;
  }

  .mobile-search-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-search-toggle .toggle-chevron {
    transition: transform 160ms ease;
  }

  .mobile-search-toggle[aria-expanded="true"] .toggle-chevron {
    transform: rotate(45deg);
  }

  .search-bar.is-collapsed {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .horizontal-strip {
    grid-auto-columns: 100%;
    gap: 12px;
    padding-right: 0;
    padding-left: 0;
  }

  .place-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

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

  .catalog-tools,
  .weekend-tools,
  .admin-form-grid,
  .booking-link-admin-card,
  .admin-row,
  .admin-place-row,
  .admin-row-actions,
  .review-admin-actions,
  .review-form-row,
  .stats-block,
  .modal-facts {
    grid-template-columns: 1fr;
  }

  .admin-place-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.8;
  }

  .admin-row-meta {
    justify-items: start;
  }

  .admin-place-row .admin-row-meta,
  .admin-place-row .admin-row-actions {
    grid-column: 1 / -1;
  }

  .admin-place-row .admin-row-meta {
    grid-template-columns: 1fr;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ad-disclosure-grid {
    grid-template-columns: 1fr;
  }

  .ad-disclosure-head,
  .promo-box {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    margin-bottom: 20px;
    padding-top: 18px;
  }

  .footer-inner {
    min-height: 0;
  }

  .footer-brand {
    font-size: 13px;
  }

  .footer-links {
    gap: 6px 12px;
    font-size: 12px;
  }

  .footer-links a,
  .footer-links button {
    min-height: 30px;
    padding: 0 8px;
  }

  .footer-popover {
    bottom: 14px;
    padding: 18px;
    border-radius: 22px;
  }

  .footer-panel {
    padding-right: 32px;
  }

  .footer-panel h3 {
    font-size: 20px;
  }

  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .promo-copy-button,
  .affiliate-link {
    width: 100%;
  }

  .user-review {
    grid-template-columns: 1fr;
  }

  .user-review .rating-line {
    justify-self: start;
  }
}

@media (max-width: 380px) {
  .auth-modal-heading h2 {
    font-size: 18px;
  }
}
