:root {
  color-scheme: light;
  --font-body: "Manrope", "Heebo", sans-serif;
  --font-ui: "Heebo", "Manrope", sans-serif;
  --bg: #f5fbff;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --bg-panel: #ffffff;
  --bg-soft: #eef8fd;
  --bg-soft-strong: #dff3fb;
  --text: #12314b;
  --text-strong: #081f31;
  --text-muted: #5f7b8e;
  --text-inverse: #f3fbff;
  --border: rgba(18, 79, 112, 0.12);
  --border-strong: rgba(18, 79, 112, 0.2);
  --shadow-soft: 0 18px 40px rgba(24, 70, 106, 0.08);
  --shadow-card: 0 20px 48px rgba(12, 48, 77, 0.1);
  --shadow-focus: 0 0 0 4px rgba(39, 183, 217, 0.18);
  --primary: #1397c8;
  --primary-strong: #0f7eb1;
  --primary-soft: #d8f4fd;
  --accent: #18c2b9;
  --sand: #ffe7c0;
  --coral: #ff8f6f;
  --success: #198754;
  --warning: #b96a11;
  --danger: #ca4c5c;
  --header-blur: blur(10px);
  --radius-xs: 0.6rem;
  --radius-sm: 0.9rem;
  --radius-md: 1.2rem;
  --radius-lg: 1.6rem;
  --radius-xl: 2rem;
  --space-1: 0.35rem;
  --space-2: 0.6rem;
  --space-3: 0.9rem;
  --space-4: 1.2rem;
  --space-5: 1.6rem;
  --space-6: 2rem;
  --space-7: 2.6rem;
  --space-8: 3.5rem;
  --content-width: min(1200px, calc(100% - 2rem));
  --z-base: 1;
  --z-map: 10;
  --z-header: 80;
  --z-header-menu: 85;
  --z-overlay: 110;
  --z-modal: 120;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061420;
  --bg-elevated: rgba(10, 24, 36, 0.9);
  --bg-panel: #0d2232;
  --bg-soft: #103045;
  --bg-soft-strong: #143a53;
  --text: #d6eef8;
  --text-strong: #f6fcff;
  --text-muted: #8db0c2;
  --text-inverse: #061420;
  --border: rgba(149, 204, 228, 0.16);
  --border-strong: rgba(149, 204, 228, 0.24);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 22px 56px rgba(0, 0, 0, 0.34);
  --shadow-focus: 0 0 0 4px rgba(58, 175, 216, 0.2);
  --primary: #49c6ef;
  --primary-strong: #7ddcf8;
  --primary-soft: rgba(73, 198, 239, 0.16);
  --accent: #42d4ca;
  --sand: #fed8a7;
  --coral: #ff9d83;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(24, 194, 185, 0.12), transparent 24%),
    radial-gradient(circle at 88% 24%, rgba(255, 143, 111, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.98)),
    var(--bg);
  transition: background-color 180ms ease, color 180ms ease;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 18%, rgba(66, 212, 202, 0.14), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(255, 157, 131, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(6, 20, 32, 0.96), rgba(6, 20, 32, 1)),
    var(--bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(20vw, 210px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

body::before {
  left: 0;
  background:
    linear-gradient(180deg, rgba(31, 194, 211, 0.1), transparent 32%),
    radial-gradient(circle at 30% 28%, rgba(20, 170, 205, 0.22), transparent 35%),
    linear-gradient(180deg, transparent 36%, rgba(15, 126, 177, 0.08) 72%, transparent 100%);
}

body::after {
  right: 0;
  background:
    linear-gradient(180deg, rgba(255, 143, 111, 0.1), transparent 28%),
    radial-gradient(circle at 64% 32%, rgba(255, 143, 111, 0.2), transparent 34%),
    linear-gradient(180deg, transparent 40%, rgba(87, 72, 170, 0.06) 75%, transparent 100%);
}

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

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

button {
  cursor: pointer;
}

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

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

input,
select,
textarea,
button {
  border: 0;
  background: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page-main,
.site-footer__card,
.topbar__row,
.topbar-nav {
  width: var(--content-width);
  margin-inline: auto;
}

.page-main {
  padding-block: 1.15rem 3.4rem;
}

.section + .section {
  margin-top: 2.25rem;
}

.category-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.category-hero__button {
  display: grid;
  gap: 0.22rem;
  align-content: center;
  justify-items: start;
  min-height: 3.75rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-panel) 84%, transparent);
  box-shadow: var(--shadow-soft);
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.category-hero__button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 36%, var(--border-strong));
}

.category-hero__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.section-heading--inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.85rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(24, 194, 185, 0.12), rgba(19, 151, 200, 0.12));
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  max-width: 14ch;
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-copy {
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.62;
}

.home-intro .section-heading {
  gap: 0.5rem;
  margin-bottom: 0;
}

.home-intro .section-title {
  max-width: 19ch;
  font-size: clamp(1.72rem, 2.75vw, 2.56rem);
  line-height: 1.02;
}

.home-intro .section-copy {
  max-width: 64ch;
  line-height: 1.56;
}

.category-hero__button--wide {
  grid-column: auto;
}

.empty-state {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.empty-state--compact {
  margin-top: 0.9rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding: 1rem 0 0.9rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 86%, transparent);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.topbar__row {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

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

.brand-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.brand-copy strong {
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.brand-copy span {
  max-width: 20ch;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.3;
  max-height: 3rem;
  overflow: hidden;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 2.55rem;
  aspect-ratio: 1;
  border-radius: 0.95rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.38)),
    linear-gradient(135deg, #0d8cc5, #16c2bc 54%, #ffb58d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 24px rgba(19, 151, 200, 0.18);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.brand-mark::before {
  inset: 0.42rem 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.84);
}

.brand-mark::after {
  inset: 1.22rem 0.52rem 0.55rem;
  background: linear-gradient(90deg, rgba(16, 130, 186, 0.9), rgba(24, 194, 185, 0.95));
}

.brand-mark--small {
  width: 2.1rem;
}

.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 80%, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px var(--border);
}

.topbar-search:focus-within {
  box-shadow: inset 0 0 0 1px rgba(19, 151, 200, 0.45), var(--shadow-focus);
}

.search-icon,
.clear-search {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.search-icon {
  inset-inline-start: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
}

.search-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.topbar-search input {
  width: 100%;
  min-width: 0;
  padding-inline: 2.9rem 3rem;
  color: var(--text-strong);
  background: transparent;
  outline: none;
  box-shadow: none;
}

.topbar-search input::placeholder {
  color: color-mix(in srgb, var(--text-muted) 88%, transparent);
}

.topbar-search input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}

.topbar-search input[type="search"]::-webkit-search-decoration,
.topbar-search input[type="search"]::-webkit-search-cancel-button,
.topbar-search input[type="search"]::-webkit-search-results-button,
.topbar-search input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.topbar-search input[type="search"]::-ms-clear,
.topbar-search input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.topbar-search input:focus,
.topbar-search input:focus-visible {
  outline: none;
  box-shadow: none;
}

.clear-search {
  inset-inline-end: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, background-color 160ms ease, color 160ms ease;
}

.clear-search.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.clear-search:hover {
  background: rgba(19, 151, 200, 0.1);
  color: var(--text-strong);
}

.clear-search__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.topbar-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.topbar-controls--admin {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.theme-toggle,
.lang-button,
.menu-toggle,
.nav-link,
.filter-button,
.info-chip,
.results-chip,
.action-link,
.place-list__item,
.manager-item,
.tab-button {
  border: 1px solid var(--border);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
  color: var(--text);
  white-space: nowrap;
}

.theme-toggle__icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), var(--coral));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

:root[data-theme="dark"] .theme-toggle__icon {
  background: linear-gradient(135deg, #eef6ff, #79c6ff);
}

.theme-toggle__label {
  font-size: 0.88rem;
  font-weight: 700;
}

.topbar-social-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: auto;
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.38rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.topbar-social-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.topbar-social-link__caption {
  display: block;
  max-width: 11rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 10rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 74%, transparent);
  box-shadow: inset 0 0 0 1px var(--border);
}

.lang-button {
  min-height: 2.3rem;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lang-button.is-active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
}

.menu-toggle__line {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text-strong);
  transition: transform 160ms ease, opacity 160ms ease;
}

.topbar.is-menu-open .menu-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.is-menu-open .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.topbar.is-menu-open .menu-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.9rem;
  max-height: 8rem;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 180ms ease, opacity 180ms ease, padding-top 180ms ease, transform 180ms ease;
}

.topbar.is-compact {
  padding: 1rem 0 0.9rem;
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
}

.topbar.is-compact .topbar__row {
  gap: 1rem;
}

.topbar.is-compact .brand-copy span {
  max-height: 3rem;
  opacity: 1;
  transform: none;
}

.topbar.is-compact .brand-mark {
  width: 2.55rem;
  border-radius: 0.95rem;
}

.topbar.is-compact .topbar-search {
  min-height: 3.2rem;
}

.topbar.is-compact .theme-toggle {
  min-height: 2.7rem;
  padding: 0.35rem 0.85rem;
}

.topbar.is-compact .language-switcher {
  min-width: 10rem;
}

.topbar.is-compact .topbar-nav {
  max-height: 8rem;
  opacity: 1;
  pointer-events: auto;
  padding-top: 0.9rem;
  transform: translateY(0);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 74%, transparent);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nav-link:hover,
.topbar-social-link:hover,
.action-link:hover,
.filter-button:hover,
.place-list__item:hover,
.manager-item:hover,
.tab-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 36%, var(--border-strong));
}

.ads-grid,
.places-grid {
  display: grid;
  gap: 1.2rem;
}

.places-grid {
  align-items: start;
}

.ads-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.ad-card,
.event-card,
.place-card,
.panel-card,
.manager-list-card,
.entity-form,
.form-block,
.stat-card,
.site-footer__card,
.security-notice {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-panel) 86%, transparent);
  box-shadow: var(--shadow-soft);
}

.ad-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto;
  height: auto;
  align-self: start;
}

.event-card {
  height: 100%;
}

.ad-card__image,
.event-card__image,
.place-card__image,
.modal__image-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(19, 151, 200, 0.12), rgba(24, 194, 185, 0.12));
}

.ad-card__image img,
.event-card__image img,
.place-card__image img,
.modal__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-card__image {
  aspect-ratio: 1.68;
}

.ad-card__body {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  min-width: 0;
  align-content: start;
}

.ad-card .action-link {
  align-self: start;
}

.ad-card__title,
.event-card__title,
.place-card__title,
.panel-card__head h3,
.manager-item__title,
.panel-header h2 {
  color: var(--text-strong);
  font-family: var(--font-ui);
  letter-spacing: -0.02em;
}

.section-title,
.section-copy,
.ad-card__title,
.ad-card__text,
.event-card__title,
.event-card__text,
.place-card__title,
.place-card__copy,
.place-list__title,
.place-list__meta,
.manager-item__title,
.manager-item__meta,
.modal__content h3,
.modal__location,
.modal__description,
.action-link,
.primary-button,
.secondary-button {
  overflow-wrap: anywhere;
}

.ad-card__title {
  font-size: 1.12rem;
  line-height: 1.16;
}

.ad-card__text {
  color: var(--text-muted);
  line-height: 1.58;
}

.inline-card-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.is-collapsible-copy.is-collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.inline-card-copy__toggle {
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-strong);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.inline-card-copy__toggle:hover {
  text-decoration: underline;
}

.action-link {
  width: fit-content;
  min-height: 2.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(19, 151, 200, 0.1), rgba(24, 194, 185, 0.12));
  color: var(--primary-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.circle-button {
  position: relative;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 82%, transparent);
  color: var(--text-strong);
  box-shadow: var(--shadow-soft);
}

.circle-button::before {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

#events-prev::before {
  content: "\2190";
}

#events-next::before {
  content: "\2192";
}

[dir="rtl"] #events-prev::before {
  content: "\2192";
}

[dir="rtl"] #events-next::before {
  content: "\2190";
}

.circle-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.events-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.8rem) / 3);
  gap: 0.95rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.85rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  align-items: start;
}

[dir="rtl"] .events-carousel {
  direction: ltr;
}

.events-carousel::-webkit-scrollbar {
  display: none;
}

.ads-carousel-section {
  width: 100%;
  margin-inline: auto;
}

.ads-carousel-section__head {
  margin-bottom: 0.85rem;
}

.ads-carousel-section__title {
  margin: 0;
}

.ads-carousel-section .ads-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  align-items: stretch;
}

.ads-carousel-section .ad-card {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  height: 100%;
  align-self: stretch;
}

.ads-carousel-section .ad-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(5.4rem, 7.2vw, 6.3rem);
  padding: 0.2rem 0.45rem 0.05rem;
  overflow: hidden;
}

.ads-carousel-section .ad-card__media-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 11.5rem);
  max-height: 100%;
  margin: auto;
  padding: 0.28rem;
  border: 1px solid color-mix(in srgb, var(--border) 88%, rgba(255, 255, 255, 0.28));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bg-panel) 92%, rgba(255, 255, 255, 0.38));
  box-shadow: 0 8px 16px rgba(12, 48, 77, 0.07);
}

.ads-carousel-section .ad-card__media-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 721px) {
  .ads-carousel-section .ad-card__image {
    display: inline-flex;
    width: auto;
    max-width: calc(100% - 0.9rem);
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    margin-inline: auto;
    padding: 0.05rem 0 0;
    justify-self: center;
    align-self: start;
    background: transparent;
    overflow: visible;
  }

  .ads-carousel-section .ad-card__media-frame {
    max-width: min(100%, 232px);
    max-height: 146px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
  }

  .ads-carousel-section .ad-card__media-frame img {
    max-height: 136px;
  }
}

.event-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  scroll-snap-align: start;
  height: auto;
  align-self: start;
}

[dir="rtl"] .event-card {
  direction: rtl;
}

.event-card__image {
  aspect-ratio: 1.5;
}

.event-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 1rem;
  min-width: 0;
}

@media (min-width: 721px) {
  .events-carousel {
    align-items: stretch;
  }

  .event-card {
    display: flex;
    flex-direction: column;
    min-height: 30rem;
    align-self: stretch;
  }

  .event-card__body {
    flex: 1 1 auto;
    min-height: 0;
  }

  .event-card .is-collapsible-copy.is-collapsed {
    -webkit-line-clamp: 3;
  }
}

.event-card__meta,
.modal__meta-row,
.place-card__topline,
.place-card__meta,
.entity-actions,
.social-row,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.info-chip,
.category-pill,
.area-pill,
.feature-chip,
.results-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(19, 151, 200, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.event-card__title {
  font-size: 1.08rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.2em * 2);
}

.event-card__text,
.place-card__copy,
.modal__description,
.helper-copy {
  color: var(--text-muted);
  line-height: 1.65;
}

.link-editor-list {
  display: grid;
  gap: 0.8rem;
}

.link-editor-row {
  align-items: end;
}

.link-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.event-card__button,
.primary-button,
.secondary-button,
.danger-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.event-card__button,
.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
  color: var(--text);
}

.danger-button {
  background: rgba(202, 76, 92, 0.14);
  color: var(--danger);
}

.text-button {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: var(--primary-strong);
}

.event-card__button,
.place-card__actions .primary-button,
.place-card__actions .secondary-button {
  margin-top: auto;
}

.event-card__button:hover,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.carousel-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-muted) 32%, transparent);
}

.carousel-dot.is-active {
  width: 1.6rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.places-toolbar {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.filter-row {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.filter-row__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-row__sort {
  display: flex;
  align-items: center;
}

.sort-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.sort-controls__label {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 80%, transparent);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.filter-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(19, 151, 200, 0.14), rgba(24, 194, 185, 0.18));
  color: var(--primary-strong);
}

.results-chip {
  width: fit-content;
}

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

.place-card {
  position: relative;
  overflow: hidden;
  align-self: start;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.place-card.is-search-highlighted {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent),
    var(--shadow-card);
}

.place-card__preview {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1rem;
}

.place-card__image {
  border-radius: var(--radius-md);
  aspect-ratio: 0.96;
}

.place-card__summary {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
  align-content: start;
}

.place-card__summary--full {
  grid-column: 1 / -1;
}

.place-card__topline {
  align-items: flex-start;
}

.place-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.place-card__updated-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.9rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--border) 88%, rgba(255, 255, 255, 0.2));
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 90%, rgba(255, 255, 255, 0.08));
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(12, 48, 77, 0.08);
  white-space: nowrap;
}

.category-pill {
  background: rgba(19, 151, 200, 0.1);
  color: var(--primary-strong);
}

.area-pill {
  background: rgba(255, 230, 192, 0.54);
}

.place-card__location {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-card__title {
  font-size: 1.25rem;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-card__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.place-card__meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.place-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  min-height: 1.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 231, 192, 0.5);
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.place-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
}

.place-detail {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1rem;
  overflow: hidden;
}

.place-card.is-expanded .place-detail {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.place-detail__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.place-detail__footer .place-detail__close {
  min-height: 2.85rem;
  padding-inline: 1.1rem;
}

.place-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 0.75rem;
}

.place-gallery__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1.2;
  padding: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  overflow: hidden;
}

.place-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius-md) - 0.2rem);
}

.place-detail__content {
  display: grid;
  gap: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.info-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-soft) 74%, transparent);
}

.info-card h4 {
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.info-card p,
.info-card__body,
.modal__location,
.site-footer__brand p,
.panel-header p {
  color: var(--text-muted);
  line-height: 1.6;
}

.info-card__body {
  display: grid;
  gap: 0.55rem;
}

.coupon-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border: 1px dashed color-mix(in srgb, var(--primary) 40%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-soft) 72%, transparent);
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.coupon-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.info-card a,
.social-row a {
  overflow-wrap: anywhere;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.feature-chip {
  background: rgba(24, 194, 185, 0.1);
}

.mini-map {
  height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 1.2rem;
  align-items: start;
}

.panel-card {
  min-width: 0;
  padding: 1rem;
}

.panel-card--map {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem;
}

.map-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.1rem 0.1rem 0;
}

.map-locate-button {
  min-width: 9.75rem;
}

.map-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.map-status.is-success {
  color: var(--success);
}

.map-status.is-warning {
  color: var(--warning);
}

.panel-card__head {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.9rem;
}

.panel-card__head h3 {
  font-size: 1.1rem;
}

.city-map {
  min-height: 460px;
  border-radius: calc(var(--radius-lg) - 0.35rem);
  overflow: hidden;
}

.place-list {
  display: grid;
  gap: 0.7rem;
  max-height: 460px;
  overflow-y: auto;
  padding-inline-end: 0.1rem;
}

.place-list__item {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-panel) 76%, transparent);
  text-align: start;
}

.place-list__item.is-active {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: linear-gradient(135deg, rgba(19, 151, 200, 0.1), rgba(24, 194, 185, 0.12));
}

.place-list__title {
  color: var(--text-strong);
  font-weight: 800;
}

.place-list__meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.site-footer__brand-link {
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-footer__brand-link:hover {
  transform: translateY(-1px);
}

.site-footer__brand strong {
  display: block;
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 13, 22, 0.66);
  touch-action: manipulation;
}

.modal__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(820px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-xl) + 0.2rem);
  background: color-mix(in srgb, var(--bg-panel) 92%, transparent);
  box-shadow: 0 28px 70px rgba(4, 13, 22, 0.34);
}

.modal__image-wrap {
  aspect-ratio: 2.35;
  max-height: min(30vh, 260px);
}

.modal__content {
  display: grid;
  min-height: 0;
  gap: 0.8rem;
  padding: 1.35rem 1.4rem 1.45rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__content h3 {
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.16;
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  inset-inline-end: 0.9rem;
  z-index: 2;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  background: rgba(4, 13, 22, 0.42);
  color: #fff;
}

.modal__close::before {
  content: "\00d7";
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.leaflet-container {
  z-index: var(--z-map);
  font-family: var(--font-body);
  background: var(--bg-soft);
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom,
.leaflet-control {
  z-index: calc(var(--z-map) + 1);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: color-mix(in srgb, var(--bg-panel) 95%, transparent);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.leaflet-popup-content {
  margin: 0.85rem 1rem;
}

.popup-title,
.popup-copy {
  display: block;
}

.popup-title {
  color: var(--text-strong);
  font-weight: 800;
}

.popup-copy {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.map-pin {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 10px 18px rgba(5, 30, 54, 0.2);
}

.map-pin.is-active {
  transform: scale(1.12);
  box-shadow: 0 14px 24px rgba(5, 30, 54, 0.28);
}

.map-pin--restaurant { background: #1da7c8; }
.map-pin--bar { background: #7f73ff; }
.map-pin--club { background: #ff7d74; }
.map-pin--beach { background: #18c2b9; }
.map-pin--shop { background: #ffac52; }
.map-pin--attraction { background: #3e8ced; }
.map-pin--local-business { background: #5aa36a; }

.admin-page {
  background:
    radial-gradient(circle at 14% 18%, rgba(19, 151, 200, 0.12), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 143, 111, 0.11), transparent 24%),
    var(--bg);
}

.topbar--admin {
  position: relative;
  padding-bottom: 1rem;
}

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

.topbar--admin .topbar__row,
.topbar--admin .topbar-nav {
  width: var(--content-width);
}

.topbar-nav--admin {
  display: flex;
  justify-content: flex-end;
  width: auto !important;
  margin-inline: 0;
  padding-top: 0;
  max-height: none;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}

.admin-language-switcher {
  min-width: 9rem;
}

.admin-main {
  width: min(1320px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.4rem 0 3rem;
}

.admin-hero {
  display: grid;
  gap: 1rem;
}

.security-notice {
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(255, 143, 111, 0.12), rgba(255, 231, 192, 0.22));
}

.security-notice strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-strong);
}

.admin-status {
  margin-inline-start: auto;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 84%, transparent);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
}

.admin-status.is-success {
  color: var(--success);
}

.admin-status.is-warning {
  color: var(--warning);
}

.admin-stats,
.backup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
}

.stat-card__label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-card__value {
  color: var(--text-strong);
  font-size: 1.35rem;
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.2rem;
  margin-top: 1.35rem;
}

.admin-sidebar {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.tab-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.9rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
  color: var(--text);
  font-weight: 800;
}

.tab-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(19, 151, 200, 0.15), rgba(24, 194, 185, 0.18));
  color: var(--primary-strong);
}

.admin-panel {
  display: none;
  gap: 1rem;
}

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

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.panel-header h2 {
  font-size: 1.5rem;
}

.manager-grid {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 1rem;
}

.manager-list-card {
  padding: 0.8rem;
}

.manager-list {
  display: grid;
  gap: 0.6rem;
  max-height: 960px;
  overflow-y: auto;
}

.manager-item {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-panel) 74%, transparent);
  text-align: start;
}

.manager-item.is-active {
  border-color: color-mix(in srgb, var(--primary) 44%, var(--border));
  background: linear-gradient(135deg, rgba(19, 151, 200, 0.1), rgba(24, 194, 185, 0.12));
}

.manager-item__meta {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.entity-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.entity-form--narrow {
  padding: 1.2rem;
}

.form-block {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.form-block h3 {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 800;
}

.admin-source-card {
  gap: 1rem;
}

.admin-source-card__summary {
  display: grid;
  gap: 0.35rem;
}

.admin-source-card__summary strong {
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 800;
}

.form-row {
  display: grid;
  gap: 0.8rem;
}

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

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--text-strong);
  font-size: 0.85rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
#import-json-file {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
  color: var(--text);
}

.field textarea,
#import-json-text {
  min-height: 120px;
  resize: vertical;
}

.category-multiselect {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.category-multiselect__option {
  position: relative;
  display: inline-flex;
}

.category-multiselect__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-multiselect__option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.category-multiselect__option input:checked + span {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(19, 151, 200, 0.92), rgba(24, 194, 185, 0.94));
  color: #fff;
  box-shadow: 0 10px 20px rgba(19, 151, 200, 0.18);
}

.preview-box {
  display: grid;
  place-items: center;
  min-height: 210px;
  overflow: hidden;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
}

.preview-box--small {
  min-height: 156px;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-editor-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.gallery-editor-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-panel) 76%, transparent);
}

.gallery-editor-item__url {
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.backup-actions {
  margin-top: 0.1rem;
}

.backup-actions .primary-button,
.backup-actions .secondary-button {
  min-height: 2.55rem;
  padding: 0.65rem 0.95rem;
}

#import-json-text {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
  color: var(--text);
}

[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] button {
  font-family: "Heebo", "Manrope", sans-serif;
}

[dir="rtl"] .topbar-nav,
[dir="rtl"] .filter-row,
[dir="rtl"] .site-footer__links,
[dir="rtl"] .event-card__meta,
[dir="rtl"] .modal__meta-row,
[dir="rtl"] .place-card__topline,
[dir="rtl"] .place-card__meta,
[dir="rtl"] .place-card__actions,
[dir="rtl"] .social-row,
[dir="rtl"] .entity-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .place-list__item,
[dir="rtl"] .manager-item,
[dir="rtl"] .tab-button,
[dir="rtl"] .nav-link {
  text-align: right;
}

[dir="rtl"] .topbar-nav .nav-link {
  justify-content: flex-end;
}

[dir="rtl"] .panel-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .admin-status {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

@media (max-width: 1120px) {
  .ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ads-carousel-section .ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .events-carousel {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }

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

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

  .place-list {
    max-height: 380px;
  }

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

  .manager-grid {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .topbar__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .topbar-controls--admin {
    justify-content: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .topbar-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .topbar-nav {
    padding-top: 0.85rem;
  }

  .topbar-nav--admin {
    justify-content: flex-start;
  }

  .places-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .place-card.is-expanded {
    grid-column: 1 / -1;
  }

  .place-card:not(.is-expanded) .place-card__preview {
    gap: 0.8rem;
    padding: 0.85rem;
  }

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

  .place-card__image {
    aspect-ratio: 1.7;
  }

  .place-card:not(.is-expanded) .place-card__title {
    font-size: 1rem;
  }

  .place-card:not(.is-expanded) .place-card__location {
    -webkit-line-clamp: 1;
  }

  .place-card:not(.is-expanded) .place-card__actions {
    flex-direction: column;
  }

  .place-card:not(.is-expanded) .place-card__actions > * {
    width: 100%;
  }

  .info-grid,
  .form-row--three,
  .form-row--two,
  .backup-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .place-detail__footer {
    justify-content: stretch;
  }

  .place-detail__footer > * {
    width: 100%;
  }

  .place-detail__footer .place-detail__close {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .category-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .ads-carousel-section .ads-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0.7rem;
    overflow-x: auto;
    padding: 0.1rem 0 0.8rem;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    align-items: start;
    justify-items: center;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
  }

  [dir="rtl"] .ads-carousel-section .ads-grid {
    direction: ltr;
  }

  .ads-carousel-section .ads-grid::-webkit-scrollbar {
    display: none;
  }

  .ads-carousel-section {
    width: min(100%, 32.5rem);
  }

  .ads-carousel-section .ad-card {
    max-width: 28.5rem;
    margin-inline: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  [dir="rtl"] .ads-carousel-section .ad-card {
    direction: rtl;
  }

  .ad-card__body {
    padding: 0.9rem;
    gap: 0.55rem;
  }

  .ad-card__title {
    font-size: 1.02rem;
  }

  .place-card__updated-badge {
    font-size: 0.69rem;
  }

  body::before,
  body::after {
    width: 90px;
    opacity: 0.38;
  }

  .page-main {
    padding-top: 1rem;
  }

  .topbar {
    padding: 0.78rem 0 0.72rem;
  }

  .topbar.is-compact {
    padding: 0.78rem 0 0.72rem;
  }

  .topbar-controls {
    gap: 0.35rem;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy span {
    font-size: 0.74rem;
  }

  .theme-toggle__label {
    display: none;
  }

  .language-switcher {
    min-width: 7.35rem;
  }

  .topbar.is-compact .language-switcher {
    min-width: 7.35rem;
  }

  .theme-toggle {
    min-height: 2.5rem;
    padding: 0.28rem 0.62rem;
  }

  .topbar-social-link,
  .menu-toggle,
  .topbar.is-compact .menu-toggle {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar.is-compact .menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    border-width: 1px;
    transform: none;
    overflow: visible;
  }

  .topbar-nav {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 180ms ease, opacity 180ms ease, padding-top 180ms ease;
  }

  .topbar.is-menu-open .topbar-nav {
    max-height: 14rem;
    opacity: 1;
    pointer-events: auto;
    padding-top: 0.9rem;
  }

  .topbar.is-compact .topbar-nav,
  .topbar.is-compact.is-menu-open .topbar-nav {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    padding-top: 0;
  }

  .topbar-nav--admin {
    max-height: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    padding-top: 0.2rem;
  }

  .topbar-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  [dir="rtl"] .topbar-nav .nav-link {
    justify-content: flex-end;
  }

  .topbar-nav--admin .nav-link {
    width: auto;
    justify-content: center;
  }

  .map-tools {
    align-items: stretch;
  }

  .map-locate-button {
    width: 100%;
  }

  .events-carousel {
    grid-auto-columns: 100%;
  }

  .place-gallery,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .city-map {
    min-height: 340px;
  }

  .modal {
    padding:
      max(0.7rem, env(safe-area-inset-top))
      max(0.7rem, env(safe-area-inset-right))
      max(0.7rem, env(safe-area-inset-bottom))
      max(0.7rem, env(safe-area-inset-left));
  }

  .modal__card {
    border-radius: 1.35rem;
    max-height: calc(100dvh - 1.4rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .site-footer__card {
    align-items: flex-start;
  }
}

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

  .ads-carousel-section .ads-grid {
    grid-template-columns: none;
    grid-auto-columns: 100%;
  }

  .ads-carousel-section .ad-card__image {
    height: 7.75rem;
    padding: 0.3rem 0.5rem 0.1rem;
  }

}

@media (max-width: 520px) {
  .topbar-controls {
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 10.8rem;
  }

  .category-hero__button {
    min-height: 3.5rem;
    padding: 0.68rem 0.72rem;
    font-size: 0.84rem;
  }

  .category-hero__icon {
    font-size: 0.98rem;
  }

  .home-intro .section-title {
    max-width: 16ch;
    font-size: clamp(1.52rem, 6.1vw, 1.86rem);
  }

  .home-intro .section-copy {
    font-size: 0.96rem;
  }

  .topbar__row {
    gap: 0.55rem;
  }

  .brand-copy span {
    display: none;
  }

  .language-switcher {
    min-width: 6.65rem;
  }

  .topbar.is-compact .language-switcher {
    min-width: 6.65rem;
  }

  .lang-button {
    min-height: 2.1rem;
    padding-inline: 0.24rem;
    font-size: 0.74rem;
  }

  .theme-toggle {
    min-height: 2.4rem;
    padding: 0.22rem 0.54rem;
  }

  .topbar-social-link,
  .menu-toggle,
  .topbar.is-compact .menu-toggle {
    min-width: 2.4rem;
    min-height: 2.4rem;
  }

  .topbar-social-link {
    padding: 0.34rem 0.5rem;
  }

  .topbar-social-link__caption {
    max-width: 8.2rem;
    font-size: 0.6rem;
  }

  .section-title {
    max-width: none;
  }

  .section-heading--inline {
    grid-template-columns: 1fr;
  }

  .carousel-controls {
    justify-content: flex-start;
  }

  .place-card__actions,
  .entity-actions {
    flex-direction: column;
  }

  .place-card__actions > *,
  .entity-actions > *,
  .gallery-editor-item > .danger-button {
    width: 100%;
  }

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

body:not(.admin-page) {
  --bg: #f3f6fa;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --bg-panel: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft-strong: #eef3f7;
  --text: #263746;
  --text-strong: #101a24;
  --text-muted: #667787;
  --border: rgba(16, 24, 32, 0.08);
  --border-strong: rgba(16, 24, 32, 0.14);
  --shadow-soft: 0 4px 12px rgba(16, 24, 32, 0.06);
  --shadow-card: 0 18px 40px rgba(16, 24, 32, 0.08);
  background:
    radial-gradient(circle at top left, rgba(19, 151, 200, 0.06), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f7 100%);
}

body:not(.admin-page)::before,
body:not(.admin-page)::after {
  width: min(12vw, 120px);
  opacity: 0.18;
}

body:not(.admin-page) .page-main {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding-block: 1rem 4rem;
}

body:not(.admin-page) .section + .section {
  margin-top: 0;
}

body:not(.admin-page) #search-section { order: 1; }
body:not(.admin-page) #hero-discovery-section { order: 2; }
body:not(.admin-page) #ads-section { order: 3; }
body:not(.admin-page) #events-section { order: 4; }
body:not(.admin-page) #places-section { order: 5; }
body:not(.admin-page) #map-section { order: 6; }

body:not(.admin-page) .topbar:not(.topbar--admin) {
  padding: 0.88rem 0 0.82rem;
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.05);
}

body:not(.admin-page) .topbar:not(.topbar--admin) .topbar__row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
}

body:not(.admin-page) .topbar:not(.topbar--admin) .topbar-nav {
  gap: 0.55rem;
}

body:not(.admin-page) .search-hero__quick-links {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  justify-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: start;
  justify-self: stretch;
  padding: 0.72rem 0.78rem 0.76rem;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: 1.05rem;
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body:not(.admin-page) .search-hero__quick-links-label {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding-inline: 0.12rem;
}

body:not(.admin-page) .category-hero--hero {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
  align-items: center;
}

body:not(.admin-page) .category-hero--hero .category-hero__button {
  min-height: 2.6rem;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 92%, transparent);
  box-shadow: var(--shadow-soft);
}

body:not(.admin-page) .topbar:not(.topbar--admin) .nav-link,
body:not(.admin-page) .theme-toggle,
body:not(.admin-page) .topbar-social-link,
body:not(.admin-page) .filter-button {
  background: rgba(255, 255, 255, 0.88);
}

body:not(.admin-page) .section-heading {
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

body:not(.admin-page) .section-title {
  max-width: none;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

body:not(.admin-page) .eyebrow {
  padding: 0.35rem 0.72rem;
  font-size: 0.75rem;
}

body:not(.admin-page) .search-hero {
  overflow: hidden;
}

body:not(.admin-page) .search-hero__shell {
  display: block;
  padding: 0.6rem 0 0.4rem;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(19, 151, 200, 0.08), rgba(24, 194, 185, 0.03) 72%, transparent);
  box-shadow: none;
}

body:not(.admin-page) .search-hero__copy {
  grid-area: copy;
  gap: 0.72rem;
  margin-bottom: 0;
  max-width: 38rem;
}

body:not(.admin-page) .search-hero__trust {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(19, 151, 200, 0.14);
  border-radius: 999px;
  background: rgba(19, 151, 200, 0.08);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

body:not(.admin-page) .search-hero__cta {
  width: fit-content;
  min-height: 2.9rem;
  margin-top: 0.15rem;
  padding: 0.72rem 1.12rem;
  box-shadow:
    0 14px 28px rgba(19, 151, 200, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body:not(.admin-page) .search-hero__cta:active {
  transform: translateY(0);
  box-shadow:
    0 8px 16px rgba(19, 151, 200, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body:not(.admin-page) .search-hero__hook {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@keyframes hero-scroll-hint-float {
  0%,
  100% {
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.32;
  }

  50% {
    transform: translateX(-50%) translateY(0.22rem) rotate(45deg);
    opacity: 0.72;
  }
}

body:not(.admin-page) .search-hero__quick-links {
  grid-area: quick;
}

body:not(.admin-page) .hero-discovery__shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(100%, 56rem);
  margin-inline: auto;
}

body:not(.admin-page) .hero-discovery__block {
  width: 100%;
  min-width: 0;
}

body:not(.admin-page) .hero-discovery__block--categories {
  display: grid;
  gap: 0.5rem;
}

body:not(.admin-page) .hero-discovery__block--search {
  width: 100%;
  min-width: 0;
}

body:not(.admin-page) .hero-discovery .search-hero__quick-links,
body:not(.admin-page) .hero-discovery .search-hero__form.topbar-search {
  width: 100%;
  margin: 0;
}

body:not(.admin-page) .search-hero .section-title {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  line-height: 1.02;
}

body:not(.admin-page) .search-hero .section-copy {
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.55;
}

body:not(.admin-page) .search-hero__form.topbar-search {
  grid-area: form;
  min-height: 4rem;
  align-self: start;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(16, 24, 32, 0.08),
    0 12px 24px rgba(16, 24, 32, 0.08);
}

body:not(.admin-page) .search-hero__form.topbar-search input {
  padding-inline: 3rem 3.2rem;
  font-size: 1rem;
}

body:not(.admin-page) .categories-section__title {
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body:not(.admin-page) .category-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
}

body:not(.admin-page) .category-hero__button,
body:not(.admin-page) .category-hero__button--wide {
  grid-column: auto;
}

body:not(.admin-page) .category-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

body:not(.admin-page) .ads-carousel-section {
  width: 100%;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.94)),
    var(--bg-panel);
  box-shadow: var(--shadow-card);
}

body:not(.admin-page) .ads-carousel-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

body:not(.admin-page) .ads-carousel-section__title {
  max-width: none;
  font-size: 1.35rem;
  line-height: 1.08;
}

body:not(.admin-page) .ads-carousel-section .ads-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

body:not(.admin-page) .page-main .ad-card,
body:not(.admin-page) .page-main .event-card,
body:not(.admin-page) .page-main .place-card,
body:not(.admin-page) .page-main .panel-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body:not(.admin-page) .page-main .ad-card:hover,
body:not(.admin-page) .page-main .event-card:hover,
body:not(.admin-page) .page-main .place-card:not(.is-expanded):hover,
body:not(.admin-page) .page-main .panel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 24, 32, 0.1);
}

body:not(.admin-page) .page-main .ad-card:active,
body:not(.admin-page) .page-main .event-card:active,
body:not(.admin-page) .page-main .place-card:not(.is-expanded):active {
  transform: translateY(0) scale(0.995);
}

body:not(.admin-page) .ad-card,
body:not(.admin-page) .event-card,
body:not(.admin-page) .place-card {
  height: 100%;
  align-self: stretch;
}

body:not(.admin-page) .ads-carousel-section .ad-card {
  display: flex;
  flex-direction: column;
  min-height: 23rem;
  height: 23rem;
  align-self: start;
}

body:not(.admin-page) .ads-carousel-section .ad-card__image {
  display: block;
  width: calc(100% - 2rem);
  max-width: 13.5rem;
  height: 112px;
  aspect-ratio: auto;
  margin: 1rem auto 0;
  padding: 0;
  box-sizing: border-box;
  align-self: center;
  border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden;
}

body:not(.admin-page) .ads-carousel-section .ad-card__media-frame {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  box-shadow: none;
  outline: none;
  overflow: hidden;
}

body:not(.admin-page) .ads-carousel-section .ad-card__media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transform: none;
  box-shadow: none;
}

body:not(.admin-page) .ad-card__body,
body:not(.admin-page) .event-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1 1 auto;
  padding: 0.95rem 1rem 1rem;
}

body:not(.admin-page) .event-card__body {
  gap: 0.65rem;
}

body:not(.admin-page) .event-card__meta {
  gap: 0.4rem;
  margin: 0;
}

body:not(.admin-page) .event-card__meta .info-chip {
  min-height: 1.9rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid color-mix(in srgb, var(--border) 88%, rgba(255, 255, 255, 0.2));
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 90%, rgba(255, 255, 255, 0.08));
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(12, 48, 77, 0.08);
  white-space: nowrap;
}

body:not(.admin-page) .ad-card__title,
body:not(.admin-page) .event-card__title,
body:not(.admin-page) .place-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body:not(.admin-page) .ad-card__title {
  font-size: 1.08rem;
  line-height: 1.28;
  min-height: calc(1.28em * 2);
}

body:not(.admin-page) .ad-card .is-collapsible-copy.is-collapsed,
body:not(.admin-page) .event-card .is-collapsible-copy.is-collapsed {
  -webkit-line-clamp: 2;
}

body:not(.admin-page) .ad-card .action-link {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.64rem 0.9rem;
}

body:not(.admin-page) .events-carousel {
  gap: 1rem;
  padding: 0.1rem 0.1rem 0.5rem;
}

body:not(.admin-page) .events-carousel--grid {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

body:not(.admin-page) .events-carousel--grid .event-card {
  scroll-snap-align: unset;
}

body:not(.admin-page) .event-card {
  display: flex;
  flex-direction: column;
  min-height: 23rem;
  height: 23rem;
}

body:not(.admin-page) .event-card__image {
  display: block;
  width: calc(100% - 2rem);
  max-width: 13.5rem;
  height: 112px;
  margin: 1rem auto 0;
  aspect-ratio: auto;
  padding: 0;
  box-sizing: border-box;
  align-self: center;
  border-radius: 12px;
  background: var(--bg-soft);
  overflow: hidden;
}

body:not(.admin-page) .event-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transform: none;
  box-shadow: none;
}

:root[data-theme="dark"] body:not(.admin-page) .event-card__image,
:root[data-theme="dark"] body:not(.admin-page) .ads-carousel-section .ad-card__image {
  background: transparent;
}

body:not(.admin-page) .event-card__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.28;
  min-height: calc(1.28em * 2);
}

body:not(.admin-page) .event-card__text {
  margin: 0;
  line-height: 1.58;
}

body:not(.admin-page) .event-card .inline-card-copy {
  gap: 0.22rem;
}

body:not(.admin-page) .event-card .inline-card-copy__toggle {
  font-size: 0.79rem;
  line-height: 1.15;
}

body:not(.admin-page) .event-card .action-link {
  order: 1;
  align-self: flex-start;
  margin-top: auto;
  min-height: 2.2rem;
  padding: 0.52rem 0.84rem;
  font-size: 0.84rem;
}

body:not(.admin-page) .event-card__button {
  order: 2;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.64rem 0.9rem;
  margin-top: 0.32rem;
  font-size: 0.92rem;
}

body:not(.admin-page) .event-card__body:not(:has(.action-link)) .event-card__button {
  margin-top: auto;
}

body:not(.admin-page) .places-toolbar {
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

body:not(.admin-page) .sort-controls {
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(247, 250, 252, 0.92);
}

body:not(.admin-page) .filter-button {
  min-height: 2.65rem;
  padding: 0.64rem 1rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body:not(.admin-page) .filter-button.is-active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(19, 151, 200, 0.18);
}

body:not(.admin-page) .results-chip {
  width: fit-content;
  padding-inline: 0.8rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

body:not(.admin-page) .places-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

body:not(.admin-page) .place-card.is-expanded {
  grid-column: 1 / -1;
  align-self: start;
  height: auto;
}

body:not(.admin-page) .place-card {
  height: auto;
  align-self: start;
}

body:not(.admin-page) .place-card:not(.is-expanded) {
  min-height: 22.5rem;
  height: auto;
}

body:not(.admin-page) .place-card__preview {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1rem;
  height: auto;
  align-items: start;
}

body:not(.admin-page) .place-card:not(.is-expanded) .place-card__preview {
  grid-template-rows: auto minmax(0, 1fr);
  height: auto;
  flex: 1 1 auto;
}

body:not(.admin-page) .place-card__image {
  height: 112px;
  aspect-ratio: auto;
  border-radius: 12px;
  background: var(--bg-soft);
}

body:not(.admin-page) .place-card__summary {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1 1 auto;
}

body:not(.admin-page) .place-card:not(.is-expanded) .place-card__summary {
  min-height: 0;
}

body:not(.admin-page) .place-card__topline {
  justify-content: space-between;
}

body:not(.admin-page) .place-card__categories {
  flex: 1 1 auto;
}

body:not(.admin-page) .place-card__location {
  -webkit-line-clamp: 1;
}

body:not(.admin-page) .place-card__title {
  font-size: 1.08rem;
  line-height: 1.28;
  min-height: calc(1.28em * 2);
}

body:not(.admin-page) .place-card:not(.is-expanded) .place-card__location,
body:not(.admin-page) .place-card:not(.is-expanded) .place-card__rating {
  display: none;
}

body:not(.admin-page) .place-card:not(.is-expanded) .place-card__copy {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.65em * 2);
}

body:not(.admin-page) .place-card__actions {
  margin-top: auto;
}

body:not(.admin-page) .place-card__actions .primary-button,
body:not(.admin-page) .place-card__actions .secondary-button {
  width: 100%;
}

body:not(.admin-page) .map-layout {
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

body:not(.admin-page) .panel-card--map,
body:not(.admin-page) .panel-card--list {
  padding: 1rem;
}

body:not(.admin-page) .city-map {
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
}

:root[data-theme="dark"] body:not(.admin-page) {
  --bg: #08131d;
  --bg-elevated: rgba(10, 22, 33, 0.9);
  --bg-panel: #0f1c29;
  --bg-soft: #132635;
  --bg-soft-strong: #173043;
  --text: #d3e5f2;
  --text-strong: #f4fbff;
  --text-muted: #89a5b8;
  --border: rgba(141, 177, 201, 0.16);
  --border-strong: rgba(141, 177, 201, 0.24);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 20px 46px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at top left, rgba(73, 198, 239, 0.1), transparent 30%),
    linear-gradient(180deg, #08131d 0%, #0b1824 100%);
}

:root[data-theme="dark"] body:not(.admin-page) .search-hero__shell,
:root[data-theme="dark"] body:not(.admin-page) .ads-carousel-section,
:root[data-theme="dark"] body:not(.admin-page) .places-toolbar,
:root[data-theme="dark"] body:not(.admin-page) .page-main .ad-card,
:root[data-theme="dark"] body:not(.admin-page) .page-main .event-card,
:root[data-theme="dark"] body:not(.admin-page) .page-main .place-card,
:root[data-theme="dark"] body:not(.admin-page) .page-main .panel-card,
:root[data-theme="dark"] body:not(.admin-page) .search-hero__quick-links {
  background: color-mix(in srgb, var(--bg-panel) 94%, rgba(255, 255, 255, 0.02));
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

:root[data-theme="dark"] body:not(.admin-page) .search-hero__shell {
  background:
    linear-gradient(180deg, rgba(35, 116, 144, 0.18), rgba(12, 28, 41, 0.04) 74%, transparent);
  border-color: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] body:not(.admin-page) .search-hero__form.topbar-search,
:root[data-theme="dark"] body:not(.admin-page) .topbar:not(.topbar--admin) .nav-link,
:root[data-theme="dark"] body:not(.admin-page) .theme-toggle,
:root[data-theme="dark"] body:not(.admin-page) .topbar-social-link,
:root[data-theme="dark"] body:not(.admin-page) .filter-button,
:root[data-theme="dark"] body:not(.admin-page) .results-chip,
:root[data-theme="dark"] body:not(.admin-page) .sort-controls,
:root[data-theme="dark"] body:not(.admin-page) .category-hero__button,
:root[data-theme="dark"] body:not(.admin-page) .category-hero--hero .category-hero__button,
:root[data-theme="dark"] body:not(.admin-page) .place-card__updated-badge {
  background: rgba(18, 35, 49, 0.92);
  border-color: var(--border);
  color: var(--text);
}

:root[data-theme="dark"] body:not(.admin-page) .filter-button.is-active {
  color: #07131d;
}

:root[data-theme="dark"] body:not(.admin-page) .category-pill,
:root[data-theme="dark"] body:not(.admin-page) .info-chip,
:root[data-theme="dark"] body:not(.admin-page) .area-pill,
:root[data-theme="dark"] body:not(.admin-page) .feature-chip {
  background: rgba(73, 198, 239, 0.16);
  color: var(--text-strong);
}

:root[data-theme="dark"] body:not(.admin-page) .place-card__image,
:root[data-theme="dark"] body:not(.admin-page) .event-card__image,
:root[data-theme="dark"] body:not(.admin-page) .ads-carousel-section .ad-card__image,
:root[data-theme="dark"] body:not(.admin-page) .modal__image-wrap {
  background: linear-gradient(135deg, rgba(20, 45, 63, 0.96), rgba(16, 31, 44, 0.92));
}

:root[data-theme="dark"] body:not(.admin-page) .event-card__image,
:root[data-theme="dark"] body:not(.admin-page) .ads-carousel-section .ad-card__image {
  background: transparent;
}

:root[data-theme="dark"] body:not(.admin-page) .place-card.is-expanded {
  background: color-mix(in srgb, var(--bg-panel) 90%, transparent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] body:not(.admin-page) .place-card.is-expanded .info-card,
:root[data-theme="dark"] body:not(.admin-page) .place-card.is-expanded .place-gallery__item {
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
}

@media (max-width: 1120px) {
  body:not(.admin-page) .search-hero__shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "quick"
      "form";
    align-items: start;
  }

  body:not(.admin-page) .search-hero__quick-links {
    width: 100%;
    max-width: 100%;
    padding: 0.7rem 0.72rem 0.72rem;
  }

  body:not(.admin-page) .ads-carousel-section .ads-grid,
  body:not(.admin-page) .events-carousel--grid,
  body:not(.admin-page) .places-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body:not(.admin-page) .page-main {
    gap: 1rem;
  }

  body:not(.admin-page) .topbar {
    padding: 0.7rem 0 0.55rem;
  }

  body:not(.admin-page) .topbar.is-compact {
    padding: 0.7rem 0 0.55rem;
  }

  body:not(.admin-page) .topbar:not(.topbar--admin) .topbar__row {
    gap: 0.45rem;
    align-items: center;
  }

  body:not(.admin-page) .topbar.is-compact .topbar__row {
    gap: 0.45rem;
  }

  body:not(.admin-page) .brand {
    gap: 0.55rem;
  }

  body:not(.admin-page) .brand-mark {
    width: 1.75rem;
    border-radius: 0.72rem;
  }

  body:not(.admin-page) .topbar.is-compact .brand-mark {
    width: 1.75rem;
    border-radius: 0.72rem;
  }

  body:not(.admin-page) .brand-copy strong {
    font-size: 0.94rem;
  }

  body:not(.admin-page) .topbar.is-compact .brand-copy strong {
    font-size: 0.94rem;
  }

  body:not(.admin-page) .brand-copy span {
    display: none;
  }

  body:not(.admin-page) .topbar.is-compact .brand-copy span {
    display: none;
  }

  body:not(.admin-page) .topbar-controls {
    gap: 0.25rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    max-width: none;
  }

  body:not(.admin-page) .language-switcher {
    min-width: 5.4rem;
    min-height: 2.25rem;
  }

  body:not(.admin-page) .topbar.is-compact .language-switcher {
    min-width: 5.4rem;
    min-height: 2.25rem;
  }

  body:not(.admin-page) .lang-button {
    min-height: 2rem;
    padding-inline: 0.2rem;
    font-size: 0.72rem;
  }

  body:not(.admin-page) .theme-toggle,
  body:not(.admin-page) .topbar-social-link,
  body:not(.admin-page) .menu-toggle,
  body:not(.admin-page) .topbar.is-compact .menu-toggle {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    border-radius: 0.8rem;
  }

  body:not(.admin-page) .topbar.is-compact .theme-toggle {
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    border-radius: 0.8rem;
  }

  body:not(.admin-page) .theme-toggle,
  body:not(.admin-page) .topbar-social-link {
    justify-content: center;
  }

  body:not(.admin-page) .topbar-social-link {
    gap: 0;
  }

  body:not(.admin-page) .topbar-social-link__caption {
    display: none;
  }

  body:not(.admin-page) .topbar-social-link svg {
    width: 1rem;
    height: 1rem;
  }

  body:not(.admin-page) .menu-toggle__line {
    width: 0.92rem;
  }

  body:not(.admin-page) .search-hero__shell,
  body:not(.admin-page) .ads-carousel-section,
  body:not(.admin-page) .places-toolbar {
    padding: 1rem;
  }

  body:not(.admin-page) .search-hero__shell {
    position: relative;
    padding: 0.75rem 0 1.75rem;
  }

  body:not(.admin-page) .hero-discovery__shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.15rem 0 0.25rem;
    overflow: visible;
  }

  body:not(.admin-page) .hero-discovery__block--categories,
  body:not(.admin-page) .hero-discovery__block--search {
    width: 100%;
    align-self: stretch;
  }

  body:not(.admin-page) .search-hero__shell::after {
    content: none;
  }

  body:not(.admin-page) .search-hero .section-title {
    max-width: none;
    font-size: 2rem;
    line-height: 1.01;
    letter-spacing: -0.03em;
  }

  body:not(.admin-page) .search-hero__copy {
    gap: 0.5rem;
    margin-bottom: 0.1rem;
  }

  body:not(.admin-page) .search-hero__trust {
    width: auto;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.72;
  }

  body:not(.admin-page) .search-hero__cta {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.94rem;
    justify-content: center;
    margin-top: 0.25rem;
  }

  body:not(.admin-page) .search-hero__hook {
    margin-top: 0.05rem;
    font-size: 0.75rem;
    opacity: 0.72;
  }

  body:not(.admin-page) .search-hero .section-copy {
    max-width: 30ch;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  body:not(.admin-page) .hero-discovery .search-hero__quick-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    order: 1;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body:not(.admin-page) .hero-discovery .categories-section__title,
  body:not(.admin-page) .hero-discovery .search-hero__quick-links-label {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: -0.01em;
  }

  body:not(.admin-page) .hero-discovery .search-hero__form.topbar-search {
    order: 2;
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0;
    margin-inline: 0;
    align-self: stretch;
    box-sizing: border-box;
    grid-area: auto;
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--bg-panel) 94%, transparent);
    box-shadow:
      inset 0 0 0 1px rgba(16, 24, 32, 0.06),
      0 10px 24px rgba(16, 24, 32, 0.06);
  }

  body:not(.admin-page) .hero-discovery .search-hero__form.topbar-search input {
    padding-inline: 2.7rem 2.9rem;
    font-size: 0.95rem;
  }

  body:not(.admin-page) .hero-discovery .category-hero,
  body:not(.admin-page) .filter-row__categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.admin-page) .hero-discovery .category-hero {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.5rem;
    margin: 0;
    padding: 0 0.3rem 0.125rem 0;
    box-sizing: border-box;
    scroll-padding-inline: 0;
  }

  body:not(.admin-page) .hero-discovery .category-hero::-webkit-scrollbar,
  body:not(.admin-page) .filter-row__categories::-webkit-scrollbar {
    display: none;
  }

  body:not(.admin-page) .hero-discovery .category-hero__button,
  body:not(.admin-page) .filter-button {
    flex: 0 0 auto;
    min-height: 2.25rem;
    padding-inline: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(16, 24, 32, 0.05);
  }

  body:not(.admin-page) .events-carousel,
  body:not(.admin-page) .events-carousel--grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: start;
  }

  body:not(.admin-page) .events-carousel .event-card,
  body:not(.admin-page) .events-carousel--grid .event-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body:not(.admin-page) .ads-carousel-section .ads-grid {
    display: flex;
    gap: 0;
    padding-inline: 0;
    overflow-x: auto;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    scrollbar-width: none;
  }

  body:not(.admin-page) .ads-carousel-section {
    width: 100%;
    overflow: hidden;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 20.25rem;
    height: auto;
    max-height: none;
    max-width: none;
    margin-inline: 0;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__image {
    width: calc(100% - 1.6rem);
    max-width: 12.5rem;
    height: 108px;
    aspect-ratio: auto;
    margin: 0.8rem auto 0;
    background: var(--bg-soft);
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__media-frame {
    display: block;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    transform: none;
    box-shadow: none;
  }

  body:not(.admin-page) .place-card__image {
    height: 108px;
  }

  body:not(.admin-page) .event-card__image {
    width: calc(100% - 1.6rem);
    max-width: 12.5rem;
    height: 108px;
    margin: 0.8rem auto 0;
    aspect-ratio: auto;
    padding: 0;
    background: var(--bg-soft);
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__body {
    gap: 0.55rem;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__title {
    font-size: 1rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card .is-collapsible-copy.is-collapsed {
    -webkit-line-clamp: 2;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card .inline-card-copy {
    gap: 0.24rem;
    min-height: 0;
    overflow: hidden;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__text {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card .inline-card-copy__toggle {
    font-size: 0.79rem;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card .action-link {
    min-height: 2.45rem;
    padding: 0.64rem 0.9rem;
    margin-top: auto;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card:has(.inline-card-copy__toggle[aria-expanded="true"]) {
    min-height: auto;
    max-height: none;
    height: auto;
  }

  .modal__image-wrap {
    max-height: min(27vh, 200px);
  }

  body:not(.admin-page) .events-carousel--grid,
  body:not(.admin-page) .map-layout {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page) .places-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  body:not(.admin-page) .place-card:not(.is-expanded) .place-card__preview {
    padding: 0.8rem;
    gap: 0.65rem;
  }

  body:not(.admin-page) .place-card:not(.is-expanded) {
    min-height: 19rem;
    height: auto;
  }

  body:not(.admin-page) .place-card:not(.is-expanded) .place-card__image {
    height: 96px;
  }

  body:not(.admin-page) .place-card:not(.is-expanded) .place-card__location {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  body:not(.admin-page) .place-card:not(.is-expanded) .place-card__title {
    font-size: 0.98rem;
    line-height: 1.22;
  }

  body:not(.admin-page) .place-card:not(.is-expanded) .place-card__actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
  }

  body:not(.admin-page) .place-card:not(.is-expanded) .place-card__actions .primary-button,
  body:not(.admin-page) .place-card:not(.is-expanded) .place-card__actions .secondary-button {
    min-height: 2rem;
    padding: 0.42rem 0.66rem;
    font-size: 0.8rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-page) .search-hero__shell::after {
    animation: none;
  }
}

@media (max-width: 420px) {
  body:not(.admin-page) .places-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) {
  body:not(.admin-page) #hero-discovery-section {
    margin-top: 0.9rem;
  }

  body:not(.admin-page) .search-hero__shell {
    width: min(100%, 48rem);
    margin-inline: auto;
    padding: 0.85rem 0 0.35rem;
  }

  body:not(.admin-page) .search-hero__copy {
    justify-items: center;
    text-align: center;
    margin-inline: auto;
    max-width: 42rem;
  }

  body:not(.admin-page) .search-hero__trust,
  body:not(.admin-page) .search-hero__cta {
    align-self: center;
  }

  body:not(.admin-page) .search-hero__hook {
    text-align: center;
  }

  body:not(.admin-page) .hero-discovery__block--search {
    width: min(100%, 34rem);
    align-self: center;
  }

  body:not(.admin-page) .hero-discovery .category-hero {
    margin-bottom: 0;
  }

  body:not(.admin-page) .events-carousel {
    align-items: start;
  }

  body:not(.admin-page) .ads-carousel-section .ads-grid {
    align-items: start;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card {
    min-height: 23rem;
    height: 23rem;
    align-self: start;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__body {
    flex: 1 1 auto;
    min-height: 0;
  }

  body:not(.admin-page) .event-card__body {
    flex: 1 1 auto;
    min-height: 0;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card .inline-card-copy,
  body:not(.admin-page) .event-card .inline-card-copy {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__text,
  body:not(.admin-page) .event-card__text {
    min-height: 0;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card .is-collapsible-copy:not(.is-collapsed) {
    max-height: none;
    overflow: visible;
    padding-inline-end: 0;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card:has(.inline-card-copy__toggle[aria-expanded="true"]) {
    height: auto;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__image {
    display: block;
    width: calc(100% - 2rem);
    max-width: 13.5rem;
    min-height: 0;
    height: 112px;
    aspect-ratio: auto;
    margin: 1rem auto 0;
    padding: 0;
    align-self: center;
    border-radius: 12px;
    background: var(--bg-soft);
    overflow: hidden;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__media-frame {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: none;
    box-shadow: none;
    outline: none;
    overflow: hidden;
  }

  body:not(.admin-page) .ads-carousel-section .ad-card__media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    transform: none;
    box-shadow: none;
  }

  body:not(.admin-page) .event-card__image {
    width: calc(100% - 2rem);
    max-width: 13.5rem;
    height: 112px;
    margin: 1rem auto 0;
    aspect-ratio: auto;
    padding: 0;
    align-self: center;
    background: var(--bg-soft);
  }

  body:not(.admin-page) .event-card {
    min-height: 23rem;
    height: 23rem;
    align-self: start;
  }

  body:not(.admin-page) .event-card .is-collapsible-copy:not(.is-collapsed) {
    max-height: none;
    overflow: visible;
    padding-inline-end: 0;
  }

  body:not(.admin-page) .event-card:has(.inline-card-copy__toggle[aria-expanded="true"]) {
    height: auto;
  }
}

@media (min-width: 921px) {
  body:not(.admin-page) #hero-discovery-section {
    margin-top: 0.45rem;
  }

  body:not(.admin-page) .search-hero__shell {
    padding: 0.5rem 0 0.18rem;
  }

  body:not(.admin-page) .search-hero__copy {
    gap: 0.58rem;
    max-width: 40rem;
  }

  body:not(.admin-page) .search-hero .section-title {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1;
  }

  body:not(.admin-page) .search-hero .section-copy {
    font-size: 0.98rem;
    line-height: 1.48;
  }

  body:not(.admin-page) .search-hero__trust {
    padding: 0.34rem 0.64rem;
    font-size: 0.84rem;
  }

  body:not(.admin-page) .search-hero__cta {
    min-height: 2.7rem;
    margin-top: 0.05rem;
    padding: 0.64rem 1rem;
  }

  body:not(.admin-page) .search-hero__hook {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  body:not(.admin-page) .hero-discovery__shell {
    gap: 0.7rem;
  }

  body:not(.admin-page) .hero-discovery__block--categories {
    width: min(100%, 48rem);
    align-self: center;
  }

  body:not(.admin-page) .hero-discovery__block--search {
    width: min(100%, 48rem);
    align-self: center;
  }

  body:not(.admin-page) .hero-discovery .search-hero__quick-links {
    justify-items: center;
  }

  body:not(.admin-page) .hero-discovery .category-hero {
    justify-content: center;
  }

  body:not(.admin-page) .hero-discovery .search-hero__form.topbar-search {
    min-height: 3.6rem;
  }

  body:not(.admin-page) .category-hero--hero .category-hero__button {
    min-height: 2.45rem;
    padding: 0.52rem 0.86rem;
  }

  body:not(.admin-page) .place-card.is-expanded {
    grid-column: span 2;
  }

  body:not(.admin-page) .place-card.is-expanded .place-card__preview {
    grid-template-columns: minmax(0, 152px) minmax(0, 1fr);
    gap: 0.9rem;
  }

  body:not(.admin-page) .place-card.is-expanded .place-card__image {
    height: 96px;
    max-height: 96px;
    aspect-ratio: auto;
  }

  body:not(.admin-page) .place-card__preview {
    grid-template-columns: minmax(0, 148px) minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
    height: auto;
    align-items: start;
  }

  body:not(.admin-page) .place-card__image {
    height: auto;
    aspect-ratio: 1.38;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(19, 151, 200, 0.12), rgba(24, 194, 185, 0.12));
  }

  body:not(.admin-page) .place-card__summary {
    display: grid;
    gap: 0.6rem;
    flex: 0 0 auto;
    align-content: start;
  }

  body:not(.admin-page) .place-card__location {
    -webkit-line-clamp: 2;
  }

  body:not(.admin-page) .place-card__title {
    font-size: 1.25rem;
    line-height: 1.18;
    min-height: 0;
  }

  body:not(.admin-page) .place-card__actions .primary-button,
  body:not(.admin-page) .place-card__actions .secondary-button {
    width: auto;
  }
}

@media (max-width: 720px) {
  #userwayAccessibilityIcon {
    top: 78px !important;
    bottom: auto !important;
  }
}
