:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e1d8;
  --accent: #1d5c63;
  --accent-soft: #e3eff0;
  --amber: #e08a00;
  --warn: #8a4b08;
  --warn-soft: #fbeedd;
  --ok: #1f6b3a;
  --ok-soft: #e1f2e7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
main { max-width: 1120px; margin: 0 auto; padding: 40px 20px 56px; }
a { color: var(--accent); }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 0 0 4px; }
h3 { font-size: 1.05rem; margin: 0; }
h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; }
.lead { margin: 0; color: var(--muted); }
.fine { color: var(--muted); font-size: .82rem; margin: 8px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li {
  background: var(--accent-soft); color: var(--accent);
  font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.notice {
  margin: 16px 0 0; padding: 10px 14px; border-radius: 10px;
  background: var(--warn-soft); color: var(--warn); font-size: .9rem;
}

/* Abas por evento */
.tabs {
  display: flex; gap: 8px; margin-top: 24px; padding: 10px 0;
  position: sticky; top: 0; z-index: 1100;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.tab {
  flex: 1 1 0; text-align: left; padding: 10px 14px; border-radius: 10px;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
}
.tab-title { font-size: 1rem; font-weight: 700; }
.tab-sub { font-size: .8rem; font-weight: 400; color: var(--muted); }
.tab:hover { background: var(--accent-soft); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab[aria-selected="true"] .tab-sub { color: #d6e8ea; }
.tab:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.group[hidden] { display: none; }

/* Mapa */
.map-section { margin-top: 24px; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.map-buttons { display: flex; gap: 6px; }
button, .btn {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  background: var(--card); color: var(--accent);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px;
}
button:hover, .btn:hover { background: var(--accent-soft); }
#map { height: 440px; border: 1px solid var(--line); border-radius: 12px; background: #e9eef0; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 10px 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.dot-hotel { background: var(--accent); }
.dot-off { background: #9aa0a6; }
.dot-venue { background: var(--amber); border-radius: 3px; }
.pin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.45); }
.pin-hotel { background: var(--accent); }
.pin-off { background: #9aa0a6; }
.pin-venue { width: 22px; height: 22px; border-radius: 6px; background: var(--amber); display: grid; place-items: center; color: #fff; font-size: 13px; line-height: 1; }
.leaflet-popup-content { font-size: .88rem; line-height: 1.4; }

/* Grupos e tabelas */
.group { margin-top: 32px; }
.sub { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 940px; }
th, td { text-align: left; padding: 11px 12px; vertical-align: top; }
td.hotel { min-width: 140px; }
td:last-child { min-width: 170px; }
.small .est { margin-left: 0; }
thead th {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); border-bottom: 1px solid var(--line); background: #faf9f6;
}
tbody tr + tr td { border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; white-space: nowrap; }
td.hotel { font-weight: 600; }
td.hotel a { text-decoration: none; }
td.hotel a:hover { text-decoration: underline; }
td.nota { white-space: nowrap; }
.small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.est { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: var(--warn-soft); color: var(--warn); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; vertical-align: 1px; }
.est-live { background: var(--ok-soft); color: var(--ok); }
.unavailable td { color: var(--muted); background: #faf9f6; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin: 0 4px 4px 0; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }

/* Cartões */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; scroll-margin-top: 104px; }
.card.off { opacity: .92; }
.card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.meta { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.price { text-align: right; font-weight: 700; white-space: nowrap; }
.price .small { font-weight: 400; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.shot { margin: 0; }
.shot .frame { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eceae4; display: grid; place-items: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .ph { padding: 8px; text-align: center; font-size: .78rem; color: var(--muted); }
.shot.loading .frame { background: linear-gradient(100deg, #eceae4 30%, #f6f4ef 50%, #eceae4 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.shot figcaption { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.pros, .near { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.pros li, .near li { position: relative; padding-left: 20px; margin: 4px 0; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.near li::before { content: "●"; position: absolute; left: 2px; top: 1px; font-size: .6rem; color: var(--accent); }
.watch { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.actions a { text-decoration: none; }

footer { margin-top: 44px; color: var(--muted); font-size: .85rem; }
footer p { margin: 6px 0; }

@media (max-width: 560px) {
  main { padding: 28px 14px 40px; }
  h1 { font-size: 1.4rem; }
  .cards { grid-template-columns: 1fr; }
  #map { height: 360px; }
  .tabs { gap: 6px; }
  .tab { padding: 8px 10px; }
  .tab-title { font-size: .92rem; }
  .tab-sub { font-size: .72rem; }
}
