@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #0a0e1a;
  --bg-card: rgba(16, 24, 45, 0.75);
  --bg-card-hover: rgba(24, 36, 68, 0.85);
  --border-color: rgba(0, 240, 255, 0.2);
  --border-color-glow: rgba(0, 240, 255, 0.6);

  --primary: #00f0ff;
  --primary-dark: #00a8b3;
  --secondary: #3b82f6;
  --accent: #8b5cf6;

  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.5);

  --warning: #f59e0b;
  --danger: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 50%);
}

/* Header & Navbar */
.app-header {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  animation: pulse-glow 3s infinite alternate;
}

/* Estilo para quando a imagem da Logo oficial for inserida no cabeçalho */
.header-logo-img {
  max-height: 48px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.35));
  transition: var(--transition);
}

.header-logo-img:hover {
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.65));
  transform: scale(1.02);
}

.brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: -2px;
}

/* Search, City & Category Filters */
.toolbar-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  max-width: 720px;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* ============================================================================
   SUGESTÕES DE PESQUISA (AUTOCOMPLETE DROPDOWN)
   ============================================================================ */
.search-suggestions {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  background: rgba(11, 19, 41, 0.98) !important;
  border: 1.5px solid var(--primary) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.25) !important;
  z-index: 999999 !important;
  margin-top: 6px !important;
  padding: 0.4rem !important;
  backdrop-filter: blur(20px) !important;
}

.suggestion-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.7rem 0.85rem !important;
  border-radius: 10px !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  text-decoration: none !important;
  text-align: left !important;
}

.suggestion-item:last-child {
  border-bottom: none !important;
}

.suggestion-item:hover {
  background: rgba(0, 240, 255, 0.15) !important;
  transform: translateX(4px) !important;
}

.suggestion-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(0, 240, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--primary) !important;
  flex-shrink: 0 !important;
}

.suggestion-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 6px !important;
}

.suggestion-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
  overflow: hidden !important;
  flex: 1 !important;
}

.suggestion-name {
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.suggestion-meta {
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.category-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.category-select:focus {
  outline: none;
  border-color: var(--primary);
}

.category-select option {
  background: var(--bg-dark);
  color: #fff;
}

/* Stats Pill */
.stats-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-pill.visited {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
}

/* Editor Banner */
.editor-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
  border-bottom: 1px solid var(--warning);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  animation: slide-down 0.3s ease-out;
}

.editor-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fbbf24;
}

.editor-banner-left .pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 8px #f59e0b;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.editor-banner-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Main Map Area */
.main-content {
  flex: 1;
  position: relative;
  display: flex;
}

#map {
  flex: 1;
  height: 100%;
  width: 100%;
  background: #0f172a;
}

/* Floating Glass Controls (Map Tools) */
.map-controls-panel {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.control-btn {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.control-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
}

.control-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(59, 130, 246, 0.2));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Button Styles */
.btn {
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0b1329;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
  background: linear-gradient(135deg, #2aeefb, #5091fc);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ==========================================================================
   GENUINE TEARDROP LOCATION MAP PIN (REAL PIN SHAPE WITH LOGO)
   ========================================================================== */
.map-pin-container {
  position: relative;
  width: 44px;
  height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.7));
}

.map-pin-teardrop {
  width: 44px;
  height: 44px;
  background: #0b1329;
  border: 3px solid var(--primary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.35);
}

.map-pin-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  transform: rotate(45deg);
  /* Counter-rotate logo so it stands perfectly upright */
  background-color: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.pin-unvisited .map-pin-teardrop {
  border-color: var(--primary);
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.35), 0 0 16px rgba(0, 240, 255, 0.6);
}

.pin-visited .map-pin-teardrop {
  border-color: var(--success);
  box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.35), 0 0 16px rgba(16, 185, 129, 0.6);
}

.pin-editor .map-pin-teardrop {
  border-color: var(--warning);
  box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.35), 0 0 16px rgba(245, 158, 11, 0.7);
  animation: pulse-glow 1s infinite alternate;
}

/* Pino em Destaque Especial (Favorito / VIP) */
.pin-featured .map-pin-teardrop {
  border-color: #fbbf24 !important;
  box-shadow: inset 0 0 15px rgba(251, 191, 36, 0.45), 0 0 25px rgba(251, 191, 36, 0.9) !important;
  transform: rotate(-45deg) scale(1.18);
  animation: pulse-glow-gold 2s infinite alternate;
}

@keyframes pulse-glow-gold {
  0% {
    box-shadow: inset 0 0 15px rgba(251, 191, 36, 0.45), 0 0 18px rgba(251, 191, 36, 0.7);
    transform: rotate(-45deg) scale(1.15);
  }

  100% {
    box-shadow: inset 0 0 20px rgba(251, 191, 36, 0.75), 0 0 30px rgba(251, 191, 36, 1);
    transform: rotate(-45deg) scale(1.22);
  }
}

/* Hover effect: Elevate and scale pin */
.leaflet-marker-icon:hover .map-pin-teardrop {
  transform: rotate(-45deg) scale(1.15);
  z-index: 1000 !important;
}

.leaflet-marker-icon:hover .pin-featured .map-pin-teardrop {
  transform: rotate(-45deg) scale(1.28) !important;
  z-index: 1000 !important;
}

/* Mini badge on pin (for editor pencil or visited checkmark) */
.map-pin-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  border: 2px solid #0f172a;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.map-pin-badge.visited-badge {
  background: var(--success);
}

.map-pin-badge.editor-badge {
  background: var(--warning);
}

.map-pin-badge.featured-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.9), 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 15;
}

.map-pin-badge.featured-badge-top {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 2px solid #fff;
  z-index: 15;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

/* ==========================================================================
   LEAFLET POPUP CLEAN MINIMALIST LUXURY REDESIGN (ZERO CLUTTER)
   ========================================================================== */
.leaflet-popup-content-wrapper {
  background: rgba(13, 19, 36, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 18px !important;
  color: #fff !important;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 240, 255, 0.15) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-tip {
  background: rgba(13, 19, 36, 0.96) !important;
  border-left: 1px solid rgba(0, 240, 255, 0.25);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 310px !important;
}

.popup-card {
  display: flex;
  flex-direction: column;
}

/* Cover photo area (clean, unobstructed 360 preview) */
.popup-image-container {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: grab;
  background-color: #050b18;
  user-select: none;
}

.popup-image-container:active {
  cursor: grabbing;
}

.popup-image-360 {
  width: 100%;
  height: 100%;
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: 0px 50%;
  animation: spin-360-panorama 20s linear infinite;
  transition: opacity 0.3s ease;
}

.popup-image-container:hover .popup-image-360 {
  animation-play-state: paused;
}

@keyframes spin-360-panorama {
  0% {
    background-position: 0px 50%;
  }

  100% {
    background-position: -800px 50%;
  }
}

/* Subtle, clean 360 indicator in top right */
.popup-tag-360 {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 5;
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* Mini 3D button in bottom left */
.btn-sphere-mini {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 240, 255, 0.85);
  color: #0b1329;
  border: none;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.btn-sphere-mini:hover {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
}

/* Popup Body Minimalist Typography & Space */
.popup-body {
  padding: 1.15rem 1.25rem 1.15rem 1.25rem;
}

.popup-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.meta-city {
  color: #cbd5e1;
}

.meta-dot {
  color: rgba(255, 255, 255, 0.3);
}

.popup-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.2;
}

.popup-check-icon {
  color: var(--success);
  font-size: 0.95rem;
}

.popup-address {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.3;
}

.address-icon {
  color: var(--primary);
  margin-top: 2px;
  font-size: 0.75rem;
}

.popup-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border-left: 2px solid var(--primary);
}

/* Contact & Social Links Grid in Popup */
.popup-contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.btn-contact {
  flex: 1 1 calc(50% - 0.25rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-contact:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.btn-contact i {
  font-size: 0.88rem;
}

.btn-wa {
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.btn-wa:hover {
  background: rgba(37, 211, 102, 0.15);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-insta {
  border-color: rgba(225, 48, 108, 0.4);
  color: #f77737;
}

.btn-insta:hover {
  background: rgba(225, 48, 108, 0.15);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.25);
}

.btn-site {
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.btn-site:hover {
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-menu {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.btn-menu:hover {
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-uber {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
}

.btn-uber:hover {
  background: #000000;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-copy-address {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-copy-address:hover {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Action button: Premium & High contrast (100% Readable) */
.popup-action-box {
  margin-top: 0.35rem;
}

.btn-tour-premium {
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  transition: var(--transition);
}

.btn-tour-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.7);
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
}

.btn-tour-premium.is-visited {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Admin quick action row in popup */
.popup-admin-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.btn-admin-edit,
.btn-admin-delete,
.btn-admin-link {
  flex: 1;
  padding: 0.45rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-admin-edit {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-admin-edit:hover {
  background: #f59e0b;
  color: #000;
}

.btn-admin-delete {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-admin-delete:hover {
  background: #ef4444;
  color: #fff;
}

.btn-admin-link {
  flex: 0 0 36px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-admin-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Modals & Form Preview Box */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 75px;
}

.image-preview-box {
  margin-top: 0.4rem;
  height: 65px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.image-preview-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.preview-placeholder {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border-left: 4px solid var(--primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slide-left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.toast-success {
  border-color: var(--success);
}

.toast.toast-warning {
  border-color: var(--warning);
}

.toast.toast-error {
  border-color: var(--danger);
}

/* Animations */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  }

  100% {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.8);
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes slide-down {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-left {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================================================
   MENU LATERAL EXPANSÍVEL FULL-SCREEN (RESPONSIVO MOBILE & TABLET)
   ============================================================================ */

/* Padrão Desktop (> 1024px): Layout limpo em barra horizontal */
.btn-mobile-toggle {
  display: none !important;
}

.mobile-menu-drawer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.drawer-header,
.drawer-footer {
  display: none !important;
}

/* Responsivo Tablet & Mobile (<= 1024px): Menu lateral full-screen de alta classe */
@media (max-width: 1024px) {
  .app-header {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    gap: 1rem !important;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2) !important;
  }

  .header-logo-img {
    max-height: 38px !important;
    max-width: 180px !important;
  }

  /* Botão apenas com ícone (44x44) posicionado no lado esquerdo do header */
  .btn-mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    background: rgba(0, 240, 255, 0.12) !important;
    border: 1.5px solid rgba(0, 240, 255, 0.4) !important;
    color: var(--primary) !important;
    border-radius: 12px !important;
    font-size: 1.25rem !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
  }

  .btn-mobile-toggle:hover,
  .btn-mobile-toggle:active {
    background: var(--primary) !important;
    color: #070d1e !important;
    transform: scale(0.94);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6) !important;
  }

  /* Menu Lateral Full-Screen: Ocupa 100% da tela lateralmente quando aberto */
  .mobile-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: linear-gradient(180deg, #070d1e 0%, #0e1a38 100%) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 1.5rem 1.75rem 2.5rem 1.75rem !important;
    gap: 0 !important;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  .mobile-menu-drawer.open {
    left: 0 !important;
  }

  /* Cabeçalho do Drawer */
  .drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-bottom: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    flex-shrink: 0;
  }

  .drawer-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
  }

  .btn-close-drawer {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: 99px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s !important;
  }

  .btn-close-drawer:hover,
  .btn-close-drawer:active {
    background: rgba(239, 68, 68, 0.35) !important;
    color: #fff !important;
    border-color: #ef4444 !important;
  }

  /* Opções dispostas na vertical ("uma opção embaixo da outra") com design card premium */
  .mobile-menu-drawer .toolbar-section,
  .mobile-menu-drawer .stats-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    gap: 0.9rem !important;
    flex-shrink: 0;
  }

  /* Impede a barra de pesquisa de expandir no flex column e fixa na altura normal elegante (44px) */
  .mobile-menu-drawer .search-box {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .mobile-menu-drawer .search-input {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    border-radius: 12px !important;
    padding: 0 1rem 0 2.6rem !important;
    font-size: 0.92rem !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    box-sizing: border-box !important;
  }

  .mobile-menu-drawer .search-box i {
    position: absolute !important;
    left: 1rem !important;
    top: 0 !important;
    bottom: 0 !important;
    margin: auto 0 !important;
    height: 1rem !important;
    font-size: 0.95rem !important;
    color: var(--primary) !important;
    display: flex !important;
    align-items: center !important;
    pointer-events: none !important;
    z-index: 5 !important;
  }

  .mobile-menu-drawer .category-select {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    padding: 0 1rem !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-menu-drawer .category-select:focus,
  .mobile-menu-drawer .category-select:hover {
    border-color: var(--primary) !important;
    background: rgba(0, 240, 255, 0.08) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2) !important;
    outline: none !important;
  }

  /* Botões Admin na vertical com altura normal elegante */
  .mobile-menu-drawer .stats-section {
    margin-top: 0.5rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .mobile-menu-drawer .btn,
  .mobile-menu-drawer a.btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    border-radius: 12px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    margin: 0 !important;
  }

  /* Rodapé do Drawer */
  .drawer-footer {
    display: flex !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: auto auto 0 auto !important;
    padding-top: 1.5rem !important;
    flex-shrink: 0;
  }

  .btn-apply-filters {
    width: 100% !important;
    height: 50px !important;
    background: linear-gradient(135deg, var(--primary), #00a8ff) !important;
    color: #0b1329 !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    border-radius: 14px !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4) !important;
    transition: all 0.2s !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .btn-apply-filters:active {
    transform: scale(0.98);
  }

  .map-controls-panel {
    top: auto;
    bottom: 1.5rem;
    right: 1rem;
  }

  .control-btn span {
    display: none;
  }

  .control-btn {
    padding: 0.75rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
}

/* ============================================================================
   OCULTAR CONTROLES E CRÉDITOS DO LEAFLET QUANDO O MENU ESTIVER ABERTO
   ============================================================================ */
body.drawer-open .leaflet-control-container,
body.drawer-open .map-controls-panel,
body.drawer-open .leaflet-bottom,
body.drawer-open .leaflet-top,
body.drawer-open .leaflet-control-attribution {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}