/* ═══════════════════════════════════════════════════════════
   ROTEIRIZANDO — Design System
   Fonte: DM Sans (body) + Fraunces (display)
   Tema: Clean com dark/light switch
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

/* ── Tokens ── */
:root {
  /* Brand */
  --brand:        #2D6A4F;
  --brand-light:  #52B788;
  --brand-dark:   #1B4332;
  --accent:       #F4A261;
  --accent-light: #FFDDD2;
  --danger:       #E63946;
  --warning:      #FFB703;
  --info:         #4895EF;

  /* Light theme */
  --bg:           #F8F7F4;
  --bg-2:         #FFFFFF;
  --bg-3:         #EFEFED;
  --border:       #E2E0DC;
  --text:         #1A1A18;
  --text-2:       #5A5A54;
  --text-3:       #9A9A90;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:    0 4px 6px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.10);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  /* Transitions */
  --t:  0.18s ease;
  --t2: 0.32s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg:     #111210;
  --bg-2:   #1C1D1A;
  --bg-3:   #252622;
  --border: #2E2F2B;
  --text:   #F0EFE8;
  --text-2: #A8A89E;
  --text-3: #666660;
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.35);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--t2), color var(--t2);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-light); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
.display { font-family: 'Fraunces', serif; font-style: italic; }
.mono { font-family: 'SF Mono', 'Fira Code', monospace; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ── SPA Router ── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ── App Shell ── */
#app { display: flex; flex-direction: column; min-height: 100vh; }
#main-content { flex: 1; }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--t2), border-color var(--t2);
}
.topbar-inner {
  display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 20px;
  max-width: 1200px; margin: 0 auto;
}
.topbar-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem; font-weight: 600; font-style: italic;
  color: var(--brand);
  cursor: pointer; flex-shrink: 0;
  letter-spacing: -0.02em;
}
.topbar-logo span { color: var(--accent); }
.topbar-search { flex: 1; max-width: 400px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ── Bottom Nav (mobile) ── */
.bottom-nav {
  position: sticky; 
  bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.bottom-nav-items {
  display: flex; justify-content: space-around;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 16px;
  font-size: 0.7rem; font-weight: 500;
  color: var(--text-3); cursor: pointer;
  transition: color var(--t);
  background: none; border: none;
}
.bottom-nav-item.active { color: var(--brand); }
.bottom-nav-item svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  #main-content { padding-bottom: 70px; }
  .topbar-actions .btn-text { display: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 0 20px; height: 42px;
  border-radius: var(--radius-pill); border: none;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all var(--t);
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--brand); color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover { filter: brightness(0.9); }
.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-3); color: var(--text); }
.btn-icon {
  width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm);
  background: var(--bg-3); color: var(--text-2); border: none;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.btn-icon:hover { background: var(--border); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.8rem; }
.btn-lg { height: 52px; padding: 0 32px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── Cards ── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }

.card-attraction {
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
}
.card-attraction:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-attraction-img {
  height: 180px; background: var(--bg-3);
  position: relative; overflow: hidden;
}
.card-attraction-img img { width: 100%; height: 100%; object-fit: cover; }
.card-attraction-img .no-photo {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-3); font-size: 0.8rem;
}
.card-attraction-img .badge-cat {
  position: absolute; top: 10px; left: 10px;
}
.card-attraction-info { padding: 14px; }
.card-attraction-name {
  font-weight: 600; font-size: 0.95rem;
  line-height: 1.3; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-attraction-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stars { color: var(--warning); font-size: 0.8rem; }
.rating-count { font-size: 0.75rem; color: var(--text-3); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-green  { background: #D8F3DC; color: #1B4332; }
.badge-orange { background: #FFE8D6; color: #8B3A0F; }
.badge-blue   { background: #D0E8FF; color: #1A3A5C; }
.badge-gray   { background: var(--bg-3); color: var(--text-2); }
.badge-brand  { background: var(--brand); color: #fff; }
[data-theme="dark"] .badge-green  { background: #1B4332; color: #52B788; }
[data-theme="dark"] .badge-orange { background: #4A2000; color: #F4A261; }
[data-theme="dark"] .badge-blue   { background: #0D2440; color: #4895EF; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
}
.form-control {
  width: 100%; height: 44px;
  padding: 0 14px;
  background: var(--bg-2); color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45,106,79,.15);
}
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { height: auto; padding: 12px 14px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }
.form-hint { font-size: 0.8rem; color: var(--text-3); margin-top: 4px; }

/* ── Autocomplete ── */
.autocomplete-wrap { position: relative; }
.autocomplete-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 280px; overflow-y: auto;
}
.autocomplete-item {
  padding: 10px 14px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem;
  transition: background var(--t);
}
.autocomplete-item:hover, .autocomplete-item.focused { background: var(--bg-3); }
.autocomplete-item-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--brand);
}
.autocomplete-item-info { flex: 1; min-width: 0; }
.autocomplete-item-name { font-weight: 500; }
.autocomplete-item-sub { font-size: 0.75rem; color: var(--text-3); }
.autocomplete-empty { padding: 16px; text-align: center; color: var(--text-3); font-size: 0.85rem; }

/* ── Search Bar ── */
.search-bar {
  position: relative;
  display: flex; align-items: center;
}
.search-bar-icon {
  position: absolute; left: 12px;
  color: var(--text-3); pointer-events: none;
  display: flex; align-items: center;
}
.search-bar .form-control {
  padding-left: 38px; height: 40px;
}
.search-bar-clear {
  position: absolute; right: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--text-3); display: none;
  padding: 4px;
}
.search-bar-clear.visible { display: flex; }

/* ── Modal ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t2);
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--t2);
}
.modal-backdrop.open .modal { transform: none; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-title { font-size: 1.1rem; font-weight: 600; }
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 0 24px 20px;
  display: flex; gap: 10px; justify-content: flex-end;
}
@media (max-width: 600px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 95vh; max-width: 100%; }
}

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 80px; right: 20px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--text); color: var(--bg);
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: toastIn .28s ease forwards;
  min-width: 240px; max-width: 360px;
}
.toast.success { background: var(--brand); color: #fff; }
.toast.error   { background: var(--danger); color: #fff; }
.toast.warning { background: var(--warning); color: #000; }
.toast.hiding  { animation: toastOut .28s ease forwards; }
@keyframes toastIn  { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }
@keyframes toastOut { from { opacity:1; transform: none; } to { opacity:0; transform: translateX(20px); } }

/* ── Theme Toggle ── */
.theme-toggle {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--bg-3); border: 1.5px solid var(--border);
  cursor: pointer; position: relative;
  transition: background var(--t2);
}
.theme-toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-2);
  transition: transform var(--t2), background var(--t2);
}
[data-theme="dark"] .theme-toggle::after {
  transform: translateX(20px);
  background: var(--brand-light);
}

/* ── Chip / Tag ── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 500;
  background: var(--bg-3); color: var(--text-2);
  border: 1.5px solid var(--border);
  cursor: pointer; transition: all var(--t);
}
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip:hover:not(.active) { border-color: var(--brand-light); color: var(--brand); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.divider-text {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-3); font-size: 0.8rem;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Loading / Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--border) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty State ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; text-align: center; gap: 12px;
}
.empty-state-icon { font-size: 3rem; }
.empty-state h3 { color: var(--text-2); }
.empty-state p { color: var(--text-3); font-size: 0.9rem; max-width: 300px; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px)  { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Section ── */
.section { padding: 40px 10px; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px;
}
.section-title { margin-bottom: 4px; }
.section-sub { color: var(--text-3); font-size: 0.875rem; }

/* ── Tab Bar ── */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 24px; overflow-x: auto;
}
.tab {
  padding: 10px 18px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-2); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1.5px;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap; background: none; border-left: none; border-right: none; border-top: none;
}
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab:hover:not(.active) { color: var(--text); }

/* ── Itinerary Day ── */
.itinerary-day {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px;
}
.itinerary-day-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--bg-3);
  cursor: pointer;
}
.day-number {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.day-info { flex: 1; }
.day-theme { font-weight: 600; font-size: 0.95rem; }
.day-date { font-size: 0.78rem; color: var(--text-3); }
.itinerary-day-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }

.itinerary-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1.5px solid var(--border);
  transition: border-color var(--t);
}
.itinerary-item:hover { border-color: var(--brand-light); }
.item-time {
  font-size: 0.78rem; font-weight: 600; color: var(--brand);
  min-width: 44px; text-align: center;
  font-family: 'SF Mono', monospace;
}
.item-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-light); flex-shrink: 0;
}
.item-info { flex: 1; min-width: 0; }
.item-name { font-weight: 500; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta { font-size: 0.75rem; color: var(--text-3); }
.item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.item-status-visitado { opacity: 0.5; text-decoration: line-through; }
.item-status-pulado { opacity: 0.4; }

/* ── Hero Banner ── */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-light) 100%);
  color: #fff; padding: 60px 20px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 680px; margin: 0 auto; }
.hero h1 { font-style: italic; color: #fff; margin-bottom: 12px; }
.hero p { opacity: 0.85; margin-bottom: 28px; font-size: 1.05rem; }
.hero-search {align-items: center; background: #fff; border-radius: var(--radius-pill); padding: 6px; display: flex; gap: 8px; max-width: 500px; margin: 0 auto; }
.hero-search input {
  flex: 1; border: none; outline: none; padding: 0 14px;
  font-size: 0.95rem; background: transparent; color: #1A1A18;
}
.hero-search input::placeholder { color: #9A9A90; }

/* ── Share page ── */
.share-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; padding: 40px 20px; text-align: center;
}
.share-day-card {
  border-left: 3px solid var(--brand); padding-left: 16px; margin-bottom: 20px;
}

/* ── Admin ── */
.admin-layout {
  display: flex; min-height: 100vh;
}
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; cursor: pointer;
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  transition: all var(--t); background: none; border: none; width: 100%; text-align: left;
}
.admin-nav-item:hover { background: var(--bg-3); color: var(--text); }
.admin-nav-item.active { background: rgba(45,106,79,.1); color: var(--brand); font-weight: 600; }
.admin-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-content { flex: 1; padding: 32px; min-width: 0; }

@media (max-width: 900px) {
  .admin-sidebar { display: none; }
  .admin-content { padding: 16px; }
}

.admin-stat-card {
  padding: 20px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
}
.admin-stat-value { font-size: 2rem; font-weight: 700; font-family: 'Fraunces', serif; color: var(--brand); }
.admin-stat-label { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--bg-2); }
th {
  padding: 12px 16px; text-align: left;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3);
  background: var(--bg-3); border-bottom: 1px solid var(--border);
}
td { padding: 12px 16px; font-size: 0.875rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-3); }
.table-actions { display: flex; gap: 6px; }

/* ── Pagination ── */
.pagination {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 20px; justify-content: center;
}
.page-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1.5px solid var(--border);
  cursor: pointer; font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t); color: var(--text-2);
}
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Misc ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.fw-600 { font-weight: 600; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.p-0   { padding: 0; }
.w-full { width: 100%; }

/* ── Animations ── */
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
.animate-fade { animation: fadeIn .3s ease; }
.animate-slide { animation: slideUp .35s ease; }

/* ══════════════════════════════════════════════
   FAVORITOS — botão coração nas cards
══════════════════════════════════════════════ */
.fav-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s, background .15s;
  color: #fff;
  z-index: 2;
}
.fav-btn:hover,
.fav-btn:focus-visible {
  transform: scale(1.15);
  background: rgba(0,0,0,.6);
  outline: none;
}
.fav-btn.fav-active {
  background: rgba(231,76,60,.2);
}
.fav-btn:disabled {
  opacity: .6;
  cursor: default;
}

/* ── Filtros de cidade / favoritos ─────────────────── */
#city-cat-filters,
#fav-grid + div {
  scrollbar-width: thin;
}

/* ══════════════════════════════════════════════
   CHIPS DE FILTRO — 3 estados: neutro / incluir / excluir
══════════════════════════════════════════════ */
.cat-chip {
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  user-select: none;
  border: 1.5px solid var(--border);
  font-size: .8rem;
}
.cat-chip:active { transform: scale(.95); }

/* Verde: incluir */
.cat-chip.chip-include {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.cat-chip.chip-include::after { content: ' ✓'; }

/* Vermelho: excluir */
.cat-chip.chip-exclude {
  background: var(--danger, #e74c3c);
  color: #fff;
  border-color: var(--danger, #e74c3c);
  text-decoration: line-through;
  opacity: .85;
}
.cat-chip.chip-exclude::after { content: ' ✕'; }

/* ══════════════════════════════════════════════
   FEATURE 1 — Placeholder de imagem nas cards
══════════════════════════════════════════════ */
.no-photo {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  color: var(--text-3);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  user-select: none;
}
.no-photo span:first-child { font-size: 2.2rem; }
.card-attraction-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transition: transform .35s ease;
}
.card-attraction-img:hover img { transform: scale(1.04); }
.card-attraction-img { overflow: hidden; position: relative; }

/* ══════════════════════════════════════════════
   FEATURE 2 — Botão Google Maps
══════════════════════════════════════════════ */
.btn-maps {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #4285F4;
  color: #fff;
  font-size: .85rem; font-weight: 500;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: filter .15s, transform .15s;
}
.btn-maps:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ══════════════════════════════════════════════
   FEATURE 3 — Upload de foto no admin
══════════════════════════════════════════════ */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg-3);
  position: relative;
}
.photo-upload-area:hover { border-color: var(--brand); background: rgba(45,106,79,.05); }
.photo-upload-area input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.photo-upload-preview {
  width: 100%; max-height: 200px; object-fit: cover;
  border-radius: var(--radius); margin-top: 10px;
  display: none;
}
.photo-upload-preview.visible { display: block; }

/* ══════════════════════════════════════════════
   FEATURE 4 — Admin responsivo com hamburger
══════════════════════════════════════════════ */
.admin-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: none; border-radius: var(--radius);
  background: var(--bg-3);
  cursor: pointer;
  color: var(--text);
  position: fixed; top: 12px; left: 12px;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.admin-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.admin-sidebar-overlay.visible { display: block; }

@media (max-width: 900px) {
  .admin-hamburger { display: flex; }
  .admin-sidebar {
    display: flex !important; /* override o display:none anterior */
    flex-direction: column;
    position: fixed; top: 0; left: -260px;
    height: 100vh; z-index: 1000;
    width: 240px;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }
  .admin-sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  .admin-content { padding: 16px; padding-top: 60px; }
}

/* ══════════════════════════════════════════════
   FEATURE 5 — Explorar: filtro estado + cidade
══════════════════════════════════════════════ */
.explore-filters {
  display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.explore-filters .form-control { min-width: 120px; }
#explore-city-filter { min-width: 160px; }

/* ══════════════════════════════════════════════
   Destinos em destaque — home scroll
══════════════════════════════════════════════ */
.featured-section {
  padding: 0 0 4px;
  margin-bottom: 8px;
}
.featured-header {
  padding: 16px 20px 10px;
}
.featured-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 20px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
  flex: 0 0 148px;
  height: 190px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .18s, box-shadow .18s;
}
.featured-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

.featured-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.featured-card-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.featured-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px 10px 10px;
}
.featured-card-name {
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  font-family: var(--font-serif);
}
.featured-card-state {
  color: rgba(255,255,255,.75);
  font-size: .7rem;
  margin-top: 2px;
}
.featured-card-tagline {
  color: rgba(255,255,255,.65);
  font-size: .65rem;
  margin-top: 3px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Admin — lista de destinos em destaque */
.featured-admin-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: grab;
}
.featured-admin-item:active { cursor: grabbing; }
.featured-admin-thumb {
  width: 52px; height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.featured-admin-thumb-placeholder {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.featured-admin-info { flex: 1; min-width: 0; }
.featured-admin-name { font-weight: 500; font-size: .9rem; }
.featured-admin-sub  { font-size: .75rem; color: var(--text-3); margin-top: 2px; }

/* ══════════════════════════════════════════════
   FEATURE 7 — Comunidade de roteiros
══════════════════════════════════════════════ */

/* Cards do feed público */
.community-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.community-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.community-card-header {
  background: linear-gradient(135deg, var(--brand-dark, #0f6e56), var(--brand, #1d9e75));
  padding: 18px 16px 14px;
  color: #fff;
}
.community-card-dest {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-serif, serif);
  line-height: 1.2;
}
.community-card-meta {
  font-size: .75rem;
  opacity: .85;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.community-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.community-card-days {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand, #1d9e75);
  font-family: var(--font-serif, serif);
  line-height: 1;
}
.community-card-info {
  font-size: .78rem;
  color: var(--text-3);
}
.community-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
}
.community-card-author {
  font-size: .75rem;
  color: var(--text-3);
}

/* Botão de toggle share (publicar/remover da comunidade) */
.share-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill, 999px);
  border: 1.5px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
  text-decoration: none;
}
.share-toggle-btn.shared {
  border-color: var(--brand, #1d9e75);
  background: rgba(29,158,117,.1);
  color: var(--brand, #1d9e75);
}
.share-toggle-btn:hover {
  border-color: var(--brand, #1d9e75);
  color: var(--brand, #1d9e75);
}
.share-toggle-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Página de detalhe de roteiro público (community-trip) */
.community-trip-day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 4px;
  transition: background .15s;
}
.community-trip-day-header:hover { background: var(--bg-3); }

/* Garante que share-hero (usada em trip + community-trip) tenha estilo */
.share-hero {
  background: linear-gradient(135deg, var(--brand-dark, #0f6e56), var(--brand, #1d9e75));
  padding: 32px 20px 28px;
  color: #fff;
  text-align: center;
}
.share-hero h2 {
  color: #fff;
  margin-bottom: 6px;
  font-size: 1.4rem;
}