/* ==========================================================================
   CONFIGURAÇÕES GERAIS E TIPOGRAFIA (Estilo Confeitaria Premium)
   ========================================================================== */
:root {
  --primary: #4A2810;       /* Marrom chocolate profundo */
  --secondary: #D48C46;     /* Dourado caramelo/crocante */
  --accent: #EFA752;        /* Tom de mel vivo */
  --bg-warm: #FFFDF9;       /* Fundo creme aquecido sutil */
  --dark: #201207;          /* Quase preto com fundo quente */
  --card-bg: #ffffff;
  
  /* Cores específicas de Feedback adaptadas */
  --success: #27ae60;
  --success-light: rgba(39, 174, 96, 0.1);
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  padding-bottom: 90px; /* Ajustado para a nova altura da navbar */
  background: linear-gradient(180deg, #FFF9EE 0%, var(--bg-warm) 100%);
  color: var(--dark);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  /* font-family: "Playfair Display", serif; */
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

a {
  transition: all 0.2s ease;
  color: var(--secondary);
  text-decoration: none;
}

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

/* Container principal mobile-first */
.container {
  max-width: 480px;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

/* ==========================================================================
   HEADER & NAVBAR SUPERIOR
   ========================================================================== */
header {
  background: linear-gradient(135deg, #3A1F0C 0%, #201207 100%);
  box-shadow: 0 4px 25px rgba(74, 40, 16, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#userDropdown {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#userDropdown:hover {
  background: var(--secondary);
  border-color: var(--secondary) !important;
  box-shadow: 0 4px 15px rgba(212, 140, 70, 0.3);
  transform: translateY(-2px);
}

.dropdown-menu {
  border-radius: 16px;
  border: 1px solid rgba(74, 40, 16, 0.08);
  box-shadow: 0 10px 30px rgba(74, 40, 16, 0.05);
}

.dropdown-item {
  font-size: 0.85rem;
  padding: 10px 20px;
  color: var(--dark);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(212, 140, 70, 0.08);
  color: var(--primary);
}

.avatar {
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.rounded-circle:hover {
  transform: scale(1.05);
  transition: 0.3s ease;
}

/* ==========================================================================
   CARDS DE RESUMO (Dashboard)
   ========================================================================== */
.resumo-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(74, 40, 16, 0.04) !important;
  box-shadow: 0 10px 30px rgba(74, 40, 16, 0.03) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.resumo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.resumo-card:hover::before {
  left: 100%;
}

.resumo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(74, 40, 16, 0.08) !important;
  border-color: rgba(212, 140, 70, 0.2) !important;
}

.resumo-icon {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 2.3rem !important;
}

.resumo-icon.animate {
  animation: pulse 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Tematização Harmônica dos Blocos de Resumo */
.bg-locais {
  background: linear-gradient(135deg, #f9fcff 0%, #F5EEDF 100%);
  border-bottom: 4px solid var(--primary) !important;
}
.bg-locais .resumo-icon { color: var(--primary); }
.bg-locais h3 { color: var(--primary); font-weight: 800; }

.bg-pontuacao {
  background: linear-gradient(135deg, #FFF9EE 0%, #FCE3C1 100%);
  border-bottom: 4px solid var(--secondary) !important;
}
.bg-pontuacao .resumo-icon { color: var(--secondary); }
.bg-pontuacao h3 { color: var(--primary); font-weight: 800; }

.bg-ranking {
  background: linear-gradient(135deg, #FFF5F5 0%, #FAD7D7 100%);
  border-bottom: 4px solid #C0392B !important;
}
.bg-ranking .resumo-icon { color: #C0392B; }
.bg-ranking h3 { color: #781E15; font-weight: 800; }

/* ==========================================================================
   LISTAGENS (Locais & Cards Gerais)
   ========================================================================== */
#locais, #ranking {
  padding: 0 1rem;
}

.local, .clean-card {
  border: 1px solid rgba(74, 40, 16, 0.04);
  background: #ffffff;
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(74, 40, 16, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.local:hover, .clean-card:hover {
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(74, 40, 16, 0.06);
  transform: translateY(-4px);
  border-color: rgba(212, 140, 70, 0.2);
}

.categoria-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 1px;
}

.categoria-text {
  font-size: 0.85rem;
  color: var(--dark);
  opacity: 0.8;
}

.endereco-wrapper {
  border-left: 3px solid var(--secondary);
  padding-left: 12px;
}

.endereco-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: 0.2s;
}

.endereco-link:hover {
  color: var(--secondary);
}

.instagram-link {
  color: #E1306C;
  font-size: 1rem;
  transition: 0.2s;
}

.instagram-link:hover {
  transform: scale(1.15);
  color: #b01e51;
}

/* ==========================================================================
   SISTEMA DE RANKING
   ========================================================================== */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ITEM */
.ranking-item {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 12px 14px;

  background: #fff;

  border: 1px solid rgba(74, 40, 16, 0.07);
  border-radius: 14px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);

  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.07);
}

/* POSIÇÃO */
.ranking-pos {
  width: 40px;
  min-width: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.9rem;
  font-weight: 800;

  color: #806b5c;
}

/* INFORMAÇÕES */
.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.ranking-name {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-weight: 700;
  color: #3f2a1d;
}

.ranking-points {
  flex-shrink: 0;

  font-size: 0.8rem;
  font-weight: 700;

  color: #8a6a50;
}

/* BARRA DE PROGRESSO */
.ranking-progress {
  display: grid;
  grid-template-columns: repeat(33, minmax(0, 1fr));
  gap: 2px;

  width: 100%;
  min-width: 0;
  height: 8px;

  margin-top: 8px;
}

.ranking-progress-segment {
  width: 100%;
  min-width: 0;
  height: 8px;

  background: #e5e1de;

  border-radius: 2px;

  transition:
    background-color 0.25s ease,
    transform 0.15s ease;
}

.ranking-progress-segment.filled {
  background: #c89b6d;
}

.ranking-item.rank-1 .ranking-progress-segment.filled {
  background: #d4a72c;
}

.ranking-item.rank-2 .ranking-progress-segment.filled {
  background: #9b9b9b;
}

.ranking-item.rank-3 .ranking-progress-segment.filled {
  background: #b87952;
}

@media (max-width: 576px) {
  .ranking-progress {
    gap: 1px;
    height: 7px;
  }

  .ranking-progress-segment {
    height: 7px;
    border-radius: 1px;
  }
}

/* =========================================
   TOP 3
========================================= */
.ranking-top3 {
  padding: 15px 16px;

  border-width: 1px;
}

/* PRIMEIRO */
.ranking-item.rank-1 {
  background: linear-gradient(
    135deg,
    #fffaf0,
    #fff4d6
  );

  border-color: rgba(218, 165, 32, 0.25);

  box-shadow:
    0 6px 18px rgba(218, 165, 32, 0.12);
}

.ranking-item.rank-1 .ranking-name {
  font-size: 1rem;
}

.ranking-item.rank-1 .ranking-points {
  color: #9a7616;
}

/* SEGUNDO */
.ranking-item.rank-2 {
  background: linear-gradient(
    135deg,
    #fafafa,
    #f3f3f3
  );

  border-color: rgba(130, 130, 130, 0.18);
}

/* TERCEIRO */
.ranking-item.rank-3 {
  background: linear-gradient(
    135deg,
    #fffaf6,
    #f7eee8
  );

  border-color: rgba(150, 90, 50, 0.15);
}

/* MEDALHAS */
.ranking-medal {
  width: 44px;
  min-width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-size: 1.25rem;
}

.rank-1 .ranking-medal {
  background: rgba(218, 165, 32, 0.14);
  color: #c89b18;
}

.rank-2 .ranking-medal {
  background: rgba(130, 130, 130, 0.12);
  color: #8c8c8c;
}

.rank-3 .ranking-medal {
  background: rgba(150, 90, 50, 0.1);
  color: #a36b46;
}

/* =========================================
   FINAL DO RANKING
========================================= */

.ranking-footer {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-top: 8px;
  padding: 14px 16px;

  background: rgba(74, 40, 16, 0.025);

  border: 1px dashed rgba(74, 40, 16, 0.15);
  border-radius: 14px;
}

.ranking-footer-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(74, 40, 16, 0.07);

  color: #795548;
}

.ranking-footer-content {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.ranking-footer-content strong {
  font-size: 0.9rem;
  color: #4a301f;
}

.ranking-footer-content span {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #8a7a70;
}

/* =========================================
   ESTADO VAZIO
========================================= */

.ranking-empty {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 32px 20px;

  text-align: center;

  border: 1px dashed rgba(74, 40, 16, 0.15);
  border-radius: 16px;

  background: rgba(74, 40, 16, 0.025);
}

.ranking-empty-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 12px;

  border-radius: 50%;

  background: rgba(218, 165, 32, 0.12);

  color: #c89b18;

  font-size: 1.3rem;
}

.ranking-empty strong {
  font-size: 0.95rem;
  color: #4a301f;
}

.ranking-empty span {
  max-width: 280px;

  margin-top: 5px;

  font-size: 0.8rem;
  line-height: 1.4;

  color: #8a7a70;
}

/* =========================================
   LOADING
========================================= */

.ranking-loading {
  padding: 5px 0;
}

/* ==========================================================================
   BOTÕES & INTERAÇÕES (Check-in e Formulários)
   ========================================================================== */
button, .btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 10px 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--primary);
  border: none;
  box-shadow: 0 4px 12px rgba(74, 40, 16, 0.15);
}
.btn-primary:hover {
  background: var(--secondary);
  box-shadow: 0 6px 18px rgba(212, 140, 70, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #EEF0F2;
  color: var(--dark);
  border: none;
}
.btn-secondary:hover {
  background: #E1E4E8;
  transform: translateY(-2px);
  color: var(--primary);
}

/* Botões Estilo Cápsula de Check-in */
.checkin-btn, .btn-checkin {
  border: none;
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 24px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(74, 40, 16, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkin-btn.not-visited {
  background: #F4F5F6;
  color: #7A828A;
  border: 1px solid #E2E4E6;
}
.checkin-btn.not-visited:hover {
  background: #E8EAEB;
  transform: translateY(-2px);
}

.checkin-btn.visited, .btn-checkin.visited {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}
.checkin-btn.visited:hover {
  background: #219653;
  transform: translateY(-2px);
}

.checkin-btn:active { transform: scale(0.96); }
.visitado-text { font-size: 0.75rem; color: var(--success); font-weight: 600; }

/* Switch / Toggle Elegante */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #E2E4E6;
  transition: 0.3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--secondary); }
input:checked + .slider:before { transform: translateX(24px); }

/* ==========================================================================
   INPUTS, MODAIS E COMPONENTES ESPECÍFICOS
   ========================================================================== */
.form-control, .form-select {
  border: 1px solid rgba(74, 40, 16, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--dark);
}
.form-control:focus, .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(212, 140, 70, 0.12);
}

/* Modais Sofisticados */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 18, 7, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-card {
  background: #ffffff;
  padding: 30px 24px;
  border-radius: 24px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(74, 40, 16, 0.15);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-card { transform: scale(1); }

#modalConfirm { background: var(--primary); color: white; }
#modalConfirm:hover { background: var(--secondary); }
#modalCancel { background: #EEF0F2; color: var(--dark); }

/* Selos e Conquistas (Profile) */
.selo-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(74, 40, 16, 0.04);
  border: 1px solid rgba(74, 40, 16, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.selo-card:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(74, 40, 16, 0.1);
}
.selo-anim:hover { transform: translateY(-4px); }

.badge-completo {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  animation: goldPulse 1.5s infinite alternate;
}
@keyframes goldPulse {
  from { box-shadow: 0 0 0 rgba(212, 140, 70, 0.2); }
  to { box-shadow: 0 0 18px rgba(212, 140, 70, 0.5); }
}

/* Gráficos Circulares de Progresso */
.progress-circle { width: 70px; height: 70px; position: relative; flex-shrink: 0; }
.progress-circle svg { transform: rotate(-90deg); }
.progress-circle circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.progress-bg { stroke: #F0F2F5; }
.progress-fill {
  stroke: var(--secondary);
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  transition: stroke-dashoffset 1s ease;
}
.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

/* ==========================================================================
   BARRA DE NAVEGAÇÃO FIXA INFERIOR (Estilo App Mobile Premium)
   ========================================================================== */
.app-nav {
  height: 76px;
  background: rgba(255, 255, 255, 0.85) !important;
  border-top: 1px solid rgba(74, 40, 16, 0.05) !important;
  box-shadow: 0 -8px 30px rgba(74, 40, 16, 0.04) !important;
  backdrop-filter: blur(20px);
}

.app-nav .btn {
  background: none;
  border: none;
  color: #A0A5AB;
  flex: 1;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.app-nav .btn.active, .app-nav .btn:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.app-nav .btn.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  opacity: 1;
}

.app-nav .btn small {
  font-size: 0.72rem;
  margin-top: 4px;
  display: block;
}

/* Animações de Transição de Páginas */
.fade-page {
  opacity: 1;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-page.fade-out { opacity: 0; }
.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.btn-location {
  border: none;
  background: linear-gradient(135deg, #ffb347, #ffcc33);
  color: #4a2d00;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .3s ease;
  box-shadow: 0 8px 20px rgba(255,179,71,.25);
}

.btn-location:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255,179,71,.35);
}

.festival-badge {
  background: rgba(255,179,71,.15);
  color: #d97706;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.progress-bar {
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ffb347,
    #ffd54f
  );
}

.next-stop-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.next-stop-info img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.next-stop-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #16a34a;
  font-size: .75rem;
  font-weight: 700;
}

#proximaPadariaNome {
  font-weight: 700;
  color: #1f2937;
}

.festival-banner {
  height: 180px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(
      rgba(0,0,0,.3),
      rgba(0,0,0,.4)
    ),
    url("banner.png")
    center/cover;
}

.overlay {
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
}

/* ==========================================================================
   MODAL PARA COMPARTILHAMENTO DE RANKING
   ========================================================================== */
.share-preview {
  background: linear-gradient(135deg, #fff7ed, #fff);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid #eee;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);

  margin-bottom: 15px;
}

.share-header {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 13px;
  color: #4a2d00;
  font-weight: 600;
}

.share-title {
  font-size: 18px;
  font-weight: 800;
  color: #4a2d00;

  margin-top: 6px;
}

.share-subtitle {
  font-size: 12px;
  color: #777;
  margin-bottom: 12px;
}

.share-rankings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #f8f8f8;
  padding: 8px 10px;
  border-radius: 10px;
}

.rank {
  font-weight: 700;
  color: #d4a017;
}

.name {
  flex: 1;
  margin-left: 8px;
  font-weight: 600;
  color: #333;
}

.points {
  font-size: 12px;
  color: #666;
}

.share-footer {
  margin-top: 12px;
  font-size: 11px;
  color: #999;
  text-align: center;
}

.share-user {
  margin-top: 14px;

  display: flex;
  align-items: center;
  gap: 12px;

  background: #f8f8f8;
  padding: 12px;
  border-radius: 12px;
}

.user-position {
  font-size: 22px;
  font-weight: 800;
  color: #d4a017;
  min-width: 50px;
  text-align: center;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info #shareNome {
  font-weight: 700;
  color: #333;
}

.user-info #sharePontos {
  font-size: 12px;
  color: #666;
}

/* ==========================================================================
   CARD HOME COMUNIDADE
   ========================================================================== */
.community-card {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.community-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #4d2c18;
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.community-item {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

.community-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #d48b2c;
  line-height: 1;
}

.community-label {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  color: #6c757d;
}

/* ==========================================================================
   BTN INSTAGRAM PARA COMPARTILHAMENTO
   ========================================================================== */
.btn-instagram {
  background: linear-gradient(135deg, #833ab4, #e1306c, #f77737);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
}

.btn-instagram:hover,
.btn-instagram:focus {
  color: white;
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-instagram:active {
  transform: translateY(0);
}

.share-link {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.2);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: .3px;
  opacity: .95;
}

/* ==========================================================================
   MODAL CHECKIN DISTÂNCIA (Estilo Premium)
   ========================================================================== */
#modalCheckinDistancia {
  color: #198754;
}

.modal-content {
  border-radius: 20px;
}

#mensagemModalTexto {
  white-space: pre-line;
}

/* ==========================================================================
   ENDEREÇO LINKADO NO CARD DE LOCAIS
   ========================================================================== */
.endereco-wrapper {
  margin-bottom: 16px;
}

.endereco-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 12px;

  background: rgba(74, 40, 16, 0.035);
  border: 1px solid rgba(74, 40, 16, 0.08);
  border-radius: 10px;

  color: inherit;
  text-decoration: none;

  transition: all 0.2s ease;
}

.endereco-link:hover {
  background: rgba(74, 40, 16, 0.07);
  border-color: rgba(74, 40, 16, 0.15);
  transform: translateY(-1px);
}

.endereco-conteudo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.endereco-conteudo > i {
  flex-shrink: 0;
}

.endereco-texto {
  line-height: 1.4;
}

.endereco-acao {
  display: flex;
  align-items: center;
  gap: 4px;

  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.65;
}

.endereco-link:hover .endereco-acao {
  opacity: 1;
}

/* Indica claramente que é clicável */
.endereco-link:hover {
  background-color: #f1f5f9;
  border-color: #d1d5db;
  color: #374151;
  transform: translateY(-1px);
}

.endereco-link:hover .endereco-arrow {
  color: #4b5563;
  transform: translate(2px, -2px);
}

/* Feedback ao clicar */
.endereco-link:active {
  transform: translateY(0);
}

/* ==========================================================================
   CARD DE LOCAIS (Estilo Premium)
   ========================================================================== */
.clean-card {
  border: 1px solid rgba(74, 40, 16, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clean-card:hover {
  transform: translateY(-2px);
}

.local-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.local-titulo {
  min-width: 0;
}

.local-titulo h6 {
  line-height: 1.35;
}

.local-card-image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  flex-shrink: 0;

  border-radius: 14px;
  border: 1px solid rgba(74, 40, 16, 0.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.local-info {
  margin-bottom: 16px;
}

.categoria-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.categoria-text {
  line-height: 1.5;
}

.local-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
