/* =========================================================
   SUGG.X design system (sx) — mobile-first, RTL/LTR aware
   ========================================================= */
:root {
  --sx-yellow: #f8ba17;
  --sx-yellow-soft: #fff6dc;
  --sx-ink: #1f1f1f;
  --sx-text: #2b2b2b;
  --sx-muted: #8a8a8f;
  --sx-line: #ececec;
  --sx-surface: #f6f6f6;
  --sx-white: #ffffff;
  --sx-danger: #e53935;
  --sx-radius-sm: 12px;
  --sx-radius: 20px;
  --sx-radius-lg: 28px;
  --sx-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  --sx-shadow-sm: 0 2px 10px rgba(0, 0, 0, .06);
  --sx-gap: 16px;
  --sx-max: 1180px;
  --sx-font: "neo sans arabic", "Neo Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.sx {
  margin: 0;
  font-family: var(--sx-font);
  color: var(--sx-text);
  background: var(--sx-white);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 84px; /* room for bottom nav on mobile */
}
.sx a { color: inherit; text-decoration: none; }
.sx img { max-width: 100%; display: block; }
.sx button { font-family: inherit; cursor: pointer; }
.sx-container { width: 100%; max-width: var(--sx-max); margin: 0 auto; padding: 0 20px; }
.sx-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top bar ---------- */
.sx-topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
  transform: translateZ(0);      /* own layer: scrolled rails/images can never paint over the bar */
  will-change: transform;
}

.sx-topbar__inner { display: flex; align-items: center; gap: 12px; height: 72px; }
.sx-hello { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.sx-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--sx-surface);
}
.sx-avatar--lg { width: 64px; height: 64px; }
.sx-hello__text { font-size: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.sx-logo__mark {
  width: 40px; height: 40px; border-radius: 12px 12px 18px 12px;
  background: var(--sx-yellow); color: var(--sx-ink);
  display: grid; place-items: center; font-size: 12px; font-weight: 900; letter-spacing: .5px;
}
.sx-topnav { display: none; gap: 24px; font-weight: 500; }
.sx-topnav a { color: var(--sx-muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.sx-topnav a.is-active, .sx-topnav a:hover { color: var(--sx-ink); border-color: var(--sx-yellow); }
.sx-icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--sx-ink); font-size: 20px; flex: none; position: relative;
}
.sx-icon-btn:hover { background: var(--sx-surface); }
.sx-dot::after {
  content: ""; position: absolute; top: 9px; inset-inline-end: 10px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--sx-yellow);
}
.sx-lang { font-size: 13px; font-weight: 700; color: var(--sx-muted); padding: 8px 10px; border-radius: 10px; }
.sx-lang:hover { background: var(--sx-surface); color: var(--sx-ink); }

/* ---------- Buttons & chips ---------- */
.sx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--sx-ink); color: var(--sx-white) !important; font-weight: 500; font-size: 15px;
}
.sx-btn--yellow { background: var(--sx-yellow); color: var(--sx-ink) !important; }
.sx-btn--ghost { background: transparent; color: var(--sx-ink) !important; border: 1.5px solid var(--sx-ink); }
.sx-btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.sx-btn--block { width: 100%; }

.sx-chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.sx-chips::-webkit-scrollbar { display: none; }
.sx-chip {
  flex: none; height: 44px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--sx-surface); color: var(--sx-muted); font-size: 15px;
}
.sx-chip.is-active { background: var(--sx-yellow); color: var(--sx-ink); font-weight: 500; }

/* ---------- Search ---------- */
.sx-search {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px;
  background: var(--sx-white); border-radius: 999px; box-shadow: var(--sx-shadow);
}
.sx-search i { font-size: 18px; color: var(--sx-ink); }
.sx-search input {
  flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--sx-text);
}
.sx-search input::placeholder { color: #b9b9bd; }

/* ---------- Sections ---------- */
.sx-section { margin-top: 32px; }
.sx-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sx-title { margin: 0; font-size: 22px; font-weight: 500; color: var(--sx-ink); }
.sx-link { color: var(--sx-muted); font-size: 14px; white-space: nowrap; }
.sx-link:hover { color: var(--sx-ink); }

/* ---------- Category tiles ---------- */
.sx-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sx-cat {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--sx-radius-sm);
  background: var(--sx-white); box-shadow: var(--sx-shadow-sm); font-size: 15px; min-height: 64px;
  border: 1px solid #f1f1f1;
}
.sx-cat__icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--sx-surface);
  display: grid; place-items: center; font-size: 20px; color: var(--sx-ink); flex: none;
}
.sx-cat.is-active { background: var(--sx-yellow); border-color: var(--sx-yellow); color: var(--sx-white); font-weight: 500; }
.sx-cat.is-active .sx-cat__icon { background: var(--sx-white); color: var(--sx-yellow); }
.sx-cat__soon { font-size: 11px; color: var(--sx-muted); display: block; line-height: 1.2; }

/* ---------- Horizontal rails ---------- */
.sx-rail {
  display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
  margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px;
}
.sx-rail::-webkit-scrollbar { display: none; }
.sx-rail > * { scroll-snap-align: start; }
.sx-rail--hero { grid-auto-columns: 86%; }
.sx-rail--season { grid-auto-columns: 42%; }
.sx-rail--people { grid-auto-columns: 84px; }

/* Hero card (image with text overlay) */
.sx-hero {
  position: relative; display: block; border-radius: var(--sx-radius-lg); overflow: hidden;
  aspect-ratio: 16 / 11; background: var(--sx-surface);
}
.sx-hero img { width: 100%; height: 100%; object-fit: cover; }
.sx-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 55%);
}
.sx-hero__body { position: absolute; inset-inline: 22px; bottom: 18px; z-index: 1; color: var(--sx-white); }
.sx-hero__title { font-size: 24px; font-weight: 500; line-height: 1.25; margin: 0; }
.sx-hero__sub { font-size: 14px; opacity: .9; }
.sx-badge {
  position: absolute; top: 16px; inset-inline-start: 16px; z-index: 1;
  background: rgba(0, 0, 0, .45); color: var(--sx-white); padding: 6px 14px; border-radius: 999px; font-size: 13px;
}
.sx-fav-btn {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: var(--sx-white);
  display: grid; place-items: center;
}

/* Season / story tiles */
.sx-season { display: block; }
.sx-season__img { border-radius: 6px; overflow: hidden; aspect-ratio: 6 / 5; background: var(--sx-surface); box-shadow: var(--sx-shadow-sm); }
.sx-season__img img { width: 100%; height: 100%; object-fit: cover; }
.sx-season__name { margin-top: 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* People (top reviewers) */
.sx-person { text-align: center; font-size: 13px; }
.sx-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; background: var(--sx-surface); }
.sx-person span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-person small { color: var(--sx-muted); }

/* ---------- Place list (restaurants) ---------- */
.sx-list { display: grid; }
.sx-place {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--sx-line);
}
.sx-place[hidden] { display: none; }
.sx-place__img {
  width: 112px; height: 112px; border-radius: 12px; overflow: hidden; background: var(--sx-surface);
  box-shadow: var(--sx-shadow-sm);
}
.sx-place__img img { width: 100%; height: 100%; object-fit: cover; }
.sx-place__meta { display: flex; align-items: center; gap: 10px; color: var(--sx-muted); font-size: 13px; }
.sx-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--sx-text); }
.sx-rating i { color: var(--sx-yellow); }
.sx-place__name { font-size: 20px; font-weight: 500; color: var(--sx-ink); margin: 2px 0; line-height: 1.3; display: flex; align-items: center; gap: 6px; }
.sx-verified { color: #1d9bf0; font-size: 14px; }
.sx-place__addr { color: var(--sx-muted); font-size: 14px; display: flex; gap: 6px; align-items: center; }
.sx-place__addr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sx-place__booked { color: var(--sx-danger); font-size: 13px; display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.sx-place__side { display: grid; justify-items: end; gap: 10px; }
.sx-follow {
  border: 1.5px solid var(--sx-ink); background: transparent; color: var(--sx-ink);
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; white-space: nowrap;
}
.sx-follow.is-following { background: var(--sx-ink); color: var(--sx-white); }
.sx-tag { font-size: 12px; background: var(--sx-yellow-soft); color: #8a6400; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

.sx-empty { padding: 32px 0; text-align: center; color: var(--sx-muted); }

/* ---------- Promo banner (ads) ---------- */
.sx-promo { display: block; border-radius: var(--sx-radius); overflow: hidden; background: var(--sx-surface); }
.sx-promo img { width: 100%; height: auto; }

/* ---------- Bottom nav (mobile) ---------- */
.sx-bottomnav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  background: var(--sx-white); border-top: 1px solid var(--sx-line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.sx-bottomnav a {
  display: grid; justify-items: center; gap: 2px; color: var(--sx-muted); font-size: 11px; padding: 6px 0; border-radius: 14px;
}
.sx-bottomnav i { font-size: 21px; }
.sx-bottomnav a.is-active { color: var(--sx-ink); }
.sx-bottomnav a.is-active i { color: var(--sx-ink); }
.sx-bottomnav a.is-active::after { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--sx-yellow); margin-top: 2px; }

/* ---------- Footer ---------- */
.sx-footer { margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--sx-line); color: var(--sx-muted); font-size: 13px; }
.sx-footer__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.sx-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sx-footer a:hover { color: var(--sx-ink); }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  body.sx { padding-bottom: 0; }
  .sx-bottomnav { display: none; }
  .sx-topnav { display: flex; }
  .sx-cats { grid-template-columns: repeat(4, 1fr); }
  .sx-rail--hero { grid-auto-columns: calc((100% - 28px) / 2.2); }
  .sx-rail--season { grid-auto-columns: calc((100% - 56px) / 4.3); }
  .sx-hero { aspect-ratio: 16 / 10; }
  .sx-search { max-width: 640px; }
  .sx-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .sx-title { font-size: 26px; }
}
@media (min-width: 1100px) {
  .sx-rail--hero { grid-auto-columns: calc((100% - 28px) / 3); }
  .sx-rail { margin-inline: 0; padding-inline: 0; }
}
@media (max-width: 380px) {
  .sx-place { grid-template-columns: 88px 1fr; }
  .sx-place__img { width: 88px; height: 88px; }
  .sx-place__side { grid-column: 2; justify-items: start; grid-auto-flow: column; }
}

/* =========================================================
   Forms & auth
   ========================================================= */
.sx-auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.sx-auth__card { width: 100%; max-width: 440px; }
.sx-brand { display: grid; justify-items: center; gap: 6px; margin-bottom: 32px; }
.sx-brand__mark {
  width: 120px; height: 112px; border-radius: 28px 28px 44px 28px; background: var(--sx-yellow);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px;
  font-weight: 900; font-size: 28px; letter-spacing: .5px; color: var(--sx-ink); direction: ltr;
  box-shadow: 0 10px 30px rgba(248, 186, 23, .35);
}
.sx-brand__mark b { color: #fff; }
.sx-brand__name { font-weight: 700; font-size: 20px; direction: ltr; }
.sx-h1 { font-size: 32px; font-weight: 700; color: var(--sx-ink); margin: 0 0 20px; }
.sx-field { margin-bottom: 14px; }
.sx-input {
  width: 100%; height: 56px; border: 0; border-radius: 999px; background: var(--sx-surface);
  padding: 0 24px; font: inherit; font-size: 16px; color: var(--sx-text); outline: none;
}
.sx-input:focus { background: #fff; box-shadow: 0 0 0 2px var(--sx-yellow); }
.sx-input::placeholder { color: #b9b9bd; }
textarea.sx-input { height: auto; min-height: 140px; border-radius: 20px; padding: 16px 20px; resize: vertical; }
.sx-error { color: var(--sx-danger); font-size: 13px; margin: 6px 16px 0; }
.sx-alert { border-radius: 16px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.sx-alert--error { background: #fdecea; color: #b3261e; }
.sx-alert--ok { background: #e8f5e9; color: #1b5e20; }
.sx-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sx-check { display: inline-flex; align-items: center; gap: 10px; color: var(--sx-muted); font-size: 14px; }
.sx-check input { width: 20px; height: 20px; accent-color: var(--sx-yellow); }
.sx-accent { color: var(--sx-yellow) !important; font-weight: 500; }
.sx-btn--xl { height: 60px; font-size: 20px; font-weight: 700; }
.sx-or { display: flex; align-items: center; gap: 16px; color: var(--sx-muted); margin: 28px 0 20px; font-size: 14px; }
.sx-or::before, .sx-or::after { content: ""; flex: 1; height: 2px; background: linear-gradient(to left, transparent, #6b6b70); border-radius: 2px; }
.sx-or::after { background: linear-gradient(to right, transparent, #6b6b70); }
.sx-social { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sx-social a {
  height: 64px; border: 2px solid var(--sx-line); border-radius: 12px; display: grid; place-items: center; font-size: 26px;
}
.sx-social a:hover { border-color: #d6d6d6; }
.sx-center { text-align: center; }
.sx-muted { color: var(--sx-muted); }

/* =========================================================
   Profile (user & restaurant)
   ========================================================= */
.sx-cover { position: relative; aspect-ratio: 16 / 9; max-height: 420px; width: 100%; overflow: hidden; background: var(--sx-surface); border-radius: 0 0 0 var(--sx-radius-lg); }
[dir="ltr"] .sx-cover { border-radius: 0 0 var(--sx-radius-lg) 0; }
.sx-cover img { width: 100%; height: 100%; object-fit: cover; }
.sx-profile { position: relative; }
.sx-profile__top { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: end; margin-top: -64px; }
.sx-profile__avatar {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 4px solid #fff;
  background: #fff; box-shadow: var(--sx-shadow-sm); position: relative; z-index: 1;
}
.sx-stats { display: flex; justify-content: space-around; gap: 12px; text-align: center; padding-top: 72px; }
.sx-stat b { display: block; font-size: 24px; font-weight: 500; color: var(--sx-ink); line-height: 1.2; }
.sx-stat span { font-size: 14px; color: var(--sx-text); }
.sx-profile__name { font-size: 28px; font-weight: 500; color: var(--sx-ink); margin: 0; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.sx-profile__sub { color: var(--sx-muted); display: flex; align-items: center; gap: 6px; font-size: 16px; }
.sx-profile__row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 12px; }
.sx-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sx-actions .sx-btn { height: 44px; padding: 0 22px; border-radius: 12px; }
.sx-bio { margin-top: 20px; }
.sx-bio p { margin: 6px 0 0; color: var(--sx-text); white-space: pre-line; }

/* Photo grid */
.sx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sx-grid__item { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--sx-surface); display: block; }
.sx-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.sx-grid__label { position: absolute; inset-inline-start: 10px; bottom: 8px; color: #fff; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* Info rows (duration / type style) */
.sx-info { display: grid; gap: 14px; }
.sx-info__row { display: flex; align-items: center; gap: 14px; }
.sx-info__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sx-surface); display: grid; place-items: center; font-size: 18px; color: var(--sx-ink); flex: none; }
.sx-info__row b { display: block; font-weight: 500; color: var(--sx-ink); }
.sx-info__row span { color: var(--sx-muted); font-size: 14px; }

/* Cards & review items */
.sx-card { background: #fff; border-radius: var(--sx-radius); box-shadow: var(--sx-shadow-sm); border: 1px solid #f1f1f1; padding: 18px; }
.sx-review { padding: 18px 0; border-bottom: 1px solid var(--sx-line); }
.sx-review__head { display: flex; align-items: center; gap: 12px; }
.sx-review__head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--sx-surface); }
.sx-review__who b { display: block; color: var(--sx-ink); font-weight: 500; }
.sx-review__who small { color: var(--sx-muted); }
.sx-stars { color: var(--sx-yellow); letter-spacing: 2px; font-size: 18px; margin: 10px 0 4px; }
.sx-stars .is-off { color: #d9d9d9; }
.sx-review__title { font-weight: 700; color: var(--sx-ink); }
.sx-review__text { margin: 6px 0 0; color: var(--sx-text); white-space: pre-line; }
.sx-review__photos { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.sx-review__photos img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; flex: none; }

/* Rating breakdown */
.sx-score { text-align: center; }
.sx-score__big { font-size: 56px; font-weight: 700; color: #2f80ed; line-height: 1; }
.sx-bars { display: grid; gap: 8px; max-width: 360px; margin: 16px auto 0; }
.sx-bar { display: grid; grid-template-columns: 90px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.sx-bar__track { height: 8px; border-radius: 8px; background: var(--sx-surface); overflow: hidden; }
.sx-bar__fill { height: 100%; background: var(--sx-yellow); border-radius: 8px; }

/* Settings list */
.sx-settings { display: grid; gap: 8px; }
.sx-setting { display: flex; align-items: center; gap: 16px; padding: 14px 0; font-size: 18px; color: var(--sx-muted); }
.sx-setting__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; flex: none; }
.sx-setting__go { margin-inline-start: auto; width: 48px; height: 48px; border-radius: 10px; background: var(--sx-surface); display: grid; place-items: center; color: var(--sx-ink); }

/* Wizard (multi-step review) */
.sx-steps__bar { height: 6px; border-radius: 6px; background: #d9d9d9; overflow: hidden; margin: 20px 0; }
.sx-steps__fill { height: 100%; background: var(--sx-ink); border-radius: 6px; transition: width .25s; }
.sx-step[hidden] { display: none !important; }
.sx-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.sx-pill { position: relative; }
.sx-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sx-pill span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid #cfcfcf; color: var(--sx-text); cursor: pointer; font-size: 14px;
}
.sx-pill input:checked + span { border: 2.5px solid var(--sx-ink); font-weight: 700; }
.sx-rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.sx-rate input { position: absolute; opacity: 0; pointer-events: none; }
.sx-rate label { font-size: 36px; color: #d9d9d9; cursor: pointer; margin: 0 !important; display: inline !important; line-height: 1; }
.sx-rate input:checked ~ label, .sx-rate label:hover, .sx-rate label:hover ~ label { color: var(--sx-yellow); }
.sx-uploads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sx-upload-add {
  aspect-ratio: 1; border: 2px solid #cfcfcf; border-radius: 14px; display: grid; place-items: center; font-size: 34px; color: var(--sx-ink); cursor: pointer;
}
.sx-thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.sx-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Page header with back button */
.sx-pagehead { display: flex; align-items: center; gap: 12px; padding: 20px 0 8px; }
.sx-pagehead h1 { margin: 0; font-size: 30px; font-weight: 700; color: var(--sx-ink); }
.sx-back { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; color: var(--sx-ink); border-radius: 50%; }
.sx-back:hover { background: var(--sx-surface); }
[dir="rtl"] .sx-back i { transform: scaleX(-1); }

/* Menu (branches / food) */
.sx-menu-item { display: grid; grid-template-columns: 1fr 96px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--sx-line); align-items: center; }
.sx-menu-item img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--sx-surface); }
.sx-menu-item b { color: var(--sx-ink); font-weight: 500; font-size: 17px; }
.sx-price { color: var(--sx-ink); font-weight: 700; margin-top: 4px; }

@media (min-width: 768px) {
  .sx-profile__top { grid-template-columns: auto 1fr; }
  .sx-grid { gap: 10px; }
  .sx-grid--wide { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .sx-profile__avatar { width: 104px; height: 104px; }
  .sx-stats { padding-top: 68px; }
  .sx-stat b { font-size: 20px; }
  .sx-profile__row { grid-template-columns: 1fr; }
}

/* People rows */
.sx-user { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sx-line); }
.sx-user img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--sx-surface); flex: none; }
.sx-user b { display: block; color: var(--sx-ink); font-weight: 500; }
.sx-user small { color: var(--sx-muted); direction: ltr; display: inline-block; }
.sx-user .sx-follow { margin-inline-start: auto; }
.sx-tabs { display: flex; gap: 10px; margin: 18px 0 8px; }

/* Tourist places */
.sx-places-grid { display: grid; gap: 16px; }
.sx-place-hero { position: relative; border-radius: var(--sx-radius-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; background: var(--sx-surface); box-shadow: var(--sx-shadow); }
.sx-place-hero__main { width: 100%; height: 100%; object-fit: cover; }
.sx-place-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 50%); }
.sx-place-hero__body { position: absolute; inset-inline: 24px; bottom: 24px; color: #fff; }
.sx-place-hero__body h1 { font-size: 34px; margin: 0 0 6px; font-weight: 700; line-height: 1.2; }
.sx-place-hero__thumbs { position: absolute; inset-inline-end: 16px; bottom: 24px; display: grid; gap: 10px; }
.sx-place-hero__thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid rgba(255,255,255,.8); border-radius: 12px; overflow: hidden; background: none; }
.sx-place-hero__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sx-facts { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 24px; }
.sx-fact { display: flex; align-items: center; gap: 12px; }
.sx-fact__icon { width: 56px; height: 56px; border-radius: 14px; background: #fff; box-shadow: var(--sx-shadow-sm); display: grid; place-items: center; font-size: 22px; color: var(--sx-ink); }
.sx-fact b { display: block; font-size: 18px; color: var(--sx-ink); font-weight: 500; line-height: 1.2; }
.sx-fact span { color: var(--sx-muted); font-size: 14px; }
@media (min-width: 768px) {
  .sx-places-grid { grid-template-columns: repeat(2, 1fr); }
  .sx-place-hero { aspect-ratio: 16 / 9; }
}
@media (min-width: 1100px) { .sx-places-grid { grid-template-columns: repeat(3, 1fr); } }
.sx-facilities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sx-facilities span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--sx-surface); font-size: 14px; }
.sx-facilities i { color: var(--sx-ink); }

/* Map page */
.sx-mapwrap { position: relative; height: calc(100vh - 72px - 84px); min-height: 420px; }
.sx-mapwrap #sx-map { position: absolute; inset: 0; }
.sx-map-ui { position: absolute; z-index: 500; top: 14px; inset-inline: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.sx-map-ui .sx-chip { box-shadow: var(--sx-shadow-sm); background: #fff; }
.sx-map-ui .sx-chip.is-active { background: var(--sx-yellow); }
.sx-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.sx-pin i { transform: rotate(45deg); color: #fff; font-size: 14px; }
.sx-pin--place { background: #2f80ed; }
.sx-pin--food { background: var(--sx-yellow); }
.sx-pin--food i { color: var(--sx-ink); }
.sx-popup { display: flex; gap: 10px; align-items: center; min-width: 200px; font-family: var(--sx-font); }
.sx-popup img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--sx-surface); }
.sx-popup b { display: block; font-size: 15px; color: var(--sx-ink); }
.sx-popup small { color: var(--sx-muted); }
@media (min-width: 768px) { .sx-mapwrap { height: calc(100vh - 72px); } }

/* Offers, replies, levels */
.sx-offer { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; border-radius: var(--sx-radius); background: var(--sx-yellow-soft); align-items: start; }
.sx-offer:not(:has(img)) { grid-template-columns: 1fr; }
.sx-offer img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }
.sx-offer__body b { display: block; color: var(--sx-ink); font-weight: 700; }
.sx-offer__body p { margin: 4px 0; font-size: 14px; }
.sx-offer__pct { display: inline-block; background: var(--sx-danger); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.sx-reply { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sx-surface); border-inline-start: 4px solid var(--sx-yellow); }
.sx-reply b { color: var(--sx-ink); font-size: 14px; }
.sx-reply p { margin: 4px 0 0; white-space: pre-line; }
.sx-badge-level { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; padding: 3px 12px; border-radius: 999px; background: var(--sx-yellow-soft); color: #8a6400; font-size: 13px; }

/* Seasons (food courts) */
.sx-season-card { display: block; }
.sx-season-card__img { border-radius: 8px; overflow: hidden; aspect-ratio: 6 / 5; background: var(--sx-surface); box-shadow: var(--sx-shadow-sm); }
.sx-season-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sx-season-card:hover img { transform: scale(1.04); }
.sx-season-card__name { margin-top: 8px; font-weight: 500; color: var(--sx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-season-card__meta { font-size: 13px; color: var(--sx-muted); }
.sx-seasons-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .sx-seasons-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .sx-seasons-grid { grid-template-columns: repeat(4, 1fr); } }
.sx-season-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--sx-surface); font-size: 13px; color: var(--sx-ink); margin-top: 8px; margin-inline-end: 6px; }

/* =========================================================
   Reviews — Google-Maps style
   ========================================================= */
.sx-rvs__summary { display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: center; padding: 18px 20px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); background: #fff; }
.sx-rvs__score { display: grid; justify-items: center; gap: 4px; min-width: 110px; }
.sx-rvs__score b { font-size: 52px; line-height: 1; font-weight: 700; color: var(--sx-ink); }
.sx-rvs__score small { color: var(--sx-muted); font-size: 13px; }
.sx-rvs__bars { display: grid; gap: 6px; }
.sx-rvs__bar { display: grid; grid-template-columns: 14px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; color: var(--sx-text); padding: 2px 6px; border-radius: 8px; }
.sx-rvs__bar:hover, .sx-rvs__bar.is-active { background: var(--sx-yellow-soft); }
.sx-rvs__bar.is-empty { opacity: .55; pointer-events: none; }
.sx-rvs__track { height: 9px; border-radius: 9px; background: #ededed; overflow: hidden; }
.sx-rvs__track span { display: block; height: 100%; border-radius: 9px; background: var(--sx-yellow); }
.sx-rvs__count { color: var(--sx-muted); text-align: end; }
.sx-rvs__write { margin-top: 14px; }
.sx-rvs__filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px 0 4px; padding: 2px; }
.sx-rvs__filters::-webkit-scrollbar { display: none; }
.sx-rvs__filters .sx-chip { height: 38px; padding: 0 16px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--sx-line); background: #fff; color: var(--sx-text); }
.sx-rvs__filters .sx-chip.is-active { background: var(--sx-ink); border-color: var(--sx-ink); color: #fff; }
.sx-rvs__filters .sx-chip .fa-star { color: var(--sx-yellow); font-size: 12px; }
.sx-rvs__pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 4px; }
.sx-rvs__none { text-align: center; padding: 28px 16px; border: 1px dashed #dedede; border-radius: var(--sx-radius); color: var(--sx-muted); }
.sx-rvs__none i { font-size: 34px; color: #cfcfcf; }
.sx-rvs__none p { margin: 10px 0 14px; }
.sx-rvs__place { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sx-rvs__place img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--sx-surface); }
.sx-rvs__place h1 { font-size: 24px; }

.sx-rv { padding: 20px 0; border-bottom: 1px solid var(--sx-line); }
.sx-rv:last-child { border-bottom: 0; }
.sx-rv__head { display: flex; align-items: center; gap: 12px; }
.sx-rv__avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: #e8eefc; color: #3b5bdb; font-weight: 700; font-size: 18px; }
.sx-rv__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sx-rv__who { min-width: 0; flex: 1; line-height: 1.35; }
.sx-rv__who b { color: var(--sx-ink); font-weight: 500; }
.sx-rv__who small { display: block; color: var(--sx-muted); font-size: 12.5px; }
.sx-rv__menu { position: relative; }
.sx-rv__menu summary { list-style: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--sx-muted); }
.sx-rv__menu summary::-webkit-details-marker { display: none; }
.sx-rv__menu summary:hover { background: var(--sx-surface); }
.sx-rv__menu > div { position: absolute; inset-inline-end: 0; top: 40px; z-index: 5; min-width: 150px; background: #fff; border-radius: 14px; box-shadow: var(--sx-shadow); padding: 6px; }
.sx-rv__menu a, .sx-rv__menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 14px; color: var(--sx-text); cursor: pointer; text-align: start; }
.sx-rv__menu a:hover, .sx-rv__menu button:hover { background: var(--sx-surface); }
.sx-rv__menu .is-danger { color: var(--sx-danger); }
.sx-rv__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 13px; color: var(--sx-muted); }
.sx-rv__stars { display: inline-flex; gap: 2px; color: var(--sx-yellow); font-size: 13px; }
.sx-rv__stars .is-off { color: #dcdcdc; }
.sx-rv__stars--lg { font-size: 17px; }
.sx-star-part { background: linear-gradient(90deg, var(--sx-yellow) var(--fill), #dcdcdc var(--fill)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
[dir="rtl"] .sx-star-part { background: linear-gradient(270deg, var(--sx-yellow) var(--fill), #dcdcdc var(--fill)); -webkit-background-clip: text; background-clip: text; }
.sx-rv__chip { padding: 2px 10px; border-radius: 999px; background: var(--sx-surface); color: var(--sx-text); font-size: 12px; }
.sx-rv__place { margin-top: 8px; font-size: 13px; color: var(--sx-muted); }
.sx-rv__title { margin-top: 8px; font-weight: 700; color: var(--sx-ink); }
.sx-rv__text { margin: 6px 0 0; color: var(--sx-text); white-space: pre-line; line-height: 1.75; overflow-wrap: anywhere; }
.sx-rv__text.is-clamped, .sx-pd__desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sx-rv__more { border: 0; background: none; padding: 4px 0; color: #1a73e8; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.sx-rv__photos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; }
.sx-rv__photos::-webkit-scrollbar { display: none; }
.sx-rv__photos button { flex: none; width: 104px; height: 104px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--sx-surface); cursor: zoom-in; }
.sx-rv__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.sx-rv__photos button:hover img { transform: scale(1.05); }
.sx-rv__reply { margin-top: 14px; margin-inline-start: 14px; padding: 12px 14px; border-radius: 14px; background: var(--sx-surface); }
.sx-rv__reply-head { display: flex; align-items: baseline; gap: 8px; }
.sx-rv__reply-head b { font-size: 14px; color: var(--sx-ink); }
.sx-rv__reply-head small { color: var(--sx-muted); font-size: 12px; }
.sx-rv__reply p { margin: 4px 0 0; white-space: pre-line; font-size: 14px; }
@media (max-width: 560px) {
  .sx-rvs__summary { grid-template-columns: 1fr; padding: 16px; }
  .sx-rvs__score { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .sx-rvs__score b { font-size: 40px; }
}

/* =========================================================
   Photo viewer (lightbox slider)
   ========================================================= */
html.sx-lb-open { overflow: hidden; }
.sx-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.96); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #fff; }
.sx-lb[hidden] { display: none; }
.sx-lb__top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.sx-lb__count { font-size: 14px; opacity: .85; white-space: nowrap; }
.sx-lb__cap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; opacity: .7; }
.sx-lb__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; display: grid; place-items: center; cursor: pointer; }
.sx-lb__btn:hover { background: rgba(255,255,255,.22); }
.sx-lb__stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; }
.sx-lb__stage::-webkit-scrollbar { display: none; }
.sx-lb__slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 0 12px; min-height: 0; }
.sx-lb__slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.sx-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.sx-lb__nav--prev { left: 16px; }
.sx-lb__nav--next { right: 16px; }
.sx-lb.is-single .sx-lb__nav { display: none; }
.sx-lb__thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; padding: 10px 16px 16px; }
.sx-lb__thumbs::-webkit-scrollbar { display: none; }
.sx-lb__thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .55; background: #222; cursor: pointer; }
.sx-lb__thumbs button.is-active { border-color: var(--sx-yellow); opacity: 1; }
.sx-lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .sx-lb__nav { display: none; } .sx-lb__slide { padding: 0; } .sx-lb__slide img { border-radius: 0; } }

/* =========================================================
   Place details page (Booking-style)
   ========================================================= */
.sx-pd { padding-bottom: 40px; }
.sx-pd__bar { display: flex; align-items: center; gap: 8px; padding: 16px 0 6px; }
.sx-pd__tools { display: flex; gap: 8px; flex: none; }
.sx-crumbs { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 14px; color: var(--sx-muted); white-space: nowrap; overflow: hidden; }
.sx-crumbs a:hover { color: var(--sx-ink); }
.sx-crumbs i { font-size: 12px; opacity: .6; }
[dir="ltr"] .sx-crumbs i { transform: scaleX(-1); }
.sx-crumbs span { overflow: hidden; text-overflow: ellipsis; }
.sx-iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sx-line); background: #fff; color: var(--sx-ink); display: grid; place-items: center; cursor: pointer; }
.sx-iconbtn:hover { background: var(--sx-surface); }
.sx-pd__head h1 { margin: 6px 0 8px; font-size: clamp(26px, 4vw, 36px); line-height: 1.25; font-weight: 700; color: var(--sx-ink); }
.sx-pd__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--sx-text); font-size: 14px; }
.sx-pd__meta > span i { color: var(--sx-muted); margin-inline-end: 4px; }
.sx-pd__rating { display: inline-flex; align-items: center; gap: 6px; }
.sx-pd__rating b { font-size: 15px; color: var(--sx-ink); }
.sx-pd__rating > span:last-child { color: #1a73e8; }
.sx-pd__pill { padding: 4px 12px; border-radius: 999px; background: var(--sx-yellow-soft); color: #7a5800 !important; }
.sx-pd__pill i { color: inherit !important; }

/* gallery */
.sx-gal { position: relative; margin-top: 18px; }
.sx-gal__grid { display: none; }
.sx-gal__slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 0; margin: 0 -20px; }
.sx-gal__slider::-webkit-scrollbar { display: none; }
.sx-gal__slide { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; padding: 0; border: 0; background: var(--sx-surface); }
.sx-gal__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-gal__counter { position: absolute; bottom: 14px; inset-inline-start: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; pointer-events: none; }
.sx-gal__all { display: none; }
.sx-gal__tile { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--sx-surface); cursor: zoom-in; }
.sx-gal__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s, filter .2s; }
.sx-gal__tile:hover img { transform: scale(1.03); filter: brightness(.92); }
.sx-gal__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 26px; font-weight: 700; }
@media (min-width: 768px) {
  .sx-gal__slider, .sx-gal__counter { display: none; }
  .sx-gal__grid { display: grid; gap: 8px; height: clamp(320px, 42vw, 470px); border-radius: var(--sx-radius-lg); overflow: hidden;
    grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .sx-gal__grid .sx-gal__tile:first-child { grid-row: span 2; }
  .sx-gal[data-count="1"] .sx-gal__grid { grid-template-columns: 1fr; }
  .sx-gal[data-count="2"] .sx-gal__grid { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
  .sx-gal[data-count="2"] .sx-gal__tile:first-child { grid-row: auto; }
  .sx-gal[data-count="3"] .sx-gal__grid { grid-template-columns: 2fr 1fr; }
  .sx-gal[data-count="4"] .sx-gal__grid { grid-template-columns: 2fr 1fr 1fr; }
  .sx-gal[data-count="4"] .sx-gal__tile:last-child { grid-column: span 2; }
  .sx-gal__all { display: inline-flex; align-items: center; gap: 8px; position: absolute; bottom: 16px; inset-inline-end: 16px; height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: #fff; color: var(--sx-ink); font: inherit; font-size: 14px; font-weight: 500; box-shadow: var(--sx-shadow); cursor: pointer; }
}

/* tabs */
.sx-pd__tabs { position: sticky; top: 72px; z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 20px -20px 0; padding: 0 20px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sx-line); }
.sx-pd__tabs::-webkit-scrollbar { display: none; }
.sx-pd__tabs a { flex: none; padding: 14px 14px 12px; font-size: 15px; color: var(--sx-muted); border-bottom: 3px solid transparent; }
.sx-pd__tabs a.is-active, .sx-pd__tabs a:hover { color: var(--sx-ink); border-bottom-color: var(--sx-yellow); }
.sx-pd__tabs small { font-size: 12px; background: var(--sx-surface); border-radius: 999px; padding: 1px 7px; margin-inline-start: 4px; }
.sx-pd__sec { padding-top: 28px; scroll-margin-top: 130px; }
#reviews { scroll-margin-top: 130px; }
.sx-pd__h { margin: 0 0 14px; font-size: 22px; font-weight: 700; color: var(--sx-ink); }
.sx-pd__h3 { margin: 22px 0 12px; font-size: 17px; font-weight: 700; color: var(--sx-ink); }
.sx-pd__desc { margin: 0; color: var(--sx-text); line-height: 1.9; white-space: pre-line; }
.sx-pd__fac { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sx-pd__fac li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sx-surface); font-size: 14px; }
.sx-pd__fac i { width: 20px; text-align: center; color: #1f8a4c; }

/* layout + side card */
.sx-pd__layout { display: grid; gap: 0; }
.sx-pd__side { order: -1; padding-top: 22px; }
.sx-pd__card { border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 18px; background: #fff; display: grid; gap: 12px; }
.sx-pd__info { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sx-pd__info li { display: flex; gap: 12px; align-items: flex-start; }
.sx-pd__info i { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--sx-surface); display: grid; place-items: center; color: var(--sx-ink); }
.sx-pd__info b { display: block; font-weight: 500; font-size: 14px; color: var(--sx-ink); }
.sx-pd__info span { color: var(--sx-muted); font-size: 14px; white-space: pre-line; }
.sx-pd__map { height: 170px; border-radius: 14px; overflow: hidden; background: var(--sx-surface); z-index: 0; }
.sx-pd__vphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sx-pd__vphotos button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--sx-surface); cursor: zoom-in; }
.sx-pd__vphotos img { width: 100%; height: 100%; object-fit: cover; }
.sx-pd__near { display: grid; gap: 10px; }
.sx-pd__nearitem { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--sx-line); border-radius: 16px; background: #fff; }
.sx-pd__nearitem:hover { box-shadow: var(--sx-shadow-sm); }
.sx-pd__nearitem img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.sx-pd__nearitem b { display: block; color: var(--sx-ink); font-weight: 500; }
.sx-pd__nearitem small { color: var(--sx-muted); }
@media (min-width: 768px) {
  .sx-pd__vphotos { grid-template-columns: repeat(6, 1fr); }
  .sx-pd__near { grid-template-columns: repeat(2, 1fr); }
  .sx-pd__tabs { margin: 24px 0 0; padding: 0; }
}
@media (min-width: 992px) {
  .sx-pd__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .sx-pd__side { order: 0; position: sticky; top: 140px; padding-top: 28px; }
}

/* viewer: visitor info + report */
.sx-lb__slide { height: 100%; }
.sx-lb__bottom { min-width: 0; }
.sx-lb__info { max-width: 720px; margin: 0 auto; padding: 12px 16px 0; display: grid; gap: 6px; }
.sx-lb__who { display: flex; align-items: center; gap: 10px; color: #fff; width: fit-content; }
.sx-lb__who[href]:hover b { text-decoration: underline; }
.sx-lb__av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: #3b5bdb; color: #fff; font-weight: 700; }
.sx-lb__av img { width: 100%; height: 100%; object-fit: cover; }
.sx-lb__who b { display: block; font-weight: 500; font-size: 15px; }
.sx-lb__who small { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .75; }
.sx-lb__who .sx-rv__stars { font-size: 11px; }
.sx-lb__text { margin: 0; font-size: 14px; line-height: 1.7; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx .sx-lb__link { color: var(--sx-yellow); font-size: 14px; font-weight: 500; width: fit-content; }
.sx-lb__link i { font-size: 11px; margin-inline-start: 4px; }
[dir="ltr"] .sx-lb__link i { transform: scaleX(-1); }
.sx-lb__thumbs button.is-visitor { position: relative; }
.sx-lb__thumbs button.is-visitor::after { content: ""; position: absolute; inset-inline-end: 3px; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--sx-yellow); box-shadow: 0 0 0 2px #000; }
.sx-lb__report { position: absolute; inset-inline: 16px; bottom: 16px; max-width: 420px; margin-inline: auto; background: #fff; color: var(--sx-text); border-radius: 20px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.5); display: grid; gap: 8px; z-index: 3; }
.sx-lb__report[hidden] { display: none; }
.sx-lb__report h3 { margin: 0; font-size: 18px; color: var(--sx-ink); }
.sx-lb__report p { margin: 0 0 4px; font-size: 13px; }
.sx-lb__reason { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--sx-line); border-radius: 12px; font-size: 14px; cursor: pointer; }
.sx-lb__reason:has(input:checked) { border-color: var(--sx-ink); background: var(--sx-surface); }
.sx-lb__report textarea { width: 100%; border: 1px solid var(--sx-line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.sx-lb__actions { display: flex; gap: 8px; justify-content: flex-end; }
.sx-lb__msg { font-size: 14px; }
.sx-lb__msg.is-ok { color: #1f8a4c; }
.sx-lb__msg.is-err { color: var(--sx-danger); }
.sx-gal__by { position: absolute; bottom: 10px; inset-inline-start: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; pointer-events: none; }
.sx-gal__slide { position: relative; }
.sx-gal__slide .sx-gal__by { bottom: 50px; }
.sx-gal__all small { font-weight: 400; color: var(--sx-muted); }

/* =========================================================
   Restaurant branch page: menu, info, dish sheet
   ========================================================= */
.sx-br { padding-bottom: 40px; }
.sx-br__branches { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 18px; padding: 2px; }
.sx-br__branches::-webkit-scrollbar { display: none; }
.sx-br__branches .sx-chip { height: 38px; padding: 0 16px; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--sx-line); background: #fff; color: var(--sx-text); }
.sx-br__branches .sx-chip.is-active { background: var(--sx-ink); color: #fff; border-color: var(--sx-ink); }
.sx-br__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.sx-br__open { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--sx-danger); }
.sx-br__open i { font-size: 8px; }
.sx-br__open.is-open { color: #1f8a4c; }
.sx-br__rate { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--sx-text); }
.sx-br__rate i { color: var(--sx-yellow); }
.sx-br__rate span { color: var(--sx-muted); }
.sx-br__btns { display: flex; gap: 8px; margin-inline-start: auto; }
.sx-iconbtn--wa { color: #fff; background: #25d366; border-color: #25d366; }
.sx-iconbtn--wa:hover { background: #1ebe5a; }
.sx-br__info { display: grid; gap: 16px; }
.sx-br__info .sx-pd__info a { color: #1a73e8; font-size: 14px; }
.sx-br__social { display: flex; gap: 8px; }
.sx-br__social a { width: 40px; height: 40px; border-radius: 12px; background: var(--sx-surface); display: grid; place-items: center; color: var(--sx-ink); }
.sx-br__social a:hover { background: var(--sx-yellow-soft); }
.sx-hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.sx-hours th, .sx-hours td { padding: 9px 4px; border-bottom: 1px solid var(--sx-line); text-align: start; font-weight: 400; }
.sx-hours td { text-align: end; color: var(--sx-text); }
.sx-hours tr:last-child th, .sx-hours tr:last-child td { border-bottom: 0; }
.sx-hours tr.is-today th, .sx-hours tr.is-today td { font-weight: 700; color: var(--sx-ink); }
.sx-hours tr.is-today th::after { content: "•"; color: var(--sx-yellow); margin-inline-start: 6px; }
.sx-hours__closed { color: var(--sx-danger); }
@media (min-width: 768px) { .sx-br__info { grid-template-columns: 1fr 1fr; align-items: start; } }

.sx-menu__bar { position: sticky; top: 120px; z-index: 15; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); margin: 0 -20px; padding: 10px 20px 8px; display: grid; gap: 10px; }
body.sx--bare .sx-menu__bar { top: 48px; }
body.sx--bare .sx-pd__tabs { top: 0; }
.sx-menu__search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--sx-surface); color: var(--sx-muted); }
.sx-menu__search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--sx-ink); outline: none; }
.sx-menu__cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sx-menu__cats::-webkit-scrollbar { display: none; }
.sx-menu__cats .sx-chip { height: 36px; padding: 0 16px; font-size: 14px; display: inline-flex; align-items: center; }
.sx-menu__cat { padding-top: 18px; scroll-margin-top: 230px; }
.sx-menu__h { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--sx-ink); }
.sx-menu__h small { font-size: 13px; font-weight: 400; color: var(--sx-muted); }
.sx-menu__grid { display: grid; gap: 12px; }
@media (min-width: 768px) {
  .sx-menu__grid { grid-template-columns: 1fr 1fr; }
  .sx-menu__bar { margin: 0; padding: 10px 0 8px; }
}
.sx-dish { display: flex; align-items: stretch; gap: 14px; width: 100%; padding: 12px; border: 1px solid var(--sx-line); border-radius: 18px; background: #fff; text-align: start; font: inherit; color: inherit; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.sx-dish:hover { border-color: #dcdcdc; box-shadow: var(--sx-shadow-sm); }
.sx-dish__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sx-dish__name { font-weight: 500; font-size: 16px; color: var(--sx-ink); }
.sx-dish__star { color: #f2711c; font-size: 13px; }
.sx-dish__desc { color: var(--sx-muted); font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-dish__price { margin-top: auto; padding-top: 6px; font-size: 15px; color: var(--sx-ink); }
.sx-dish__price s, .sx-sheet__price s { color: var(--sx-muted); font-size: 13px; margin-inline-end: 6px; }
.sx-dish__price .is-sale { color: #1f8a4c; }
.sx-dish__img { width: 104px; height: 104px; flex: none; border-radius: 14px; object-fit: cover; background: var(--sx-surface); }

.sx-sheet { border: 0; padding: 0; width: min(520px, 100%); max-height: 92vh; border-radius: 24px; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.sx-sheet::backdrop { background: rgba(0,0,0,.5); }
.sx-sheet__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--sx-shadow-sm); cursor: pointer; font-size: 16px; }
.sx-sheet__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sx-surface); }
.sx-sheet__img[hidden] { display: none; }
.sx-sheet__body { padding: 20px 22px 26px; }
.sx-sheet__body h3 { margin: 0 0 8px; font-size: 22px; color: var(--sx-ink); padding-inline-end: 40px; }
.sx-sheet__body p { margin: 0 0 14px; color: var(--sx-text); line-height: 1.8; white-space: pre-line; }
.sx-sheet__price b { font-size: 20px; color: var(--sx-ink); }
@media (max-width: 600px) {
  .sx-sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; }
}

/* Forms (edit review, register restaurant…) */
.sx-form-card { padding: 22px; }
.sx-form-h { margin: 24px 0 10px; font-size: 17px; font-weight: 700; color: var(--sx-ink); }
.sx-thumb__x { position: absolute; top: 6px; inset-inline-start: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--sx-danger); display: grid; place-items: center; font-size: 13px; cursor: pointer; box-shadow: var(--sx-shadow-sm); }
.sx-thumb--existing { cursor: pointer; }
.sx-thumb--existing.is-removed img { opacity: .3; filter: grayscale(1); }
.sx-thumb--existing.is-removed .sx-thumb__x { background: var(--sx-danger); color: #fff; }
.sx-thumb__badge { position: absolute; bottom: 6px; inset-inline: 6px; text-align: center; padding: 2px 6px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; }
.sx-thumb__badge.is-bad { background: rgba(229,57,53,.85); }
.sx-linkbtn { border: 0; background: none; font: inherit; font-size: 14px; color: var(--sx-muted); cursor: pointer; padding: 6px 10px; }
.sx-linkbtn.is-danger { color: var(--sx-danger); }
.sx-page { padding-bottom: 40px; }
.sx-prose { color: var(--sx-text); line-height: 1.9; }
.sx-prose h2 { font-size: 20px; color: var(--sx-ink); margin: 28px 0 8px; }
.sx-prose p, .sx-prose ul { margin: 0 0 12px; }
.sx-hero-band { text-align: center; padding: 36px 20px 8px; }
.sx-hero-band h1 { margin: 10px 0 8px; font-size: clamp(26px, 4vw, 36px); color: var(--sx-ink); }
.sx-hero-band p { margin: 0 auto; max-width: 560px; color: var(--sx-muted); }
.sx-hero-band__icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 22px; background: var(--sx-yellow-soft); color: #8a6400; display: grid; place-items: center; font-size: 30px; }
.sx-hero-band__icon.is-ok { background: #e8f5e9; color: #1f8a4c; }
.sx-grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .sx-grid-2 { grid-template-columns: 1fr 1fr; } }
.sx-label { display: block; font-size: 14px; font-weight: 500; color: var(--sx-ink); margin-bottom: 6px; }
.sx-benefits { display: grid; gap: 12px; margin: 24px 0; }
.sx-benefits li { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.sx-benefits i { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--sx-yellow-soft); color: #8a6400; display: grid; place-items: center; }
.sx-benefits b { display: block; color: var(--sx-ink); }
.sx-benefits span { color: var(--sx-muted); font-size: 14px; }
.sx-reg { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) { .sx-reg { grid-template-columns: 1fr 1.25fr; align-items: start; } .sx-reg .sx-benefits { margin-top: 8px; } }
select.sx-input { appearance: auto; }
.sx-contact { display: flex; align-items: center; gap: 14px; padding: 18px; }
.sx-contact > i { font-size: 28px; width: 52px; height: 52px; border-radius: 16px; background: var(--sx-surface); display: grid; place-items: center; color: var(--sx-ink); }
.sx-contact b { display: block; color: var(--sx-ink); }
.sx-contact span { color: var(--sx-muted); font-size: 14px; }
.sx-faq { display: grid; gap: 10px; }
.sx-faq details { border: 1px solid var(--sx-line); border-radius: 16px; background: #fff; padding: 0 18px; }
.sx-faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; color: var(--sx-ink); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: "+"; font-size: 20px; color: var(--sx-muted); line-height: 1; }
.sx-faq details[open] summary::after { content: "−"; }
.sx-faq p { margin: 0 0 16px; color: var(--sx-text); line-height: 1.8; }
.sx-toast { position: fixed; z-index: 900; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--sx-ink); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 14px; animation: sx-toast-in .3s ease; transition: opacity .4s, transform .4s; }
.sx-toast--ok i:first-child { color: #4cd17b; }
.sx-toast--err { background: #b3261e; }
.sx-toast button { border: 0; background: none; color: #fff; opacity: .7; cursor: pointer; padding: 4px; }
.sx-toast.is-out { opacity: 0; transform: translate(-50%, 12px); }
@keyframes sx-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (min-width: 900px) { .sx-toast { bottom: 32px; } }
.sx-only-desk { display: none !important; }
@media (min-width: 900px) {
  .sx-only-desk { display: inline-flex !important; }
  .sx-topbar .sx-hello { display: none; }
  .sx-topnav { margin-inline-start: 12px; flex: 1; }
}
.sx-usermenu { position: relative; }
.sx-usermenu summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 4px; border-radius: 999px; }
.sx-usermenu summary::-webkit-details-marker { display: none; }
.sx-usermenu summary i { font-size: 11px; color: var(--sx-muted); }
.sx-usermenu summary .sx-avatar { width: 38px; height: 38px; }
.sx-usermenu > div { position: absolute; top: 52px; inset-inline-end: 0; min-width: 220px; background: #fff; border-radius: 16px; box-shadow: var(--sx-shadow); padding: 8px; display: grid; z-index: 60; }
.sx-usermenu > div > b { padding: 8px 12px 10px; border-bottom: 1px solid var(--sx-line); margin-bottom: 4px; color: var(--sx-ink); }
.sx-usermenu a, .sx-usermenu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; width: 100%; font: inherit; font-size: 14px; color: var(--sx-text); cursor: pointer; text-align: start; }
.sx-usermenu a:hover, .sx-usermenu button:hover { background: var(--sx-surface); }
.sx-usermenu i { width: 18px; color: var(--sx-muted); }

/* =========================================================
   Social: Instagram-style posts, profile, timeline, reels
   ========================================================= */
.sx-btn--soft { background: #efefef; color: var(--sx-ink) !important; }
.sx-btn--soft:hover { background: #e3e3e3; }
.sx-follow-btn { background: #0095f6; color: #fff !important; }
.sx-follow-btn.is-following { background: #efefef; color: var(--sx-ink) !important; }

/* post card */
.sx-post { background: #fff; border: 1px solid var(--sx-line); border-radius: 20px; margin: 0 0 20px; overflow: hidden; }
.sx-post__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.sx-post__avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #f8ba17, #f2711c 55%, #d6249f); display: grid; place-items: center; }
.sx-post__avatar img, .sx-post__avatar span { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #e8eefc; display: grid; place-items: center; color: #3b5bdb; font-weight: 700; }
.sx-post__avatar--sm { width: 34px; height: 34px; }
.sx-post__who { flex: 1; min-width: 0; line-height: 1.3; }
.sx-post__who b { color: var(--sx-ink); font-weight: 600; font-size: 14.5px; }
.sx-post__place { display: block; font-size: 12.5px; color: var(--sx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-post__place i { color: var(--sx-muted); font-size: 11px; }
.sx-post__media { position: relative; background: #000; }
.sx-post__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sx-post__slides::-webkit-scrollbar { display: none; }
.sx-post__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: var(--ar, 1 / 1); display: grid; place-items: center; background: #f2f2f2; }
.sx-post__slide img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.sx-post__count { position: absolute; top: 12px; inset-inline-end: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; pointer-events: none; }
.sx-post__heart { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: #fff; font-size: 96px; opacity: 0; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.sx-post__heart.is-pop { animation: sx-heart .9s ease; }
@keyframes sx-heart { 0% { opacity: 0; transform: scale(.4); } 15% { opacity: .95; transform: scale(1.15); } 30% { transform: scale(.95); } 45% { transform: scale(1); } 80% { opacity: .95; } 100% { opacity: 0; transform: scale(1); } }
.sx-post__dots { direction: ltr; display: flex; justify-content: center; gap: 4px; padding-top: 10px; height: 16px; }
.sx-post__dots i { width: 6px; height: 6px; border-radius: 50%; background: #d0d0d0; transition: background .2s, transform .2s; }
.sx-post__dots i.is-on { background: #0095f6; transform: scale(1.15); }
.sx .sx-post__textcard { position: relative; display: grid; width: 100%; align-content: center; justify-items: center; gap: 14px; aspect-ratio: 1; padding: 32px; text-align: center; color: #fff; }
.sx-post__textcard q { font-size: clamp(18px, 3.4vw, 24px); font-weight: 700; line-height: 1.6; quotes: "“" "”"; }
.sx-post__textcard small { opacity: .85; font-size: 14px; }
.sx-post__textcard--0 { background: linear-gradient(135deg, #f8ba17, #f2711c); }
.sx-post__textcard--1 { background: linear-gradient(135deg, #1f1f1f, #4a4a4a); }
.sx-post__textcard--2 { background: linear-gradient(135deg, #0f766e, #22c55e); }
.sx-post__textcard--3 { background: linear-gradient(135deg, #7c3aed, #d6249f); }
.sx-post__textcard--4 { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.sx-post__textstars { display: inline-flex; gap: 3px; font-size: 16px; color: #fff; }
.sx-post__textstars .is-off { opacity: .35; }
.sx-post__actions { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0; }
.sx-post__act { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; font-size: 23px; color: var(--sx-ink); cursor: pointer; border-radius: 50%; }
.sx-post__act:hover { color: #737373; }
.sx-post__act.is-on .fa-heart { color: #ed4956; animation: sx-like .35s ease; }
@keyframes sx-like { 50% { transform: scale(1.25); } }
.sx-post__body { padding: 2px 16px 14px; display: grid; gap: 5px; font-size: 14.5px; }
.sx-post__likes b { color: var(--sx-ink); }
.sx-post__rate { display: flex; align-items: center; gap: 8px; }
.sx-post__caption { margin: 0; line-height: 1.65; color: var(--sx-text); white-space: pre-line; overflow-wrap: anywhere; }
.sx-post__caption.is-clamped { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sx-post__caption > a b { color: var(--sx-ink); margin-inline-end: 4px; }
.sx-post__title { color: var(--sx-ink); margin-inline-end: 4px; }
.sx-post__more, .sx-post__time { color: var(--sx-muted); font-size: 13.5px; }
.sx-post__time { font-size: 12px; text-transform: uppercase; }
.sx-post__quick { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--sx-line); padding: 6px 16px; }
.sx-post__quick input { flex: 1; min-width: 0; border: 0; padding: 10px 0; font: inherit; font-size: 14px; outline: none; background: none; }
.sx-post__quick button { border: 0; background: none; color: #0095f6; font: inherit; font-weight: 600; cursor: pointer; }
.sx-post__quick button:disabled { opacity: .4; }
.sx-post__quick--box { border: 1px solid var(--sx-line); border-radius: 999px; padding: 4px 16px; margin-top: 12px; }

/* comments */
.sx-cmts { display: grid; gap: 14px; max-height: 60vh; overflow: auto; padding: 8px 2px; }
.sx-cmt { display: flex; gap: 10px; align-items: flex-start; }
.sx-cmt__body p { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.sx-cmt__body b { color: var(--sx-ink); margin-inline-end: 4px; }
.sx-cmt__body small { color: var(--sx-muted); font-size: 12px; }

/* single post page */
.sx-postpage { max-width: 1040px; padding-bottom: 40px; }
.sx-postpage__grid { display: grid; gap: 16px; margin-top: 12px; }
.sx-postpage__side { background: #fff; border: 1px solid var(--sx-line); border-radius: 20px; padding: 16px; align-self: start; scroll-margin-top: 90px; }
@media (min-width: 900px) {
  .sx-postpage__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .sx-postpage__side { position: sticky; top: 92px; }
  .sx-postpage .sx-post { margin: 0; }
}

/* profile (instagram) */
.sx-ig { max-width: 935px; padding-bottom: 40px; }
.sx-ig__head { display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: start; padding: 24px 0 8px; }
.sx-ig__avatar { width: 96px; height: 96px; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, #f8ba17, #f2711c 55%, #d6249f); }
.sx-ig__avatar img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; object-fit: cover; background: var(--sx-surface); }
.sx-ig__main { min-width: 0; display: grid; gap: 14px; }
.sx-ig__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.sx-ig__username { margin: 0; font-size: 21px; font-weight: 500; color: var(--sx-ink); }
.sx-ig__btns { display: flex; gap: 8px; align-items: center; }
.sx-ig__stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; font-size: 15px; color: var(--sx-text); }
.sx-ig__stats b { color: var(--sx-ink); font-weight: 700; }
.sx-ig__bio { display: grid; gap: 4px; font-size: 14.5px; }
.sx-ig__bio > b { color: var(--sx-ink); }
.sx-ig__bio p { margin: 2px 0 0; white-space: pre-line; line-height: 1.7; }
.sx-ig__bio .sx-badge-level { width: fit-content; }
.sx-ig__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--sx-muted); font-size: 13px; }
.sx-ig__meta .fa-heart { color: #ed4956; }
@media (max-width: 640px) {
  .sx-ig__head { grid-template-columns: 86px 1fr; gap: 14px 18px; }
  .sx-ig__avatar { width: 86px; height: 86px; grid-row: span 2; align-self: center; }
  .sx-ig__stats { gap: 18px; font-size: 14px; }
  .sx-ig__bio { grid-column: 1 / -1; }
  .sx-ig__main { display: contents; }
  .sx-ig__row { grid-column: 2; }
  .sx-ig__stats { grid-column: 2; }
}
.sx-ig__highlights { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 16px 2px 20px; }
.sx-ig__highlights::-webkit-scrollbar { display: none; }
.sx-ig__hl { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--sx-text); width: 76px; flex: none; text-align: center; }
.sx-ig__hlring { width: 70px; height: 70px; border-radius: 50%; padding: 3px; border: 1px solid #dbdbdb; display: grid; place-items: center; background: #fff; }
.sx-ig__hlring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--sx-surface); }
.sx-ig__hlring.is-add { background: var(--sx-surface); color: var(--sx-ink); font-size: 22px; }
.sx-ig__tabs { display: flex; justify-content: center; gap: 48px; border-top: 1px solid #dbdbdb; }
.sx-ig__tabs a { display: flex; align-items: center; gap: 8px; padding: 14px 0; margin-top: -1px; border-top: 1px solid transparent; font-size: 13px; font-weight: 600; letter-spacing: .5px; color: var(--sx-muted); text-transform: uppercase; }
.sx-ig__tabs a.is-active { color: var(--sx-ink); border-top-color: var(--sx-ink); }
@media (max-width: 640px) { .sx-ig__tabs { gap: 0; justify-content: space-around; } .sx-ig__tabs span { display: none; } .sx-ig__tabs a { font-size: 20px; } }
.sx-ig__empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 8px; }
.sx-ig__empty > span { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--sx-ink); display: grid; place-items: center; font-size: 28px; color: var(--sx-ink); }
.sx-ig__empty h3 { margin: 8px 0 0; font-size: 22px; color: var(--sx-ink); }
.sx-ig__empty p { margin: 0 0 8px; color: var(--sx-muted); max-width: 360px; }

.sx-ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
@media (min-width: 768px) { .sx-ig-grid { gap: 6px; } }
.sx-ig-tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--sx-surface); display: block; }
.sx-ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-ig-tile__multi { position: absolute; top: 8px; inset-inline-end: 8px; color: #fff; font-size: 16px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.sx-ig-tile__text { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 10px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; }
.sx-ig-tile__text .sx-post__textstars { font-size: 11px; }
.sx-ig-tile__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; background: rgba(0,0,0,.35); color: #fff; font-weight: 700; opacity: 0; transition: opacity .15s; }
.sx-ig-tile:hover .sx-ig-tile__hover { opacity: 1; }
@media (hover: none) { .sx-ig-tile__hover { display: none; } }

/* timeline */
.sx-feed { display: grid; gap: 32px; padding-bottom: 40px; max-width: 980px; }
.sx-feed__main { max-width: 560px; width: 100%; margin: 0 auto; }
.sx-feed__side { display: none; }
@media (min-width: 1000px) {
  .sx-feed { grid-template-columns: minmax(0, 560px) 300px; justify-content: center; }
  .sx-feed__side { display: block; position: sticky; top: 100px; align-self: start; padding-top: 24px; }
}
.sx-feed__top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 6px; }
.sx-feed__top h1 { margin: 0; font-size: 24px; color: var(--sx-ink); }
.sx .sx-feed__reels { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--sx-ink); color: #fff; font-size: 14px; }
.sx-feed__tabs { display: flex; gap: 6px; margin: 8px 0 12px; }
.sx-feed__tabs a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--sx-muted); background: var(--sx-surface); }
.sx-feed__tabs a.is-active { background: var(--sx-ink); color: #fff; }
.sx-feed__hint { margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--sx-yellow-soft); color: #7a5800; font-size: 14px; }
.sx-feed__people { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 18px; }
.sx-feed__people::-webkit-scrollbar { display: none; }
.sx-feed__person { flex: none; width: 92px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.sx-feed__person .sx-ig__hlring { width: 66px; height: 66px; border: 0; background: linear-gradient(45deg, #f8ba17, #f2711c 55%, #d6249f); }
.sx-feed__person .sx-ig__hlring img { border: 2px solid #fff; }
.sx-feed__pname { font-size: 12px; color: var(--sx-text); }
.sx-follow-mini { border: 0; border-radius: 8px; padding: 4px 10px; background: #0095f6; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sx-follow-mini.is-following { background: #efefef; color: var(--sx-ink); }
.sx-feed__me { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sx-feed__me img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.sx-feed__me b { display: block; color: var(--sx-ink); }
.sx-feed__me small { color: var(--sx-muted); }
.sx .sx-feed__reelcard { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #1f1f1f, #3a3a3a); color: #fff; }
.sx-feed__reelcard i { font-size: 24px; color: var(--sx-yellow); }
.sx-feed__reelcard b { display: block; }
.sx-feed__reelcard small { opacity: .75; font-size: 12px; }
@media (max-width: 600px) {
  .sx-feed .sx-post { border-radius: 0; border-inline: 0; margin-inline: -20px; }
}

/* reels */
body.sx--reels { background: #000; overflow: hidden; }
.sx-reels { position: fixed; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; background: #000; color: #fff; overscroll-behavior: contain; }
.sx-reels::-webkit-scrollbar { display: none; }
.sx-reels__top { position: fixed; top: 0; inset-inline: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none; }
.sx-reels__top a { pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; font-size: 20px; }
.sx-reels__top b { font-size: 20px; }
[dir="ltr"] .sx-reels__top .fa-arrow-right { transform: scaleX(-1); }
.sx-reels__empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.sx-reels__empty i { font-size: 48px; color: var(--sx-yellow); }
.sx-reel { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; max-width: 480px; margin: 0 auto; background: #111; }
@media (min-width: 700px) { .sx-reel { height: calc(100dvh - 32px); margin: 16px auto; border-radius: 16px; } }
.sx-reel__media { position: absolute; inset: 0; }
.sx-reel__frame { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.sx-reel__frame.is-on { opacity: 1; }
.sx-reel__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.55); }
.sx-reel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* photos stay still (no zoom effect); horizontal swipes change photo, vertical ones move between reels */
.sx-reel__media { touch-action: pan-y; }
.sx-reel::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.sx-reel__paused { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; opacity: 0; pointer-events: none; transition: opacity .2s; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.sx-reel.is-paused .sx-reel__paused { opacity: .9; }
.sx-reel__bars { position: absolute; top: 62px; inset-inline: 12px; z-index: 3; display: flex; gap: 4px; direction: ltr; }
.sx-reel__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.sx-reel__bars b { display: block; height: 100%; width: 0; background: #fff; }
.sx-reel__bars i.is-done b { width: 100%; }
.sx-reel__bars i.is-run b { animation: sx-bar 3.5s linear forwards; }
.sx-reel.is-paused .sx-reel__bars b { animation-play-state: paused; }
@keyframes sx-bar { to { width: 100%; } }
.sx-reel__info { position: absolute; z-index: 3; bottom: 24px; inset-inline-start: 16px; inset-inline-end: 76px; display: grid; gap: 8px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.sx-reel__who { display: flex; align-items: center; gap: 10px; }
.sx-reel__who .sx-post__avatar { width: 36px; height: 36px; }
.sx .sx-reel__who b { color: #fff; font-weight: 600; }
.sx-reel__follow { border: 1px solid rgba(255,255,255,.8); background: transparent; color: #fff; border-radius: 8px; padding: 3px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sx-reel__follow.is-following { background: rgba(255,255,255,.2); }
.sx .sx-reel__place { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); color: #fff; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sx-reel__stars { color: var(--sx-yellow); font-size: 13px; display: flex; gap: 2px; }
.sx-reel__stars .is-off { color: rgba(255,255,255,.35); }
.sx-reel__caption { margin: 0; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.sx-reel__caption.is-open { -webkit-line-clamp: 12; }
.sx-reel__side { position: absolute; z-index: 3; bottom: 24px; inset-inline-end: 10px; display: grid; justify-items: center; gap: 4px; }
.sx-reel__side small { font-size: 12px; margin-bottom: 8px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sx-reel__act { width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; color: #fff; font-size: 26px; cursor: pointer; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.sx-reel__act.is-on .fa-heart { color: #ed4956; }
.sx-reel .sx-post__heart { z-index: 2; }
.sx-bottomnav__reels i { color: var(--sx-ink); }

/* Instagram-style cropper */
.sx-crop { position: fixed; inset: 0; z-index: 1100; background: #0d0d0d; color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.sx-crop__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #262626; }
.sx-crop__top button { border: 0; background: none; color: #fff; font: inherit; font-size: 15px; padding: 6px 4px; cursor: pointer; }
.sx-crop__top .is-primary { color: #4cb5f9; font-weight: 700; }
.sx-crop__top button:disabled { opacity: .4; }
.sx-crop__stage { display: grid; place-items: center; overflow: hidden; padding: 12px; }
.sx-crop__frame { position: relative; overflow: hidden; touch-action: none; cursor: grab; background: #222; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); }
.sx-crop__frame:active { cursor: grabbing; }
.sx-crop__frame img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; user-select: none; pointer-events: none; }
.sx-crop__grid { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
  linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.sx-crop__tools { display: grid; gap: 14px; padding: 14px 16px 20px; border-top: 1px solid #262626; }
.sx-crop__zoom { display: flex; align-items: center; gap: 12px; max-width: 420px; width: 100%; margin: 0 auto; color: #aaa; }
.sx-crop__zoom input { flex: 1; accent-color: #fff; }
.sx-crop__ratios { display: flex; justify-content: center; gap: 10px; }
.sx-crop__ratios button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid #3a3a3a; background: #1a1a1a; color: #ddd; font: inherit; font-size: 13px; cursor: pointer; }
.sx-crop__ratios button.is-on { background: #fff; color: #000; border-color: #fff; }
.sx-crop__ratios span { display: inline-block; border: 2px solid currentColor; border-radius: 3px; }
.sx-crop__ratios .r11 { width: 14px; height: 14px; }
.sx-crop__ratios .r45 { width: 12px; height: 15px; }
.sx-crop__ratios .r191 { width: 19px; height: 10px; }
.sx-crop__thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
.sx-crop__thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .55; cursor: pointer; background: #222; }
.sx-crop__thumbs button.is-on { border-color: #fff; opacity: 1; }
.sx-crop__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* video reels */
.sx-reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.sx-reel__video[data-landscape] { object-fit: contain; }
.sx-reel__progress { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); direction: ltr; }
.sx-reel__progress b { display: block; height: 100%; width: 0; background: #fff; transition: width .25s linear; }
.sx-reel__sound { position: absolute; z-index: 4; top: 64px; inset-inline-end: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.sx-reel__spin { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sx-reel.is-loading .sx-reel__spin { opacity: .85; }
.sx-reel__tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--sx-yellow); color: #1f1f1f; font-weight: 700; text-shadow: none; }
.sx-reel__cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sx .sx-reel__btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.95); color: #1f1f1f; font-size: 14px; font-weight: 600; text-shadow: none; }
.sx .sx-reel__btn.is-yellow { background: var(--sx-yellow); }
.sx-reel--video .sx-reel__img, .sx-reel--video .sx-reel__bg { display: none; }

/* reels rail on place / restaurant pages */
.sx-reelrail { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sx-reelrail::-webkit-scrollbar { display: none; }
.sx .sx-reelrail a { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #111; color: #fff; }
.sx-reelrail img, .sx-reelrail video { width: 100%; height: 100%; object-fit: cover; }
.sx-reelrail span { position: absolute; bottom: 8px; inset-inline-start: 8px; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.7); display: flex; align-items: center; gap: 4px; }
.sx-reelrail i.fa-play { position: absolute; top: 8px; inset-inline-end: 8px; font-size: 12px; }

/* Restaurant header (Instagram style) */
.sx-rh__cover { height: 200px; overflow: hidden; background: var(--sx-surface); }
.sx-rh__cover img { width: 100%; height: 100%; object-fit: cover; }
.sx-rh__coverfill { width: 100%; height: 100%; background: linear-gradient(135deg, #f8ba17, #f2711c 55%, #1f1f1f); }
@media (min-width: 768px) { .sx-rh__cover { height: 280px; max-width: var(--sx-max); margin: 0 auto; border-radius: 0 0 24px 24px; } }
.sx-rh__top { display: flex; align-items: flex-start; gap: 18px; margin-top: -48px; }
.sx-rh__avatar { width: 104px; height: 104px; flex: none; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, #f8ba17, #f2711c 55%, #d6249f); }
.sx-rh__avatar img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; object-fit: contain; background: #fff; }
.sx-rh__stats { list-style: none; margin: 60px 0 0; padding: 0; display: flex; flex: 1; justify-content: space-around; text-align: center; }
.sx-rh__stats b { display: block; font-size: 19px; color: var(--sx-ink); line-height: 1.2; }
.sx-rh__stats span { font-size: 13px; color: var(--sx-text); }
.sx-rh__stats .fa-star { color: var(--sx-yellow); font-size: 11px; }
.sx-rh__id { margin-top: 12px; display: grid; gap: 6px; justify-items: start; }
.sx-rh__id h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--sx-ink); display: flex; align-items: center; gap: 6px; }
.sx-rh__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--sx-text); }
.sx-rh__meta .fa-map-marker-alt { color: var(--sx-muted); }
.sx-rh__tag { padding: 2px 10px; border-radius: 999px; background: var(--sx-yellow-soft); color: #7a5800; font-size: 13px; }
.sx-rh__bio { margin: 2px 0 0; color: var(--sx-text); font-size: 14.5px; line-height: 1.7; white-space: pre-line; }
.sx-rh__bio.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sx-rh__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.sx-rh__actions form { margin: 0; }
.sx-rh__icons { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.sx-rh__icons .sx-iconbtn { width: 38px; height: 38px; }
.sx-rh__branches { padding-bottom: 6px; }
.sx-rh__bicon { width: 100%; height: 100%; border-radius: 50%; background: var(--sx-surface); display: grid; place-items: center; font-size: 22px; color: var(--sx-ink); }
.sx-ig__hl.is-on .sx-ig__hlring { border: 0; background: linear-gradient(45deg, #f8ba17, #f2711c 55%, #d6249f); }
.sx-ig__hl.is-on .sx-rh__bicon { border: 3px solid #fff; background: var(--sx-yellow-soft); }
.sx-ig__hl.is-on > span:last-child { font-weight: 700; color: var(--sx-ink); }
.sx-rh__offers { margin-top: 14px; }
@media (min-width: 768px) {
  .sx-rh__top { margin-top: -56px; }
  .sx-rh__avatar { width: 132px; height: 132px; }
  .sx-rh__stats { flex: none; gap: 40px; margin-inline-start: 24px; margin-top: 70px; }
  .sx-rh__id h1 { font-size: 28px; }
}
@media (max-width: 480px) { .sx-rh__icons { margin-inline-start: 0; } }

/* photos / reels switch on the restaurant page */
.sx-rh__mtabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 14px; padding: 4px; width: fit-content; border-radius: 999px; background: var(--sx-surface); }
.sx-rh__mtabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--sx-muted); cursor: pointer; }
.sx-rh__mtabs button.is-on { background: #fff; color: var(--sx-ink); box-shadow: var(--sx-shadow-sm); }
#media .sx-ig-grid { max-width: 935px; margin: 0 auto; }
.sx-rh__mtabs small { font-weight: 400; }
.sx-ig-grid--reels .sx-ig-tile { aspect-ratio: 9 / 16; }
.sx-ig-tile video { width: 100%; height: 100%; object-fit: cover; }
.sx-ig-tile__views { position: absolute; bottom: 8px; inset-inline-start: 8px; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Avatars: always perfect circles (Safari doesn't resolve % heights inside grid items) */
.sx-post__avatar, .sx-rv__avatar, .sx-lb__av, .sx-ig__hlring, .sx-ig__avatar, .sx-rh__avatar { aspect-ratio: 1 / 1; flex-shrink: 0; overflow: hidden; }
.sx-post__avatar img, .sx-post__avatar > span,
.sx-rv__avatar img, .sx-lb__av img, .sx-ig__hlring img,
.sx-ig__avatar img, .sx-rh__avatar img, .sx-feed__me img,
.sx-person img, .sx-user img {
  width: 100%; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; display: block;
}
.sx-feed__me img { width: 48px; }
.sx-person img { width: 72px; }
.sx-user img { width: 56px; flex: none; }
.sx-avatar { height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; }
.sx-avatar--lg { width: 64px; }
.sx-rh__avatar img { object-fit: contain; }
.sx-post__avatar > span { display: grid; place-items: center; }
.sx-rh__bicon { height: auto !important; aspect-ratio: 1 / 1; }

/* Instagram grid (2025 style): 3:4 tiles, reels mixed with posts; reels tab = 9:16 */
.sx-ig-grid { gap: 2px; }
@media (min-width: 768px) { .sx-ig-grid { gap: 4px; } }
.sx-ig-tile { aspect-ratio: 3 / 4; }
.sx-ig-cell { min-width: 0; }
.sx-ig-cell > .sx-ig-tile { height: 100%; }
.sx-ig-grid.is-reels .sx-ig-tile { aspect-ratio: 9 / 16; }
.sx-ig-tile[data-kind="reel"] .sx-ig-tile__multi { font-size: 15px; }
@media (max-width: 767px) { #media .sx-ig-grid, .sx-ig .sx-ig-grid { margin-inline: -20px; } }

/* =========================================================
   Map page (search, filters, clustered pins, results panel)
   ========================================================= */
body.sx--map .sx-footer { display: none; }
.sx-mx { position: relative; height: calc(100dvh - 72px - 84px); min-height: 460px; overflow: hidden; }
@media (min-width: 900px) { .sx-mx { height: calc(100dvh - 72px); } }
.sx-mx #sx-map { position: absolute; inset: 0; z-index: 0; background: #e8eaed; }
.sx-mx .leaflet-control-attribution { font-size: 10px; }

/* panel */
.sx-mx__panel { position: absolute; z-index: 600; background: #fff; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 900px) {
  .sx-mx__panel { top: 14px; bottom: 14px; inset-inline-start: 14px; width: 400px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
  .sx-mx__handle { display: none; }
}
@media (max-width: 899px) {
  .sx-mx__panel { left: 0; right: 0; bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.18); transition: height .3s ease; }
  .sx-mx__panel.is-peek { height: 168px; overflow: hidden; }
  .sx-mx__panel.is-half { height: 52%; }
  .sx-mx__panel.is-full { height: calc(100% - 12px); }
}
.sx-mx__handle { display: grid; place-items: center; height: 22px; border: 0; background: none; cursor: grab; flex: none; touch-action: none; }
.sx-mx__handle span { width: 40px; height: 5px; border-radius: 3px; background: #d0d0d0; }
.sx-mx__search { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 0 14px; height: 50px; border-radius: 999px; background: #f1f3f4; }
@media (min-width: 900px) { .sx-mx__search { margin-top: 14px; } }
.sx-mx__search > i { color: var(--sx-muted); }
.sx-mx__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 15px; color: var(--sx-ink); }
.sx-mx__search input::-webkit-search-cancel-button { display: none; }
.sx-mx__search > button { border: 0; background: none; color: var(--sx-muted); cursor: pointer; padding: 6px; }
.sx-mx__suggest { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 6px; max-height: 60vh; overflow: auto; }
.sx-mx__suggest button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; background: none; border-radius: 12px; text-align: start; font: inherit; cursor: pointer; }
.sx-mx__suggest button:hover, .sx-mx__suggest button.is-active { background: var(--sx-surface); }
.sx-mx__suggest i { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--sx-surface); display: grid; place-items: center; color: var(--sx-ink); }
.sx-mx__suggest span { flex: 1; min-width: 0; }
.sx-mx__suggest b { display: block; color: var(--sx-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-mx__suggest small { color: var(--sx-muted); font-size: 12.5px; }
.sx-mx__suggest em { font-style: normal; font-size: 12px; color: #b06000; white-space: nowrap; }
.sx-mx__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 12px 4px; flex: none; }
.sx-mx__chips::-webkit-scrollbar { display: none; }
.sx-mx__chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid #dadce0; background: #fff; font: inherit; font-size: 13.5px; color: var(--sx-text); cursor: pointer; }
.sx-mx__chip i { font-size: 12px; color: var(--sx-muted); }
.sx-mx__chip.is-on { background: #e8f0fe; border-color: #e8f0fe; color: #174ea6; font-weight: 600; }
.sx-mx__chip.is-on i { color: #174ea6; }
.sx-mx__chip b { background: #1a73e8; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.sx-mx__filters { display: grid; gap: 10px; margin: 8px 12px; padding: 12px; border-radius: 14px; background: var(--sx-surface); font-size: 13px; color: var(--sx-text); }
.sx-mx__filters label { display: grid; gap: 4px; }
.sx-mx__filters select, .sx-mx__head select { height: 38px; border-radius: 10px; border: 1px solid #dadce0; background: #fff; padding: 0 10px; font: inherit; font-size: 14px; }
.sx-mx__check { display: flex !important; align-items: center; gap: 8px; }
.sx-mx__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 6px; flex: none; }
.sx-mx__head b { font-size: 14px; color: var(--sx-ink); }
.sx-mx__head select { height: 32px; font-size: 13px; }
.sx-mx__list { list-style: none; margin: 0; padding: 0 6px 16px; }
.sx-mx__item { display: flex; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--sx-line); background: none; text-align: start; font: inherit; cursor: pointer; border-radius: 12px; }
.sx-mx__item:hover, .sx-mx__item.is-sel { background: #f6f8fc; }
.sx-mx__thumb { width: 72px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 22px; color: #fff; }
.sx-mx__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sx-mx__thumb--food { background: #f2711c; }
.sx-mx__thumb--place { background: #0f9d8a; }
.sx-mx__txt { flex: 1; min-width: 0; display: grid; gap: 2px; align-content: start; }
.sx-mx__txt > b { color: var(--sx-ink); font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-mx__txt > small { color: var(--sx-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-mx__rate { font-size: 13px; color: var(--sx-text); }
.sx-mx__rate b { color: var(--sx-ink); }
.sx-mx__rate i { color: #fbbc04; font-size: 11px; }
.sx-mx__rate small { color: var(--sx-muted); }
.sx-mx__new { font-size: 12px; color: #1a73e8; }
.sx-mx__badges { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--sx-muted); margin-top: 2px; }
.sx-mx__badges .is-open { color: #188038; font-weight: 600; }
.sx-mx__badges .is-closed { color: #d93025; font-weight: 600; }
.sx-mx__empty { text-align: center; color: var(--sx-muted); padding: 24px 16px; font-size: 14px; }
.sx-mx__empty i { font-size: 30px; margin-bottom: 6px; }

/* selected place card */
.sx-mx__detail { position: relative; margin: 8px 12px 4px; border: 1px solid var(--sx-line); border-radius: 18px; overflow: hidden; flex: none; background: #fff; }
.sx-mx__x { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: var(--sx-shadow-sm); cursor: pointer; }
.sx-mx__dimg { width: 100%; height: 150px; object-fit: cover; display: block; }
.sx-mx__dbody { padding: 12px 14px 14px; display: grid; gap: 4px; }
.sx-mx__dbody h2 { margin: 0; font-size: 19px; color: var(--sx-ink); padding-inline-end: 34px; }
.sx-mx__dsub, .sx-mx__daddr { margin: 0; font-size: 13px; color: var(--sx-muted); }
.sx-mx__acts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; }
.sx .sx-mx__act { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; font-size: 12px; color: #1a73e8; }
.sx-mx__act i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #dadce0; display: grid; place-items: center; font-size: 15px; }
.sx-mx__act.is-main i { background: #1a73e8; border-color: #1a73e8; color: #fff; }

/* map controls */
.sx-mx__ctrls { position: absolute; z-index: 500; inset-inline-end: 14px; top: 14px; display: grid; gap: 8px; }
@media (max-width: 899px) { .sx-mx__ctrls { top: 12px; } .sx-mx__ctrls button { width: 42px; height: 42px; } }
.sx-mx__ctrls button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); color: #444; font-size: 16px; cursor: pointer; }
.sx-mx__ctrls button.is-on { color: #1a73e8; }
.sx-mx__ctrls button.is-busy i { animation: fa-spin 1s linear infinite; }
.sx-mx__area { position: absolute; z-index: 500; top: 14px; left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 10px 18px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); font: inherit; font-size: 14px; color: #1a73e8; cursor: pointer; }

/* pins, clusters, me */
.sx-mx__pin { width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); transition: transform .15s; }
.sx-mx__pin i { transform: rotate(45deg); color: #fff; font-size: 14px; }
.sx-mx__pin--food { background: #f2711c; }
.sx-mx__pin--place { background: #0f9d8a; }
.sx-mx__pin.is-closed { filter: saturate(.45); }
.sx-mx__pin.is-sel { background: #d93025; transform: rotate(-45deg) scale(1.25); }
.leaflet-marker-icon.is-hover .sx-mx__pin { transform: rotate(-45deg) scale(1.25); }
.sx-mx__cl { width: 44px; height: 44px; border-radius: 50%; background: rgba(26,115,232,.18); display: grid; place-items: center; }
.sx-mx__cl span { width: 34px; height: 34px; border-radius: 50%; background: #1a73e8; color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.sx-mx__me { width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.25); }

/* =========================================================
   Home refinement: smaller, calmer cards and sections
   ========================================================= */
.sx-search { height: 50px; padding: 0 18px; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.sx-search i { font-size: 16px; color: var(--sx-muted); }
.sx-search input { font-size: 15px; }
.sx-section { margin-top: 26px; }
.sx-section__head { margin-bottom: 10px; }
.sx-title { font-size: 19px; font-weight: 700; }
.sx-link { font-size: 13px; color: #1a73e8; }

/* categories: 4 compact icon tiles in one row */
.sx-cats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sx-cat { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px; min-height: 0; border: 0; box-shadow: none; background: transparent; font-size: 12.5px; text-align: center; line-height: 1.3; }
.sx-cat__icon { width: 52px; height: 52px; border-radius: 16px; font-size: 19px; background: var(--sx-surface); }
.sx-cat.is-active { background: transparent; color: var(--sx-ink); font-weight: 600; }
.sx-cat.is-active .sx-cat__icon { background: var(--sx-yellow); color: var(--sx-ink); }
.sx-cat__soon { font-size: 10px; }
.sx-cat[aria-disabled="true"] { opacity: .55; }

/* hero cards (recommended, places): smaller */
.sx-rail { gap: 12px; }
.sx-rail--hero { grid-auto-columns: 72%; }
.sx-hero { aspect-ratio: 4 / 3; border-radius: 18px; }
.sx-hero__body { inset-inline: 14px; bottom: 12px; }
.sx-hero__title { font-size: 17px; font-weight: 700; }
.sx-hero__sub { font-size: 12.5px; }
.sx-badge { top: 10px; inset-inline-start: 10px; padding: 4px 10px; font-size: 11.5px; }

/* seasons */
.sx-rail--season { grid-auto-columns: 34%; }
.sx-season__img, .sx-season-card__img { aspect-ratio: 1 / 1; border-radius: 14px; }
.sx-season__name, .sx-season-card__name { font-size: 13px; margin-top: 6px; }

/* restaurant rows */
.sx-place { grid-template-columns: 84px 1fr auto; gap: 12px; padding: 14px 0; }
.sx-place__img { width: 84px; height: 84px; border-radius: 14px; box-shadow: none; }
.sx-place__name { font-size: 16.5px; font-weight: 600; }
.sx-place__addr { font-size: 13px; }
.sx-follow { height: 30px; padding: 0 12px; font-size: 12px; }

/* people rail */
.sx-rail--people { grid-auto-columns: 76px; }
.sx-person img { width: 62px !important; }
.sx-person span { font-size: 12px; }

@media (min-width: 768px) {
  .sx-title { font-size: 22px; }
  .sx-rail--hero { grid-auto-columns: calc((100% - 36px) / 3.3); }
  .sx-rail--season { grid-auto-columns: calc((100% - 72px) / 6.3); }
  .sx-cats { grid-template-columns: repeat(4, 140px); justify-content: start; gap: 12px; }
  .sx-hero { aspect-ratio: 4 / 3; }
}
@media (min-width: 1100px) {
  .sx-rail--hero { grid-auto-columns: calc((100% - 48px) / 4); }
}
.sx-chips .sx-chip { height: 36px; padding: 0 16px; font-size: 14px; }
.sx-promo img { border-radius: 18px; }

/* ================= Tours ================= */
.sx-tcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--sx-radius); overflow: hidden; border: 1px solid var(--sx-line); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; min-width: 0; }
.sx-tcard:hover { transform: translateY(-2px); box-shadow: var(--sx-shadow); }
.sx-tcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--sx-surface); }
.sx-tcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-tcard__type { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.94); color: var(--sx-ink); font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.sx-tcard__type i { color: #b07d00; margin-inline-end: 3px; }
.sx-tcard__feat { position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--sx-yellow); color: #fff; display: grid; place-items: center; font-size: 13px; }
.sx-tcard__seats { position: absolute; bottom: 10px; inset-inline-start: 10px; background: var(--sx-danger); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.sx-tcard__body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.sx-tcard__body h3 { margin: 0; font-size: 16px; line-height: 1.4; color: var(--sx-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-tcard__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--sx-muted); }
.sx-tcard__meta i { margin-inline-end: 3px; }
.sx-tcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--sx-line); padding-top: 10px; }
.sx-tcard__co { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sx-text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tcard__co img { width: 24px; height: 24px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex: none; }
.sx-tcard__co .fa-check-circle, .sx-tour__co .fa-check-circle, .sx-co__head h1 .fa-check-circle, .sx-cochip .fa-check-circle { color: #1d9bf0; }
.sx-tcard__price { color: var(--sx-ink); font-size: 15px; white-space: nowrap; }
.sx-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sx-tfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sx-tfilter__q { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; background: var(--sx-surface); border-radius: 999px; padding: 0 16px; }
.sx-tfilter__q i { color: var(--sx-muted); }
.sx-tfilter__q input { border: 0; background: none; height: 44px; width: 100%; font: inherit; outline: 0; }
.sx-tfilter select { height: 44px; border: 1px solid var(--sx-line); border-radius: 999px; padding: 0 14px; background: #fff; font: inherit; color: var(--sx-text); }
.sx-chips .sx-chip i { margin-inline-end: 4px; }
.sx-corail { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sx-cochip { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 16px 10px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); color: inherit; text-decoration: none; background: #fff; }
.sx-cochip img { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 1px solid var(--sx-line); }
.sx-cochip b { font-size: 14px; color: var(--sx-ink); }
.sx-cochip small { color: var(--sx-muted); font-size: 12px; }

.sx-tour__head h1 { margin: 6px 0 6px; font-size: clamp(24px, 4vw, 34px); line-height: 1.3; color: var(--sx-ink); }
.sx-tslider { position: relative; margin-top: 14px; border-radius: var(--sx-radius); overflow: hidden; background: var(--sx-surface); }
.sx-tslider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sx-tslider__track::-webkit-scrollbar { display: none; }
.sx-tslider__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 10; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sx-tslider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-tslider__save { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 17px; cursor: pointer; backdrop-filter: blur(4px); }
.sx-tslider__save.is-on { background: #fff; color: var(--sx-yellow); }
.sx-tslider__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.sx-tslider__dots span { width: 18px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s; }
.sx-tslider__dots span.is-on { width: 30px; background: #fff; }
.sx-tour__co { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sx-line); color: inherit; text-decoration: none; }
.sx-tour__co img { width: 48px; height: 48px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 1px solid var(--sx-line); }
.sx-tour__co div { flex: 1; display: grid; gap: 2px; }
.sx-tour__co b { color: var(--sx-ink); font-size: 16px; }
.sx-tour__co span { color: var(--sx-muted); font-size: 13px; }
.sx-tour__co > .fa-angle-left { color: var(--sx-muted); }
[dir="ltr"] .sx-tour__co > .fa-angle-left { transform: scaleX(-1); }
.sx-tour__facts { list-style: none; margin: 0; padding: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sx-tour__facts li { display: flex; gap: 12px; align-items: center; }
.sx-tour__facts i { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--sx-ink); color: #fff; display: grid; place-items: center; font-size: 16px; }
.sx-tour__facts b { display: block; color: var(--sx-ink); font-size: 14px; font-weight: 500; }
.sx-tour__facts span { color: var(--sx-muted); font-size: 13px; }
.sx-tour__h3 { margin: 22px 0 10px; font-size: 15px; letter-spacing: .3px; color: var(--sx-muted); font-weight: 700; }
.sx-tour__hl { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sx-tour__hl li { position: relative; padding-inline-start: 18px; line-height: 1.7; color: var(--sx-text); }
.sx-tour__hl li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--sx-yellow); }
.sx-tour__inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-tour__inc li { display: flex; gap: 10px; align-items: baseline; line-height: 1.6; }
.sx-tour__inc .is-yes i { color: #1f8a4c; }
.sx-tour__inc .is-no { color: var(--sx-muted); }
.sx-tour__inc .is-no i { color: var(--sx-danger); }
.sx-itin { position: relative; }
.sx-itin__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sx-itin__track::-webkit-scrollbar { display: none; }
.sx-itin__day { scroll-snap-align: start; }
.sx-itin__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--sx-radius); overflow: hidden; }
.sx-itin__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-itin__cap { position: absolute; inset: auto 0 0 0; padding: 50px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
.sx-itin__badge { display: inline-block; border: 1.5px solid var(--sx-yellow); color: var(--sx-yellow); background: rgba(0,0,0,.35); padding: 3px 12px; border-radius: 6px; font-size: 13px; }
.sx-itin__cap h3 { margin: 8px 0 0; font-size: 19px; color: #fff; }
.sx-itin__day p { margin: 10px 4px 0; color: var(--sx-text); line-height: 1.8; white-space: pre-line; }
.sx-itin__nav { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; gap: 6px; }
.sx-itin__nav button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--sx-ink); cursor: pointer; }
[dir="ltr"] .sx-itin__nav button i { transform: scaleX(-1); }
.sx-tour__checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.sx-tour__checks li { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--sx-text); }
.sx-tour__checks i { color: #1a73e8; }
.sx-tour__score { display: grid; gap: 18px; margin-bottom: 18px; }
.sx-tour__avg { display: grid; justify-items: center; gap: 4px; }
.sx-tour__avg b { font-size: 56px; line-height: 1; color: #1a73e8; font-weight: 500; }
.sx-tour__avg .sx-rv__stars { font-size: 26px; }
.sx-tour__avg small { color: var(--sx-muted); }
.sx-tour__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 420px; width: 100%; justify-self: center; }
.sx-tour__bars li { display: grid; grid-template-columns: 82px 1fr 44px; gap: 10px; align-items: center; font-size: 14px; }
.sx-tour__bars i { height: 8px; border-radius: 8px; background: var(--sx-surface); overflow: hidden; }
.sx-tour__bars em { display: block; height: 100%; background: var(--sx-yellow); border-radius: 8px; }
.sx-tour__bars small { color: var(--sx-muted); text-align: end; }
.sx-tour__write { border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 4px 16px; margin-bottom: 16px; }
.sx-tour__write summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--sx-ink); }
.sx-tour__write form { display: grid; gap: 10px; padding-bottom: 16px; }
.sx-tour__write textarea.sx-input { min-height: 110px; }
.sx-tbook { gap: 12px; }
.sx-tbook__price b { font-size: 24px; color: var(--sx-ink); }
.sx-tbook__price small { color: var(--sx-muted); margin-inline-start: 6px; }
.sx-tbook__seats { font-size: 14px; color: #1f8a4c; }
.sx-tbook__seats.is-low { color: var(--sx-danger); }
.sx-tbook__form { display: grid; gap: 8px; }
.sx-tbook__form textarea.sx-input { min-height: 70px; }
.sx-tbook__people { display: grid; gap: 4px; font-size: 13px; color: var(--sx-muted); }
.sx-tbook__note { margin: 0; font-size: 12px; color: var(--sx-muted); line-height: 1.6; }
.sx-tbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--sx-line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.sx-tbar b { font-size: 17px; color: var(--sx-ink); }
.sx-tbar small { color: var(--sx-muted); margin-inline-start: 4px; }
.sx-tour { padding-bottom: 80px; }
.sx-tour__side { order: 0; }
@media (min-width: 900px) {
  .sx-tbar { display: none; }
  .sx-tour { padding-bottom: 0; }
  .sx-tour__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sx-tour__score { grid-template-columns: 200px 1fr; align-items: center; }
  .sx-itin__track { grid-auto-columns: calc((100% - 14px) / 1.6); }
  .sx-tour__checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Company page */
.sx-co__cover { height: 180px; margin: 12px -20px 0; background: linear-gradient(135deg, #ffe9a8, #f8ba17) center / cover; }
.sx-co__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-top: -44px; }
.sx-co__logo { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: #fff; box-shadow: var(--sx-shadow-sm); }
.sx-co__id { flex: 1 1 220px; }
.sx-co__id h1 { margin: 0 0 6px; font-size: 24px; color: var(--sx-ink); }
.sx-co__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--sx-muted); font-size: 13px; }
.sx-co__meta i { margin-inline-end: 3px; }
.sx-co__actions { display: flex; gap: 6px; }
.sx-co__about { margin: 16px 0 0; line-height: 1.9; white-space: pre-line; color: var(--sx-text); }
.sx-co__past .sx-tcard { opacity: .85; }
@media (min-width: 900px) { .sx-co__cover { height: 260px; margin: 16px 0 0; border-radius: var(--sx-radius-lg); } .sx-co__head { padding: 0 24px; } }
.sx-co__top { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.sx-co__top h1 { margin: 0 0 4px; font-size: clamp(22px, 4vw, 30px); color: var(--sx-ink); }
.sx-co__top > div { display: grid; gap: 2px; }
.sx-co__top .sx-co__logo { width: 72px; height: 72px; border-width: 2px; }
.sx-co__social { display: flex; gap: 8px; }
.sx-co__social a { width: 40px; height: 40px; border-radius: 50%; background: var(--sx-surface); display: grid; place-items: center; color: var(--sx-ink); }

/* ================= Explore ================= */
.sx-ex { padding-top: 14px; }
.sx-ex__search { position: sticky; top: 72px; z-index: 25; display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px 0; }
.sx-ex__search > i { position: absolute; inset-inline-start: 16px; color: var(--sx-muted); pointer-events: none; }
.sx-ex__search input { flex: 1; height: 46px; border: 0; border-radius: 14px; background: var(--sx-surface); padding: 0 44px; font: inherit; font-size: 15px; outline: 0; min-width: 0; }
.sx-ex__search > .sx-back + input { padding: 0 16px; }
.sx-ex__search input:focus { box-shadow: 0 0 0 2px var(--sx-yellow); background: #fff; }
.sx-ex__cancel { display: none; border: 0; background: none; color: var(--sx-ink); font: inherit; cursor: pointer; }
.sx-ex__search.is-open .sx-ex__cancel { display: block; }
.sx-ex__panel { padding: 6px 0 20px; min-height: 50vh; }
body.sx-ex-searching .sx-ex__kinds, body.sx-ex-searching .sx-ex__grid, body.sx-ex-searching .sx-ex__loader { display: none !important; }
.sx-ex__phead { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.sx-ex__phead h3 { margin: 0; font-size: 16px; color: var(--sx-ink); }
.sx-ex__phead button { border: 0; background: none; cursor: pointer; font: inherit; }
.sx-ex__recent, .sx-ex__sugg { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sx-ex__recent a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--sx-text); }
.sx-ex__recent i { color: var(--sx-muted); }
.sx-ex__trend { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-ex__trend a { padding: 8px 14px; border-radius: 999px; background: var(--sx-surface); color: var(--sx-ink); font-size: 14px; }
.sx-ex__trend i { color: #ff6b2c; margin-inline-end: 4px; }
.sx-ex__sugg a { display: flex; align-items: center; gap: 12px; padding: 8px 4px; color: inherit; border-radius: 12px; }
.sx-ex__sugg a:hover { background: var(--sx-surface); }
.sx-ex__sugg img { width: 46px; height: 46px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex: none; background: var(--sx-surface); }
.sx-ex__sugg img.is-sq { border-radius: 10px; }
.sx-ex__sugg b { display: block; color: var(--sx-ink); font-weight: 500; }
.sx-ex__sugg small { color: var(--sx-muted); }
.sx-ex__all { display: block; padding: 12px 4px; color: #1a73e8; }
.sx-ex__kinds { margin: 6px 0 12px; }
.sx-ex__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sx-ex__grid.is-masonry { display: flex; align-items: flex-start; gap: 6px; }
.sx-ex__col { flex: 1; min-width: 0; display: grid; gap: 6px; }
.sx-ex__tile { position: relative; display: block; aspect-ratio: 1 / var(--h, 1); border-radius: 14px; overflow: hidden; background: var(--sx-surface); color: #fff; }
.sx-ex__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.sx-ex__tile:hover img { transform: scale(1.04); }
.sx-ex__icon { position: absolute; top: 10px; inset-inline-end: 10px; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.sx-ex__foot { position: absolute; bottom: 10px; inset-inline-start: 10px; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.sx-ex__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; font-weight: 700; }
.sx-ex__tile:hover .sx-ex__hover { opacity: 1; }
.sx-ex__label { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.95); color: var(--sx-ink); font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.sx-ex__label--tour { background: var(--sx-yellow); }
.sx-ex__label--offer { background: var(--sx-danger); color: #fff; }
.sx-ex__cap { position: absolute; inset: auto 0 0 0; padding: 40px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.72)); display: grid; gap: 2px; }
.sx-ex__cap b { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-ex__cap small { font-size: 12px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-ex__loader { text-align: center; padding: 24px; color: var(--sx-muted); font-size: 22px; }
.sx-ex__people { display: grid; grid-auto-flow: column; grid-auto-columns: 130px; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.sx-ex__people a { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 14px 8px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); color: inherit; }
.sx-ex__people img { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.sx-ex__people b { font-size: 14px; color: var(--sx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sx-ex__people small { color: var(--sx-muted); font-size: 12px; }
.sx-ex__ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff4d6; color: var(--sx-ink); font-size: 22px; flex: none; }
.sx-ex__sugg .sx-ex__ico { width: 46px; height: 46px; font-size: 16px; }
.sx-title small { font-size: 14px; font-weight: 400; margin-inline-start: 6px; }
@media (min-width: 700px) { .sx-ex__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sx-ex__grid.is-masonry, .sx-ex__col { gap: 10px; } }

/* Notifications */
.sx-bell { position: relative; }
.sx-bell__n { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sx-danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
.sx-notif { max-width: 680px; }
.sx-notif__h { font-size: 15px; color: var(--sx-ink); margin: 18px 0 6px; }
.sx-notif__list { list-style: none; margin: 0; padding: 0; }
.sx-notif__list a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; color: inherit; }
.sx-notif__list a:hover { background: var(--sx-surface); }
.sx-notif__list li.is-new a { background: var(--sx-yellow-soft); }
.sx-notif__list img, .sx-notif__ic { width: 46px; height: 46px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex: none; }
.sx-notif__ic { display: grid; place-items: center; background: var(--sx-surface); color: var(--sx-ink); }
.sx-notif__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sx-notif__txt b { font-weight: 500; color: var(--sx-ink); font-size: 14px; }
.sx-notif__txt span { color: var(--sx-text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-notif__txt small { color: var(--sx-muted); font-size: 12px; }
.sx-notif__type { color: var(--sx-muted); }

/* Rewards */
.sx-rw { padding-top: 18px; }
.sx-rw__hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-radius: var(--sx-radius-lg); background: linear-gradient(135deg, #1f1f1f, #3a3a3a); color: #fff; }
.sx-rw__hero small { opacity: .7; }
.sx-rw__hero b { display: block; font-size: 38px; line-height: 1.2; color: var(--sx-yellow); }
.sx-rw__hero b span { font-size: 16px; color: #fff; }
.sx-rw__lvl { font-size: 14px; opacity: .9; }
.sx-rw__ic { font-size: 54px; color: var(--sx-yellow); opacity: .9; }
.sx-rw__rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-rw__rules li { background: var(--sx-surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.sx-rw__rules b { color: #1f8a4c; }
.sx-rw__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.sx-rw__card { border: 1px solid var(--sx-line); border-radius: var(--sx-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sx-rw__img { aspect-ratio: 16 / 9; background: var(--sx-yellow-soft); display: grid; place-items: center; color: var(--sx-yellow); font-size: 40px; }
.sx-rw__img img { width: 100%; height: 100%; object-fit: cover; }
.sx-rw__body { padding: 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.sx-rw__body h3 { margin: 0; font-size: 16px; color: var(--sx-ink); }
.sx-rw__body small { color: var(--sx-muted); }
.sx-rw__body p { margin: 0; font-size: 13px; color: var(--sx-text); line-height: 1.7; }
.sx-rw__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.sx-rw__mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-rw__mine li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--sx-line); border-radius: 14px; }
.sx-rw__mine li > span:first-child { flex: 1; display: grid; }
.sx-rw__mine small { color: var(--sx-muted); }
.sx-rw__mine code { font-size: 15px; letter-spacing: 1px; background: var(--sx-surface); padding: 4px 10px; border-radius: 8px; direction: ltr; }
.sx-rw__st { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--sx-surface); }
.sx-rw__st.is-pending { background: var(--sx-yellow-soft); color: #7a5800; }
.sx-rw__st.is-used { background: #e6f6ec; color: #1f8a4c; }
.sx-chips a.sx-chip { display: inline-flex; align-items: center; text-decoration: none; }
.sx-ex__cap b, .sx-ex__cap small, .sx-ex__foot, .sx-ex__icon, .sx-ex__hover span { color: #fff; }


/* Horizontal scrollers stay UNDER the sticky top bar (fixes rails painting over the header
   in Chrome/Safari after scrolling or coming back with the Back button) */
.sx-rail, .sx-chips, .sx-corail, .sx-reelrail, .sx-ex__people, .sx-feed__people, .sx-ig__highlights,
.sx-br__branches, .sx-menu__cats, .sx-review__photos, .sx-rv__photos, .sx-gal__slider, .sx-tslider, .sx-itin, .sx-post__slides, .sx-rvs__filters {
  position: relative; z-index: 0; isolation: isolate;
}

/* ================= Home (redesign) ================= */
.sx-homehero { margin-top: 14px; padding: 22px 20px; border-radius: var(--sx-radius-lg); background: linear-gradient(135deg, #fff6dc 0%, #ffe9a8 100%); display: grid; gap: 14px; }
.sx-homehero__txt span { color: #7a5800; font-size: 14px; }
.sx-homehero__txt h1 { margin: 4px 0 0; font-size: clamp(22px, 4vw, 30px); line-height: 1.3; color: var(--sx-ink); font-weight: 700; }
.sx-homehero__search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 6px 20px rgba(122, 88, 0, .12); }
[dir="rtl"] .sx-homehero__search { padding: 6px 18px 6px 6px; }
.sx-homehero__search > i { color: var(--sx-muted); }
.sx-homehero__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 44px; font: inherit; font-size: 15px; }
.sx-homehero__near { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--sx-ink); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
@media (max-width: 480px) { .sx-homehero__near span { display: none; } .sx-homehero__near { width: 44px; padding: 0; justify-content: center; } }
.sx-section__sub { margin: 2px 0 0; color: var(--sx-muted); font-size: 13px; }
.sx-section__head > div { min-width: 0; }

/* restaurant cards inside home groups */
.sx-rail--cards { grid-auto-columns: 78%; }
@media (min-width: 640px) { .sx-rail--cards { grid-auto-columns: calc((100% - 28px) / 2.3); } }
@media (min-width: 1000px) { .sx-rail--cards { grid-auto-columns: calc((100% - 42px) / 3.3); } }
.sx-rcard { display: flex; flex-direction: column; border-radius: var(--sx-radius); background: #fff; border: 1px solid var(--sx-line); overflow: hidden; color: inherit; transition: box-shadow .2s, transform .2s; }
.sx-rcard:hover { box-shadow: var(--sx-shadow); transform: translateY(-2px); }
.sx-rcard__media { position: relative; aspect-ratio: 16 / 10; background: var(--sx-surface); display: block; }
.sx-rcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-rcard__tag { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.95); color: var(--sx-ink); font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.sx-rcard__tag i { color: #1f8a4c; }
.sx-rcard__rate { position: absolute; top: 10px; inset-inline-end: 10px; background: var(--sx-ink); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
.sx-rcard__rate i { color: var(--sx-yellow); }
.sx-rcard__body { display: flex; gap: 10px; padding: 0 14px 14px; align-items: flex-start; }
.sx-rcard__logo { width: 48px; height: 48px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; margin-top: -22px; box-shadow: var(--sx-shadow-sm); flex: none; position: relative; }
.sx-rcard__txt { display: grid; gap: 3px; min-width: 0; padding-top: 8px; }
.sx-rcard__txt b { color: var(--sx-ink); font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-rcard__txt small { color: var(--sx-text); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.sx-rcard__txt em { font-style: normal; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--sx-muted); font-size: 12px; }
.sx-rcard__txt em .is-hot { color: var(--sx-danger); }

/* restaurant rows: short description, featured badge, distance */
.sx-place__desc { margin: 2px 0 4px; color: var(--sx-text); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-place__pin { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: #7a5800; background: var(--sx-yellow-soft); padding: 2px 8px; border-radius: 999px; }
.sx-place__dist { font-size: 14px; font-weight: 500; color: var(--sx-ink); white-space: nowrap; }
.sx-near-msg { margin: 8px 2px 0; color: var(--sx-muted); font-size: 14px; }

/* Tour page polish */
.sx-tour .sx-pd__main > .sx-pd__sec { border-top: 1px solid var(--sx-line); margin-top: 26px; padding-top: 24px; }
.sx-tour__facts { padding: 18px 0 4px; }
.sx-tour__facts li { background: var(--sx-surface); border-radius: 16px; padding: 12px; }
.sx-tour__facts i { width: 40px; height: 40px; background: #fff; color: #b07d00; box-shadow: var(--sx-shadow-sm); }
.sx-tour__h3 { color: var(--sx-ink); font-size: 16px; }
.sx-tour__hl { background: var(--sx-yellow-soft); border-radius: 16px; padding: 14px 16px; }
.sx-tour__inc { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.sx-tour__inc li { padding: 10px 12px; border-radius: 12px; background: var(--sx-surface); }
.sx-tour__inc .is-yes { background: #eef8f1; }
.sx-tour__inc .is-no { background: #fdf0f0; color: var(--sx-text); }
.sx-tour__checks li { padding: 10px 12px; border: 1px solid var(--sx-line); border-radius: 12px; }
.sx-tour__score { background: var(--sx-surface); border-radius: var(--sx-radius); padding: 18px; }
.sx-tour__ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--sx-radius); border: 1px dashed #e0c36a; background: #fffbef; margin-bottom: 16px; }
.sx-tour__ask div { display: grid; gap: 2px; }
.sx-tour__ask b { color: var(--sx-ink); }
.sx-tour__ask span { color: var(--sx-muted); font-size: 14px; }
.sx-tour__done { padding: 12px 16px; border-radius: 14px; background: #eef8f1; color: #1f8a4c; margin-bottom: 16px; }
.sx-tour__write { background: #fff; box-shadow: var(--sx-shadow-sm); }
.sx-tour__write summary { list-style: none; display: flex; align-items: center; justify-content: space-between; }
.sx-tour__write summary::-webkit-details-marker { display: none; }
.sx-tour__write summary > i { font-size: 12px; color: var(--sx-muted); transition: transform .2s; }
.sx-tour__write[open] summary > i { transform: rotate(180deg); }
.sx-tour__lbl { font-size: 13px; color: var(--sx-muted); }
.sx-tour__write .sx-rate label { font-size: 34px; }
.sx-tour__wact { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sx-tour__co { margin-top: 4px; }
.sx-tbook { box-shadow: var(--sx-shadow); }

/* My bookings */
.sx-mybk { max-width: 760px; }
.sx-mybk__tabs { display: flex; gap: 6px; background: var(--sx-surface); padding: 5px; border-radius: 999px; margin-bottom: 18px; }
.sx-mybk__tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px; color: var(--sx-muted); font-weight: 500; }
.sx-mybk__tabs a.is-active { background: #fff; color: var(--sx-ink); box-shadow: var(--sx-shadow-sm); }
.sx-mybk__tabs small { background: var(--sx-yellow-soft); color: #7a5800; border-radius: 999px; padding: 0 8px; font-size: 12px; }
.sx-mybk__card { border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 16px; margin-bottom: 14px; background: #fff; display: grid; gap: 12px; }
.sx-mybk__card.is-past { opacity: .75; }
.sx-mybk__top { display: flex; align-items: center; gap: 12px; }
.sx-mybk__top img { width: 54px; height: 54px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex: none; background: var(--sx-surface); }
.sx-mybk__top img.is-sq { border-radius: 14px; width: 64px; height: 64px; }
.sx-mybk__title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sx-mybk__title b { color: var(--sx-ink); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sx-mybk__title span { color: var(--sx-muted); font-size: 13px; }
.sx-mybk__st { flex: none; font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.sx-mybk__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-mybk__facts li { background: var(--sx-surface); border-radius: 10px; padding: 6px 10px; font-size: 13px; color: var(--sx-text); }
.sx-mybk__facts i { color: var(--sx-muted); margin-inline-end: 4px; }
.sx-mybk__note { margin: 0; font-size: 13px; color: var(--sx-text); background: #f4f8ff; border-radius: 10px; padding: 8px 12px; }
.sx-mybk__note.is-bad { background: #fdecea; color: #b3261e; }
.sx-mybk__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-mybk__acts form { margin: 0; }
.sx-mybk__empty { text-align: center; padding: 40px 16px; color: var(--sx-muted); }
.sx-mybk__empty i { font-size: 40px; margin-bottom: 8px; }

/* Featured (pinned) restaurants inside the list – like delivery apps */
.sx-place.is-featured { background: linear-gradient(90deg, #fffaf0, #fff6dc); border-radius: 18px; padding-inline: 12px; margin-inline: -12px; border-bottom-color: transparent; position: relative; }
.sx-place.is-featured + .sx-place.is-featured { margin-top: 8px; }
.sx-place.is-featured .sx-place__img { box-shadow: 0 0 0 2px var(--sx-yellow); }
.sx-place__pin { background: var(--sx-yellow); color: var(--sx-ink); }
.sx-place__pin i { font-size: 10px; }
.sx-mybk__edit { border: 1px dashed #e0c36a; background: #fffbef; border-radius: 12px; padding: 8px 12px; }
.sx-mybk__edit summary { cursor: pointer; font-weight: 500; color: var(--sx-ink); }
.sx-mybk__edit form { display: grid; gap: 8px; padding: 10px 0 4px; }
.sx-mybk__edit textarea.sx-input { min-height: 70px; }

/* Home tidy-up: section headers line up (title + optional subtitle on one side, link on the other) */
.sx-section__head { align-items: flex-end; }
.sx-section__head .sx-link { white-space: nowrap; padding-bottom: 2px; }
#top-restaurants .sx-chips { margin-bottom: 6px; }

/* Restaurant rows: featured ribbon, booking info, distance */
.sx-place__img { position: relative; }
.sx-place__ribbon { position: absolute; top: 6px; inset-inline-start: 6px; display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #ffd54f, #f8ba17); color: #4a3400; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.sx-place__ribbon i { font-size: 9px; }
.sx-place.is-featured .sx-place__img { box-shadow: 0 0 0 3px var(--sx-yellow); }
.sx-place__book { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sx-bk-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #eef8f1; color: #1f6b3a; white-space: nowrap; }
.sx-bk-chip i { font-size: 11px; }
.sx-bk-chip.is-ok { background: #f2fbf5; color: #1f8a4c; }
.sx-bk-chip.is-ok i.fa-circle, .sx-bk-chip.is-full i.fa-circle { font-size: 7px; }
.sx-bk-chip.is-full { background: #fdecea; color: #b3261e; }
.sx-bk-chip.is-muted { background: var(--sx-surface); color: var(--sx-muted); }
.sx-bk-chip.is-hot { background: #fff1e6; color: #c2410c; }
.sx-rating small { color: var(--sx-muted); font-weight: 400; }
.sx-place__dist { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--sx-ink); white-space: nowrap; background: var(--sx-surface); padding: 4px 9px; border-radius: 999px; }
.sx-place__dist i { font-size: 10px; color: #1a73e8; }
.sx-place__dist[hidden] { display: none; }

/* Restaurant row like the app design: city ★ rating / name / address / red booking line / distance */
.sx-place__booked { color: var(--sx-danger); font-size: 13.5px; display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.sx-place__booked i { font-size: 12px; }
.sx-place__desc { -webkit-line-clamp: 1; margin: 0 0 2px; font-size: 13.5px; color: var(--sx-muted); }
.sx-place__dist { background: none; padding: 0; font-size: 17px; font-weight: 500; color: var(--sx-ink); }
.sx-place__dist i { display: none; }

/* Tour cards v2: equal heights, price on the photo, no overflow */
.sx-tcard { height: 100%; border-radius: 18px; box-shadow: none; }
.sx-tcard:hover { transform: none; box-shadow: var(--sx-shadow); }
.sx-tcard__media { aspect-ratio: 16 / 10; overflow: hidden; }
.sx-tcard__type { top: 10px; inset-inline-start: 10px; font-size: 12px; padding: 4px 10px; }
.sx-tcard__feat { width: 28px; height: 28px; font-size: 12px; top: 10px; inset-inline-end: 10px; }
.sx-tcard__seats { bottom: 10px; inset-inline-start: 10px; background: #fff; color: var(--sx-danger); font-weight: 500; }
.sx-tcard__seats.is-full { background: var(--sx-danger); color: #fff; }
.sx-tcard__price { position: absolute; bottom: 10px; inset-inline-end: 10px; background: var(--sx-ink); color: #fff; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.sx-tcard__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.sx-tcard__body h3 { font-size: 16px; line-height: 1.45; min-height: 2.9em; margin: 0; }
.sx-tcard__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--sx-muted); }
.sx-tcard__meta li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sx-tcard__meta li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tcard__meta li i { width: 14px; text-align: center; flex: none; }
.sx-tcard__meta li i + span + i { margin-inline-start: 8px; }
.sx-tcard__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--sx-line); padding-top: 10px; min-width: 0; font-size: 13px; color: var(--sx-text); }
.sx-tcard__foot img { width: 26px; height: 26px; min-width: 26px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--sx-surface); }
.sx-tcard__foot span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tcard__foot .fa-check-circle { color: #1d9bf0; flex: none; }

/* Company profile v2 (cover, identity, stats, tabs, info) */
.sx-cop__hero { margin-top: 6px; }
.sx-cop__cover { position: relative; height: 200px; margin: 0 -20px; overflow: hidden; background: linear-gradient(135deg, #ffe9a8, #f8ba17); }
.sx-cop__cover.is-empty::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.45) 0 12%, transparent 13%), radial-gradient(circle at 80% 70%, rgba(255,255,255,.3) 0 18%, transparent 19%); }
.sx-cop__cover button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.sx-cop__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-cop__id { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: -48px; padding: 0 4px; }
.sx-cop__logo { width: 104px; height: 104px; aspect-ratio: 1; flex: none; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.sx-cop__name { flex: 1 1 240px; min-width: 0; padding-bottom: 2px; }
.sx-cop__name h1 { margin: 0; font-size: clamp(22px, 4vw, 30px); line-height: 1.3; color: var(--sx-ink); }
.sx-cop__name h1 .fa-check-circle { color: #1d9bf0; font-size: .7em; vertical-align: middle; }
.sx-cop__tagline { margin: 4px 0 0; color: var(--sx-text); font-size: 15px; }
.sx-cop__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; color: var(--sx-muted); font-size: 13px; }
.sx-cop__meta i { margin-inline-end: 4px; }
.sx-cop__rate { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff6d6; color: var(--sx-ink); text-decoration: none; }
.sx-cop__rate i { color: #f8ba17; margin: 0; }
.sx-cop__rate span { color: var(--sx-muted); }
.sx-cop__rate.is-new { background: var(--sx-surface); color: var(--sx-muted); }
.sx-cop__cta { display: flex; gap: 8px; flex: 1 1 100%; }
.sx-cop__cta .sx-btn { flex: 1; justify-content: center; }
.sx-cop__stats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sx-cop__stats li { border: 1px solid var(--sx-line); border-radius: 16px; padding: 14px 12px; text-align: center; background: #fff; }
.sx-cop__stats b { display: block; font-size: 22px; color: var(--sx-ink); line-height: 1.2; }
.sx-cop__stats span { font-size: 12px; color: var(--sx-muted); }
.sx-cop__tabs { position: sticky; top: 72px; z-index: 5; display: flex; gap: 4px; margin: 18px -20px 0; padding: 8px 20px; background: #fff; border-bottom: 1px solid var(--sx-line); overflow-x: auto; scrollbar-width: none; }
.sx-cop__tabs::-webkit-scrollbar { display: none; }
.sx-cop__tabs a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--sx-text); text-decoration: none; white-space: nowrap; }
.sx-cop__tabs a:hover, .sx-cop__tabs a.is-on { background: var(--sx-ink); color: #fff; }
.sx-cop .sx-pd__sec { scroll-margin-top: 130px; }
.sx-cop .sx-pd__h small { font-size: 14px; font-weight: 500; color: var(--sx-muted); margin-inline-start: 6px; }
.sx-cop__chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-cop__chips li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--sx-surface); font-size: 13px; color: var(--sx-ink); }
.sx-cop__chips i { font-size: 11px; color: #18a058; }
.sx-cop__info { margin: 8px 0 0; display: grid; grid-template-columns: 1fr; border: 1px solid var(--sx-line); border-radius: 16px; overflow: hidden; }
.sx-cop__info > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--sx-line); font-size: 14px; }
.sx-cop__info > div:last-child { border-bottom: 0; }
.sx-cop__info dt { color: var(--sx-muted); font-weight: 400; flex: none; }
.sx-cop__info dt i { width: 18px; text-align: center; margin-inline-end: 6px; }
.sx-cop__info dd { margin: 0; color: var(--sx-ink); text-align: end; min-width: 0; overflow-wrap: anywhere; }
.sx-cop__info a { color: inherit; }
.sx-cop__ok { color: #18a058; font-weight: 500; }
.sx-cop__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sx-cop__photos button { all: unset; position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--sx-surface); }
.sx-cop__photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-cop__photos .is-more span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-size: 20px; font-weight: 700; }
.sx-cop__mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--sx-text); }
.sx-cop__mini li { display: flex; gap: 8px; }
.sx-cop__mini i { width: 16px; text-align: center; color: var(--sx-muted); margin-top: 3px; }
.sx-cop__map { width: 100%; height: 180px; border: 0; border-radius: 12px; background: var(--sx-surface); }
.sx-cop__maplink { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sx-ink); font-weight: 500; }
@media (min-width: 700px) {
  .sx-cop__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sx-cop__photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sx-cop__info { grid-template-columns: 1fr 1fr; }
  .sx-cop__info > div:nth-child(odd) { border-inline-end: 1px solid var(--sx-line); }
  .sx-cop__info > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (min-width: 900px) {
  .sx-cop__cover { height: 300px; margin: 0; border-radius: var(--sx-radius-lg); }
  .sx-cop__id { padding: 0 28px; margin-top: -56px; }
  .sx-cop__logo { width: 124px; height: 124px; }
  .sx-cop__cta { flex: none; }
  .sx-cop__cta .sx-btn { flex: none; }
  .sx-cop__tabs { margin: 22px 0 0; padding: 8px 0; }
  .sx-cop__side { position: sticky; top: 140px; }
}
.sx-cop__side { order: 2; }
@media (min-width: 900px) {
  .sx-cop__id { align-items: flex-start; }
  .sx-cop__name, .sx-cop__cta { margin-top: 64px; }
  .sx-cop__side { order: 0; }
}

/* Trip request sent (shown in the booking card) */
.sx-tdone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px 12px; border-radius: 14px; background: #eefaf2; border: 1px solid #c9ecd6; }
.sx-tdone > i { font-size: 34px; color: #18a058; }
.sx-tdone b { font-size: 17px; color: var(--sx-ink); }
.sx-tdone p { margin: 0 0 6px; font-size: 13px; line-height: 1.7; color: var(--sx-text); }
.sx-tdone .sx-btn { width: 100%; justify-content: center; }

/* Home v3: three big tabs (food / places / tours) */
.sx-home2 .sx-homehero { margin-bottom: 14px; }
.sx-htabs { position: sticky; top: 72px; z-index: 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 -20px; padding: 10px 20px; background: #fff; }
.sx-htab { display: grid; justify-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 18px; border: 1.5px solid var(--sx-line); background: #fff; color: var(--sx-ink); text-decoration: none; text-align: center; transition: background .15s, border-color .15s, box-shadow .15s; }
.sx-htab__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--sx-surface); color: var(--sx-ink); transition: inherit; }
.sx-htab b { font-size: 14px; font-weight: 700; line-height: 1.3; }
.sx-htab small { font-size: 11px; color: var(--sx-muted); }
.sx-htab:hover { border-color: #d9d9d9; }
.sx-htab.is-on { border-color: var(--sx-ink); background: var(--sx-ink); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.sx-htab.is-on .sx-htab__icon { background: #f8ba17; color: var(--sx-ink); }
.sx-htab.is-on small { color: rgba(255,255,255,.7); }
.sx-htab--food .sx-htab__icon { background: #fff4d6; }
.sx-htab--places .sx-htab__icon { background: #e7f6ec; }
.sx-htab--tours .sx-htab__icon { background: #e8f1fd; }

/* only the chosen panel shows */
[data-home] .sx-hpanel { display: none; }
[data-home][data-tab="food"] [data-hpanel="food"],
[data-home][data-tab="places"] [data-hpanel="places"],
[data-home][data-tab="tours"] [data-hpanel="tours"] { display: block; animation: sxFade .2s ease; }
@keyframes sxFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sx-hpanel__chips { margin-top: 18px; }
.sx-hpanel__chips small { color: var(--sx-muted); margin-inline-start: 2px; }
.sx-hpanel__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.sx-hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* one banner rail */
.sx-banners { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 8px -20px 0; padding: 0 20px; position: relative; z-index: 0; isolation: isolate; }
.sx-banners::-webkit-scrollbar { display: none; }
.sx-banner { position: relative; display: block; scroll-snap-align: start; aspect-ratio: 21 / 8; border-radius: 16px; overflow: hidden; background: var(--sx-surface); }
.sx-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-banner span { position: absolute; inset-inline-start: 12px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; }

/* light join line at the end */
.sx-hjoin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin: 40px 0 10px; padding: 16px; border-top: 1px solid var(--sx-line); font-size: 14px; color: var(--sx-muted); }
.sx-hjoin a { color: var(--sx-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 700px) {
  .sx-htab { grid-template-columns: auto 1fr; justify-items: start; text-align: start; align-items: center; column-gap: 12px; padding: 14px 16px; }
  .sx-htab__icon { grid-row: span 2; width: 52px; height: 52px; font-size: 21px; }
  .sx-htab b { font-size: 17px; align-self: end; }
  .sx-htab small { font-size: 12px; align-self: start; }
  .sx-hgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-banners { grid-auto-columns: calc((100% - 10px) / 2); }
}
@media (min-width: 900px) {
  .sx-htabs { margin: 0; padding: 10px 0; }
  .sx-banners { margin-inline: 0; padding: 0; }
  .sx-hgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sx-hgrid .sx-hero { aspect-ratio: 4 / 5; border-radius: 18px; }
.sx-hgrid .sx-hero__body { inset-inline: 12px; bottom: 12px; }
.sx-hgrid .sx-hero__title { font-size: 16px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-hgrid .sx-hero__sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-hgrid .sx-badge { top: 10px; inset-inline-start: 10px; padding: 3px 10px; font-size: 11px; }
@media (min-width: 700px) { .sx-hgrid .sx-hero { aspect-ratio: 1; } }

/* Home v4 (TripAdvisor-style): one search, shortcuts, one-row sections, ranked list */
.sx-h4hero { text-align: center; padding: 26px 0 8px; }
.sx-h4hero__hi { font-size: 14px; color: var(--sx-muted); }
.sx-h4hero h1 { margin: 4px 0 14px; font-size: clamp(26px, 5vw, 40px); line-height: 1.25; color: var(--sx-ink); }
.sx-h4scope { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.sx-h4scope label { cursor: pointer; }
.sx-h4scope input { position: absolute; opacity: 0; pointer-events: none; }
.sx-h4scope span { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--sx-line); font-size: 14px; color: var(--sx-text); background: #fff; }
.sx-h4scope input:checked + span { background: var(--sx-ink); border-color: var(--sx-ink); color: #fff; }
.sx-h4scope input:focus-visible + span { outline: 2px solid #f8ba17; outline-offset: 2px; }
.sx-h4box { display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto; padding: 6px 6px 6px 6px; padding-inline-start: 18px; border: 1.5px solid var(--sx-ink); border-radius: 999px; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.08); }
.sx-h4box > i { color: var(--sx-muted); }
.sx-h4box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; padding: 10px 0; }
.sx-h4box button { flex: none; border: 0; border-radius: 999px; background: #f8ba17; color: var(--sx-ink); font: inherit; font-weight: 700; padding: 11px 22px; cursor: pointer; }
.sx-h4cuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; margin: 22px 0 4px; }
.sx-h4cuts a { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--sx-ink); text-decoration: none; text-align: center; }
.sx-h4cuts span { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--sx-surface); font-size: 20px; transition: background .15s, transform .15s; }
.sx-h4cuts a:hover span { background: #fff4d6; transform: translateY(-2px); }
.sx-rail--places { grid-auto-columns: 44%; }
.sx-rail--places .sx-hero { aspect-ratio: 4 / 5; border-radius: 18px; }
.sx-rail--places .sx-hero__body { inset-inline: 12px; bottom: 12px; }
.sx-rail--places .sx-hero__title { font-size: 16px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-rail--places .sx-hero__sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-rail--places .sx-badge { top: 10px; inset-inline-start: 10px; padding: 3px 10px; font-size: 11px; }
.sx-list--ranked { counter-reset: sxrank; }
.sx-list--ranked > .sx-place:not([hidden]) { counter-increment: sxrank; position: relative; padding-inline-start: 34px; }
.sx-list--ranked > .sx-place:not([hidden])::before { content: counter(sxrank); position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 24px; text-align: center; font-size: 18px; font-weight: 700; color: var(--sx-ink); }
.sx-home4 .sx-banners { margin-top: 28px; }
@media (min-width: 640px) {
  .sx-rail--places { grid-auto-columns: calc((100% - 28px) / 3.3); }
}
@media (min-width: 900px) {
  .sx-h4hero { padding-top: 40px; }
  .sx-h4cuts { grid-template-columns: repeat(8, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; margin-top: 28px; }
  .sx-rail--places { grid-auto-columns: calc((100% - 42px) / 4.3); }
  .sx-rail--places .sx-hero { aspect-ratio: 1; }
}

/* ===== Farms & apartments (stays) ===== */
.sx-stays__head { padding: 22px 0 6px; }
.sx-stays__head h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); color: var(--sx-ink); }
.sx-stays__head p { margin: 4px 0 0; color: var(--sx-muted); }
.sx-stays__filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 18px; }
.sx-stays__filters .sx-btn { grid-column: 1 / -1; justify-content: center; }
.sx-scard .sx-tcard__price small { font-weight: 400; opacity: .8; font-size: 11px; }
.sx-scard h3 .sx-verified { color: #1d9bf0; font-size: .75em; }
.sx-scard__foot { justify-content: space-between; }
.sx-scard__rate { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--sx-ink); }
.sx-scard__rate i { color: #f8ba17; }
.sx-scard__rate small { color: var(--sx-muted); font-weight: 400; }
.sx-scard__new { font-size: 12px; color: #18a058; background: #eefaf2; padding: 2px 8px; border-radius: 999px; }
.sx-scard__kinds { display: inline-flex; gap: 8px; color: var(--sx-muted); }
.sx-stay .sx-tour__head h1 .sx-verified { color: #1d9bf0; font-size: .6em; vertical-align: middle; }
.sx-stay__count { position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.sx-sopts { display: grid; gap: 10px; }
.sx-sopt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--sx-line); border-radius: 16px; background: #fff; }
.sx-sopt__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sx-surface); color: var(--sx-ink); font-size: 17px; }
.sx-sopt__txt b { display: block; color: var(--sx-ink); }
.sx-sopt__txt small { color: var(--sx-muted); font-size: 13px; }
.sx-sopt__price { text-align: end; display: grid; }
.sx-sopt__price b { font-size: 17px; color: var(--sx-ink); }
.sx-sopt__price small { color: var(--sx-muted); font-size: 12px; }
.sx-sopt__price .is-we { color: #b4570a; }
.sx-sspecial { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.sx-sspecial li { padding: 8px 12px; border-radius: 12px; background: #fff7ea; color: #6b4300; }
.sx-sspecial i { color: #b4570a; margin-inline-end: 4px; }
.sx-scal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.sx-scal__wd { text-align: center; font-size: 12px; color: var(--sx-muted); padding-bottom: 2px; }
.sx-scal__d { display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 50px; border: 1px solid var(--sx-line); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; padding: 4px 2px; color: var(--sx-ink); }
.sx-scal__d b { font-size: 14px; line-height: 1.1; }
.sx-scal__d b small { font-size: 9px; font-weight: 400; color: var(--sx-muted); }
.sx-scal__d > small { font-size: 10.5px; color: #18794e; }
.sx-scal__d.is-free:hover, .sx-scal__d.is-partial:hover { border-color: var(--sx-ink); }
.sx-scal__d.is-partial { background: #fffaf0; }
.sx-scal__d.is-full { background: #f6f6f6; color: #b5b5b5; text-decoration: line-through; cursor: not-allowed; }
.sx-scal__d.is-blocked { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 5px, #efefef 5px, #efefef 10px); color: #b5b5b5; cursor: not-allowed; }
.sx-scal__d.is-past { visibility: hidden; }
.sx-scal__d.is-picked { background: var(--sx-ink); color: #fff; border-color: var(--sx-ink); }
.sx-scal__d.is-picked > small, .sx-scal__d.is-picked b small { color: #f8ba17; }
.sx-scal__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--sx-muted); }
.sx-scal__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--sx-line); vertical-align: -2px; margin-inline-end: 4px; background: #fff; }
.sx-scal__legend i.is-partial { background: #fffaf0; }
.sx-scal__legend i.is-full { background: #e9e9e9; }
.sx-scal__legend i.is-blocked { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 3px, #e5e5e5 3px, #e5e5e5 6px); }
.sx-samen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sx-samen li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--sx-ink); }
.sx-samen i { width: 20px; text-align: center; color: var(--sx-muted); }
.sx-stay__map { height: 240px; margin-bottom: 8px; }
.sx-snear { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.sx-snear li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--sx-line); border-radius: 12px; font-size: 14px; }
.sx-snear i { color: var(--sx-muted); text-align: center; }
.sx-snear small { color: var(--sx-muted); }
.sx-srules { display: grid; gap: 18px; }
.sx-sbook__slots { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-sbook__slots legend { font-size: 13px; color: var(--sx-muted); margin-bottom: 6px; padding: 0; }
.sx-sbook__slot { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--sx-line); border-radius: 14px; cursor: pointer; margin: 0; }
.sx-sbook__slot.is-on { border-color: var(--sx-ink); background: #fafafa; }
.sx-sbook__slot input { accent-color: #1f1f1f; }
.sx-sbook__slot b { display: block; font-size: 14px; color: var(--sx-ink); }
.sx-sbook__slot b i { color: var(--sx-muted); margin-inline-end: 2px; }
.sx-sbook__slot small { font-size: 12px; color: var(--sx-muted); }
.sx-sbook__slot em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--sx-ink); white-space: nowrap; }
.sx-sbook__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.sx-sbook__row label { display: grid; gap: 4px; font-size: 12px; color: var(--sx-muted); margin: 0; }
.sx-sbook__row label[hidden] { display: none; }
.sx-sbook__row:has(label[hidden]) { grid-template-columns: 1.4fr 1fr; }
.sx-sbook__quote { border-radius: 14px; background: var(--sx-surface); padding: 12px; font-size: 13px; }
.sx-sbook__quote p { margin: 0; }
.sx-sbook__when { color: var(--sx-text); margin-bottom: 8px; }
.sx-sbook__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 180px; overflow: auto; }
.sx-sbook__lines li { display: flex; justify-content: space-between; gap: 8px; }
.sx-sbook__lines em { font-style: normal; color: #b4570a; font-size: 12px; }
.sx-sbook__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #e3e3e3; margin-top: 8px; padding-top: 8px; font-size: 14px; }
.sx-sbook__total b { font-size: 19px; color: var(--sx-ink); }
.sx-sbook__err { color: #b3261e; }
.sx-sbook [data-book-btn][disabled] { opacity: .5; cursor: not-allowed; }
.sx-sbook .sx-tbook__price small { display: block; font-size: 12px; color: var(--sx-muted); }
@media (min-width: 700px) {
  .sx-stays__filters { grid-template-columns: 1.1fr 1fr 1fr .8fr 1fr 1fr auto; }
  .sx-stays__filters .sx-btn { grid-column: auto; }
  .sx-samen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-srules { grid-template-columns: 1fr 1fr; }
  .sx-scal__d { min-height: 58px; }
}
.sx-sbook__row .sx-input { min-width: 0; width: 100%; padding: 10px 8px; text-align: center; border-radius: 14px; }
.sx-sbook__row input[type="date"] { text-align: start; padding-inline: 10px; }
.sx-h4box .sx-h4near { background: #fff; color: var(--sx-ink); border: 1px solid var(--sx-line); padding: 10px 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.sx-h4box .sx-h4near:hover { border-color: var(--sx-ink); }
.sx-h4box .sx-h4near i { color: #f8ba17; }
@media (max-width: 520px) { .sx-h4box .sx-h4near span { display: none; } .sx-h4box .sx-h4near { padding: 10px 12px; } .sx-h4box button[type="submit"] { padding: 11px 16px; } }
.sx-logo__img { height: 34px; width: auto; max-width: 160px; object-fit: contain; display: block; }

/* Footer v2 */
.sx-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.sx-footer__brand { grid-column: 1 / -1; }
.sx-footer__brand b { font-size: 18px; color: var(--sx-ink); }
.sx-footer__brand p { margin: 6px 0 10px; max-width: 360px; }
.sx-footer__social { display: flex; gap: 8px; }
.sx-footer__social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sx-surface); color: var(--sx-ink); font-size: 15px; }
.sx-footer__social a:hover { background: var(--sx-yellow); }
.sx-footer nav.sx-footer__col, .sx-footer__col { display: flex; flex-direction: column; gap: 8px; }
.sx-footer__col b { color: var(--sx-ink); font-size: 14px; margin-bottom: 2px; }
.sx-footer__col i { width: 16px; }
.sx-footer__bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--sx-line); font-size: 12px; }
@media (min-width: 800px) { .sx-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .sx-footer__brand { grid-column: auto; } }

/* Support chat */
.sx-chat { position: fixed; z-index: 60; inset-inline-start: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); }
.sx-chat__fab { position: relative; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--sx-ink); color: #fff; font-size: 21px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.18); display: grid; place-items: center; }
.sx-chat.is-open .sx-chat__fab { background: var(--sx-yellow); color: var(--sx-ink); }
.sx-chat__badge { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--sx-danger); color: #fff; font-size: 11px; display: grid; place-items: center; }
.sx-chat__panel { position: absolute; bottom: 66px; inset-inline-start: 0; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 190px)); background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.2); display: flex; flex-direction: column; overflow: hidden; }
.sx-chat__panel[hidden] { display: none; }
.sx-chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sx-ink); color: #fff; }
.sx-chat__head div { flex: 1; display: grid; }
.sx-chat__head small { font-size: 12px; opacity: .75; }
.sx-chat__head small.is-on::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34c759; margin-inline-end: 5px; }
.sx-chat__head button { border: 0; background: none; color: #fff; font-size: 17px; cursor: pointer; }
.sx-chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sx-yellow); color: var(--sx-ink); display: grid; place-items: center; }
.sx-chat__body { flex: 1; overflow-y: auto; padding: 14px; background: #f7f7f8; display: flex; flex-direction: column; gap: 8px; }
.sx-chat__intro { margin: 0; font-size: 13px; color: var(--sx-muted); text-align: center; }
.sx-chat__faq details { background: #fff; border: 1px solid var(--sx-line); border-radius: 12px; padding: 8px 12px; font-size: 13px; margin-bottom: 6px; }
.sx-chat__faq summary { cursor: pointer; font-weight: 500; color: var(--sx-ink); }
.sx-chat__faq p { margin: 6px 0 0; color: var(--sx-text); }
.sx-chat__msg { max-width: 82%; display: grid; gap: 2px; }
.sx-chat__msg p { margin: 0; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.6; background: #fff; border: 1px solid var(--sx-line); overflow-wrap: anywhere; }
.sx-chat__msg small { font-size: 10.5px; color: var(--sx-muted); padding: 0 6px; }
.sx-chat__msg.is-user { align-self: flex-end; }
.sx-chat__msg.is-user p { background: var(--sx-ink); color: #fff; border-color: var(--sx-ink); border-end-end-radius: 4px; }
.sx-chat__msg.is-staff p { border-end-start-radius: 4px; }
.sx-chat__msg.is-system { align-self: center; max-width: 92%; text-align: center; }
.sx-chat__msg.is-system p { background: var(--sx-yellow-soft); border-color: transparent; font-size: 13px; }
.sx-chat__form { padding: 10px; border-top: 1px solid var(--sx-line); display: grid; gap: 6px; background: #fff; }
.sx-chat__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sx-chat__contact[hidden] { display: none; }
.sx-chat__contact .sx-input { padding: 9px 12px; font-size: 13px; }
.sx-chat__row { display: flex; gap: 6px; align-items: flex-end; }
.sx-chat__row textarea { flex: 1; resize: none; min-height: 42px; max-height: 110px; padding: 10px 12px; font-size: 14px; }
.sx-chat__row button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--sx-yellow); color: var(--sx-ink); cursor: pointer; flex: none; }
.sx-chat__err { margin: 0; font-size: 12px; color: var(--sx-danger); }
@media (min-width: 900px) { .sx-chat { bottom: 24px; } }
body.sx--map .sx-chat { display: none; }
.sx-contact--chat { background: var(--sx-ink); color: #fff; } .sx-contact--chat > i { background: var(--sx-yellow); color: var(--sx-ink); } .sx-contact--chat b { color: #fff !important; } .sx-contact--chat span { color: rgba(255,255,255,.75) !important; }
.sx-tslider__save.is-on { color: #e53935; }
.sx-sbook__promo summary { cursor: pointer; font-size: 13px; color: var(--sx-ink); }
.sx-sbook__promo summary i { color: var(--sx-yellow); }
.sx-sbook__promo .sx-input { margin-top: 6px; text-transform: uppercase; }
.sx-sbook__disc { display: flex; justify-content: space-between; color: #18a058; font-size: 13px; margin-top: 6px; }
.sx-sbook__disc span { text-decoration: line-through; color: var(--sx-muted); }
.sx-rv__verified { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; font-size: 11px; font-weight: 500; color: #18794e; background: #e8f7ee; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }

/* City guides */
.sx-city__hero { padding: 20px 0 6px; }
.sx-city__hero h1 { margin: 0; font-size: clamp(26px, 5vw, 40px); color: var(--sx-ink); }
.sx-city__hero p { margin: 6px 0 0; color: var(--sx-muted); max-width: 680px; }
.sx-city__nums { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.sx-city__nums li { text-align: center; background: var(--sx-surface); border-radius: 14px; padding: 10px 4px; }
.sx-city__nums b { display: block; font-size: 20px; color: var(--sx-ink); }
.sx-city__nums span { font-size: 12px; color: var(--sx-muted); }
.sx-city__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 18px; }
.sx-city__card { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--sx-line); border-radius: 16px; background: #fff; }
.sx-city__card:hover { border-color: var(--sx-ink); }
.sx-city__card b { font-size: 17px; color: var(--sx-ink); }
.sx-city__card small { color: var(--sx-muted); }

/* hidden attribute must win over button / alert display rules (write-review: «التالي» vs «نشر المراجعة») */
.sx-btn[hidden], .sx-error[hidden], .sx-alert[hidden] { display: none !important; }

/* review video (one per review) */
/* videos in posts: fill the frame like Instagram (no zoom, no moving, no native controls) */
.sx-post__slide--video { position: relative; background: #000; overflow: hidden; }
.sx-post__slide--video video, .sx-post__reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; background: #000; pointer-events: none; }
.sx-post__reel { position: relative; }
.sx-post__reel { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.sx-post__reelicon { position: absolute; top: 12px; inset-inline-end: 12px; color: #fff; font-size: 18px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.sx-post__mute { position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; display: grid; place-items: center; cursor: pointer; }
/* Instagram-like: images never zoom or move on hover / tap */
.sx-ex__tile:hover img, .sx-gal__tile:hover img { transform: none; }
.sx-post__slides { overscroll-behavior-x: contain; }
.sx-post__slide img, .sx-ig-tile img, .sx-ex__tile img { -webkit-touch-callout: none; }
.sx-rvideo { margin-top: 22px; }
.sx-rvideo__pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border: 1.5px dashed #cfcfcf; border-radius: var(--sx-radius-sm, 12px); background: #fafafa; color: var(--sx-ink); font-weight: 600; cursor: pointer; }
.sx-rvideo__pick[hidden] { display: none; }
.sx-rvideo__pick i { color: var(--sx-yellow); font-size: 20px; }
.sx-rvideo__prev { position: relative; margin-top: 10px; max-width: 220px; border-radius: 12px; overflow: hidden; background: #000; }
.sx-rvideo__prev video { width: 100%; max-height: 320px; display: block; }
.sx-rvideo__prev button { position: absolute; top: 6px; inset-inline-start: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; font-weight: 700; cursor: pointer; }
.sx-rnote { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--sx-yellow-soft, #fff6dc); color: var(--sx-ink); font-size: 13px; font-weight: 600; line-height: 1.7; }
.sx-rnote i { color: #c98a00; margin-top: 4px; }
.sx-bottomnav:not(:has(.sx-bottomnav__reels)) { grid-template-columns: repeat(4, 1fr); }

/* places: governorate + sort */
.sx-pfilter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sx-pfilter label { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1.5px solid var(--sx-line); border-radius: 999px; background: var(--sx-white); color: var(--sx-ink); }
.sx-pfilter label i { color: var(--sx-muted); font-size: 13px; }
.sx-pfilter select { border: 0; background: transparent; font: inherit; font-size: 14px; color: inherit; max-width: 170px; outline: none; cursor: pointer; }

/* Reels — Instagram behaviour */
.sx-reel__mutepop { position: absolute; top: 50%; left: 50%; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 24px; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.sx-reel__mutepop.is-on { animation: sx-mutepop .8s ease forwards; }
@keyframes sx-mutepop { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.sx-reel__info, .sx-reel__side, .sx-reel__sound, .sx-reel__progress, .sx-reel::after { transition: opacity .2s; }
.sx-reel.is-holding .sx-reel__info, .sx-reel.is-holding .sx-reel__side, .sx-reel.is-holding .sx-reel__sound,
.sx-reel.is-holding .sx-reel__progress, .sx-reel.is-holding::after { opacity: 0; }
.sx--reels .sx-reels__top { transition: opacity .2s; }
.sx-reel__media { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sx-reel__video { pointer-events: none; }
.sx-reels__nav { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .sx-reels__nav { display: grid; gap: 12px; position: fixed; z-index: 6; top: 50%; transform: translateY(-50%); inset-inline-end: 28px; }
  .sx-reels__nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 16px; cursor: pointer; }
  .sx-reels__nav button:hover { background: rgba(255,255,255,.28); }
}

/* write review: post or reel */
.sx-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sx-kind__opt { margin: 0; cursor: pointer; }
.sx-kind__opt input { position: absolute; opacity: 0; pointer-events: none; }
.sx-kind__opt > span { display: grid; gap: 4px; justify-items: start; height: 100%; padding: 14px; border: 1.5px solid var(--sx-line); border-radius: 14px; background: #fff; }
.sx-kind__opt i { font-size: 20px; color: var(--sx-ink); }
.sx-kind__opt b { color: var(--sx-ink); font-size: 16px; }
.sx-kind__opt small { color: var(--sx-muted); font-size: 12px; line-height: 1.6; }
.sx-kind__opt input:checked + span { border-color: var(--sx-yellow); background: var(--sx-yellow-soft, #fff6dc); box-shadow: 0 0 0 1px var(--sx-yellow); }
.sx-kind__opt input:focus-visible + span { outline: 2px solid var(--sx-ink); outline-offset: 2px; }
.sx-kind__h { font-size: 15px; font-weight: 700; color: var(--sx-ink); margin: 18px 0 10px; }
.sx-rvideo__prev video { aspect-ratio: 9 / 16; object-fit: cover; }

/* «شوف» icon */
.sx-shoof-ic { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -.22em; flex: none; }
.sx-bottomnav .sx-shoof-ic { width: 24px; height: 24px; vertical-align: middle; }
.sx-ig-tile__multi .sx-shoof-ic, .sx-post__reelicon .sx-shoof-ic { width: 22px; height: 22px; }
.sx-reels__empty .sx-shoof-ic { width: 56px; height: 56px; color: var(--sx-yellow); }
.sx-kind__opt .sx-shoof-ic { width: 24px; height: 24px; color: var(--sx-ink); }
.sx-feed__reelcard .sx-shoof-ic { width: 28px; height: 28px; color: var(--sx-yellow); }

/* save: a bookmark tag on the top corner of the photo / video (opposite the 1/3 counter) */
.sx-post__save { position: absolute; z-index: 3; top: 10px; inset-inline-start: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 16px; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sx-post__save.is-on { background: var(--sx-yellow); color: var(--sx-ink); }
.sx-post__save:active { transform: scale(.92); }

/* post body: title → stars + kind of visit → text */
.sx-post__headline { margin: 6px 0 4px; font-size: 16px; font-weight: 800; color: var(--sx-ink); line-height: 1.5; overflow-wrap: anywhere; }
.sx-post__rate { flex-wrap: wrap; margin-bottom: 6px; }
.sx-post__cat { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.sx-post__cat i { font-size: 11px; }
.sx-post__cat--food { background: #fff3d6; color: #8a5a00; }
.sx-post__cat--place { background: #e3f2ec; color: #116b4a; }
.sx-post__cat--tour { background: #e6efff; color: #1f4fae; }
.sx-post__cat--stay { background: #f6e9ff; color: #6b2fa0; }
.sx-post__quick[hidden] { display: none !important; }

/* counts next to the icons (likes · comments · shares) */
.sx-post__actions { gap: 10px; }
.sx-post__stat { display: inline-flex; align-items: center; gap: 0; }
.sx-post__stat > b { font-size: 14px; font-weight: 700; color: var(--sx-ink); min-width: 0; margin-inline-start: -4px; }
.sx-post__stat > b:empty { display: none; }

/* ===== v37: one-line caption + Instagram-style comments sheet ===== */
.sx-post__caption.is-clamped { white-space: normal; }
.sx-post__morebtn { justify-self: start; padding: 0; margin-top: -4px; color: var(--sx-muted); font-weight: 600; }
.sx-postpage__one { max-width: 620px; margin: 12px auto 0; }
.sx-postpage__one .sx-post { margin: 0; }
html.sx-noscroll, html.sx-noscroll body { overflow: hidden; overscroll-behavior: none; }
.sx-csheet { position: fixed; inset: 0; z-index: 1200; }
.sx-csheet[hidden] { display: none !important; }
.sx-csheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: sx-fadein .2s ease; }
@keyframes sx-fadein { from { opacity: 0; } }
.sx-csheet__panel { position: absolute; inset-inline: 0; bottom: 0; margin: 0 auto; max-width: 620px; height: 62vh;
  display: flex; flex-direction: column; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.18);
  transform: translateY(100%); transition: transform .22s ease, height .2s ease; padding-bottom: env(safe-area-inset-bottom); }
.sx-csheet__panel.is-in { transform: none; }
.sx-csheet__grab { flex: none; display: grid; place-items: center; padding: 10px 0 12px; cursor: grab; touch-action: none; border-bottom: 1px solid var(--sx-line); }
.sx-csheet__grab:active { cursor: grabbing; }
.sx-csheet__grab span { width: 42px; height: 4px; border-radius: 4px; background: #d4d4d4; }
.sx-csheet__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px; }
.sx-cmts--sheet { max-height: none; overflow: visible; padding: 0; }
.sx-csheet__state { text-align: center; color: var(--sx-muted); margin: 28px 0; font-size: 14px; }
.sx-csheet__state[hidden] { display: none; }
.sx-csheet__form { flex: none; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--sx-line); padding: 10px 14px; background: #fff; }
.sx-csheet__form input { flex: 1; min-width: 0; border: 1px solid var(--sx-line); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 16px; outline: none; background: #fafafa; }
.sx-csheet__form input:focus { border-color: #a3a3a3; background: #fff; }
.sx-csheet__form button { border: 0; background: none; color: #0095f6; font: inherit; font-weight: 600; cursor: pointer; }
.sx-csheet__form button:disabled { opacity: .4; cursor: default; }
.sx-cmt.is-new { animation: sx-cmtin .35s ease; }
@keyframes sx-cmtin { from { opacity: 0; transform: translateY(6px); } }
html.sx-noscroll .sx-toast { z-index: 1300; }

/* «جواز SUGG.X» — stamps per governorate on profiles (same as the app) */
.sx-pp { display: block; width: 100%; margin: 16px 0 18px; padding: 12px 14px 14px; text-align: start; background: #fff; border: 1px solid var(--sx-line); border-radius: 20px; font: inherit; color: inherit; cursor: pointer; }
.sx-pp__head { display: flex; align-items: center; gap: 8px; }
.sx-pp__head b { flex: 1; font-size: 15px; color: var(--sx-ink); }
.sx-pp__head small { color: var(--sx-muted); font-size: 12px; }
.sx-pp__go { font-size: 11px; color: var(--sx-muted); }
[dir="ltr"] .sx-pp__go { transform: scaleX(-1); }
.sx-pp__row { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.sx-pp__hint { display: block; margin-top: 10px; font-size: 12px; }
.sx-pp__stamp { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-content: center; text-align: center; transform: rotate(var(--rot)); position: relative; color: var(--ink); line-height: 1.1; }
.sx-pp__stamp::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid var(--ink); opacity: .5; }
.sx-pp__stamp b { font-size: 11.5px; font-weight: 700; max-width: 54px; overflow: hidden; white-space: nowrap; }
.sx-pp__stamp small { font-size: 9px; opacity: .85; }
.sx-pp__empty { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid #d8d8d8; display: grid; place-items: center; color: #b8b8b8; font-size: 18px; }
.sx-pp__stamp.is-sm, .sx-pp__empty.is-sm { width: 58px; height: 58px; }
.sx-pp__empty.is-sm { font-size: 10px; text-align: center; padding: 4px; line-height: 1.1; }
.sx-pp__dlg { border: 0; border-radius: 24px; padding: 20px; width: min(520px, 94vw); max-height: 88vh; overflow: auto; }
.sx-pp__dlg::backdrop { background: rgba(0,0,0,.45); }
.sx-pp__dlghead { display: flex; align-items: center; gap: 10px; }
.sx-pp__dlghead b { flex: 1; font-size: 20px; color: var(--sx-ink); }
.sx-pp__dlghead span { font-weight: 700; color: var(--sx-ink); }
.sx-pp__x { border: 0; background: var(--sx-surface); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.sx-pp__all { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 14px; }

/* restaurant page tabs (menu · reviews · info) switch panes like the app */
.sx-pd__tabs--panes { justify-content: space-around; gap: 0; }
.sx-pd__tabs--panes a { flex: 1; text-align: center; font-weight: 500; }
.sx-pd__tabs--panes a:hover:not(.is-active) { border-bottom-color: transparent; }
.sx-pd__tabs--panes small { display: none; }
[data-pane][hidden] { display: none !important; }
