/* ==========================================================
   GEOCOD — Serviços Trial — Dark Theme
   Botões e popups trial vêm de mapa_trial_common.css
   ========================================================== */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--trial-bg, #050816);
  color: var(--trial-text, #e2e8f0);
}

/* ── Header ─────────────────────────────────────────────── */
.services-header {
  padding: 0.75rem 1rem;
  background: var(--trial-header-bg, #0b1120);
  color: #f9fafb;
  border-bottom: 1px solid var(--trial-border);
}

.services-header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.services-header span {
  font-weight: 400;
  opacity: 0.85;
}

/* ── Layout ─────────────────────────────────────────────── */
.services-layout {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 56px);
}

.services-map-wrapper {
  flex: 1;
  position: relative;
}

#services-map {
  width: 100%;
  height: 100%;
}

/* ── Sidebar dark ───────────────────────────────────────── */
.services-sidebar {
  width: 320px;
  max-width: 100%;
  padding: 1rem;
  border-left: 1px solid var(--trial-border);
  background: var(--trial-sidebar-bg, #0f172a);
  overflow-y: auto;
  color: var(--trial-text);
}

.services-sidebar h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #f1f5f9;
}

/* ── Filtros dark ───────────────────────────────────────── */
.services-filters {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--trial-border);
}

.services-filters h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
}

.filter-label {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--trial-text-muted);
}

.filter-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--trial-glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--trial-text);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.filter-input:focus {
  outline: none;
  border-color: var(--trial-accent);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.filter-button-primary,
.filter-button-secondary {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
}

.filter-button-primary {
  background: var(--trial-accent);
  color: #fff;
}

.filter-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--trial-text-muted);
  border: 1px solid var(--trial-border);
}

.filter-button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Fullscreen mode ────────────────────────────────────── */
body.map-fullscreen {
  overflow: hidden;
}

body.map-fullscreen .services-header {
  display: none;
}

body.map-fullscreen .services-sidebar {
  display: none;
}

body.map-fullscreen .services-layout {
  height: 100vh;
}

body.map-fullscreen .services-map-wrapper {
  width: 100vw;
  height: 100vh;
}

body.map-fullscreen #services-map {
  width: 100vw !important;
  height: 100vh !important;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .services-layout {
    flex-direction: column;
  }

  .services-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--trial-border);
    height: auto;
    max-height: 35vh;
  }

  .services-map-wrapper {
    height: 65vh;
  }
}
