/* Scrolling remains native; the visual scrollbar is hidden throughout the UI. */
html, body, * { scrollbar-width:none !important; }
::-webkit-scrollbar { display:none; width:0; height:0; }

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: #333;
  border-color: #333;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn-success:hover:not(:disabled) {
  background: #047857;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-account-link {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  flex: 0 0 40px;
}

.header-account-link svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: block;
}

/* --- Badges --- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-badge);
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  line-height: 1.3;
}

.badge-sub {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.badge-lang {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: transparent;
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: transparent;
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: transparent;
}

.badge-top {
  background: linear-gradient(135deg, #fff, #ffe9f7);
  color: var(--text-primary);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  font-weight: 800;
}

/* --- Cards --- */

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Listing Card */

.listing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  overflow: visible;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.listing-card:hover {
  box-shadow: none;
  transform: translateY(-2px);
}

.listing-card__photo {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.listing-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.listing-card__top-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #ffe9f7);
  color: #050505;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.listing-card:hover .listing-card__photo img {
  transform: scale(1.03);
}

.listing-card__body {
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.listing-card__badges {
  display: flex;
  min-height: 22px;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
}

.listing-card__badges .badge {
  height: 22px;
  min-width: 0;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card__title {
  min-height: calc(2 * 1.4em);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 0;
  padding-top: 0;
}

.listing-card__city {
  color: var(--text-secondary);
  font-size: 13px;
}

.listing-card__price {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.listing-card__price svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.listing-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.listing-card__rating svg {
  width: 15px;
  height: 15px;
  color: #f5a623;
  fill: currentColor;
}

.listing-card__price--free {
  color: var(--success);
}

.listing-card__price--model-payment {
  align-items: center;
  line-height: 1.25;
  color: var(--warning);
}

.listing-card__price-label {
  font-size: 11px;
  font-weight: 500;
}

.listing-card__date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 12px;
}

.listing-card__date svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

/* Profile Card */

.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: box-shadow var(--transition), transform var(--transition);
}

.profile-card--catalog {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.profile-card.profile-card--catalog:hover {
  box-shadow: none;
}

.profile-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.profile-card__click-target {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.profile-card__click-target:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.profile-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.profile-card--catalog .profile-card__photo {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
}

.profile-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.profile-card:hover .profile-card__photo img {
  transform: scale(1.03);
}

.profile-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.profile-card--catalog .profile-card__body {
  gap: 6px;
  padding: 10px 0 0;
}

.profile-card__title {
  display: -webkit-box;
  min-width: 0;
  min-height: calc(2 * 1.4em);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.profile-card--catalog .profile-card__title {
  font-size: 16px;
  font-weight: 700;
}

.profile-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 32px;
  margin-top: auto;
  padding-top: var(--space-sm);
}

.profile-card--catalog .profile-card__meta {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  margin-top: 0;
  padding-top: 0;
}

.profile-card--catalog .profile-card__date-spacer {
  display: none;
}

.catalog-tile__taxonomy {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 1.35em;
  gap: 5px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.catalog-tile__taxonomy svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.catalog-tile__taxonomy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-tile__location {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 13px;
}

.catalog-tile__location svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.profile-card__date-spacer {
  visibility: hidden;
}

.profile-card__city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

.profile-card__city-link {
  position: relative;
  z-index: 2;
}

.profile-card__city-link:hover {
  color: var(--text-primary);
}

.profile-card__city svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.profile-card__rating-link,
.profile-card__rating {
  display: inline-flex;
  align-items: center;
}

.profile-card__rating-link {
  position: relative;
  z-index: 2;
}

.profile-card__rating {
  gap: 4px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.profile-card__rating svg {
  width: 15px;
  height: 15px;
  color: #f5a623;
  fill: currentColor;
}

.profile-card__reviews {
  color: var(--text-secondary);
  font-weight: 400;
  white-space: nowrap;
}

.profile-card__open {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  gap: 8px;
  min-width: 88px;
  min-height: 32px;
  margin-top: auto;
  padding: 7px 14px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
}

.profile-card__open:hover {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  opacity: 0.88;
}

.profile-card__open svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.profile-card--published {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 20px 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.profile-card--published .profile-card__photo {
  width: 68px;
  height: 68px;
  min-height: 68px;
  aspect-ratio: 1 / 1;
  border-radius: 13px;
}

.profile-card--published .profile-card__body {
  position: relative;
  min-width: 0;
  gap: 0;
  padding: 0 38px 0 0;
}

.profile-card--published .profile-card__badges {
  display: none;
}

.profile-card--published .profile-card__meta {
  min-height: 0;
  padding-top: 0;
}

.profile-card--published .profile-card__date-spacer {
  display: none;
}

.profile-card--published .profile-card__title {
  min-height: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.profile-card--published:hover {
  box-shadow: none;
  transform: none;
}

.profile-card__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #737985;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.profile-card__published-meta {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #737985;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.profile-card__open--icon {
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  min-width: 24px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #737985;
  transform: translateY(-50%);
}

.profile-card__open--icon:hover {
  border: 0;
  background: transparent;
  color: var(--text-primary);
  opacity: 1;
  transform: translateY(-50%);
}

.profile-card__open--icon svg {
  width: 18px;
  height: 18px;
}

/* Home City Selector */

.home-search {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 46px;
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.home-search--header {
  display: grid;
  flex: 1 1 740px;
  min-width: 260px;
  max-width: 740px;
  margin: 0 auto;
}

.home-search .home-search__input {
  width: 100%;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.home-search .home-search__input:focus {
  border: 0;
  box-shadow: none;
}

.home-search__prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.home-search__prefix svg {
  width: 18px;
  height: 18px;
}

.home-search__submit {
  height: 38px;
  min-width: 88px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: calc(var(--radius-btn) - 3px);
}

.home-city {
  position: relative;
  z-index: 20;
  width: max-content;
  max-width: 100%;
  margin: 0;
}

.home-city[hidden] {
  display: none !important;
}

.home-city__trigger {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: min(280px, calc(100vw - 32px));
  min-height: 34px;
  margin: 0 0 14px;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.home-city__trigger:hover,
.home-city--open .home-city__trigger {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.home-city__pin {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.home-city__current {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-city__chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  transition: transform var(--transition);
}

.home-city--open .home-city__chevron {
  transform: rotate(180deg);
}

.home-city__menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: max-content;
  min-width: 210px;
  max-width: min(300px, calc(100vw - 32px));
  max-height: 280px;
  gap: 2px;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.home-city__menu[hidden] {
  display: none;
}

.home-city__backdrop {
  position: fixed;
  z-index: 1;
  inset: 0;
  background: transparent;
}

.home-city__backdrop[hidden] {
  display: none;
}

html.home-city-menu-open,
body.home-city-menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.home-city__option {
  display: block;
  text-decoration: none;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: calc(var(--radius-input) - 5px);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.home-city__option:hover,
.home-city__option--active {
  background: var(--bg);
}

.home-city__option--active {
  font-weight: 700;
}

/* Banner Slider */

.banner-carousel {
  position: relative;
  margin: 0 auto var(--space-md);
  width: 100%;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.banner-carousel[hidden] {
  display: none;
}

.banner-carousel__track {
  position: relative;
  height: auto;
  aspect-ratio: 2560 / 500;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg);
  touch-action: pan-y;
}

.banner-carousel__slide {
  position: absolute;
  inset: 0;
}

.banner-carousel__slide {
  opacity: 0;
  transform: scale(1.012);
  pointer-events: none;
  transition:
    opacity 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.banner-carousel__slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 32%;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.18) 100%);
  pointer-events: none;
}

.banner-carousel__slide--active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.banner-carousel picture,
.banner-carousel img {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-carousel img {
  object-fit: cover;
}

.banner-carousel__slide--link {
  cursor: pointer;
  text-decoration: none;
}

.banner-carousel__slide--link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.banner-carousel__dots {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 2px;
}

.banner-carousel__dot {
  position: relative;
  width: 18px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: background 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.banner-carousel__dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.18);
  transform: translate(-50%, -50%);
  transition:
    width 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.banner-carousel__dot:hover {
  background: rgba(17, 17, 17, 0.03);
}

.banner-carousel__dot--active {
  background: rgba(17, 17, 17, 0.045);
  opacity: 0.82;
}

.banner-carousel__dot--active::before {
  width: 11px;
  background: rgba(17, 17, 17, 0.58);
}

.banner-carousel__controls {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  min-height: 24px;
  margin: 4px auto 0;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (hover: none), (pointer: coarse) {
  .banner-carousel__controls {
    min-height: 22px;
    padding: 1px 4px;
  }

  .banner-carousel__dot {
    width: 16px;
    height: 20px;
    cursor: default;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-carousel__slide,
  .banner-carousel__dot,
  .banner-carousel__dot::before {
    transition: none;
  }
}

/* Cookie Consent: the existing non-modal analytics choice, not a new overlay. */

/* Compact, nonmodal consent: the page and navigation remain usable. */
.cookie-consent {
  position:fixed;
  right:max(24px,env(safe-area-inset-right));
  bottom:max(24px,env(safe-area-inset-bottom));
  z-index:220;
  width:min(420px,calc(100vw - 48px));
  max-height:calc(100dvh - 48px);
  overflow-y:auto;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:start;
  column-gap:12px;
  row-gap:14px;
  padding:20px;
  border:1px solid #ebe6e0;
  border-radius:22px;
  background:radial-gradient(ellipse at 0 100%,rgb(255 106 0 / 7%),transparent 68%),radial-gradient(ellipse at 100% 0,rgb(255 106 0 / 5%),transparent 65%),#fff;
  box-shadow:0 8px 30px rgb(45 34 24 / 10%);
  opacity:0;
  pointer-events:none;
  transition:opacity 180ms var(--motion-ease);
}
.cookie-consent--visible { opacity:1; pointer-events:auto; }
.cookie-consent__visual { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:rgb(255 238 218 / 65%); }
.cookie-consent__image { display:block; width:29px; height:29px; }
.cookie-consent__content { min-width:0; }
.cookie-consent__title { margin:0 0 7px; font-size:17px; font-weight:650; line-height:1.3; letter-spacing:-.02em; color:var(--text-primary); }
.cookie-consent__text { margin:0; font-size:13px; line-height:1.55; color:#6b7280; overflow-wrap:break-word; }
.cookie-consent__link { display:inline-flex; align-items:center; min-height:32px; margin-top:2px; color:#6b7280; font-size:12px; font-weight:400; text-decoration:underline; text-underline-offset:3px; }
.cookie-consent__link:hover { color:#646c77; }
.cookie-consent__actions { grid-column:1 / -1; display:grid; }
.cookie-consent__actions .btn { width:100%; min-height:44px; padding:10px 14px; border-radius:12px; font-size:14px; font-weight:600; line-height:1.35; }
.cookie-consent__accept { background:#171717; color:#fff; border-color:#171717; }
.cookie-consent__accept:hover:not(:disabled) { background:#303030; border-color:#303030; }
.cookie-consent button:focus-visible,.cookie-consent__link:focus-visible { outline:2px solid #9e592c; outline-offset:3px; }
@media(max-width:768px) {
  .cookie-consent { right:12px; left:12px; bottom:max(12px,env(safe-area-inset-bottom)); width:auto; max-height:calc(100dvh - 24px); padding:16px; border-radius:20px; }
  body.has-mobile-bottom-nav .cookie-consent { bottom:calc(54px + max(19px,env(safe-area-inset-bottom)) + 12px); max-height:calc(100dvh - 110px); }
  body.cookie-banner-open { padding-bottom:calc(var(--cookie-banner-height,190px) + 24px); }
  body.cookie-banner-open.has-mobile-bottom-nav { padding-bottom:calc(var(--cookie-banner-height,190px) + 90px); }
}
@media(prefers-reduced-motion:reduce) { .cookie-consent { transition:none; } }

/* Category Cards */

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}

.category-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card__icon {
  display: none;
}

.category-card:hover .category-card__icon {
  color: var(--accent);
}

.category-card__name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
}

.category-card-lg {
  padding: var(--space-2xl) var(--space-lg);
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}

.category-card-lg::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.category-card-lg:hover::after {
  opacity: 0.55;
}

.category-card-lg:nth-child(1)::after {
  background: radial-gradient(ellipse at 90% 90%, #D5C8E8 0%, transparent 50%);
}

.category-card-lg:nth-child(2)::after {
  background: radial-gradient(ellipse at 90% 90%, #C8D5E8 0%, transparent 50%);
}

.category-card-lg:nth-child(3)::after {
  background: radial-gradient(ellipse at 90% 90%, #D5E8E0 0%, transparent 50%);
}

.category-card-lg .category-card__icon {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1;
}

.category-card-lg .category-card__name {
  font-size: 16px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.category-card__text {
  display: contents;
}

.category-card__hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* --- Forms --- */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9CA3AF;
}

.form-input[type="color"] {
  min-height: 44px;
  padding: 5px;
  cursor: pointer;
  appearance: none;
}

.form-input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.form-input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

.form-input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 8px;
}

.form-input[type="file"] {
  min-height: 50px;
  padding: 6px;
  font-size: 13px;
  line-height: 1;
}

.form-input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background: var(--bg);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.admin-select-native {
  display: none;
}

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

.admin-custom-select__button {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.admin-custom-select__button::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.7px solid var(--text-secondary);
  border-bottom: 1.7px solid var(--text-secondary);
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--transition), border-color var(--transition);
}

.admin-custom-select__button:hover {
  border-color: #cfd5df;
  background: #fbfbfc;
}

.admin-custom-select__button:disabled {
  background: var(--bg);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.admin-custom-select__button:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.admin-custom-select--open .admin-custom-select__button {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.admin-custom-select--open .admin-custom-select__button::after {
  border-color: var(--accent);
  transform: translateY(-25%) rotate(225deg);
}

.admin-custom-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.admin-custom-select--open .admin-custom-select__menu {
  display: grid;
  gap: 2px;
}

.admin-custom-select__option {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.admin-custom-select__option:hover,
.admin-custom-select__option:focus {
  outline: none;
  background: var(--bg);
}

.admin-custom-select__option[aria-selected="true"] {
  background: var(--accent);
  color: var(--surface);
  font-weight: 600;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

#catalog-card-claim-message {
  resize: none;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 14px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.admin-form-options {
  display: grid;
  gap: 10px;
  margin-top: var(--space-md);
}

.admin-checkbox-card {
  align-items: flex-start;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.admin-checkbox-card:hover,
.admin-checkbox-card:has(input:focus-visible) {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.admin-checkbox-card:has(input:checked) {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.05);
}

.admin-checkbox-card input[type="checkbox"] {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin-top: 1px;
}

.admin-checkbox-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-checkbox-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.admin-checkbox-card small {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.form-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 4px;
}

.form-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.form-hint--before {
  margin: 0 0 var(--space-sm);
}

.form-hint--photos {
  margin: 0 0 var(--space-sm);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--danger);
}

.form-row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.form-row > .form-group {
  flex: 1;
}

.listing-pricing-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.listing-pricing-range > .form-group {
  min-width: 0;
  margin-bottom: 0;
}

.listing-pricing-range__separator {
  display: grid;
  width: 16px;
  height: 50px;
  place-items: center;
  color: var(--text-secondary);
}

.char-counter {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 4px;
}

.char-counter.limit {
  color: var(--danger);
}

/* --- Dropzone --- */

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--bg);
}

.dropzone__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  color: var(--text-secondary);
}

.dropzone__text {
  font-size: 14px;
  color: var(--text-secondary);
}

.dropzone__text strong {
  color: var(--text-primary);
}

.dropzone__hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

.dropzone input[type="file"] {
  display: none;
}

.photo-previews {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.photo-previews::-webkit-scrollbar { display: none; }

.photo-preview {
  position: relative;
  flex: 0 0 100px;
  width: 100px;
  aspect-ratio: 4 / 5;
  height: auto;
  scroll-snap-align: start;
  border-radius: var(--radius-badge);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.photo-preview__status {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.photo-preview__status--uploading::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.photo-preview__status--uploaded {
  background: rgba(5, 150, 105, 0.88);
}

.photo-previews--success {
  justify-content: center;
  margin: 0 0 var(--space-lg);
}

.photo-preview__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: none;
  line-height: 1;
  transition: background var(--transition);
}

.photo-preview__remove:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* --- Pagination --- */

.search-results-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.search-results-tabs::-webkit-scrollbar {
  display: none;
}

.search-results-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.search-results-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* iOS Safari: tapping horizontally scrollable category/direction tabs must not
   leave a grey touch highlight over the previously selected option. */
.search-results-tabs .search-results-tab,
.taxonomy-chips .lang-chip,
.catalog-seo-nav .lang-chip {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.search-results-tabs .search-results-tab:focus:not(:focus-visible),
.taxonomy-chips .lang-chip:focus:not(:focus-visible),
.catalog-seo-nav .lang-chip:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.search-results-tabs .search-results-tab:focus-visible,
.taxonomy-chips .lang-chip:focus-visible,
.catalog-seo-nav .lang-chip:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.search-results-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.infinite-scroll-sentinel {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.seo-pagination {
  display: none;
}

.pagination__btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-badge);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0 8px;
}

.pagination__btn:hover:not(:disabled):not(.active) {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.pagination__btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Modal --- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateZ(0);
  transition:
    opacity var(--blur-exit-duration) var(--blur-exit-ease),
    visibility 0s linear var(--blur-exit-duration);
  will-change: opacity;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--blur-duration) var(--blur-ease),
    visibility 0s;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  z-index: 101;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease),
    visibility 0s linear var(--motion-duration);
  will-change: opacity, transform;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s;
}

#edit-modal {
  display: flex;
  flex-direction: column;
  width: min(92%, 780px);
  max-width: 780px;
  overflow: hidden;
}

#edit-modal .modal__body {
  min-height: 0;
  overflow-y: auto;
}

#edit-modal .modal__header,
#edit-modal .modal__footer {
  flex: 0 0 auto;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.modal__title {
  font-size: 18px;
  font-weight: 600;
}

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-badge);
  font-size: 20px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.modal__close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.modal__body {
  padding: var(--space-lg);
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* --- Admin Edit Modal --- */

.admin-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  gap: var(--space-md);
}

.admin-edit-section {
  width: 100%;
  min-width: 0;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.admin-edit-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.admin-edit-section__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.admin-edit-grid {
  display: grid;
  gap: var(--space-md);
}

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

.admin-edit-language .lang-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-edit-language .lang-chip {
  min-width: 0;
  padding-inline: 8px;
  white-space: nowrap;
}

.admin-edit-form .form-group {
  margin-bottom: var(--space-md);
}

.admin-edit-form .form-group:last-child,
.admin-edit-grid .form-group {
  margin-bottom: 0;
}

.admin-switch-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.admin-switch-card:hover {
  border-color: #cfd5df;
  box-shadow: var(--shadow-sm);
}

.admin-switch-card:has(.admin-switch-card__input:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.admin-switch-card:has(.admin-switch-card__input:checked) {
  border-color: rgba(16, 185, 129, 0.34);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.86), #fff);
}

.admin-switch-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-switch-card__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-switch-card__title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.admin-switch-card__hint {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.admin-switch-card__track {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
  border-radius: 999px;
  background: #d7dce4;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04);
  transition:
    background var(--transition),
    box-shadow var(--transition);
}

.admin-switch-card__thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.22);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.admin-switch-card__input:checked ~ .admin-switch-card__track {
  background: var(--success);
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.08);
}

.admin-switch-card__input:checked ~ .admin-switch-card__track .admin-switch-card__thumb {
  transform: translateX(20px);
  box-shadow: 0 3px 9px rgba(4, 120, 87, 0.22);
}

.admin-switch-field {
  display: flex;
  flex-direction: column;
}

.admin-switch-card--compact {
  flex: 1;
  min-height: 46px;
  padding: 8px 12px;
}

.admin-catalog-card-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-sm);
}

.admin-catalog-card-search__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-sm);
}

/* --- Contact Buttons --- */

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  text-align: left;
}

.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.contact-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-btn__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-btn__text small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.contact-btn--instagram:hover {
  border-color: #E1306C;
  color: #E1306C;
}

.contact-btn--telegram:hover {
  border-color: #0088cc;
  color: #0088cc;
}

.contact-btn--whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
}

.contact-btn--website:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-btn--phone:hover {
  border-color: var(--success);
  color: var(--success);
}

.contact-btn--copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Filters --- */

.filters {
  margin-bottom: var(--space-xl);
}

.filters__trigger-row {
  display: flex;
  justify-content: flex-start;
}

.filters__button svg {
  width: 18px;
  height: 18px;
}

.filters__mobile-button {
  display: none;
}

.filters__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.filters-popup,
.contacts-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  visibility: hidden;
  pointer-events: none;
  transition:
    visibility 0s linear var(--motion-duration);
}

.filters-popup.active,
.contacts-modal.active {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.filters-popup.is-closing,
.contacts-modal.is-closing {
  visibility: visible;
}

.filters-popup__backdrop,
.contacts-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateZ(0);
  transition:
    opacity var(--blur-exit-duration) var(--blur-exit-ease);
  will-change: opacity;
}

.filters-popup.active .filters-popup__backdrop,
.contacts-modal.active .contacts-modal__backdrop {
  opacity: 1;
  transition:
    opacity var(--blur-duration) var(--blur-ease);
}

.filters-popup__sheet,
.contacts-modal__sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(720px, calc(100vw - 32px));
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translate(-50%, -48%) scale(0.98);
  opacity: 0;
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);
  will-change: opacity, transform;
}

.contacts-modal__sheet {
  width: min(420px, calc(100vw - 32px));
}

.filters-popup.active .filters-popup__sheet,
.contacts-modal.active .contacts-modal__sheet {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.filters-popup__header,
.contacts-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.filters-popup__title,
.contacts-modal__title {
  font-size: 18px;
  font-weight: 600;
}

.filters-popup__close,
.contacts-modal__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}

.filters-popup__close:hover,
.contacts-modal__close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.filters-popup__body,
.contacts-modal__body {
  padding: var(--space-lg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.contacts-modal__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contacts-modal__body .contact-btn {
  width: 100%;
  justify-content: flex-start;
}

.create-card-category-modal__text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.create-card-category-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
}

.filters-popup__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
}

.filters-popup-open,
.contacts-modal-open {
  overscroll-behavior: contain;
}

.filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
}

.filters__group {
  flex: 1;
  min-width: 160px;
}

.filters__group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.filters__group .form-input,
.filters__group .form-select {
  padding: 10px 14px;
  font-size: 14px;
}

.filters__group .form-select {
  padding-right: 36px;
}

.filters__price-range {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.filters__row--secondary {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.filters__group--price {
  flex: 0 0 auto;
}

.filters__price-range .form-input {
  width: 100px;
}

.filters__free-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filters__actions {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-end;
}

/* --- Spinner --- */

.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
}

.spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Toast --- */

.toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}

.toast-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background: var(--success);
  color: #fff;
}

.toast-error {
  background: var(--danger);
  color: #fff;
}

.toast-info {
  background: var(--accent);
  color: #fff;
}

/* --- Empty State --- */

.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.empty-state__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  color: var(--text-secondary);
  opacity: 0.4;
}

.empty-state__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.empty-state__text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Gallery --- */

.gallery {
  position: relative;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--border);
}

.gallery__main--track {
  display: flex;
  gap: 12px;
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.gallery__main img {
  width: auto;
  height: auto;
  min-width: 0;
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery__main--track img {
  max-width: calc((100% - 24px) / 3);
  flex: 0 0 calc((100% - 24px) / 3);
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__placeholder svg {
  width: 48px;
  height: 48px;
  color: #fff;
  opacity: 0.5;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translateY(-50%);
  transition: all var(--transition);
}

.gallery__nav:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.gallery__nav svg {
  width: 18px;
  height: 18px;
}

.gallery__nav--prev {
  left: 12px;
}

.gallery__nav--next {
  right: 12px;
}

.gallery__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 6px;
  z-index: 2;
}

.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}

.gallery__dot.active {
  background: #fff;
}

/* --- Tabs (Admin) --- */

.admin-view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: 22px 0 14px;
}

.admin-view-heading__title {
  min-width: 0;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-view-heading__title span {
  white-space: nowrap;
}

.admin-view-heading__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-view-heading__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.admin-view-heading__action:hover,
.admin-view-heading__action:focus-visible {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--surface);
}

.admin-view-heading__action:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.15);
  outline-offset: 2px;
}

.admin-view-heading__action[hidden],
.admin-view-heading__actions[hidden],
.admin-subtabs[hidden],
[data-marketing-panel][hidden] {
  display: none;
}

.admin-tab-intro:not(.admin-tab-intro--actions) {
  display: none;
}

.admin-tab-intro--actions {
  justify-content: flex-end;
}

.admin-tab-intro--actions .section-header__title {
  display: none;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs.is-grabbing {
  cursor: grabbing;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.14);
  outline-offset: -4px;
  border-radius: 10px 10px 0 0;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-subtabs {
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  cursor: default;
}

.admin-subtabs .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.admin-subtabs .tab-btn:hover,
.admin-subtabs .tab-btn:focus-visible {
  border-color: var(--text-primary);
}

.admin-subtabs .tab-btn.active {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--surface);
}

.admin-subtabs .tab-btn span {
  margin-left: 5px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-statistics {
  margin-bottom: var(--space-2xl);
}

.admin-request-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.admin-request-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition);
}

.admin-request-row:last-child {
  border-bottom: 0;
}

.admin-request-row:hover,
.admin-request-row:focus-visible {
  background: var(--bg);
}

.admin-request-row:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: -3px;
}

.admin-request-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.admin-request-row__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.admin-request-row__title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-request-row__meta {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.25;
}

.admin-request-row__chevron {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-statistics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.admin-statistic-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.admin-statistic-card__label {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.admin-statistic-card__value {
  color: var(--text-primary);
  font-size: 32px;
  line-height: 1;
}

/* --- Admin Cards --- */

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: box-shadow var(--transition);
}

.admin-pending-section {
  margin-bottom: var(--space-xl);
}

.admin-card:hover {
  box-shadow: var(--shadow-sm);
}

.admin-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.admin-card__title {
  font-size: 16px;
  font-weight: 600;
}

.admin-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.admin-card__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.admin-card-action-btn > svg {
  display: none;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.admin-card-action-hint {
  margin-bottom: var(--space-sm);
}

.admin-card-changes {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.admin-card-changes__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-card-changes__empty {
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-card-change {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: var(--space-sm);
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.admin-card-change__label {
  font-size: 13px;
  font-weight: 600;
}

.admin-card-change__values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.admin-card-change__values span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-card-change__values strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

.admin-photo-gallery {
  margin-bottom: var(--space-md);
}

.admin-photo-gallery__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 10px;
}

.admin-photo-gallery__header strong {
  font-size: 13px;
}

.admin-photo-gallery__header strong span,
.admin-photo-gallery__header small {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.admin-card-photos {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.admin-card-photo {
  display: grid;
  align-content: start;
  gap: 8px;
  width: 168px;
  min-width: 0;
}

.admin-card-photos__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-badge);
  background: var(--surface-muted);
  color: var(--surface);
  cursor: zoom-in;
}

.admin-card-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-card-photo__counter {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.admin-card-photo__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.admin-card-photo .btn,
.admin-card-photo__actions .admin-file-action {
  width: 100%;
  justify-content: center;
}

.admin-card-photo--add {
  display: flex;
  min-height: 174px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 1px dashed #b9c0ca;
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  color: var(--text-primary);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.admin-card-photo--add:hover,
.admin-card-photo--add:focus-visible {
  border-color: var(--text-primary);
  background: var(--surface);
}

.admin-card-photo--add:disabled {
  opacity: 0.55;
  cursor: wait;
}

.admin-card-photo--add strong {
  font-size: 13px;
}

.admin-card-photo--add small {
  color: var(--text-secondary);
  font-size: 11px;
}

.admin-card-photo__add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.admin-photo-viewer[hidden] {
  display: none;
}

.admin-photo-viewer {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 64px 24px 24px;
  background: rgba(8, 10, 13, 0.92);
  color: #fff;
}

.admin-photo-viewer__figure {
  display: grid;
  min-width: 0;
  max-width: 1100px;
  max-height: calc(100dvh - 100px);
  justify-self: center;
  gap: 12px;
  margin: 0;
}

.admin-photo-viewer__image {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  margin: auto;
  border-radius: 14px;
  object-fit: contain;
}

.admin-photo-viewer__counter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  text-align: center;
}

.admin-photo-viewer__close,
.admin-photo-viewer__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.admin-photo-viewer__close:hover,
.admin-photo-viewer__nav:hover,
.admin-photo-viewer__close:focus-visible,
.admin-photo-viewer__nav:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.admin-photo-viewer__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  font-size: 30px;
}

.admin-photo-viewer__nav {
  font-size: 34px;
}

.admin-google-photo-options {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.admin-google-photo-options__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.admin-google-photo-options__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.admin-google-photo-option {
  display: grid;
  gap: 6px;
  width: 96px;
}

.admin-google-photo-option .btn {
  width: 100%;
  justify-content: center;
}

.admin-file-action {
  cursor: pointer;
}

.google-place-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.google-place-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-badge);
  background: var(--surface-muted);
  cursor: pointer;
}

.google-place-photo input {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.google-place-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--transition), opacity var(--transition);
}

.google-place-photo:hover img {
  transform: scale(1.04);
}

.google-place-photo:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.google-place-photo:has(input:not(:checked)) img {
  opacity: 0.68;
}

.admin-banner-form {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-banner-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-banner-settings__copy {
  min-width: 0;
}

.admin-banner-settings__title {
  margin-bottom: var(--space-xs);
  font-size: 16px;
  font-weight: 700;
}

.admin-banner-settings__controls {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) auto;
  align-items: end;
  justify-content: end;
  gap: var(--space-md);
}

.admin-banner-settings__field {
  min-width: 0;
}

.admin-banner-settings .form-group {
  margin-bottom: 0;
}

.admin-banner-settings__controls .btn {
  min-height: 50px;
  padding: 0 22px;
}

.admin-banner-form__controls {
  min-width: 0;
}

.admin-banner-language-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: var(--space-md);
  padding: 4px;
  border-radius: 14px;
  background: var(--bg);
}

.admin-banner-language-tab {
  min-width: 70px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-banner-language-tab.is-active {
  background: var(--text-primary);
  color: var(--surface);
}

.admin-banner-language-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.admin-banner-language-panel[hidden] {
  display: none;
}

.admin-banner-language-panel__title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
}

.admin-banner-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.admin-banner-form.admin-seo-editor {
  grid-template-columns: minmax(0, 1fr);
}

.admin-seo-editor__languages {
  min-width: 0;
}

/* Шаг «Что вы хотите разместить?» на странице подачи */
.publication-type-step__title {
  font-size: 24px;
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-md);
}

.publication-type-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.publication-type-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.publication-type-card:hover {
  border-color: rgba(17, 24, 39, 0.24);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
}

.publication-type-card__texts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.publication-type-card__title {
  font-size: 17px;
  font-weight: 600;
}

.publication-type-card__hint {
  font-size: 14px;
  color: var(--color-text-secondary, #6b7280);
}

.publication-type-card__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-secondary, #6b7280);
}

.publication-current__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.publication-current__value {
  font-size: 22px;
  font-weight: 700;
}

/* «SEO разделов»: панель складывается стопкой, а не в две колонки баннерной формы */
.admin-seo-editor--sections {
  display: block;
}

.admin-seo-editor--sections .admin-seo-editor__types {
  margin-bottom: var(--space-md);
}

.admin-seo-editor--sections .admin-banner-form__grid {
  margin-bottom: var(--space-md);
}

.admin-seo-editor--sections .form-group {
  margin-bottom: var(--space-md);
}

.admin-seo-editor--sections .admin-seo-editor__languages {
  margin-top: var(--space-md);
}

.admin-seo-editor--sections .admin-banner-form__actions {
  margin-top: var(--space-md);
}

.admin-seo-editor__language {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  min-width: 0;
  margin: 0;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.admin-seo-editor__language[hidden] {
  display: none;
}

.admin-seo-editor__wide {
  grid-column: 1 / -1;
}

.admin-seo-editor__language .form-group {
  margin-bottom: 0;
}

.admin-banner-form__wide {
  grid-column: 1 / -1;
}

.admin-banner-form .form-group {
  margin-bottom: 0;
}

.admin-file-field {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: 50px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-file-field--compact {
  min-height: 44px;
}

.admin-file-field--compact .admin-file-field__button {
  min-height: 32px;
  padding: 0 12px;
}

.admin-file-field:hover,
.admin-file-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.04);
}

.admin-file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-file-field__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-file-field__name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-banner-form__preview-panel {
  min-width: 0;
}

.admin-banner-form__preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.admin-banner-form__preview-head .form-label {
  margin-bottom: 0;
}

.admin-banner-form__preview-note {
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-banner-live-preview {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #f7f7f7 0%, #eceff3 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.admin-banner-preview-grid {
  display: grid;
  gap: var(--space-md);
}

.admin-banner-preview-item {
  display: grid;
  gap: 6px;
}

.admin-banner-preview-item__label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.admin-banner-live-preview--desktop {
  aspect-ratio: 2560 / 500;
}

.admin-banner-live-preview--mobile {
  width: min(100%, 360px);
  aspect-ratio: 1200 / 675;
}

.admin-banner-live-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-banner-live-preview__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.admin-banner-live-preview__empty[hidden] {
  display: none;
}

.admin-banner-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.admin-banner-limit {
  margin: 0 auto 0 0;
}

.admin-banner-limit--warning {
  color: var(--warning);
  font-weight: 600;
}

.admin-color-field {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-sm);
}

.admin-color-input {
  width: 52px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  cursor: pointer;
}

.admin-color-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.admin-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.admin-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

.admin-color-input::-moz-color-swatch {
  border: none;
  border-radius: 8px;
}

.admin-color-field__value {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.admin-banner-list {
  display: grid;
  gap: 12px;
  margin-top: var(--space-lg);
}

.admin-banner-card {
  display: block;
  padding: 16px;
  border: 0;
  background: #F4F4F5;
  box-shadow: none;
}

.admin-banner-card--dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.admin-banner-card__compact {
  display: grid;
  gap: 12px;
}

.admin-banner-card__topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-banner-card__topline .admin-card__title {
  margin: 0;
}

.admin-banner-card__position,
.admin-banner-card__link {
  color: var(--text-secondary);
}

.admin-banner-card__position {
  font-size: 14px;
}

.admin-banner-card__link {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-banner-card__languages {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 14px;
}

.admin-banner-card__language.is-ready {
  color: var(--success);
}

.admin-banner-card__language.is-missing {
  color: var(--danger);
}

.admin-banner-card__tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.admin-banner-card__edit-button {
  width: 100%;
  min-height: 42px;
}

.admin-banner-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin-left: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: grab;
  touch-action: none;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.admin-banner-drag-handle:hover,
.admin-banner-drag-handle:focus-visible {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--surface);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12);
}

.admin-banner-drag-handle:active {
  cursor: grabbing;
  transform: scale(0.96);
}

.admin-banner-drag-handle svg {
  width: 18px;
  height: 18px;
}

.admin-banner-form--editor {
  margin: 16px 0 0;
  box-shadow: none;
}

.admin-banner-card__active {
  margin-right: auto;
}

.admin-banner-card__editor-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.admin-banner-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.admin-banner-order-btn:hover:not(:disabled),
.admin-banner-order-btn:focus-visible:not(:disabled) {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--surface);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.14);
}

.admin-banner-order-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.admin-banner-order-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-banner-order-btn svg {
  width: 20px;
  height: 20px;
}

/* --- Admin Table --- */

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.admin-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}

.admin-table-wrap .admin-table {
  border: 0;
  border-radius: 0;
}

.admin-table--listings {
  min-width: 1060px;
  table-layout: fixed;
}

.admin-table__col-title {
  width: 17%;
}

.admin-table__col-category {
  width: 12%;
}

.admin-table__col-language,
.admin-table__col-city {
  width: 9%;
}

.admin-table__col-top {
  width: 6%;
}

.admin-table__col-status {
  width: 11%;
}

.admin-table__col-active {
  width: 8%;
}

.admin-table__col-date {
  width: 10%;
}

.admin-table__col-actions {
  width: 18%;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-weight: 600;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg);
}

.admin-table--listings td {
  vertical-align: middle;
}

.admin-table--listings td:first-child strong {
  display: block;
  max-width: 100%;
  line-height: 1.45;
}

.admin-table__actions-cell {
  padding-right: 14px;
}

.admin-table__date {
  display: inline-flex;
  min-width: 58px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}

.admin-table__date-main {
  font-size: 13px;
  font-weight: 600;
}

.admin-table__date-sub {
  color: var(--text-secondary);
  font-size: 12px;
}

.admin-table__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg);
  white-space: nowrap;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.admin-action-btn:hover,
.admin-action-btn:focus-visible {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--surface);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.14);
  transform: translateY(-1px);
}

.admin-action-btn:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.16);
  outline-offset: 2px;
}

.admin-action-btn:active {
  transform: scale(0.96);
}

.admin-action-btn--danger {
  color: var(--danger);
}

.admin-action-btn--danger:hover,
.admin-action-btn--danger:focus-visible {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}

.admin-action-btn svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

/* --- Status Badges --- */

.status-pending {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: transparent;
}

.status-approved {
  background: var(--success-bg);
  color: var(--success);
  border-color: transparent;
}

.status-rejected {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: transparent;
}

/* --- Success Screen --- */

.success-screen {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.success-screen__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  color: var(--success);
}

.success-screen__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.success-screen__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* --- Back Button --- */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  transition: color var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}

.back-btn:hover {
  color: var(--text-primary);
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

/* --- Page Header --- */

.page-title {
  margin-bottom: var(--space-sm);
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: var(--space-xl);
}

/* --- Listing Detail --- */

.listing-detail {
  max-width: 900px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.listing-detail__header {
  margin: 22px 0 12px;
}

.listing-detail__title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.025em;
}

.listing-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.listing-detail__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.listing-detail__info-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #737985;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.listing-detail__info-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: currentColor;
  flex-shrink: 0;
}

.listing-detail__price {
  color: #111111;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.listing-detail__price--free {
  color: #239b56;
}

.listing-detail__price--model-payment {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  color: var(--warning);
}

.listing-detail__price-label {
  font-size: 13px;
  font-weight: 500;
}

.listing-detail__description {
  margin: 20px 0;
  color: #111111;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.text-email-link {
  color: var(--link-text, #1D4ED8);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  padding-block: 3px;
  touch-action: manipulation;
}

.text-email-link:hover,
.text-email-link:focus-visible {
  text-decoration-color: currentColor;
}

.text-email-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.listing-detail__description .expandable-text__content,
.catalog-card-hero__description .expandable-text__content,
.company-profile__description .expandable-text__content {
  white-space: pre-wrap;
}

.expandable-text__content {
  white-space: pre-line;
}

.expandable-text__content:not(.expanded) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--expandable-lines, 3);
  overflow: hidden;
}

.expandable-text__toggle {
  display: inline-flex;
  min-height: 32px;
  padding: 0;
  margin-top: 5px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.expandable-text__toggle:hover {
  color: var(--text-primary);
}

.expandable-text__toggle[hidden] {
  display: none;
}

.listing-detail__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
}

.listing-detail__quick-actions .btn {
  flex: 0 1 auto;
  min-height: 44px;
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.listing-detail__quick-actions .btn:hover:not(:disabled),
.catalog-card-actions .catalog-card-action-btn:hover:not(:disabled) {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  opacity: 0.88;
}

.listing-detail__quick-actions .btn:active:not(:disabled),
.catalog-card-actions .catalog-card-action-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.listing-detail__catalog-card {
  display: block;
  max-width: 100%;
  padding: 0;
  margin: 20px 0 0;
  border: 0;
}

.listing-similar {
  padding-top: 0;
  border-top: 0;
}

.listing-similar__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* --- Catalog Card Detail --- */

.catalog-card-detail {
  max-width: 900px;
}

.catalog-card-hero {
  margin-bottom: 21px;
  padding: 26px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.catalog-card-hero__header {
  display: block;
  margin: 22px 0 12px;
}

.catalog-card-hero__title {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.catalog-card-hero__subtitle {
  margin: 6px 0 0;
  color: #737985;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.catalog-card-hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.catalog-card-hero__rating-link {
  color: inherit;
}

.catalog-card-hero__rating-link:hover .catalog-card-hero__rating {
  color: var(--text-primary);
}

.catalog-card-hero__rating svg {
  width: 15px;
  height: 15px;
  color: #f5a623;
  fill: currentColor;
}

.catalog-card-hero__description {
  margin: 20px 0 0;
  color: #111111;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.catalog-card-media {
  position: relative;
  margin: 0;
}

.catalog-card-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalog-card-photos__item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-muted);
}

.catalog-card-photos__item[role="button"] {
  cursor: zoom-in;
}

html.has-custom-pull-to-refresh {
  overscroll-behavior-y: none;
}

.pull-to-refresh {
  --pull-distance: 0px;
  position: fixed;
  z-index: 1200;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transform: translate3d(-50%, calc(-64px + var(--pull-distance)), 0);
  transition: opacity 70ms linear;
}

.pull-to-refresh.visible {
  opacity: 1;
}

.pull-to-refresh.ready {
  color: var(--text-primary);
}

.pull-to-refresh__spinner {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  overflow: visible;
}

.pull-to-refresh__spinner rect {
  fill: currentColor;
  opacity: 0;
  transition: opacity 60ms linear;
}

.pull-to-refresh__spinner rect.visible {
  opacity: 1;
}

.pull-to-refresh.refreshing .pull-to-refresh__spinner {
  animation: pull-to-refresh-spin 700ms linear infinite;
}

@keyframes pull-to-refresh-spin {
  to { transform: rotate(360deg); }
}

.catalog-card-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-card-photos--placeholder {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-card-photos__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.catalog-card-photos__placeholder svg {
  width: 48px;
  height: 48px;
  color: #fff;
  opacity: 0.56;
}

.catalog-card-photos__dots {
  display: none;
}

.catalog-card-photos__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.catalog-card-photos__dot.active {
  background: #fff;
}

.catalog-card-hero__favorite-btn {
  top: 12px;
  right: 12px;
}

.favorites-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.favorites-tabs.search-results-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; width:fit-content; max-width:100%; margin-bottom:16px; overflow:visible; }
.favorites-tabs .search-results-tab { min-height:44px; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.favorites-tabs-content { gap:0; }
.favorites-tab-panel .account-card-list { margin-top:0; }
.favorites-pagination { display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; margin:16px 0; }
.public-detail-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.public-detail-actions > [data-detail-action] { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; min-width:44px; max-width:100%; font-size:14px; line-height:1.4; padding:10px 14px; white-space:normal; overflow-wrap:anywhere; }
.public-detail-actions > [data-detail-action="contacts"], .public-detail-actions > [data-detail-action="booking"] { flex:0 1 auto; }
.public-detail-actions > [data-detail-action="share"], .public-detail-actions > [data-detail-action="favorite"], .public-detail-actions > [data-detail-action="report"] { flex:0 0 44px; width:44px; padding:10px; }
.public-detail-actions svg { width:20px; height:20px; flex:0 0 20px; }
.favorites-tab-panel {
  display: none;
}

.favorites-tab-panel.active {
  display: block;
}

.favorites-content-grid .account-empty {
  grid-column: 1 / -1;
}

.favorites-login {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--surface-muted) 100%);
  box-shadow: var(--shadow-xs);
}

.favorites-login__icon {
  display: grid;
  place-items: center;
  align-self: start;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--accent);
  background: var(--surface);
  box-shadow: none;
}

.favorites-login__icon svg {
  width: 28px;
  height: 28px;
}

.favorites-login__content {
  min-width: 0;
}

.favorites-login__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.favorites-login__text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.favorites-login__actions {
  display: flex;
  gap: var(--space-sm);
}

.catalog-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.catalog-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  border: 0;
}

.catalog-card-actions .catalog-card-action-btn {
  flex: 0 1 auto;
  min-height: 44px;
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.detail-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-action-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
}

.catalog-card-action-btn.active {
  color: var(--danger);
}

.catalog-card-action-btn.active svg {
  fill: currentColor;
}

.catalog-card-claim {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.catalog-card-claim-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: var(--space-md);
}

.catalog-card-claim-modal.hidden {
  display: none;
}

.catalog-card-claim-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
}

.catalog-card-claim-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.catalog-card-claim-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--surface-muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.catalog-card-claim-modal-open {
  overflow: hidden;
}

.catalog-card-claim-form {
  display: grid;
  gap: var(--space-md);
}

.catalog-card-claim__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.catalog-card-claim__text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.catalog-card-links {
  margin-top: 21px;
}

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

.catalog-card-offers__grid--listings {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card-offer {
  color: var(--text-primary);
}

/* --- Note Box --- */

.note-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-badge);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.note-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Admin Login --- */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-lg);
}

.login-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: var(--space-2xl);
}

.login-card__title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.login-card__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: var(--space-xl);
}

.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-badge);
  font-size: 13px;
  margin-bottom: var(--space-md);
  display: none;
}

.login-error.visible {
  display: block;
}

.auth-message {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-badge);
  font-size: 13px;
  margin-bottom: var(--space-md);
}

.auth-message.visible {
  display: block;
}

.auth-message--error {
  background: var(--danger-bg);
  color: var(--danger);
}

.auth-message--success {
  background: var(--success-bg);
  color: var(--success);
}

.google-auth {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin-bottom: var(--space-md);
}

.google-auth__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  color: #3c4043;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.google-auth__placeholder svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.google-auth--loading .google-auth__placeholder {
  cursor: wait;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 13px;
  margin: var(--space-md) 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  text-align: center;
  font-size: 14px;
}

.auth-links a,
.auth-terms a {
  color: var(--text-primary);
  font-weight: 600;
}

.auth-links a:hover,
.auth-terms a:hover {
  text-decoration: underline;
}

.auth-terms {
  align-items: flex-start;
  line-height: 1.5;
}

/* --- Account --- */

.account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.account-header__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.account-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.account-settings-button:hover,
.account-settings-button.active {
  border-color: var(--text-primary);
  background: var(--bg);
}

.account-settings-button svg {
  width: 21px;
  height: 21px;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  width: 100%;
  border-bottom: 0;
  overflow: visible;
  cursor: default;
  user-select: auto;
}

.account-tabs .tab-btn {
  display: flex;
  align-items: center;
  min-height: 48px;
  min-width: 0;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  margin-bottom: 0;
  color: var(--text-primary);
  background: #fff;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.account-tabs .tab-btn:hover {
  border-color: var(--accent);
  background: var(--surface-muted);
}

.account-tabs .tab-btn.active {
  border-color: var(--border);
  background: #fff;
  color: var(--text-primary);
}

.account-profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: var(--space-sm);
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--space-lg);
  border-bottom: 0;
}

.account-profile-tabs .tab-btn {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  margin-bottom: 0;
  background: #fff;
  white-space: normal;
}

.account-profile-tabs .tab-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-muted);
}

.account-bottom-nav {
  display: none;
}

.account-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.account-bottom-nav__item svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.account-bottom-nav__item--create svg {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  padding: 7px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
}

.account-bottom-nav__item--create {
  position: relative;
  z-index: 1;
}

.account-bottom-nav__item--create::before {
  position: absolute;
  top: -4px;
  left: 50%;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--surface);
  content: '';
  transform: translateX(-50%);
}

.account-bottom-nav__item--create span {
  position: relative;
  z-index: 2;
}

.account-bottom-nav__item.active {
  color: var(--text-primary);
}

.info-hub {
  max-width: 960px;
  margin: 0 auto;
}

.info-hub__intro {
  position: relative;
  min-height: 240px;
  padding: 40px;
  overflow: hidden;
  border-radius: 20px;
  color: var(--surface);
  background: linear-gradient(135deg, #111111 0%, #292929 100%);
  box-shadow: var(--shadow-md);
}

.info-hub__intro::after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border: 60px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  content: '';
}

.info-hub__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: var(--space-xl);
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.info-hub__intro-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.info-hub__intro-content h1,
.info-hub__intro-content h2,
.info-hub__intro-content h3 {
  margin-bottom: var(--space-md);
  color: var(--surface);
  font-size: 30px;
  line-height: 1.15;
}

.info-hub__intro-content p,
.info-hub__intro-content li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.65;
}

.info-hub__intro-content ul,
.info-hub__intro-content ol {
  padding-left: var(--space-lg);
}

.info-hub__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: var(--space-2xl);
}

.info-hub__section {
  min-width: 0;
}

.info-hub__section-heading {
  margin-bottom: var(--space-lg);
}

.info-hub__section-heading h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.info-hub__section-heading p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.info-contact-list {
  display: grid;
  gap: 8px;
}

.info-contact-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
}

.info-contact-link:hover {
  border-color: var(--border-hover);
  background: var(--surface-muted);
}

.info-contact-link__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--surface);
  background: var(--accent);
}

.info-contact-link__icon svg {
  width: 18px;
  height: 18px;
}

.info-contact-link__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.info-link-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.info-document-list {
  border-top: 1px solid var(--border);
}

.info-document-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.info-document-link:hover {
  color: var(--text-secondary);
}

.info-document-link__number {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.account-password-section {
  margin-top: var(--space-lg);
}

.account-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

.account-toolbar {
  display: flex;
  justify-content: flex-end;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.account-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: stretch;
}

.account-card-search-results {
  margin-top: var(--space-md);
}

.account-card-list {
  display: grid;
  gap: var(--space-md);
}

#account-favorites-list,
#account-favorite-companies-list,
#account-favorite-specialists-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

#account-favorites-list .account-empty,
#account-favorite-companies-list .account-empty,
#account-favorite-specialists-list .account-empty {
  grid-column: 1 / -1;
}

.account-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: var(--space-lg);
}

.account-card {
  margin-bottom: 0;
}

.account-promotion-info {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-muted) 100%);
}

.account-promotion-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--text-primary);
  color: var(--surface);
}

.account-promotion-info__icon svg {
  width: 24px;
  height: 24px;
}

.account-promotion-info__content {
  min-width: 0;
}

.account-promotion-info__content .account-card__text {
  max-width: 720px;
}

#account-promotion-manager-link {
  margin-top: 0;
  white-space: nowrap;
}

.account-promotion-packages {
  display: grid;
  gap: var(--space-md);
}

.account-promotion-package {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.account-promotion-package--selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.account-promotion-contact[hidden] {
  display: none;
}

.admin-promotion-package-row {
  border-top: 1px solid var(--border);
  padding: var(--space-md) 0;
}

.admin-promotion-package-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.account-card-form {
  margin-bottom: 0;
}

.account-card__title {
  margin-bottom: 6px;
}

.account-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
}

.account-card__text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin-top: var(--space-sm);
}

.account-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.account-card-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.account-email-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.account-inline-link {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--accent);
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
  cursor: pointer;
}

.account-inline-link:hover:not(:disabled) {
  opacity: 0.7;
}

.account-inline-link:disabled {
  cursor: wait;
  opacity: 0.65;
}

.account-multiselect {
  position: relative;
}

.account-multiselect__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-right: 16px;
  list-style: none;
  background-image: none;
  cursor: pointer;
}

.account-multiselect__summary::-webkit-details-marker {
  display: none;
}

.account-multiselect__summary::after {
  width: 8px;
  height: 8px;
  margin: -4px 3px 0 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: '';
  transform: rotate(45deg);
}

.account-multiselect[open] .account-multiselect__summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.account-multiselect__options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 240px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.account-multiselect__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.account-multiselect__option:hover {
  background: var(--surface-muted);
}

.account-multiselect__option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.account-multiselect__empty {
  margin: 0;
  padding: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.account-actions-menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: var(--space-md);
}

.account-actions-menu[open] {
  z-index: 90;
}

.account-actions-menu summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  color: var(--text-primary);
  background: var(--surface);
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.account-actions-menu summary::-webkit-details-marker {
  display: none;
}

.account-actions-menu__dots {
  font-size: 20px;
  line-height: 1;
}

.account-actions-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 190px;
  max-width: min(260px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow-y: auto;
}

.account-actions-menu--open-up .account-actions-menu__list {
  top: auto;
  bottom: calc(100% + 8px);
}

.account-actions-menu__list a,
.account-actions-menu__list button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-primary);
  text-align: left;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
}

.account-actions-menu__list a:hover,
.account-actions-menu__list button:hover {
  background: var(--surface-muted);
}

.account-card-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: var(--radius-card);
  margin-bottom: var(--space-md);
  background: var(--surface-muted);
}

.account-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-card-photos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.account-card-photo {
  display: grid;
  gap: 6px;
  width: 96px;
}

.account-card-photo .admin-card-photos__item {
  width: 96px;
}

.account-card-photo .btn {
  width: 100%;
  justify-content: center;
}

.account-card-photo--add {
  align-content: center;
  min-height: 96px;
  padding: 8px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
}

.account-listing-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.account-listing-photo {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.account-listing-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.account-listing-photo__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.account-listing-photo__actions .btn {
  min-width: 0;
  padding-inline: 8px;
  justify-content: center;
}

.account-listing-photo-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.account-listing-photos__empty {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.account-empty {
  margin: 0;
}

/* --- Language Switcher --- */

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
}

.lang-button:hover {
  border-color: var(--border-hover);
  background: var(--bg);
}

.lang-button__flag {
  display: flex;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.lang-button__flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-button__code {
  letter-spacing: 0.02em;
}

.lang-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  transform: translateZ(0);
  transition:
    opacity var(--blur-exit-duration) var(--blur-exit-ease);
  will-change: opacity;
}

.lang-modal-backdrop.visible {
  opacity: 1;
  transition:
    opacity var(--blur-duration) var(--blur-ease);
}

.lang-modal {
  background: var(--surface);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);
  will-change: opacity, transform;
}

.lang-modal-backdrop.visible .lang-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lang-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.lang-modal__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.lang-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lang-modal__close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.lang-modal__list {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px var(--space-md);
  background: transparent;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
  width: 100%;
  font-family: var(--font-family);
  color: var(--text-primary);
}

.lang-option:hover {
  background: var(--bg);
}

.lang-option.active {
  background: var(--bg);
}

.lang-option__flag {
  display: flex;
  width: 28px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lang-option__flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-option__name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.lang-option__check {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--blur-exit-duration) var(--blur-exit-ease),
    visibility 0s linear var(--blur-exit-duration);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.visible {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--blur-duration) var(--blur-ease),
    visibility 0s;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  transform: translateZ(0);
}

.lightbox__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  z-index: 2;
  pointer-events: none;
}

.lightbox__topbar > * {
  pointer-events: auto;
}

.lightbox__counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  user-select: none;
  min-height: 1em;
}

.lightbox__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close:active {
  transform: scale(0.95);
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

.lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  overflow: hidden;
  cursor: zoom-out;
}

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  cursor: default;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(0.95);
  opacity: 0;
  transition:
    transform var(--motion-duration) var(--motion-ease),
    opacity var(--motion-duration) var(--motion-ease);
  will-change: opacity, transform;
}

.lightbox__image--enter {
  transform: scale(1);
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition:
    background var(--transition),
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);
  z-index: 2;
  opacity: 0.7;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox__nav svg {
  width: 22px;
  height: 22px;
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__dots {
  position: absolute;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.lightbox__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.lightbox__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.lightbox__dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* --- Language Chips (multi-select) --- */

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lang-chip {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
  font-family: var(--font-family);
  line-height: 1.2;
}

.lang-chip:hover {
  border-color: var(--border-hover);
}

.lang-chip--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.lang-chip--active:hover {
  border-color: var(--accent);
}

.lang-chips.error {
  outline: 1px solid var(--danger);
  outline-offset: 4px;
  border-radius: 8px;
}

.taxonomy-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.taxonomy-chips::-webkit-scrollbar {
  display: none;
}

.taxonomy-chips .lang-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Public sphere navigation follows the understated profile direction tabs. */
.catalog-seo-nav {
  gap: 24px;
  margin: 12px 0 18px;
  padding: 0 4px;
  border: 0;
  background: transparent;
}

.catalog-seo-nav .lang-chip {
  padding: 9px 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-secondary);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

.catalog-seo-nav .lang-chip:hover {
  border-color: transparent;
  color: var(--text-primary);
  background: transparent;
}

.catalog-seo-nav .lang-chip--active,
.catalog-seo-nav .lang-chip--active:hover {
  border: 0;
  border-bottom: 2px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
  box-shadow: none;
}

.taxonomy-chips.error {
  outline: 1px solid var(--danger);
  outline-offset: 4px;
  border-radius: 8px;
}

.taxonomy-chips--display {
  margin: 10px 0 2px;
}

.taxonomy-chips--display .lang-chip {
  cursor: default;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.form-language-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f2f4;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.localized-content-editor {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
}

.localized-content-editor .form-group {
  margin-bottom: var(--space-md);
}

.localized-content-editor .form-group:last-child {
  margin-bottom: 0;
}

.localized-content-editor--admin {
  margin-top: var(--space-md);
}

.localized-content-editor__heading {
  margin-bottom: 12px;
}

.localized-content-editor__title {
  margin: 0 0 4px;
}

.localized-content-editor__language {
  margin-bottom: 16px;
}

.localized-content-editor__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: #f1f2f4;
}

.localized-content-editor__tabs .lang-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.localized-content-editor__tabs .lang-chip:hover {
  border-color: var(--border-hover);
}

.localized-content-editor__tabs .lang-chip--active,
.localized-content-editor__tabs .lang-chip--active:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 2px 9px rgb(31 35 41 / 8%);
}

.localized-content-editor__status {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.localized-content-editor__tabs .lang-chip--filled .localized-content-editor__status {
  display: block;
}

.localized-content-editor__panels,
.localized-content-editor__panel,
.localized-content-editor__translation-panels {
  min-width: 0;
}

.localized-content-editor__panel[hidden] {
  display: none;
}

.localized-content-editor__translation-panels {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.localized-content-editor__note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 11px 2px 0;
  color: var(--warning);
  font-size: 12px;
  line-height: 1.35;
}

.localized-content-editor__note::before {
  display: inline-flex;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: 'i';
  font-size: 12px;
}

.content-translations {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
}

.content-translations__header,
.content-translation__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.content-translations__heading {
  min-width: 0;
}

.content-translations__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.content-translations__heading .form-hint {
  margin-top: 3px;
}

.content-translations__add {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.content-translations__add-button,
.content-translation__remove {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.content-translations__add-button:hover {
  border-color: var(--text-primary);
}

.content-translations__list {
  display: grid;
  gap: var(--space-md);
}

.content-translation {
    min-width: 0;
    padding: var(--space-md);
    border: 0;
    border-radius: var(--radius-input);
    background: var(--surface);
}

.content-translations__benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--warning);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.content-translations__benefit svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.content-translation__header {
  align-items: center;
  margin-bottom: var(--space-md);
}

.content-translation__language {
  max-width: min(240px, 100%);
  min-height: 32px;
  padding: 5px 28px 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.content-translation__remove {
  border-color: transparent;
  background: transparent;
  color: var(--danger);
}

.content-translation .form-group:last-child {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .content-translations__header {
    display: grid;
  }

  .content-translations__add {
    justify-content: flex-start;
  }

  .content-translations,
  .content-translation {
    padding: 12px;
  }
}

.listing-card-favorite {
  position: relative;
  height: 100%;
}

.listing-card-favorite .listing-card {
  height: 100%;
}

.listing-card-favorite__btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  transform: none;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.listing-card-favorite__btn svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  pointer-events: none;
  transform: none;
  transition: none;
}

.listing-card-favorite__btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.92);
  transform: none;
}

.listing-card-favorite__btn.active {
  color: var(--danger);
}

.listing-card-favorite__btn.active svg {
  fill: currentColor;
}

.listing-detail__favorite-photo-btn {
  top: 16px;
  right: 16px;
}

.catalog-card-info__link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.account-checkbox-grid__item {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
}

.publication-type-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.publication-type-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--bg);
}

.publication-type-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.publication-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.publication-type-option span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: calc(var(--radius-input) - 5px);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.publication-type-option input:checked + span {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.publication-type-option input:focus-visible + span {
  outline: 2px solid rgba(17, 17, 17, 0.2);
  outline-offset: 2px;
}

.form-label__optional {
  margin-left: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.guest-publication-access {
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--bg);
}

.create-inline-login__text {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.create-inline-login form {
  display: grid;
  gap: var(--space-md);
}

.create-inline-login form > .btn {
  width: 100%;
}

.admin-profile-create-note {
  margin-bottom: var(--space-md);
  padding: 12px 14px;
  border-radius: var(--radius-input);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.admin-profile-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.admin-profile-options .form-checkbox {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
}

.admin-profile-create-photos {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .modal,
  .filters-popup,
  .contacts-modal,
  .filters-popup__backdrop,
  .contacts-modal__backdrop,
  .filters-popup__sheet,
  .contacts-modal__sheet,
  .lang-modal-backdrop,
  .lang-modal,
  .lightbox,
  .lightbox__backdrop,
  .lightbox__image,
  .lightbox__nav {
    transition-duration: 1ms;
  }
}

/* QA: publication photo selection is one horizontal 4:5 strip on every viewport. */
#photo-previews.photo-previews{
  display:flex !important;
  flex-flow:row nowrap !important;
  flex-wrap:nowrap !important;
  width:100%;
  max-width:100%;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  gap:12px;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
#photo-previews.photo-previews::-webkit-scrollbar{display:none}
#photo-previews .photo-preview{
  flex:0 0 100px !important;
  width:100px !important;
  height:125px !important;
  aspect-ratio:4/5 !important;
  scroll-snap-align:start;
}

/* Inline public carousel, isolated from editor draggable/reorder rails. */
.gallery__main--track.gallery__main--loop{direction:ltr;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:none;border-radius:16px}
.gallery__main--loop::-webkit-scrollbar{display:none}
.gallery__main--track.gallery__main--loop img{width:100%;max-width:none;flex:0 0 100%;aspect-ratio:1;scroll-snap-align:start;scroll-snap-stop:always}
.gallery__main--loop img:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
.gallery__inline-nav{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:36px;height:36px;padding:6px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--text-primary);box-shadow:var(--shadow-xs);z-index:2}
.gallery__inline-nav--prev{left:10px}.gallery__inline-nav--next{right:10px}
.gallery__inline-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gallery__inline-nav:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.lightbox,.lightbox__image,.lightbox__image--enter{transition:none!important;animation:none!important}}


/* Public address: a single quiet line, fully keyboard- and touch-clickable. */
.public-location-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  color: inherit;
  font: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.public-location-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.public-location-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.public-location-link__icon { display: inline-flex; flex: 0 0 auto; align-items: center; }
.public-location-link__icon svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* Saved hearts keep their shape without a rectangular tap/focus shadow. */
.listing-card-favorite__btn,
.listing-card-favorite__btn:is(:hover,:active,:focus),
.company-catalog-row__favorite,
.company-catalog-row__favorite:is(:hover,:active,:focus) {
  box-shadow:none;
  -webkit-tap-highlight-color:transparent;
}
.listing-card-favorite__btn:focus-visible,
.company-catalog-row__favorite:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* Explicit opposite edges remain stable in LTR/RTL and after generic button rules. */
.gallery__inline-nav--prev { left:12px; right:auto; }
.gallery__inline-nav--next { left:auto; right:12px; }
.lightbox__nav--prev { left:max(16px,calc(50% - var(--lightbox-image-width,100vw)/2 + 12px)); right:auto; }
.lightbox__nav--next { left:auto; right:max(16px,calc(50% - var(--lightbox-image-width,100vw)/2 + 12px)); }
.header__cta .header-account-link{width:38px;height:38px;min-height:38px;padding:8px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#34383e}
.header-account-link svg{width:22px;height:22px}
:is(.listing-detail-owner,.listing-detail__publisher,.listing-detail__author,.profile-card__click-target,.company-catalog-row):focus:not(:focus-visible){outline:0;box-shadow:none!important}
.catalog-tile__location,.profile-card__city{min-width:0;max-width:100%;white-space:nowrap}
.catalog-tile__location>span,.profile-card__city>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.desktop-publisher:focus:not(:focus-visible),.desktop-publisher:active{box-shadow:none!important;outline:0}

/* All three favorite categories remain one compact segmented control. */
.favorites-tabs.search-results-tabs,.booking-cabinet .favorites-tabs.search-results-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;width:min(100%,520px);max-width:100%;padding:4px;margin:0 0 16px;border:0;border-radius:13px;background:#eef0f2;box-sizing:border-box;overflow:visible}
.favorites-tabs .search-results-tab,.booking-cabinet .favorites-tabs .search-results-tab{display:flex!important;align-items:center;justify-content:center;min-width:0;min-height:36px;width:100%;padding:8px 5px;margin:0;border:0;border-radius:9px;background:transparent;color:#747b85;font-size:13px;line-height:1.3;white-space:nowrap;box-shadow:none}
.favorites-tabs .search-results-tab.active,.booking-cabinet .favorites-tabs .search-results-tab.active{background:#fff;color:#242a32;box-shadow:none}
.favorites-tabs .search-results-tab::after{display:none}
#lang-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:#fff;box-shadow:none}
#lang-button .lang-button__globe{width:18px;height:18px;flex:none}
.header__account-link,.header__account-link:hover,.header__account-link:active{border:0;background:transparent;box-shadow:none}
a.desktop-publisher:focus:not(:focus-visible),a.desktop-publisher:active,.listing-detail__catalog-card a:focus:not(:focus-visible),.listing-detail__catalog-card a:active{outline:0;box-shadow:none;background:transparent}
@media(max-width:480px){.favorites-tabs .search-results-tab,.booking-cabinet .favorites-tabs .search-results-tab{font-size:12px}.favorites-page__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

.header-account-link,.header-account-link:hover,.header-account-link:active{border:0;background:transparent;box-shadow:none}
.desktop-publisher,.listing-detail__catalog-card a,.header-account-link,#lang-button{-webkit-tap-highlight-color:transparent}
