:root {
  --bg: #061f2f;
  --bg-soft: #0b2f45;
  --card: #ffffff;
  --text: #09202f;
  --accent: #28a745;
  --accent-2: #ffb703;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f5f8fa;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: relative;
  top: auto;
  z-index: auto;
  background: rgba(6, 31, 47, 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-sticky-chrome {
  position: sticky;
  top: 0;
  z-index: 10050;
  isolation: isolate;
}

.site-sticky-chrome .top,
.site-sticky-chrome .topbar {
  position: relative;
  top: auto;
  z-index: auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar h1 {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
}

.topbar nav {
  display: flex;
  gap: 18px;
}

.topbar a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #025d92, #0b6e4f);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

/* ===== Hero slider ===== */
.home-hero-slider {
  --hero-speed: 700ms;
  --hero-overlay: 0.45;
  --hero-height: 520px;
  min-height: var(--hero-height);
}

.home-hero-slider.hero-h-sm {
  --hero-height: 340px;
}

.home-hero-slider.hero-h-md {
  --hero-height: 440px;
}

.home-hero-slider.hero-h-lg {
  --hero-height: 560px;
}

.home-hero-slider.hero-h-full {
  --hero-height: 100vh;
}

.home-hero-slider .hero-slides {
  position: absolute;
  inset: 0;
}

.home-hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  will-change: opacity, transform;
}

.home-hero-slider .hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #08415c;
}

.home-hero-slider .hero-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 22, 34, calc(var(--slide-overlay, var(--hero-overlay)) * 0.55)),
    rgba(4, 22, 34, var(--slide-overlay, var(--hero-overlay)))
  );
  z-index: 1;
}

.home-hero-slider .hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-align-left {
  text-align: left;
  margin-right: auto;
}

.hero-align-center {
  text-align: center;
  margin-inline: auto;
}

.hero-align-right {
  text-align: right;
  margin-left: auto;
}

/* transições */
.hero-tr-fade .hero-slide {
  opacity: 0;
  transition: opacity var(--hero-speed) ease;
}

.hero-tr-fade .hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-tr-zoom .hero-slide {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity var(--hero-speed) ease, transform var(--hero-speed) ease;
}

.hero-tr-zoom .hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-tr-slide .hero-slide {
  transform: translateX(100%);
  transition: transform var(--hero-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tr-slide .hero-slide.is-active {
  transform: translateX(0);
  z-index: 2;
}

.hero-tr-slide .hero-slide.is-prev {
  transform: translateX(-100%);
  z-index: 1;
}

/* Ken Burns */
.home-hero-slider.hero-kenburns .hero-slide.is-active .hero-slide-bg {
  animation: heroKenBurns 14s ease-out forwards;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

/* conteúdo */
.home-hero-slider .hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: inherit;
}

.hero-align-center .hero-actions {
  justify-content: center;
}

.hero-align-right .hero-actions {
  justify-content: flex-end;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-btn-primary {
  background: #ffb703;
  color: #06202f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.hero-btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* controles */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(6, 32, 47, 0.42);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
  background: rgba(6, 32, 47, 0.72);
}

.hero-nav-prev {
  left: 16px;
}

.hero-nav-next {
  right: 16px;
}

.hero-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.hero-counter {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 4;
}

.hero-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #ffb703;
}

.home-hero-slider:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: -3px;
}

@media (max-width: 640px) {
  .home-hero-slider {
    --hero-height: 380px;
  }

  .hero-nav {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slider .hero-slide,
  .home-hero-slider .hero-slide-bg {
    transition: none !important;
    animation: none !important;
  }
}

.home-sec-bg-dark {
  background: #0b2f45;
  color: #e8eef2;
}

.home-sec-bg-accent {
  background: linear-gradient(120deg, #e8f5ef, #e7f1f8);
}

.home-sec-bg-transparent {
  background: transparent;
}

.home-sec-pad-sm {
  padding-top: 24px;
  padding-bottom: 24px;
}

.home-sec-pad-md {
  padding-top: 40px;
  padding-bottom: 40px;
}

.home-sec-pad-lg {
  padding-top: 64px;
  padding-bottom: 64px;
}

.home-sec-pad-xl {
  padding-top: 96px;
  padding-bottom: 96px;
}

.home-sec-pad-none,
.home-sec-pad-custom {
  padding-top: 0;
  padding-bottom: 0;
}

/* Ganha do .section { padding: 40px 0 18px } */
.section.home-sec.home-sec-pad-sm {
  padding-top: 24px;
  padding-bottom: 24px;
}

.section.home-sec.home-sec-pad-md {
  padding-top: 40px;
  padding-bottom: 40px;
}

.section.home-sec.home-sec-pad-lg {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section.home-sec.home-sec-pad-xl {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section.home-sec.home-sec-pad-none,
.section.home-sec.home-sec-pad-custom {
  padding-top: 0;
  padding-bottom: 0;
}

.home-sec {
  --home-block-gap: 18px;
  width: 100%;
}

.home-sec-inner {
  width: 100%;
}

.home-sec-inner-boxed {
  width: min(860px, 92%);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.home-sec-inner-narrow {
  width: min(640px, 92%);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.home-sec-inner-full {
  width: 100%;
  max-width: none;
  padding-left: clamp(12px, 3vw, 28px);
  padding-right: clamp(12px, 3vw, 28px);
}

/* legado: seções antigas ainda com .container / .home-sec-full no próprio section */
.home-sec.container {
  width: min(860px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.home-sec-full {
  width: 100%;
  padding-left: clamp(12px, 3vw, 28px);
  padding-right: clamp(12px, 3vw, 28px);
}

.home-block {
  margin-bottom: var(--home-block-gap, 18px);
}

.home-sec > .home-block:last-child,
.home-sec .home-block:last-child,
.home-sec-inner > .home-block:last-child {
  margin-bottom: 0;
}

.home-block-cta {
  text-align: center;
  padding: 28px 16px;
}

.home-cta-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #025d92;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.home-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.home-columns {
  display: grid;
}

.home-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.home-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 31, 47, 0.55), rgba(11, 47, 69, 0.4));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  color: #fff;
  text-align: center;
  max-width: 780px;
  padding: 40px 0;
  z-index: 2;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero p {
  margin: 0 auto 16px;
  line-height: 1.5;
}

button {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: #0ea5e9;
}
.btn-link {
  display: inline-block;
  text-decoration: none;
  background: #f59e0b;
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
}

.btn-danger {
  background: #dc2626;
}

.btn-ghost {
  background: transparent;
  color: #103248;
  border: 1px solid #b9c7d3;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-status {
  color: #e2efff;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.section {
  padding: 40px 0 18px;
}

.section-header h3 {
  margin-bottom: 6px;
}

.section-header p {
  margin-top: 0;
  color: #4b6475;
}

/* Título de seção configurável no Home Builder */
.section-header h2,
.section-header h3,
.section-header h4 {
  font-size: var(--home-title-size, 24px);
  font-weight: var(--home-title-weight, 700);
  text-transform: var(--home-title-transform, none);
  color: var(--home-title-color, #0b2f45);
  margin-top: 0;
}

.home-title-size-sm {
  --home-title-size: 18px;
}

.home-title-size-md {
  --home-title-size: 24px;
}

.home-title-size-lg {
  --home-title-size: 32px;
}

.home-title-size-xl {
  --home-title-size: 40px;
}

.home-title-align-left {
  text-align: left;
}

.home-title-align-center {
  text-align: center;
}

.home-title-align-right {
  text-align: right;
}

.home-title-divider {
  border-bottom: 2px solid rgba(11, 47, 69, 0.14);
  padding-bottom: 10px;
}

.home-sec-bg-dark .section-header h2,
.home-sec-bg-dark .section-header h3,
.home-sec-bg-dark .section-header h4 {
  color: var(--home-title-color, #f2f8fc);
}

.home-sec-bg-dark .section-header p {
  color: #c6d8e4;
}

.home-sec-bg-dark .home-title-divider {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d9e2ea;
  box-shadow: 0 8px 20px rgba(9, 32, 47, 0.08);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card .content {
  padding: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf6ed;
  color: #127032;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag-kind-ponto_cultura {
  background: #dbeafe;
  color: #1d4ed8;
}

.tag-kind-pontao {
  background: #fef3c7;
  color: #b45309;
}

.tag-kind-espaco {
  background: #eaf6ed;
  color: #127032;
}

.place-kind-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.place-kind-filter {
  border: 1px solid rgba(6, 31, 47, 0.15);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.place-kind-filter.is-active {
  background: #0d5c3d;
  border-color: #0d5c3d;
  color: #fff;
}

.grid-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.grid-pagination.hidden {
  display: none;
}

.grid-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(6, 31, 47, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #0b2f45;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.grid-page-btn:hover:not(:disabled) {
  border-color: #28a745;
  background: #f0fdf4;
}

.grid-page-btn.is-active {
  background: #0d5c3d;
  border-color: #0d5c3d;
  color: #fff;
}

.grid-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.grid-page-meta {
  margin-left: auto;
  color: #4b6475;
  font-size: 0.85rem;
}

/* ===== "Ver todos" (home) e página de agentes ===== */
.section-see-all {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid #0d5c3d;
  border-radius: 999px;
  background: #fff;
  color: #0d5c3d;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.see-all-link:hover {
  background: #0d5c3d;
  color: #fff;
}

.agents-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
}

.agents-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
}

.agents-search-icon {
  position: absolute;
  left: 14px;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0.6;
}

.agents-search input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid rgba(6, 31, 47, 0.16);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.agents-search input:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.agents-role-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agents-role-filter {
  border: 1px solid rgba(6, 31, 47, 0.15);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.agents-role-filter.is-active {
  background: #0d5c3d;
  border-color: #0d5c3d;
  color: #fff;
}

.agents-count {
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.page-back-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
  padding-top: 8px;
}

.page-back-wrap.hidden {
  display: none;
}

.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-back-primary {
  background: #0d5c3d;
  border-color: #0d5c3d;
  color: #fff;
}

.page-back-primary:hover {
  background: #0a4a31;
}

.page-back-secondary {
  background: #fff;
  border-color: #0d5c3d;
  color: #0d5c3d;
}

.page-back-secondary:hover {
  background: #0d5c3d;
  color: #fff;
}

.page-back-outline {
  background: transparent;
  border-color: rgba(6, 31, 47, 0.22);
  color: #0b2f45;
}

.page-back-outline:hover {
  border-color: #0d5c3d;
  color: #0d5c3d;
  background: #f0fdf4;
}

@media (max-width: 900px) {
  #pointsGrid[data-columns="4"],
  #pointsGrid[data-columns="3"],
  #agentsGrid[data-columns="4"],
  #agentsGrid[data-columns="3"],
  #eventsGrid[data-columns="4"],
  #eventsGrid[data-columns="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  #pointsGrid,
  #agentsGrid,
  #eventsGrid {
    grid-template-columns: 1fr !important;
  }

  .grid-page-meta {
    width: 100%;
    margin-left: 0;
  }
}

.point-modal-kind {
  margin: 0 0 10px;
}

.agents-grid .agent-card {
  display: flex;
  flex-direction: column;
}

.agent-card-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 0;
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, #1a3a52, #0d2740);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-meta h4 {
  margin: 4px 0 2px;
  font-size: 1.05rem;
}

.agent-handle {
  margin: 0;
  font-size: 0.82rem;
  color: #5a6f7e;
}

.agent-card .content p {
  margin: 0 0 8px;
  color: #3d5160;
  line-height: 1.45;
}

.agent-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b6e4f;
  text-decoration: none;
}

.agent-link:hover {
  text-decoration: underline;
}

.agent-area {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0b6e4f;
}

.agent-open-profile {
  display: inline-block;
  margin-left: 10px;
  cursor: pointer;
}

.agent-card[data-username]:focus-visible {
  outline: 2px solid #025d92;
  outline-offset: 2px;
}

.agent-profile-hero {
  position: relative;
  margin: -4px -4px 0;
}

.agent-profile-cover {
  height: 140px;
  background: linear-gradient(135deg, #0d2740 0%, #025d92 55%, #0b6e4f 100%);
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
}

.agent-profile-hero-body {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding: 0 16px 8px;
  margin-top: -42px;
  position: relative;
}

.agent-avatar-xl {
  width: 96px;
  height: 96px;
  font-size: 2rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(9, 32, 47, 0.18);
}

.agent-profile-hero-meta {
  padding-bottom: 6px;
  min-width: 0;
}

.agent-profile-name {
  margin: 4px 0 2px;
  font-size: 1.25rem;
  color: #0f2f44;
}

.agent-profile-body {
  padding-top: 8px;
}

.agent-profile-layout {
  display: grid;
  gap: 20px;
}

.agent-profile-layout.has-aside {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
}

.agent-profile-main {
  min-width: 0;
}

.agent-profile-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
  border-radius: 14px;
  background: #f4f7fa;
  border: 1px solid #e2e8f0;
}

.agent-aside-section {
  margin: 0;
}

.agent-aside-section h4 {
  margin-top: 0;
}

.agent-aside-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-side-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8eef3;
}

.agent-side-card img,
.agent-side-card .agent-mini-ph {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #dbe4ec;
}

.agent-side-card strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}

.agent-side-card p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #4b6475;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .agent-profile-layout.has-aside {
    grid-template-columns: 1fr;
  }
}

.agent-profile-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.agent-profile-dl > div {
  display: grid;
  gap: 2px;
}

.agent-profile-dl dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.agent-profile-dl dd {
  margin: 0;
  color: #1e293b;
  line-height: 1.45;
}

.agent-mini-grid {
  display: grid;
  gap: 10px;
}

.agent-mini-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.agent-mini-card img,
.agent-mini-ph {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #dbe4ec;
}

.agent-mini-card strong {
  display: block;
  margin: 4px 0 2px;
  color: #0f2f44;
}

.agent-mini-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
}

.agent-profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.agent-avatar-lg {
  width: 84px;
  height: 84px;
  font-size: 1.8rem;
}

.agent-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.agent-contact-list a {
  color: #0b6e4f;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.agent-contact-list a:hover {
  text-decoration: underline;
}

.event-card img {
  height: 140px;
}

.event-when {
  margin: 4px 0 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b6e4f;
}

.event-place {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #5a6f7e;
}

.posts {
  display: grid;
  gap: 12px;
}

.post-form {
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  display: grid;
  gap: 10px;
}

.post-form textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 8px;
  border: 1px solid #c7d2dc;
  padding: 10px;
  font: inherit;
}

.post {
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 12px;
  padding: 14px;
}

.post .meta {
  font-size: 0.86rem;
  color: #516978;
}

.reactions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.reaction {
  background: #ecf3f7;
  color: #113247;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.footer {
  margin-top: 40px;
  background: var(--bg);
  color: #dbeafe;
  padding: 24px 0;
  text-align: center;
}

.footer p {
  margin: 0 0 8px;
}

.footer p:last-child {
  margin-bottom: 0;
}

.footer a,
.footer a:link,
.footer a:visited {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover,
.footer a:focus-visible {
  color: #fff;
}

.footer-version {
  font-variant-numeric: tabular-nums;
  color: #bfdbfe;
}

.footer-credit {
  font-size: 0.9rem;
  color: #9fb6c9;
}

/* Acima do Leaflet (panes ~400–700) e de outros overlays */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(3, 15, 24, 0.65);
  padding: 16px;
}

.modal.point-modal {
  z-index: 10001;
}

.point-modal-box {
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.point-modal-header {
  padding: 16px 16px 0;
  flex-shrink: 0;
}

.point-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  padding-right: 8px;
}

.point-modal-body {
  padding: 0 0 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.point-modal-cover {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  background: #ecf3f7;
}

.point-modal-cover img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.point-modal-inner {
  padding: 16px 16px 0;
}

.point-modal-logo-wrap {
  margin-bottom: 12px;
}

.point-modal-logo {
  max-height: 64px;
  max-width: 160px;
  object-fit: contain;
}

.point-modal-short {
  margin: 0 0 10px;
  color: #516978;
  font-size: 1rem;
}

.point-modal-full {
  margin-bottom: 16px;
  line-height: 1.55;
  color: #09202f;
}

.point-modal-section {
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.point-modal-section h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #0b2f45;
}

.point-modal-section p {
  margin: 0 0 6px;
  line-height: 1.5;
}

.point-modal-section a {
  color: #0ea5e9;
  font-weight: 700;
}

.point-modal-user {
  color: #516978;
  font-weight: 600;
}

.point-gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.point-gal-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f4f8;
}

.point-gal-item img,
.point-gal-item video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.point-gal-item figcaption {
  font-size: 0.78rem;
  color: #516978;
  padding: 6px 8px;
}

.modal-box {
  width: min(900px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-form {
  border: 1px solid #d9e2ea;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.auth-form input {
  border: 1px solid #c7d2dc;
  border-radius: 8px;
  padding: 8px;
  font: inherit;
}

.auth-msg {
  min-height: 20px;
  color: #0f4f20;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
}

.auth-switch {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #4b6475;
}

.linkish {
  background: none;
  border: none;
  padding: 0;
  color: #0ea5e9;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.modal-box.auth-login-only .auth-grid,
#homeLoginFormsHost.auth-login-only .auth-grid {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.modal-box.auth-login-only #registerForm,
.modal-box.auth-login-only #forgotForm,
.modal-box.auth-login-only #resetForm,
#homeLoginFormsHost.auth-login-only #registerForm,
#homeLoginFormsHost.auth-login-only #forgotForm,
#homeLoginFormsHost.auth-login-only #resetForm {
  display: none !important;
}

.modal-box.auth-register-only .auth-grid,
#homeLoginFormsHost.auth-register-only .auth-grid {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.modal-box.auth-forgot-only .auth-grid,
.modal-box.auth-reset-only .auth-grid,
#homeLoginFormsHost.auth-forgot-only .auth-grid,
#homeLoginFormsHost.auth-reset-only .auth-grid {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.modal-box.auth-forgot-only #loginForm,
.modal-box.auth-forgot-only #registerForm,
.modal-box.auth-forgot-only #resetForm,
#homeLoginFormsHost.auth-forgot-only #loginForm,
#homeLoginFormsHost.auth-forgot-only #registerForm,
#homeLoginFormsHost.auth-forgot-only #resetForm {
  display: none !important;
}

.modal-box.auth-forgot-only #forgotForm,
#homeLoginFormsHost.auth-forgot-only #forgotForm {
  display: grid !important;
}

.modal-box.auth-reset-only #loginForm,
.modal-box.auth-reset-only #registerForm,
.modal-box.auth-reset-only #forgotForm,
#homeLoginFormsHost.auth-reset-only #loginForm,
#homeLoginFormsHost.auth-reset-only #registerForm,
#homeLoginFormsHost.auth-reset-only #forgotForm {
  display: none !important;
}

.modal-box.auth-reset-only #resetForm,
#homeLoginFormsHost.auth-reset-only #resetForm {
  display: grid !important;
}

.auth-form-forgot.hidden,
.auth-form-reset.hidden,
#forgotForm[hidden],
#resetForm[hidden] {
  display: none !important;
}

.auth-hint {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #4b6475;
  line-height: 1.4;
}

#homeLoginFormsHost .auth-hint {
  color: var(--login-muted, #4b6475);
}

body.auth-register-disabled #registerForm,
body.auth-register-disabled #btnShowRegister,
body.auth-register-disabled .auth-switch-register {
  display: none !important;
}

body.auth-register-disabled #authGrid,
body.auth-register-disabled #homeLoginFormsHost .auth-grid {
  grid-template-columns: 1fr;
  max-width: 420px;
}

/* Home modo somente login */
body.home-mode-login .topbar nav,
body.home-mode-login #fichaBanner {
  display: none !important;
}

body.home-mode-login .footer {
  margin-top: 0;
  background: #062033;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.home-mode-login .footer a {
  color: #9fd4f5;
}

body.home-mode-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--login-bg-color, #062033);
  background-image: var(--login-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  --login-font: "Figtree", "Segoe UI", sans-serif;
  --login-display: "Fraunces", Georgia, serif;
  --login-ink: #0b2c3d;
  --login-muted: #5a7384;
  --login-panel: #f6f8f5;
  --login-brand: #025d92;
  --login-accent: #1f8f4e;
  --login-line: rgba(11, 44, 61, 0.12);
  --login-input-bg: #fff;
  --login-input-border: #c9d5de;
  font-family: var(--login-font);
}

body.home-mode-login #homeRoot {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.home-mode-login .home-cms-mount {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vw, 28px);
  min-height: 0;
}

body.home-mode-login .topbar {
  background: rgba(6, 32, 51, 0.88);
  backdrop-filter: blur(10px);
}

body.home-mode-login .topbar h1 {
  font-family: var(--login-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-login-screen {
  flex: none;
  width: min(var(--login-card-w, 1120px), 100%);
  height: min(var(--login-card-h, 680px), calc(100vh - 140px));
  display: grid;
  grid-template-columns: var(--login-visual-fr, 1fr) var(--login-form-fr, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--login-panel);
  box-shadow: 0 24px 64px rgba(2, 18, 28, 0.28);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.home-login-screen.is-ready {
  opacity: 1;
  transform: none;
}

/* Tamanho geral do card */
.home-login-screen.login-size-sm,
html.login-size-sm .home-login-screen {
  --login-card-w: 900px;
  --login-card-h: 540px;
}

.home-login-screen.login-size-md,
html.login-size-md .home-login-screen {
  --login-card-w: 1040px;
  --login-card-h: 620px;
}

.home-login-screen.login-size-lg,
html.login-size-lg .home-login-screen {
  --login-card-w: 1180px;
  --login-card-h: 700px;
}

.home-login-screen.login-size-xl,
html.login-size-xl .home-login-screen {
  --login-card-w: 1360px;
  --login-card-h: 800px;
}

/* Proporção do bloco da imagem */
.home-login-screen.login-visual-narrow,
html.login-visual-narrow .home-login-screen {
  --login-visual-fr: 0.78fr;
  --login-form-fr: 1.22fr;
}

.home-login-screen.login-visual-equal,
html.login-visual-equal .home-login-screen {
  --login-visual-fr: 1fr;
  --login-form-fr: 1fr;
}

.home-login-screen.login-visual-wide,
html.login-visual-wide .home-login-screen {
  --login-visual-fr: 1.4fr;
  --login-form-fr: 0.9fr;
}

.home-login-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #0b3550;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.home-login-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-login-screen.is-ready .home-login-visual img {
  transform: scale(1);
}

.home-login-visual-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 55%, rgba(6, 32, 51, 0.18) 100%);
  opacity: 0.65;
}

.home-login-panel {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--login-panel);
  border: none;
  border-radius: 0;
  padding: clamp(22px, 3.2vw, 42px);
  box-shadow: none;
  overflow: auto;
  color: var(--login-ink);
}

.home-login-panel-inner {
  width: min(100%, 420px);
  margin: 0 auto;
}

.home-login-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--login-muted);
}

.home-login-brand {
  margin: 0 0 8px;
  font-family: var(--login-display);
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--login-brand);
}

.home-login-panel h2 {
  margin: 0 0 8px;
  font-family: var(--login-font);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--login-ink);
}

.home-login-lead {
  margin: 0 0 22px;
  max-width: 34ch;
  color: var(--login-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

#homeLoginFormsHost .auth-grid {
  margin-top: 4px;
  grid-template-columns: 1fr;
  max-width: 100%;
  gap: 0;
}

#homeLoginFormsHost .auth-msg {
  margin-bottom: 10px;
  min-height: 0;
}

#homeLoginFormsHost .auth-form {
  border: none;
  border-radius: 0;
  padding: 0;
  gap: 10px;
  background: transparent;
}

#homeLoginFormsHost .auth-form h4 {
  display: none;
}

#homeLoginFormsHost .auth-form label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--login-muted);
}

#homeLoginFormsHost .auth-form input {
  border: 1px solid var(--login-input-border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.98rem;
  background: var(--login-input-bg);
  color: var(--login-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#homeLoginFormsHost .auth-form input:focus {
  outline: none;
  border-color: var(--login-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--login-brand) 18%, transparent);
}

#homeLoginFormsHost .auth-form button[type="submit"] {
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  background: var(--login-accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

#homeLoginFormsHost .auth-form button[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

#homeLoginFormsHost .auth-switch {
  margin-top: 8px;
  color: var(--login-muted);
}

#homeLoginFormsHost .linkish {
  color: var(--login-brand);
  font-weight: 700;
}

/* ——— Temas ——— */

/* 1. Galeria — split clássico refinado */
.home-login-screen.login-theme-galeria {
  --login-panel: #f5f7f4;
  --login-brand: #0369a1;
  --login-accent: #228a4c;
  --login-ink: #0d2a38;
  --login-muted: #5d7382;
}

body.login-theme-galeria.home-mode-login {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(40, 167, 69, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(2, 93, 146, 0.22), transparent 50%),
    var(--login-bg-color, #062033);
}

/* 2. Tela — imersivo full-bleed */
body.login-theme-tela.home-mode-login .home-cms-mount {
  padding: 0;
}

body.login-theme-tela.home-mode-login .topbar {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  background: transparent;
  border-bottom: none;
  z-index: 5;
}

body.login-theme-tela.home-mode-login .footer {
  display: none;
}

.home-login-screen.login-theme-tela {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 100vh;
  border-radius: 0;
  border: none;
  box-shadow: none;
  --login-panel: #faf9f6;
  --login-brand: #0a4d6e;
  --login-accent: #1a7a45;
  --login-visual-fr: 1.15fr;
  --login-form-fr: 0.85fr;
}

.home-login-screen.login-theme-tela .home-login-visual-veil {
  background: linear-gradient(90deg, transparent 40%, rgba(250, 249, 246, 0.35) 100%);
  opacity: 1;
}

.home-login-screen.login-theme-tela .home-login-panel {
  padding: clamp(32px, 5vw, 72px);
}

.home-login-screen.login-theme-tela .home-login-panel-inner {
  width: min(100%, 380px);
  margin-left: 0;
  animation: loginPanelIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 3. Ateliê — imagem ampla + tipografia editorial */
.home-login-screen.login-theme-atelier {
  --login-panel: #eef1ec;
  --login-brand: #143d32;
  --login-accent: #2f6b4f;
  --login-ink: #1c2e28;
  --login-muted: #5a6b63;
  --login-input-border: #c5cec4;
  --login-visual-fr: 1.45fr;
  --login-form-fr: 0.85fr;
  border-radius: 4px 28px 28px 4px;
  box-shadow: 0 18px 50px rgba(20, 40, 32, 0.22);
}

.home-login-screen.login-theme-atelier .home-login-brand {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.home-login-screen.login-theme-atelier .home-login-visual-veil {
  background: linear-gradient(105deg, transparent 60%, rgba(238, 241, 236, 0.55) 100%);
  opacity: 1;
}

body.login-theme-atelier.home-mode-login {
  background: linear-gradient(145deg, #1a2e28 0%, #0f1c18 55%, #243830 100%);
}

/* 4. Maré — Amazônia / rio */
.home-login-screen.login-theme-mare {
  --login-panel: rgba(232, 245, 242, 0.94);
  --login-brand: #046c7a;
  --login-accent: #0d8a6a;
  --login-ink: #0a3340;
  --login-muted: #4a6e78;
  --login-input-border: #b7d4d0;
  border-radius: 28px;
  border: 1px solid rgba(180, 230, 220, 0.35);
  backdrop-filter: blur(8px);
}

.home-login-screen.login-theme-mare .home-login-visual-veil {
  background:
    linear-gradient(180deg, rgba(4, 70, 90, 0.15), transparent 40%),
    linear-gradient(90deg, transparent 50%, rgba(4, 108, 122, 0.25) 100%);
  opacity: 1;
}

body.login-theme-mare.home-mode-login {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(13, 138, 106, 0.35), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(4, 108, 122, 0.4), transparent 45%),
    linear-gradient(160deg, #023a48, #062033 55%, #0a4a3c);
}

body.login-theme-mare.home-mode-login .home-cms-mount {
  padding: clamp(16px, 3vw, 40px);
}

/* 5. Porto — contraste editorial contemporâneo */
.home-login-screen.login-theme-porto {
  --login-panel: #101820;
  --login-brand: #e8c56a;
  --login-accent: #e8c56a;
  --login-ink: #edf2f5;
  --login-muted: #93a4b0;
  --login-input-bg: rgba(255, 255, 255, 0.06);
  --login-input-border: rgba(255, 255, 255, 0.16);
  --login-visual-fr: 0.92fr;
  --login-form-fr: 1.08fr;
  border-radius: 0;
  border: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.home-login-screen.login-theme-porto .home-login-visual-veil {
  background: linear-gradient(90deg, transparent 30%, rgba(16, 24, 32, 0.55) 100%);
  opacity: 1;
}

.home-login-screen.login-theme-porto .home-login-eyebrow {
  color: #e8c56a;
}

.home-login-screen.login-theme-porto #homeLoginFormsHost .auth-form button[type="submit"] {
  color: #101820;
}

.home-login-screen.login-theme-porto #homeLoginFormsHost .linkish {
  color: #e8c56a;
}

body.login-theme-porto.home-mode-login {
  background: #070b10;
}

/* 6. Noite — cinematográfico */
body.login-theme-noite.home-mode-login .home-cms-mount {
  padding: 0;
}

body.login-theme-noite.home-mode-login .footer {
  display: none;
}

body.login-theme-noite.home-mode-login .topbar {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
  border: none;
  z-index: 5;
}

.home-login-screen.login-theme-noite {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  max-height: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  --login-panel: rgba(6, 14, 22, 0.82);
  --login-brand: #7ec8e8;
  --login-accent: #2ea86a;
  --login-ink: #e8eef2;
  --login-muted: #8fa3b0;
  --login-input-bg: rgba(255, 255, 255, 0.05);
  --login-input-border: rgba(255, 255, 255, 0.14);
  --login-visual-fr: 1.35fr;
  --login-form-fr: 0.85fr;
}

.home-login-screen.login-theme-noite .home-login-panel {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.home-login-screen.login-theme-noite .home-login-visual-veil {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(46, 168, 106, 0.18), transparent 45%),
    linear-gradient(90deg, transparent 45%, rgba(6, 14, 22, 0.55) 100%);
  opacity: 1;
}

.home-login-screen.login-theme-noite .home-login-panel-inner {
  animation: loginPanelIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes loginPanelIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-login-screen,
  .home-login-visual img,
  .home-login-screen.login-theme-tela .home-login-panel-inner,
  .home-login-screen.login-theme-noite .home-login-panel-inner {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 860px) {
  body.home-mode-login .home-cms-mount {
    align-items: stretch;
    padding: 12px;
  }

  body.login-theme-tela.home-mode-login .home-cms-mount,
  body.login-theme-noite.home-mode-login .home-cms-mount {
    padding: 0;
  }

  .home-login-screen {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: min(38vh, 340px) auto;
  }

  .home-login-screen.login-theme-tela,
  .home-login-screen.login-theme-noite {
    min-height: 100vh;
    grid-template-rows: min(34vh, 280px) 1fr;
  }

  .home-login-screen.login-theme-atelier {
    border-radius: 16px;
  }

  .home-login-visual {
    height: 100%;
    min-height: 220px;
  }

  .home-login-visual img {
    object-position: center top;
  }

  .home-login-visual-veil {
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.25) 100%) !important;
  }

  .home-login-panel {
    height: auto;
    padding: 22px 18px 28px;
  }

  .home-login-panel-inner {
    margin: 0 auto;
    width: min(100%, 420px);
  }

  .home-login-screen.login-theme-tela .home-login-panel-inner,
  .home-login-screen.login-theme-noite .home-login-panel-inner {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .home-login-screen {
    grid-template-rows: min(30vh, 240px) auto;
    border-radius: 14px;
  }

  .home-login-screen.login-theme-tela,
  .home-login-screen.login-theme-noite {
    border-radius: 0;
  }
}

.modal-box.auth-register-only #loginForm,
.modal-box.auth-register-only #forgotForm,
.modal-box.auth-register-only #resetForm,
#homeLoginFormsHost.auth-register-only #loginForm,
#homeLoginFormsHost.auth-register-only #forgotForm,
#homeLoginFormsHost.auth-register-only #resetForm {
  display: none !important;
}

.ficha-banner {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px auto 0;
  color: #78350f;
}

.ficha-banner-link {
  color: #b45309;
  font-weight: 700;
}

.map-home-wrap {
  position: relative;
  z-index: 0;
  isolation: isolate;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 14px;
}

.map-home {
  width: 100%;
  height: var(--map-home-height, 280px);
  min-height: var(--map-home-height, 280px);
  border-radius: 12px;
  border: 1px solid #d9e2ea;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(9, 32, 47, 0.08);
}

.map-home-h-sm {
  --map-home-height: 220px;
}

.map-home-h-md {
  --map-home-height: 280px;
}

.map-home-h-lg {
  --map-home-height: 360px;
}

.map-home-h-xl {
  --map-home-height: 440px;
}

.map-home-note {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #516978;
}

.map-home-note a {
  color: #0ea5e9;
}

.leaflet-container {
  font-family: Arial, Helvetica, sans-serif;
  z-index: 0;
}

@media (max-width: 760px) {
  .map-home,
  .map-home-h-sm,
  .map-home-h-md,
  .map-home-h-lg,
  .map-home-h-xl {
    --map-home-height: 220px;
  }
}
