﻿/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-family: "Space Grotesk", "IBM Plex Mono", Monospace, sans-serif;
  font-size: 1em;
  line-height: 1.4;
  background: #ecececcc;
  scroll-behavior: smooth;
  /* Reduzido: Animation ligeira para melhor performance */
  background: linear-gradient(-45deg, #ecececcc, #f5f5f5, #e8e8e8);
  background-size: 300% 300%;
  animation: gradient 30s ease-in-out infinite;
  background-attachment: fixed;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Cool infinite background scrolling animation.
 * Twitter: @kootoopas
 */
/* Exo thin font from Google. */

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster */
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ==========================================================================
   PT FUEL – Custom App Styles
   ========================================================================== */

:root {
  --bg: #eef2f7;
  --map-bg: #e8ebf0;
  --panel: #ffffff;
  --border: #d6dde8;
  --border-mid: #b7c1cf;
  --text: #0f172a;
  --text-2: #374151;
  --text-muted: #5b6678;
  --accent: #111827;
  --pill-bg: #f3f6fb;
  --pill-hover: #e8eef7;
  --pill-active: #0f172a;
  --pill-active-fg: #ffffff;
  --price: #03543f;
  --stats-bg: #edf8f2;
  --stats-border: #99e2bc;
  --header-h: 52px;
  --r: 10px;
  --r-sm: 6px;
  --r-pill: 999px;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
}

/* === Base === */
html {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

/* === Site Header === */
.site-header {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-h);
  padding: 0 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 10;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.site-identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-name {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.site-sub {
  font-family: var(--mono);
  font-size: 0.67rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* === Layout Wrapper === */
.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#app {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

/* === Map Column === */
#tuga {
  flex: 0 0 68%;
  background: var(--map-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 52px;
  position: relative;
  overflow: hidden;
  transition:
    flex-basis 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    padding 0.4s ease;
}

/* Slide map out entirely when district is selected */
#app.district-active #tuga {
  flex: 0 0 0%;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

svg {
  width: 100%;
  height: auto;
}

#meuSVG {
  transition: all 0.5s ease-in-out;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2));
}

svg path {
  transition: fill 0.18s ease;
  cursor: pointer;
}

svg path:hover {
  fill: #2e3340;
}

.map-caption {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  pointer-events: none;
}

.gov-logo {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 92px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 2;
}

/* === Data Panel === */
#form {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Empty state — only visible when no district selected */
#panelEmpty {
  flex: 1;
  display: none; /* hidden by default; shown only on non-active */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 28px;
  text-align: center;
}

/* Show empty state when panel is NOT yet loaded */
#form:not(.loaded) #panelEmpty {
  display: flex;
}

.empty-icon {
  font-size: 3rem;
  opacity: 0.1;
  line-height: 1;
}

.empty-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.empty-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Panel content — filters block, no separate scroll */
.panel-content {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  padding: 0 24px;
}

#form.loaded .panel-content {
  display: flex;
  width: min(100%, 1060px);
  margin: 0 auto;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border-mid);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, #ffffff 85%, rgba(255, 255, 255, 0.9));
  z-index: 4;
}

#cityTitle {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.close-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 0.73rem;
  font-family: var(--mono);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.close-btn:hover {
  border-color: var(--border-mid);
  color: var(--text);
  background: var(--pill-hover);
}

/* Stats bar */
#precoMedio {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #f8fbff;
  flex-shrink: 0;
}

.stat-item {
  min-width: 68px;
  padding: 8px 10px;
  background: var(--stats-bg);
  border: 1px solid var(--stats-border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--price);
  opacity: 0.65;
}

.stat-value {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--price);
  line-height: 1.2;
}

/* Filter headings */
h2 {
  margin: 0 !important;
  font-family: var(--mono) !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--text) !important;
  font-weight: 600 !important;
}

/* Collapsible filter sections */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.filter-section {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #ffffff;
  margin-top: 0;
  overflow: hidden;
}

.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
}

.filter-toggle h2 {
  margin: 0 !important;
  pointer-events: none;
}

.filter-toggle-icon {
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.filter-summary {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: #f4f7fc;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-toggle[aria-expanded="false"] .filter-toggle-icon {
  transform: rotate(-90deg);
}

.filter-body {
  overflow: hidden;
  max-height: 260px;
  opacity: 1;
  padding: 0 12px 10px;
  border-top: 1px solid var(--border);
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease;
}

.filter-body.collapsed {
  max-height: 0;
  opacity: 0;
}

#municipiosContainer,
#FuelContainer,
#BrandContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 10px;
}

.filter-actions {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.filter-more-btn {
  border: 1px dashed var(--border-mid);
  border-radius: var(--r-pill);
  background: white;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.filter-more-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--pill-hover);
}

/* Filter pills */
.municipio-button,
.municipio-button-active {
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  padding: 4px 10px;
  background: var(--pill-bg);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.14s ease;
  line-height: 1.5;
  white-space: nowrap;
}

.municipio-button:hover {
  background: var(--pill-hover);
  border-color: var(--border-mid);
}

.municipio-button-active {
  background: var(--pill-active);
  color: var(--pill-active-fg);
  border-color: var(--pill-active);
}

/* Sort box */
#boxx {
  display: none !important;
  align-items: center;
  gap: 6px;
  padding: 6px 0 8px;
  flex-shrink: 0;
}

#boxx h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

#boxx select {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: white;
  color: var(--text);
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* Search + pagination strip — sticky below header */
#filters {
  display: none;
  flex-shrink: 0;
  padding: 12px 24px 8px;
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 6;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06);
}

#form.loaded #filters {
  display: block;
  width: min(100%, 1060px);
  margin: 6px auto 0;
}

.search-toolbar {
  display: grid;
  grid-template-columns: auto minmax(170px, 220px) minmax(280px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
}

.search-toolbar input {
  flex: none;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  font-size: 0.85rem;
  font-family: var(--sans);
  background: white;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.search-toolbar input:focus {
  border-color: var(--border-mid);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.search-toolbar label {
  font-family: var(--mono);
  font-size: 0.69rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.search-toolbar select {
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm);
  background: white;
  color: var(--text);
  padding: 8px 9px;
  font-size: 0.76rem;
  font-family: var(--mono);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 0 2px;
}

.page-btn {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  font-size: 0.74rem;
  font-family: var(--mono);
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: all 0.14s ease;
}

.page-btn:not(:disabled):hover {
  border-color: var(--border-mid);
  background: var(--pill-hover);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ad-slot {
  width: min(100%, 1060px);
  margin: 4px auto 6px;
  border: 1px dashed var(--border-mid);
  border-radius: var(--r);
  padding: 9px 12px;
  background: #f8fbff;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ad-slot-label {
  font-weight: 600;
  color: var(--text);
}

/* Station list — not a scroll container anymore, part of the page flow */
#info {
  flex-shrink: 0;
  padding: 14px 24px 32px;
  display: none;
  width: min(100%, 1060px);
  margin: 0 auto;
}

#form.loaded #info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
}

#info .no-results {
  grid-column: 1 / -1;
  padding: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* Station cards */
.posto-info {
  padding: 12px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
  margin-bottom: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.14s ease;
}

.posto-info:hover {
  border-color: #95a3b8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.posto-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.posto-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.posto-price {
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 700;
  color: #064e3b;
  white-space: nowrap;
  flex-shrink: 0;
  background: #e8f8ef;
  border: 1px solid #8ed8b0;
  border-radius: var(--r-pill);
  padding: 4px 10px;
}

.posto-secondary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.posto-fuel-tag,
.meta-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: #445066;
  background: #f1f5fb;
  border: 1px solid #d4dce8;
  border-radius: var(--r-pill);
  padding: 3px 8px;
  line-height: 1.35;
}

.posto-address {
  margin: 9px 0 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-2);
  line-height: 1.45;
}

.posto-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed #d9e1ec;
}

.posto-map-link,
.posto-aff-link {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.67rem;
  color: #1d4ed8;
  text-decoration: none;
  border: 1px solid #c8d6ee;
  background: #eef4ff;
  border-radius: var(--r-pill);
  padding: 3px 8px;
}

.posto-aff-link {
  margin-left: 0;
}

.posto-map-link:hover,
.posto-aff-link:hover {
  background: #e3edff;
}

.site-footer {
  width: min(100%, 1060px);
  margin: 8px auto 16px;
  padding: 10px 24px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: #fff;
}

.site-footer a {
  color: #1d4ed8;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
  z-index: 20;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.83rem;
  color: var(--text-2);
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  border-radius: var(--r-pill);
  padding: 6px 11px;
  font-family: var(--mono);
  font-size: 0.7rem;
  cursor: pointer;
}

.cookie-btn-primary {
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.cookie-btn-secondary {
  border: 1px solid var(--border-mid);
  background: #ffffff;
  color: var(--text);
}

/* === Animations (map) === */
@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* === Mobile === */
@media (max-width: 768px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .container {
    height: auto;
    overflow: visible;
  }

  #app {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  #tuga {
    flex: none;
    padding: 20px;
    transition: none;
  }

  #app.district-active #tuga {
    flex: none;
  }

  #tuga svg {
    max-width: 220px;
  }

  #form {
    border-left: none;
    border-top: 1px solid var(--border);
    flex: none;
    min-height: 600px;
  }

  #precoMedio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-toolbar {
    grid-template-columns: 1fr;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .filter-summary {
    max-width: 58%;
  }

  .panel-content {
    overflow-y: visible;
  }

  #info {
    width: 100%;
    padding-bottom: 20px;
  }

  .site-footer {
    padding: 8px 20px 0;
    margin-bottom: 14px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  #form.loaded #info {
    grid-template-columns: 1fr;
  }

  .gov-logo {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-sub {
    display: none;
  }

  #cityTitle {
    font-size: 1.2rem;
  }

  .stat-item {
    min-width: 58px;
  }
}
