:root {
  --bg: #f4f7f4;
  --panel: #ffffff;
  --panel-soft: #eaf4eb;
  --text: #364153;
  --muted: #5a695a;
  --brand: #155DFC;
  --brand-dark: #1b4332;
  --border: #d5e4d8;
  --shadow: 0 20px 45px rgba(27, 67, 50, 0.12);
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
}

/* Registro view styles */
.card-title { font-size: 1.5rem; }
.category-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    height: 84px;
    text-align: left;
}
.category-card .emoji { font-size: 22px; line-height: 1; }
.category-card:hover { border-color: #cfe3ff; }
.category-card.selected { border-color: #0d6efd; box-shadow: 0 0 0 4px rgba(13,110,253,0.06); }

.file-drop { cursor: pointer; }
.file-drop .camera-svg { width: 36px; height: 36px; }
.file-drop.dragover { background: rgba(13,110,253,0.03); border-color: #0d6efd !important; }

/* Estrelas da avaliacao */
.star-btn {
    font-size: 1.25rem;
    color: #adb5bd; /* outline cinza */
    border: none;
    background: transparent;
    padding: 0;
}
.star-btn svg { width: 28px; height: 28px; stroke: currentColor; fill: none; transition: color .12s ease, fill .12s ease; }
.star-btn.hover { color: #0d6efd; }
.star-btn:hover { color: #0d6efd; }
.star-btn.selected { color: #ffc107 !important; }
.star-btn.selected svg { fill: currentColor; stroke: currentColor; }

.text-muted.small { font-size: 0.85rem; }

/* preview do arquivo em avaliacao */
.file-preview-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.file-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    color: #495057;
}

.invalid-outline {
    border: 1px solid #dc3545 !important;
    box-shadow: 0 0 0 .15rem rgba(220,53,69,.15);
}

a {
  color: var(--brand);
}

.app-navbar {
  padding: 1rem 0;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.brand-mark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.app-shell {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.auth-card,
.message-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 0;
  background: var(--panel-soft);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-wrapper {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(100%, 460px);
  padding: 2.5rem;
}

.auth-card h1 {
  margin-bottom: 0.75rem;
}

.auth-card p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.form-control {
  min-height: 3rem;
  border-color: var(--border);
  border-radius: 0;
}

.btn-primary {
  padding: 0.8rem 1rem;
  border-color: var(--brand);
  border-radius: 0;
  background-color: var(--brand);
  font-weight: 600;
}

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

.btn-outline-primary {
  padding: 0.8rem 1rem;
  border-color: rgba(27, 67, 50, 0.22);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-dark);
  font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: var(--brand-dark);
  background-color: var(--brand-dark);
  color: #fff;
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1rem !important;
  border-radius: 0;
  background: #155DFC;
  color: #ffffff;
}

.home-page {
  display: grid;
  gap: 3rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
}

.landing-copy,
.hero-highlight,
.feature-card {
  border: 1px solid rgba(213, 228, 216, 0.95);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.landing-copy {
  padding: 3rem;
  border-radius: 0;
}

.landing-copy h1 {
  max-width: 11ch;
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.landing-copy p {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-hero {
  min-width: 180px;
}

.hero-highlight {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(27, 67, 50, 0.96), rgba(45, 106, 79, 0.92)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent);
  color: #f4fff6;
}

.highlight-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
}

.highlight-card strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.highlight-card p,
.highlight-grid p {
  margin: 0;
  color: rgba(244, 255, 246, 0.78);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.highlight-grid article {
  min-height: 180px;
  padding: 1.4rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
}

.highlight-grid span {
  display: inline-block;
  margin-bottom: 1rem;
  color: #fff4d8;
  font-size: 1.8rem;
  font-weight: 700;
}

.info-section {
  padding-top: 0.5rem;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  margin: 0.75rem 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 0;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -40%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 198, 157, 0.26), transparent 70%);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 0;
  background: var(--panel-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.feature-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.map-page {
  display: grid;
  gap: 2rem;
}

.map-page__hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(213, 228, 216, 0.95);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(21, 93, 252, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow);
}

.map-page__hero h1 {
  max-width: 14ch;
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.map-page__hero p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.filter-panel,
.results-panel {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.filter-panel {
  position: sticky;
  top: 1.5rem;
}

.filter-panel__header,
.results-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-panel__header h2,
.results-panel__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.filter-group + .filter-group {
  margin-top: 1rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.map-stats article {
  padding: 1rem;
  border-radius: 0;
  background: #f8fbff;
  border: 1px solid rgba(21, 93, 252, 0.12);
}

.map-stats strong,
.map-stats span {
  display: block;
}

.map-stats strong {
  font-size: 1.5rem;
}

.map-stats span {
  margin-top: 0.35rem;
  color: var(--muted);
}

.map-content {
  display: grid;
  gap: 1.5rem;
}

.map-canvas {
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.results-panel__header {
  margin-bottom: 1rem;
}

.results-panel__header p {
  margin: 0;
  color: var(--muted);
}

.results-list {
  display: grid;
  gap: 1rem;
}

.result-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.result-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.result-card p {
  margin: 0;
  color: var(--muted);
}

.result-card__meta,
.result-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.result-card__meta {
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-card__footer {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.empty-state {
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 0;
  color: var(--muted);
  text-align: center;
}

.message-card {
  max-width: 620px;
  margin: 4rem auto;
  padding: 2rem;
}

.footer {
  padding: 1.25rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(90, 105, 90, 0.18);
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  .landing-hero,
  .feature-grid,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .landing-copy,
  .hero-highlight {
    padding: 2rem;
  }

  .map-page__hero,
  .filter-panel__header,
  .results-panel__header {
    align-items: start;
    flex-direction: column;
  }

  .filter-panel {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .app-shell {
    padding-top: 1.25rem;
    padding-bottom: 4rem;
  }

  .landing-copy,
  .hero-highlight {
    padding: 1.5rem;
    border-radius: 0;
  }

  .highlight-grid,
  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-page__hero,
  .filter-panel,
  .results-panel {
    padding: 1.25rem;
  }

  .map-canvas {
    min-height: 420px;
  }

  .map-stats,
  .result-card__meta,
  .result-card__footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav-cta {
    margin-top: 0.5rem;
    margin-left: 0;
  }
}
