:root {
  --home-primary: #0d47a1;
  --home-primary-dark: #08285c;
  --home-accent: #f97316;
  --home-bg: #f5f8fc;
  --home-surface: #ffffff;
  --home-border: #dfe7f1;
  --home-text: #172033;
  --home-muted: #667085;
  --home-shadow: 0 14px 34px rgba(8, 40, 92, .09);
  --azul: var(--home-primary-dark);
  --azul-2: var(--home-primary);
  --laranja: var(--home-accent);
  --verde: #12b981;
  --cinza: var(--home-bg);
  --texto: var(--home-text);
  --muted: var(--home-muted);
  --borda: var(--home-border);
  --sombra: var(--home-shadow);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--home-bg);
  color: var(--home-text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .38);
  outline-offset: 3px;
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--home-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.template-preview-bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #08285c;
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 850;
}

.template-preview-bar a {
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 950;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--home-primary);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(13, 71, 161, .18);
}

.logo-title {
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
  color: var(--home-primary-dark);
  letter-spacing: 0;
  white-space: nowrap;
}

.logo-title span {
  color: var(--home-accent);
}

.logo-title-footer {
  font-size: 23px;
}

.logo-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--home-muted);
  font-weight: 800;
  white-space: nowrap;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 0;
  line-height: 1;
}

.public-brand__logo-wrap {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 35, 72, .08);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 35, 72, .10);
  overflow: hidden;
}

.public-brand__logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.public-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.public-brand__title {
  color: var(--home-primary-dark);
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.public-brand__tagline {
  margin-top: 4px;
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.public-brand--footer {
  line-height: 0;
}

.public-footer .public-brand__logo,
.footer .public-brand__logo {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 850;
  color: #1f2a3d;
  font-size: 14px;
}

.main-menu a:hover {
  color: var(--home-accent);
}

.btn-primary,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  background: var(--home-primary-dark);
  color: #fff;
  border: 0;
  border-radius: 11px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(8, 40, 92, .16);
}

.area-btn {
  background: var(--home-accent);
  box-shadow: 0 10px 22px rgba(249, 115, 22, .18);
}

.category-nav {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--home-border);
}

.category-scroll {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 10px 0;
}

.cat-pill {
  min-width: max-content;
  border: 1px solid var(--home-border);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
  font-size: 13px;
  color: #1f2a3d;
  transition: .18s;
}

.cat-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(8, 40, 92, .07);
}

.cat-pill span:last-child {
  white-space: nowrap;
}

.cat-pill.unavailable {
  color: var(--home-muted);
}

.cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  flex: 0 0 auto;
}

.hero {
  padding: 28px 0 18px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(520px, 1.08fr);
  gap: 18px;
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--home-shadow);
  align-items: stretch;
}

.search-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
}

.hero-kicker,
.section-kicker {
  color: var(--home-accent);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.search-panel h1 {
  max-width: 620px;
  font-size: clamp(40px, 4.3vw, 58px);
  line-height: 1.02;
  color: var(--home-primary-dark);
  letter-spacing: 0;
  margin: 10px 0 14px;
}

.search-panel p {
  color: var(--home-muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 560px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid #cfdae8;
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
}

.search-box input {
  border: none;
  outline: none;
  padding: 15px 16px;
  font-size: 15px;
  min-width: 0;
}

.search-box button {
  border: 0;
  background: var(--home-primary-dark);
  color: #fff;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filters select {
  border: 1px solid #cfdae8;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  background: #fff;
  color: #23314d;
  min-width: 0;
}

.hero-map-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  overflow: hidden;
  background: #eef5fb;
}

.map-panel-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--home-border);
}

.map-panel-head strong {
  color: var(--home-primary-dark);
  font-size: 15px;
}

.map-panel-head span {
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.map-area {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: #e8f3fb;
}

#mapaHome {
  width: 100%;
  min-height: 420px;
  z-index: 1;
}

#mapaCategoria {
  width: 100%;
  min-height: 420px;
  z-index: 1;
}

.category-map-wrap {
  position: relative;
  min-width: 0;
}

.category-map {
  height: 100%;
}

.category-hero-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 28px;
  margin-bottom: 18px;
}

.map-empty-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 401;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--home-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--home-muted);
  font-weight: 800;
  box-shadow: var(--home-shadow);
}

#mapaHome .leaflet-container,
#mapaHome.leaflet-container {
  font-family: inherit;
}

.home-map-marker-wrap {
  background: transparent;
  border: 0;
}

.home-map-marker {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .20);
}

.home-map-popup {
  display: grid;
  gap: 5px;
  min-width: 190px;
  color: #23314d;
}

.home-map-popup strong {
  color: var(--home-primary-dark);
  font-size: 15px;
}

.home-map-popup span,
.home-map-popup small {
  font-weight: 800;
}

.home-map-popup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.home-map-popup-actions a {
  background: var(--home-primary-dark);
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 900;
  text-decoration: none;
}

.home-map-popup-actions a:last-child {
  background: #16a34a;
}

.section {
  padding: 24px 0;
}

.stores-section {
  padding-top: 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.section-title {
  color: var(--home-primary-dark);
  font-size: 27px;
  line-height: 1.1;
  margin-top: 5px;
  letter-spacing: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.featured-card {
  min-height: 230px;
  border: 1px solid var(--home-border);
  border-radius: 17px;
  background: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 20px rgba(8, 40, 92, .05);
}

.featured-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.featured-logo {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #f5f8fc;
  color: var(--card-accent);
  font-size: 22px;
  font-weight: 950;
  overflow: hidden;
}

.featured-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-badge {
  max-width: 130px;
  border-radius: 999px;
  background: #f5f8fc;
  color: var(--card-accent);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-info {
  display: grid;
  gap: 7px;
}

.featured-info h3 {
  color: var(--home-primary-dark);
  font-size: 18px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-info p {
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-link {
  margin-top: auto;
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--home-primary-dark);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
}

.store-mini {
  min-height: 82px;
  border-radius: 14px;
  padding: 13px;
  border: 1px solid var(--home-border);
  background: #fff;
  display: flex;
  gap: 11px;
  align-items: center;
  transition: .18s;
  cursor: pointer;
}

.store-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 40, 92, .07);
}

.store-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
  overflow: hidden;
}

.store-mini-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.store-mini strong {
  display: -webkit-box;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-mini span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--home-muted);
}

.category-stores-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.empty-text,
.filter-summary {
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.empty-card {
  border: 1px solid var(--home-border);
  border-radius: 18px;
  background: #fff;
  padding: 32px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: var(--home-shadow);
}

.empty-card p {
  color: var(--home-muted);
  font-weight: 800;
}

.cta {
  margin: 26px 0 34px;
  background: linear-gradient(135deg, var(--home-primary-dark), var(--home-primary));
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--home-shadow);
}

.cta h2 {
  font-size: 27px;
  line-height: 1.15;
  margin-bottom: 7px;
}

.cta p {
  color: rgba(255, 255, 255, .84);
  font-size: 15px;
  line-height: 1.5;
}

.cta-button {
  background: var(--home-accent);
  flex: 0 0 auto;
}

.footer {
  border-top: 1px solid var(--home-border);
  background: #fff;
  padding: 30px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 750;
}

.footer-inner p {
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: #23314d;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .search-panel {
    min-height: auto;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1240px);
  }

  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .main-menu {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .area-btn {
    width: 100%;
  }

  .public-brand {
    gap: 11px;
  }

  .public-brand__logo-wrap {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .public-brand__title {
    font-size: 20px;
  }

  .public-brand__tagline {
    display: none;
  }

  .public-footer .public-brand__logo,
  .footer .public-brand__logo {
    height: 48px;
  }

  .logo-title {
    font-size: 24px;
  }

  .logo-sub {
    white-space: normal;
  }

  .category-scroll {
    min-height: 58px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-card {
    border-radius: 16px;
    padding: 12px;
  }

  .search-panel {
    padding: 16px;
  }

  .search-panel h1 {
    font-size: clamp(34px, 11vw, 42px);
  }

  .search-panel p {
    font-size: 15px;
  }

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

  .search-box button {
    min-height: 44px;
  }

  .map-panel-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 14px;
  }

  #mapaHome,
  #mapaCategoria,
  .map-area {
    min-height: 320px;
  }

  .section-title {
    font-size: 24px;
  }

  .featured-grid,
  .stores-grid,
  .category-stores-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .cta-button {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}
