/* Sin Gluten Seguro — mobile-first, teal palette */
:root {
  --bg: #faf6f1;
  --bg-card: #ffffff;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --line: #e7e0d8;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --green: #16a34a;
  --green-bg: #dcfce7;
  --blue: #2563eb;
  --blue-bg: #dbeafe;
  --amber: #d97706;
  --amber-bg: #fef3c7;
  --purple: #7c3aed;
  --purple-bg: #ede9fe;
  --danger: #b91c1c;
  --shadow: 0 8px 28px rgba(28, 25, 23, 0.12);
  --radius: 16px;
  --tap: 48px;
  --header-pad: env(safe-area-inset-top, 0px);
  --bottom-pad: env(safe-area-inset-bottom, 0px);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: #fff;
  padding: 0.75rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* —— Compact header —— */
.app-header {
  flex-shrink: 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: calc(0.45rem + var(--header-pad)) 0.85rem 0;
  z-index: 20;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

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

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.35);
  flex-shrink: 0;
}

.brand h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-info {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--teal-dark);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-info[aria-expanded="true"] {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.info-popover {
  background: var(--amber-bg);
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.5rem;
}
.info-popover p {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #78350f;
  font-weight: 500;
}
.info-popover .info-muted {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.75rem;
}

.search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

#search {
  flex: 1;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 0.9rem;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  outline: none;
}
#search:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

/* —— Always-visible filter chips —— */
.filters-always {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.chip-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 36px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.filter-chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.filter-chip.active .dot {
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.85);
}
.filter-chip:not(.active) {
  opacity: 0.72;
}
.filter-chip:focus-visible {
  outline: 3px solid var(--teal-soft);
  outline-offset: 1px;
}

.chip-clear {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 0.65rem;
  border: none;
  background: transparent;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.chip-clear[hidden] { display: none !important; }

.dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.green { background: var(--green); }
.dot.blue { background: var(--blue); }
.dot.amber { background: var(--amber); }
.dot.purple { background: var(--purple); }

.btn {
  min-height: var(--tap);
  border: none;
  border-radius: 12px;
  padding: 0 1rem;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-text {
  background: transparent;
  color: var(--teal-dark);
  min-height: 40px;
  width: 100%;
  margin-top: 0.15rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

.loc-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.45rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.loc-row::-webkit-scrollbar { display: none; }

.loc-row .btn-primary {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 0.85rem;
  font-size: 0.88rem;
}

.chip-loc {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.chip-loc.active, .chip-loc:focus-visible {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
  outline: none;
}

.view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  background: var(--line);
  border-radius: 12px 12px 0 0;
  padding: 0.25rem 0.25rem 0;
}

.tab {
  min-height: 42px;
  border: none;
  background: transparent;
  border-radius: 10px 10px 0 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink-soft);
  cursor: pointer;
}
.tab.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 -1px 0 var(--bg);
}

/* —— Main views —— */
#main {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view[hidden] { display: none !important; }

.view-map #map {
  flex: 1;
  min-height: 220px;
  background: #ddd;
  z-index: 1;
}

.status-line {
  margin: 0;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: rgba(250, 246, 241, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}

.view-list {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(1rem + var(--bottom-pad));
}

.place-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* —— Rich cards —— */
.place-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 0.95rem;
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.05);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  -webkit-tap-highlight-color: transparent;
}
.place-card:active { transform: scale(0.99); }
.place-card:focus-visible {
  outline: 3px solid var(--teal-soft);
  border-color: var(--teal);
}

.place-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.place-card h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 750;
}

.distance {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.place-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.cat-inline {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 550;
}

.card-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.star-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
  max-width: 100%;
}

.btn-card-reserve {
  min-height: 44px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.28);
  -webkit-tap-highlight-color: transparent;
}
.btn-card-reserve:active { transform: scale(0.98); }

.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  line-height: 1.2;
  max-width: 100%;
}
.safety-badge.dedicated_100 { background: var(--green-bg); color: #166534; }
.safety-badge.accredited { background: var(--blue-bg); color: #1e40af; }
.safety-badge.protocol_strong { background: var(--amber-bg); color: #92400e; }
.safety-badge.community { background: var(--purple-bg); color: #5b21b6; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--ink-soft);
}
.empty-state strong { display: block; color: var(--ink); margin-bottom: 0.35rem; }

/* —— Leaflet —— */
.sg-marker { background: transparent; border: none; }
.sg-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.sg-pin.dedicated_100 { background: var(--green); }
.sg-pin.accredited { background: var(--blue); }
.sg-pin.protocol_strong { background: var(--amber); }
.sg-pin.community { background: var(--purple); }

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.leaflet-popup-content {
  margin: 0.75rem 0.9rem;
  font-family: var(--font);
  font-size: 0.9rem;
}
.popup-title { font-weight: 700; margin: 0 0 0.25rem; }
.popup-open {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

/* —— Detail sheet —— */
.sheet[hidden] { display: none !important; }
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
}

.sheet-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: min(92dvh, 780px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 0.35rem 1.1rem calc(1.25rem + var(--bottom-pad));
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  animation: sheet-up 0.28s ease;
}

@keyframes sheet-up {
  from { transform: translateY(40%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-handle {
  width: 40px; height: 4px;
  border-radius: 999px;
  background: #d6d3d1;
  margin: 0.4rem auto 0.6rem;
}

.sheet-close {
  position: absolute;
  top: 0.65rem; right: 0.75rem;
  width: 44px; height: 44px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

#detail-content h2 {
  margin: 0.4rem 2.5rem 0.35rem 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.detail-address {
  margin: 0.35rem 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

.safety-explain {
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 550;
}
.safety-explain.dedicated_100 { background: var(--green-bg); color: #14532d; }
.safety-explain.accredited { background: var(--blue-bg); color: #1e3a8a; }
.safety-explain.protocol_strong { background: var(--amber-bg); color: #78350f; }
.safety-explain.community { background: var(--purple-bg); color: #4c1d95; }

.detail-notes {
  margin: 0.75rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}
.detail-notes strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.detail-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--tap);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.action-primary {
  background: var(--teal);
  color: #fff;
}
.action-secondary {
  background: var(--bg);
  color: var(--teal-dark);
  border: 1.5px solid var(--line);
}
.action-muted {
  color: var(--ink-soft);
  font-size: 0.9rem !important;
  min-height: 40px !important;
}
.action-call {
  background: var(--teal);
  color: #fff !important;
}

.cat-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.35rem;
}

.detail-stars {
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.detail-stars strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.detail-stars ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.detail-stars li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
}

/* —— In-app reserve section —— */
.reserve-section {
  margin: 1rem 0 0.5rem;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  background: #f0fdfa;
  border: 1.5px solid var(--teal-soft);
}
.reserve-section h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--teal-dark);
}

.detail-booking-hint {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.reserve-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.field-full { grid-column: 1 / -1; }

.field input,
.field textarea {
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
  outline: none;
}
.field textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.35;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.reserve-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.call-script {
  background: #fff;
  border: 1px dashed var(--teal);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.call-script strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.call-script p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}

.reserve-fallback {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* —— Toast —— */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + var(--bottom-pad));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 550;
  max-width: calc(100% - 2rem);
  box-shadow: var(--shadow);
  text-align: center;
}
.toast[hidden] { display: none !important; }

@media (min-width: 768px) {
  body { overflow: auto; }
  .app-header {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    border-radius: 0 0 16px 16px;
  }
  #main {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    height: calc(100dvh - 260px);
    min-height: 420px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: none;
  }
  .view-list { background: var(--bg); }
  .place-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .sheet-panel {
    left: 50%;
    right: auto;
    width: min(480px, 100%);
    transform: translateX(-50%);
    border-radius: 20px;
    bottom: 1.5rem;
    max-height: 85dvh;
  }
}

/* —— Redes / Instagram —— */
.filter-toggle {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1.5px dashed var(--purple);
  background: #fff;
  color: #5b21b6;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.filter-toggle.active {
  background: var(--purple);
  border-style: solid;
  color: #fff;
}
.filter-toggle:focus-visible { outline: 3px solid var(--purple-bg); outline-offset: 2px; }
.buzz-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: var(--purple-bg);
}
.community-warning {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1.5px solid var(--purple);
  background: #faf5ff;
  color: #4c1d95;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.verified-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
}
.detail-sources {
  margin: 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.detail-sources strong { display: block; margin-bottom: 0.25rem; }
.detail-sources ul { margin: 0; padding-left: 1.1rem; }
.detail-sources li { margin: 0.2rem 0; overflow-wrap: anywhere; }
.detail-sources a { color: var(--teal-dark); }
.src-type { color: var(--ink-soft); font-size: 0.82rem; }
.src-muted { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.82rem; }

.chip-row-wrap { flex-wrap: wrap; overflow-x: visible; }

.saved-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #fff4cc;
  color: #7a5a00;
  white-space: nowrap;
}
.detail-saved { margin: 0.1rem 0 0.4rem; }

/* —— Publicaciones (embeds de Instagram) —— */
.posts-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #fde7f3;
  color: #9d174d;
  white-space: nowrap;
}
.detail-posts { margin: 0.9rem 0 1rem; }
.detail-posts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.detail-posts-head h3 { margin: 0; font-size: 1.05rem; }
.posts-count { font-size: 0.8rem; color: var(--ink-soft); }
/* Fila horizontal (carrusel) de publicaciones */
.posts-row-wrap {
  --tile-w: min(62vw, 250px);
  position: relative;
  margin: 0 -1.1rem;
}
.posts-row {
  list-style: none;
  margin: 0;
  padding: 0.1rem 1.1rem 0.3rem;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.posts-row::-webkit-scrollbar { display: none; }
.posts-row::after { content: ''; flex: 0 0 0.5rem; } /* margen final para la última tarjeta */
.post-tile-li {
  flex: 0 0 var(--tile-w);
  width: var(--tile-w);
  min-width: 0;
  scroll-snap-align: start;
}
.posts-row-nav {
  position: absolute;
  /* centrado vertical sobre la miniatura (4:5) */
  top: calc(0.1rem + var(--tile-w) * 1.25 / 2);
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(28, 25, 23, 0.55);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  padding: 0 0 4px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}
.posts-row-nav.prev { left: 0.45rem; }
.posts-row-nav.next { right: 0.45rem; }
.posts-row-nav:disabled { opacity: 0; pointer-events: none; }
.posts-row-nav:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.posts-row-count {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.post-tile {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}
.post-tile:active { transform: scale(0.97); }
.post-tile:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.post-tile-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: #eee;
  overflow: hidden;
}
.post-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-tile-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
}
.post-tile-ph-icon { font-size: 1.8rem; }
.post-tile-ph-who { font-weight: 700; font-size: 0.85rem; overflow-wrap: anywhere; }
.post-tile-ph-desc {
  font-size: 0.75rem;
  line-height: 1.3;
  opacity: 0.95;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-tile-play {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.post-tile-saved {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 244, 204, 0.95);
  color: #7a5a00;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.post-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0.55rem 0.5rem;
  min-width: 0;
}
.post-tile-who {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-tile-desc {
  font-size: 0.74rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Visor a pantalla completa: embed centrado y más pequeño; navegación fuera del iframe */
.post-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 12, 0.94);
  color: #fff;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.post-viewer[hidden] { display: none; }
.post-viewer-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  min-height: 52px;
  flex: 0 0 auto;
}
.post-viewer-count {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}
.post-viewer-count:empty { display: none; }
.post-viewer-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-viewer-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.post-viewer-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 4px 14px;
}
.post-viewer-nav {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0 0 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.post-viewer-nav:active:not(:disabled) { background: rgba(255, 255, 255, 0.34); }
.post-viewer-nav:disabled { opacity: 0.2; cursor: default; }
.post-viewer-nav[hidden] { display: block; visibility: hidden; }
.post-viewer-nav:focus-visible,
.post-viewer-thumb:focus-visible { outline: 3px solid #7dd3c8; outline-offset: 2px; }
.post-viewer-body {
  position: relative;
  flex: 0 0 auto;
  /* ≤ 78% del ancho y siempre dejando sitio a los botones laterales */
  width: min(78vw, calc(100vw - 120px), 400px);
  height: min(100%, 640px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.post-viewer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.post-viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
}
.post-viewer-body.loaded .post-viewer-loading { display: none; }
.post-viewer-noembed {
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: #1a1a1a;
  color: #ddd;
  text-align: center;
  font-size: 0.85rem;
}
.post-viewer-noembed img { max-width: 100%; max-height: 75%; border-radius: 10px; }
.post-viewer-noembed-icon { font-size: 3rem; }
.post-viewer-foot {
  flex: 0 0 auto;
  padding: 0.2rem 1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.post-viewer-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #e5e5e5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-viewer-desc:empty { display: none; }
.post-viewer-ig { color: #7dd3c8; font-weight: 600; font-size: 0.85rem; text-decoration: none; min-height: 30px; display: inline-flex; align-items: center; align-self: flex-start; }
.post-viewer-thumbs {
  display: flex;
  justify-content: safe center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 2px;
  scrollbar-width: none;
}
.post-viewer-thumbs::-webkit-scrollbar { display: none; }
.post-viewer-thumb {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #333;
  opacity: 0.55;
  cursor: pointer;
}
.post-viewer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-viewer-thumb.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}
.post-viewer-thumb.current { opacity: 1; border-color: #fff; }
.post-viewer-thumb-play {
  position: absolute;
  right: 3px;
  top: 1px;
  font-size: 0.6rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Tira de miniaturas en la lista */
.posts-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  cursor: pointer;
  width: max-content;
  max-width: 100%;
  border-radius: 10px;
}
.posts-strip:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.posts-strip-item {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 9px;
  overflow: hidden;
  background: #eee;
  border: 1px solid var(--line);
}
.posts-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.posts-strip-item.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}
.posts-strip-play {
  position: absolute;
  right: 3px;
  top: 2px;
  font-size: 0.65rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.posts-strip-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0 0.3rem;
}


/* Evita que el gesto horizontal del visor dispare "atrás" del navegador */
html.viewer-open,
html.viewer-open body { overscroll-behavior: none; }
.post-viewer,
.post-viewer-bar,
.post-viewer-stage,
.post-viewer-foot,
.post-viewer-nav,
.post-viewer-thumb { touch-action: pan-y; }
.post-viewer-thumbs { touch-action: pan-x pan-y; overscroll-behavior-x: contain; }

/* —— Aviso de instalación (PWA) —— */
.info-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.info-install { font-weight: 700; }
.install-banner {
  position: fixed;
  left: 0.6rem;
  right: 0.6rem;
  bottom: calc(0.6rem + env(safe-area-inset-bottom));
  z-index: 120; /* por encima de la ficha (50–60), por debajo del visor (200) */
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.85rem 0.9rem 0.6rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(28, 25, 23, 0.28);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.install-banner.show { transform: none; opacity: 1; }
.install-banner[hidden] { display: none; }
html.viewer-open .install-banner { display: none; }
.install-banner.ib-ios-ipad { top: calc(0.6rem + env(safe-area-inset-top)); bottom: auto; }
.ib-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; background: var(--bg); }
.ib-body { flex: 1 1 auto; min-width: 0; }
.ib-title { margin: 0 0 0.2rem; font-weight: 800; font-size: 1rem; }
.ib-text { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--ink-soft); }
.ib-text strong { color: var(--ink); }
.ib-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  vertical-align: -0.45em;
  border-radius: 6px;
  background: #e8f4f3;
  color: #0a66c2;
}
.ib-ico { width: 1.15em; height: 1.15em; display: block; }
.ib-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.4rem; margin-top: 0.45rem; }
.ib-install { min-height: 44px; padding: 0 1.3rem; }
.ib-later { min-height: 44px; }
.ib-pointer {
  position: absolute;
  left: 50%;
  bottom: -1.9rem;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: #0a66c2;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
  animation: ib-bounce 1.2s ease-in-out infinite;
  pointer-events: none;
}
.install-banner.ib-ios { bottom: calc(2.3rem + env(safe-area-inset-bottom)); }
@keyframes ib-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) {
  .install-banner, .ib-pointer { transition: none; animation: none; }
}

/* —— Reseñas de Google (celíacos) — v16: aspecto de tarjeta de Google Maps —— */
.reviews-warn-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  white-space: nowrap;
}
.gr-section {
  margin: 0.9rem 0 1rem;
  font-family: Roboto, 'Google Sans', Arial, sans-serif;
  color: #202124;
}
.gr-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
.gr-title-row h3 { margin: 0; font-size: 1.05rem; font-family: inherit; }
.gr-brand { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.gr-g { display: block; }
.gr-wordmark { font-family: 'Google Sans', 'Product Sans', Roboto, Arial, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: -0.2px; }
.gr-summary { display: flex; align-items: center; gap: 12px; margin: 0 0 0.7rem; }
.gr-avg { font-size: 44px; line-height: 1; font-weight: 400; color: #202124; }
.gr-summary-meta { display: flex; flex-direction: column; gap: 4px; }
.gr-summary-count { font-size: 13px; color: #70757a; }
.gr-summary-extra { margin-left: auto; text-align: right; font-size: 12px; line-height: 18px; color: #70757a; }
.gr-all { color: #1a73e8; text-decoration: none; font-weight: 500; }
.gr-stars { color: #fbbc04; font-size: 14px; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.gr-stars .off { color: #dadce0; }
.gr-stars.lg { font-size: 17px; }
.reviews-row-wrap { --tile-w: min(84vw, 320px); }
.reviews-row { align-items: flex-start; padding-top: 2px; padding-bottom: 8px; }
.review-card-li { flex: 0 0 var(--tile-w); scroll-snap-align: start; list-style: none; display: flex; }
.gr-card {
  flex: 1;
  min-height: 282px; /* tarjetas plegadas alineadas; la desplegada crece sola */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 12px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
  text-align: left;
  font-family: Roboto, 'Google Sans', Arial, sans-serif;
}
.gr-card-head { display: flex; align-items: center; gap: 12px; }
.gr-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}
.gr-who { display: flex; flex-direction: column; min-width: 0; }
.gr-name { font-size: 14px; line-height: 20px; font-weight: 500; color: #202124; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-sub { font-size: 12px; line-height: 16px; color: #70757a; }
.gr-rating { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; }
.gr-date { font-size: 12px; color: #70757a; }
.gr-pill { align-self: flex-start; font-size: 11px; line-height: 16px; font-weight: 500; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.gr-pill.warn { background: #fce8e6; color: #b3261e; }
.gr-pill.pos { background: #e6f4ea; color: #137333; }
.gr-text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #3c4043;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.gr-text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
.gr-text mark { background: #fef7e0; color: inherit; font-weight: 500; padding: 0 1px; border-radius: 2px; }
.gr-more {
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 2px 0 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1a73e8;
  cursor: pointer;
}
.gr-more[hidden] { display: none; }
.gr-link { margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 500; color: #1a73e8; text-decoration: none; }
.gr-link:hover, .gr-all:hover, .gr-more:hover { text-decoration: underline; }
.reviews-row-wrap .posts-row-nav { top: calc(50% - 4px); }
@media (min-width: 768px) {
  .reviews-row-wrap { --tile-w: 300px; }
}

/* —— Valoración de la app / «en duda» — v17 —— */
.safety-k { font-weight: 700; margin-right: 0.15rem; opacity: 0.8; }
.trust-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: 0.55rem 0 0.25rem; font-size: 0.9rem; }
.trust-k { font-weight: 600; color: var(--ink-soft); }
.trust-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.trust-badge.muy_fiable { background: #15803d; color: #fff; }
.trust-badge.fiable { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.trust-badge.con_dudas { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.trust-badge.riesgo { background: #b91c1c; color: #fff; }
.trust-why { margin: 0.1rem 0 0.4rem; font-size: 0.82rem; line-height: 1.4; color: var(--ink-soft); }
.doubt-box {
  margin: 0.35rem 0 0.6rem;
  padding: 0.7rem 0.85rem;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  color: #78350f;
}
.doubt-title { margin: 0 0 0.35rem; font-weight: 800; font-size: 0.95rem; color: #92400e; }
.doubt-box ul { margin: 0; padding-left: 1.1rem; }
.doubt-box li { font-size: 0.86rem; line-height: 1.42; margin-bottom: 0.3rem; }
.doubt-confirm { margin: 0.35rem 0 0; font-weight: 700; font-size: 0.86rem; }
.doubt-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
  white-space: nowrap;
}
.info-trust { margin: 0.4rem 0 0.5rem; padding-top: 0.45rem; border-top: 1px solid #fcd34d; }
.info-trust-title { font-weight: 800 !important; font-size: 0.88rem !important; margin-bottom: 0.3rem !important; }
.info-trust .trust-badge { font-size: 0.7rem; padding: 0.22rem 0.45rem; margin: 0 0.15rem 0.2rem 0; }

/* —— v18: Reservas con el sistema real del local —— */
.rsv-provider { margin: 0 0 0.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.rsv-badge {
  display: inline-flex; align-items: center; padding: 0.25rem 0.6rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; background: var(--teal); color: #fff;
}
.rsv-badge.phone, .rsv-badge.whatsapp { background: #fff; color: var(--teal-dark); border: 1.5px solid var(--teal); }
.rsv-badge.whatsapp { color: #128c4b; border-color: #25d366; }
.rsv-badge.none { background: #f5f5f4; color: var(--ink-soft); border: 1px solid var(--line); }
.rsv-embed-tag { font-size: 0.75rem; font-weight: 600; color: var(--teal-dark); background: var(--teal-soft); padding: 0.2rem 0.5rem; border-radius: 999px; }
.rsv-none { margin: 0 0 0.6rem; font-weight: 650; color: var(--ink); }
.rsv-stepper { display: flex; align-items: stretch; gap: 0.4rem; }
.rsv-stepper input { flex: 1 1 auto; min-width: 0; text-align: center; }
.rsv-step {
  flex: 0 0 48px; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  font-size: 1.35rem; font-weight: 700; color: var(--teal-dark); cursor: pointer;
}
.rsv-step:active { transform: scale(0.96); }
.rsv-note-box {
  background: #fff; border: 1px dashed var(--teal); border-radius: 12px; padding: 0.7rem 0.8rem; margin-bottom: 0.75rem;
}
.rsv-note-box strong {
  display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 0.35rem;
}
.rsv-note-box p { margin: 0 0 0.5rem; font-size: 0.9rem; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.rsv-note-box p:last-child { margin-bottom: 0; }
.rsv-note-box .btn-sm, .rsv-frame-note .btn-sm { min-height: 36px; padding: 0.35rem 0.8rem; font-size: 0.85rem; width: auto; }
.rsv-small { margin: -0.2rem 0 0; font-size: 0.8rem; line-height: 1.35; color: var(--ink-soft); }
.rsv-link { font-size: 0.9rem; font-weight: 600; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.btn-wa { background: #25d366 !important; border-color: #25d366 !important; color: #06381c !important; }
.rsv-honest { margin: 0.75rem 0 0; font-size: 0.78rem; line-height: 1.35; color: var(--ink-soft); }

.rsv-frame-sheet {
  position: fixed; inset: 0; z-index: 70; background: #fff; display: flex; flex-direction: column;
  padding-top: var(--header-pad); padding-bottom: var(--bottom-pad);
}
.rsv-frame-head {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.6rem 0.55rem 0.9rem; border-bottom: 1px solid var(--line);
}
.rsv-frame-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rsv-frame-title strong { font-size: 1rem; color: var(--teal-dark); }
.rsv-frame-title span { font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsv-frame-ext, .rsv-frame-close {
  flex: 0 0 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.3rem; text-decoration: none; cursor: pointer;
}
.rsv-frame-note { padding: 0.5rem 0.9rem; background: #f0fdfa; border-bottom: 1px solid var(--teal-soft); }
.rsv-frame-note p { margin: 0 0 0.3rem; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }
.rsv-frame-note-row { display: flex; gap: 0.5rem; align-items: center; }
.rsv-frame-note-text {
  flex: 1 1 auto; min-width: 0; font-size: 0.8rem; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rsv-frame { flex: 1 1 auto; width: 100%; border: 0; min-height: 0; background: #fff; }
.rsv-frame-foot { margin: 0; padding: 0.4rem 0.9rem; font-size: 0.72rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .rsv-frame-sheet { inset: 4vh auto 4vh 50%; width: min(560px, 94vw); transform: translateX(-50%); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
}
