:root {
  --smf-bg: #f5f7fb;
  --smf-surface: #ffffff;
  --smf-surface-soft: #edf1f5;
  --smf-text: #20242a;
  --smf-muted: #626c78;
  --smf-border: rgba(32, 36, 42, 0.12);
  --smf-header: #0f4d4b;
  --smf-header-soft: #1f6a66;
  --smf-primary: #195f5b;
  --smf-primary-dark: #165551;
  --smf-accent: #bd8b2f;
  --smf-green: #2f6f5e;
  --smf-shadow: 0 18px 45px rgba(21, 25, 31, 0.12);
  --smf-shadow-soft: 0 10px 25px rgba(21, 25, 31, 0.08);
  --smf-radius: 8px;
  --smf-radius-lg: 14px;
  --smf-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --smf-display: "MedievalSharp", Georgia, serif;
}

[data-bs-theme="dark"] {
  --smf-bg: #15171b;
  --smf-surface: #20242a;
  --smf-surface-soft: #282d34;
  --smf-text: #f1f4f7;
  --smf-muted: #b4bdc8;
  --smf-border: rgba(255, 255, 255, 0.14);
  --smf-header: #082d30;
  --smf-header-soft: #124449;
  --smf-primary: #195f5b;
  --smf-primary-dark: #165551;
  --smf-accent: #ddb160;
  --smf-green: #6ab79e;
  --smf-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  --smf-shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(15, 77, 75, 0.08), transparent 240px),
    var(--smf-bg);
  color: var(--smf-text);
  font-family: var(--smf-font);
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: var(--smf-primary);
}

a:hover {
  color: var(--smf-primary-dark);
}

img {
  max-width: 100%;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--smf-header);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.site-navbar {
  min-height: 58px;
  padding: 0.12rem 0;
  background: linear-gradient(135deg, var(--smf-header), var(--smf-header-soft));
}

.site-navbar > .container {
  display: flex;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
  min-width: 0;
  color: #ffffff;
}

.site-brand:hover {
  color: #ffffff;
}

.site-logo {
  width: auto;
  height: 128px;
  margin-top: 10px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-kicker {
  color: var(--smf-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-title {
  max-width: 260px;
  color: #ffffff;
  font-family: var(--smf-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  white-space: normal;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  order: 2;
  flex: 0 0 auto;
  margin-left: 0;
}

.language-button,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.language-button img {
  display: block;
  border-radius: 999px;
}

.language-button:hover,
.language-button.active,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}

.site-navbar .navbar-toggler {
  width: 42px;
  height: 42px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(189, 139, 47, 0.28);
}

.site-navbar .navbar-collapse {
  order: 1;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
}

.site-navbar .navbar-nav {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.site-navbar .nav-link {
  position: relative;
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.site-navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Layout */
main {
  width: min(1120px, calc(100% - 2rem));
  margin: 48px auto;
}

main.container {
  padding-right: 0;
  padding-left: 0;
}

main h1,
main h2,
main h3 {
  color: var(--smf-text);
  font-weight: 800;
}

main h1 {
  margin-bottom: 0.85rem;
  font-family: var(--smf-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}

main h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

main h3 {
  font-size: 1.2rem;
}

main hr {
  width: 80px;
  height: 3px;
  margin: 0 auto 2.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--smf-primary), var(--smf-accent), var(--smf-green));
  opacity: 1;
}

main p {
  line-height: 1.75;
}

.page-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.page-intro p {
  margin: 0;
  color: var(--smf-muted);
  font-size: 1.04rem;
}

.content-panel {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--smf-border);
  border-radius: var(--smf-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 60%),
    var(--smf-surface);
  box-shadow: var(--smf-shadow-soft);
}

[data-bs-theme="dark"] .content-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--smf-surface);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #195f5b;
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  color: var(--smf-muted);
}

.detail-list strong {
  color: var(--smf-text);
}

.imagem-centro {
  display: block;
  width: min(100%, 720px);
  margin: 2rem auto 0;
  border-radius: var(--smf-radius);
  box-shadow: var(--smf-shadow);
}

.img-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.img-hover:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--smf-shadow);
  filter: saturate(1.05);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  border-color: var(--smf-primary);
  background-color: var(--smf-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--smf-primary-dark);
  background-color: var(--smf-primary-dark);
}

.form-control {
  border-color: var(--smf-primary);
  border-radius: var(--smf-radius);
  padding: 0.8rem 1rem;
  background-color: var(--smf-surface);
  color: var(--smf-text);
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--smf-primary);
}

/* Homepage */
.home-main {
  width: min(1180px, calc(100% - 2rem));
  margin-top: 34px;
}

.home-hero {
  position: relative;
  min-height: min(620px, calc(100vh - 140px));
  overflow: hidden;
  border-radius: var(--smf-radius-lg);
  box-shadow: var(--smf-shadow);
  isolation: isolate;
}

.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 14, 18, 0.78), rgba(12, 14, 18, 0.42) 52%, rgba(12, 14, 18, 0.1)),
    linear-gradient(0deg, rgba(12, 14, 18, 0.42), transparent 45%);
  content: "";
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(720px, 100%);
  min-height: inherit;
  padding: clamp(2rem, 6vw, 4.5rem);
  color: #ffffff;
}

.home-hero-content h1 {
  margin-bottom: 1rem;
  color: #ffffff;
  text-align: left;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero-content p {
  max-width: 640px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn {
  padding: 0.78rem 1.05rem;
}

.btn-hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  margin: clamp(2.25rem, 5vw, 4rem) auto;
  text-align: center;
}

.home-intro h2 {
  margin-bottom: 0.8rem;
}

.home-intro p {
  margin: 0;
  color: var(--smf-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.quick-link {
  display: flex;
  min-height: 100px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--smf-border);
  border-radius: var(--smf-radius);
  background: var(--smf-surface);
  color: var(--smf-text);
  text-decoration: none;
  box-shadow: var(--smf-shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.quick-link:hover {
  border-color: rgba(140, 32, 54, 0.35);
  color: var(--smf-text);
  transform: translateY(-4px);
  box-shadow: var(--smf-shadow);
}

.quick-link span {
  display: block;
  color: var(--smf-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-link strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
}

.quick-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(140, 32, 54, 0.1);
  color: var(--smf-primary);
}

/* Cards and content blocks */
.card {
  overflow: hidden;
  border: 1px solid var(--smf-border);
  border-radius: var(--smf-radius);
  background: var(--smf-surface);
  color: var(--smf-text);
  box-shadow: var(--smf-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(140, 32, 54, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--smf-shadow);
}

.card-img-top {
  width: 100% !important;
  height: 220px !important;
  border-radius: 0 !important;
  object-fit: cover !important;
}

.card-body {
  display: flex;
  flex: 1 !important;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem;
}

.card-title,
.card h5,
.card h6 {
  color: var(--smf-text);
  font-weight: 800;
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.content-page-header {
  margin-bottom: 1.5rem;
}

.content-page-body {
  margin-top: 3rem;
}

.page-hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--smf-radius-lg);
  box-shadow: var(--smf-shadow);
  isolation: isolate;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.page-hero-events::after {
  background:
    linear-gradient(90deg, rgba(8, 25, 29, 0.82), rgba(8, 25, 29, 0.5) 58%, rgba(8, 25, 29, 0.16)),
    linear-gradient(0deg, rgba(8, 25, 29, 0.38), transparent 48%);
}

.page-hero-news::after {
  background:
    linear-gradient(90deg, rgba(18, 24, 30, 0.84), rgba(18, 24, 30, 0.54) 56%, rgba(18, 24, 30, 0.14)),
    linear-gradient(0deg, rgba(18, 24, 30, 0.4), transparent 46%);
}

.page-hero-location::after {
  background:
    linear-gradient(90deg, rgba(9, 26, 32, 0.84), rgba(9, 26, 32, 0.56) 56%, rgba(9, 26, 32, 0.16)),
    linear-gradient(0deg, rgba(9, 26, 32, 0.38), transparent 48%);
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
}

.page-hero-body {
  width: min(720px, 100%);
}

.page-hero-content h1 {
  margin-bottom: 0.9rem;
  color: #ffffff;
  text-align: left;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.page-hero-content p {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.page-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  width: min(720px, 100%);
  margin-top: 1.5rem;
}

.page-stat {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--smf-radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.page-stat strong {
  display: block;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
}

.page-stat span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 600;
}

.content-section + .content-section {
  margin-top: 3rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--smf-border);
}

.section-heading h2 {
  margin: 0.25rem 0 0;
}

.section-heading p {
  max-width: 40rem;
  margin: 0;
  color: var(--smf-muted);
}

.content-section-title,
.secao h2 {
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--smf-text);
  font-weight: 800;
}

.content-card {
  border: 0;
  overflow: hidden;
}

.content-card-meta {
  margin-bottom: 0;
  color: var(--smf-muted);
  font-weight: 700;
}

.content-card-text {
  color: var(--smf-muted);
}

.event-card .card-body {
  gap: 0.7rem;
}

.event-card .content-card-meta {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 77, 75, 0.08);
  color: var(--smf-header);
  font-size: 0.84rem;
  font-weight: 800;
}

.event-card-copy {
  min-height: 4.5rem;
}

.event-feature-card .card-img-top {
  height: 280px !important;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.news-featured-card {
  min-height: 100%;
}

.news-featured-media {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.news-featured-body {
  gap: 0.75rem;
}

.news-featured-title {
  margin: 0;
  color: var(--smf-text);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 800;
}

.news-side-stack {
  display: grid;
  gap: 1rem;
}

.news-compact-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
}

.news-compact-media {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.news-compact-body {
  gap: 0.65rem;
}

.news-compact-title {
  margin: 0;
  color: var(--smf-text);
  font-size: 1.08rem;
  font-weight: 800;
}

.news-grid-card .card-body {
  gap: 0.65rem;
}

.content-card-title-fixed,
.titulo_noticias {
  min-height: 50px;
}

.content-card-text-fixed,
.texto_noticias {
  min-height: 135px;
}

.content-grid-highlight {
  justify-content: center;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.location-map-area {
  min-width: 0;
}

.location-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.location-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--smf-border);
  border-radius: 999px;
  background: var(--smf-surface);
  color: var(--smf-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.location-sidebar {
  min-width: 0;
}

.location-sidebar-card {
  position: sticky;
  top: 104px;
  padding: 1rem;
  border: 1px solid var(--smf-border);
  border-radius: var(--smf-radius-lg);
  background: var(--smf-surface);
  box-shadow: var(--smf-shadow-soft);
}

.location-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.location-sidebar-header h3 {
  margin: 0;
  color: var(--smf-text);
  font-size: 1.15rem;
  font-weight: 800;
}

.location-point-list {
  display: grid;
  gap: 0.75rem;
}

.location-point-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  font: inherit;
  padding: 0.95rem 1rem;
  border: 1px solid var(--smf-border);
  border-radius: var(--smf-radius);
  background: var(--smf-surface);
  color: var(--smf-text);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--smf-shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-point-card:hover,
.location-point-card.is-active {
  border-color: rgba(140, 32, 54, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--smf-shadow);
}

.location-point-card strong {
  font-size: 1rem;
  font-weight: 800;
}

.location-point-card span:last-child {
  color: var(--smf-muted);
}

.location-point-category {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--smf-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-guide-card .card-body {
  gap: 0.7rem;
}

.location-guide-title {
  margin: 0;
  color: var(--smf-text);
  font-size: 1.12rem;
  font-weight: 800;
}

/* Footer */
footer {
  margin-top: 64px;
  background: var(--smf-header);
  color: #ffffff;
}

.footer-content {
  padding: 1.25rem 0;
}

.footer-school {
  display: inline-flex;
  align-items: center;
}

#img_escola {
  width: auto;
  max-height: 72px;
}

footer .botao_topo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

footer .botao_topo:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

footer .social-icons a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--smf-accent);
  transform: translateY(-1px);
}

.scroll-top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--smf-primary);
  color: #ffffff;
  box-shadow: var(--smf-shadow);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.scroll-top-button:hover {
  background: var(--smf-primary-dark);
  transform: translateY(-2px);
}

.scroll-top-button.is-visible {
  display: inline-flex;
}

/* Map */
#mapa_leaftlet {
  width: 100%;
  min-height: 460px;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--smf-border);
  border-radius: var(--smf-radius-lg);
  box-shadow: var(--smf-shadow-soft);
}

.info.legend {
  padding: 0.85rem 1rem;
  border: 1px solid var(--smf-border);
  border-radius: var(--smf-radius);
  background: var(--smf-surface);
  color: var(--smf-text);
  box-shadow: var(--smf-shadow-soft);
  line-height: 1.5;
}

.info.legend strong {
  display: block;
  margin-bottom: 0.45rem;
}

.info.legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.info.legend .legend-item + .legend-item {
  margin-top: 0.35rem;
}

.info.legend .legend-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  flex: 0 0 1.15rem;
  font-size: 0.98rem;
  line-height: 1;
}

.info.legend .legend-symbol-castle,
.map-popup-icon-castle {
  color: #b84840;
}

.info.legend .legend-symbol-museum,
.map-popup-icon-museum {
  color: #5f6fd6;
}

.info.legend .legend-symbol-nature,
.map-popup-icon-nature {
  color: #3f8c57;
}

.info.legend .legend-symbol-archaeology,
.map-popup-icon-archaeology {
  color: #a8733f;
}

.leaflet-popup-content-wrapper {
  border-radius: 14px;
}

.leaflet-popup-content {
  min-width: 190px;
  margin: 0.75rem 0.9rem;
}

.map-popup {
  display: grid;
  gap: 0.18rem;
}

.map-popup-title {
  display: block;
  color: var(--smf-text);
  font-size: 1rem;
  line-height: 1.2;
}

.map-popup-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--smf-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.map-popup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}

/* Timeline */
.timeline-horizontal {
  position: relative;
  max-width: 1000px;
  margin: 50px auto;
  overflow: hidden;
  padding: 20px 0;
}

.scroll-container {
  display: flex;
  gap: 40px;
  padding: 10px 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.evento {
  position: relative;
  flex: 0 0 auto;
  min-width: 250px;
  padding: 15px;
  border: 1px solid var(--smf-border);
  border-radius: var(--smf-radius);
  background: var(--smf-surface);
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s, box-shadow 0.3s;
}

.evento img {
  max-width: 100%;
  border-radius: var(--smf-radius);
}

.evento:hover {
  transform: translateY(-10px);
  box-shadow: var(--smf-shadow);
}

.evento::before {
  position: absolute;
  top: -25px;
  left: 50%;
  color: var(--smf-primary);
  content: attr(data-date);
  font-weight: 800;
  transform: translateX(-50%);
}

.nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  padding: 5px 10px;
  border: none;
  border-radius: var(--smf-radius);
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 2rem;
  transform: translateY(-50%);
}

.nav.prev {
  left: 0;
}

.nav.next {
  right: 0;
}

.nav:hover {
  background-color: rgba(220, 224, 230, 0.95);
}
