:root {
  --city-ink: #17212b;
  --city-muted: #607080;
  --city-orange: #ff4f1f;
  --city-orange-dark: #e63d10;
  --city-cream: #fff8f1;
  --city-line: #eaded4;
  --city-white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.city-directory-page {
  margin: 0;
  color: var(--city-ink);
  background: var(--city-cream);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.city-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.city-header {
  background: var(--city-white);
  border-bottom: 1px solid var(--city-line);
}

.city-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.city-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--city-ink);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.city-brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.city-back {
  color: var(--city-ink);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.city-back:hover,
.city-back:focus-visible { color: var(--city-orange); }

.city-hero {
  padding: 64px 0 34px;
  text-align: center;
}

.city-eyebrow {
  margin: 0 0 12px;
  color: var(--city-orange);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.city-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.city-hero p:last-child {
  max-width: 690px;
  margin: 18px auto 0;
  color: var(--city-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.city-ad-wrap { margin: 0 auto 28px; }

.market-section { padding: 10px 0 74px; }

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.market-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--city-white);
  border: 1px solid var(--city-line);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(71, 50, 37, .07);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.market-card:hover,
.market-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 79, 31, .55);
  box-shadow: 0 18px 42px rgba(71, 50, 37, .13);
  outline: none;
}

.market-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 167, 120, .36), transparent 28%),
    linear-gradient(145deg, #fff1e6 0%, #fffaf6 100%);
  border-bottom: 1px solid var(--city-line);
}

.market-card__visual::after {
  content: "Ofertas da sua cidade";
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 7px 10px;
  color: var(--city-orange-dark);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.market-card.has-live-image .market-card__visual {
  padding: 0;
  background: #f4f4f4;
}

.market-card.has-live-image .market-card__visual::after { content: "Encarte disponível"; }

.market-card__image {
  width: 68%;
  height: 68%;
  display: block;
  object-fit: contain;
}

.market-card.has-live-image .market-card__image {
  width: 100%;
  height: 100%;
}

.market-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.market-card h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.market-card__description {
  margin: 10px 0 22px;
  color: var(--city-muted);
  font-size: 15px;
  line-height: 1.55;
}

.market-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--city-orange);
  font-size: 15px;
  font-weight: 850;
}

.market-card__cta span:last-child {
  font-size: 21px;
  line-height: 1;
  transition: transform .2s ease;
}

.market-card:hover .market-card__cta span:last-child { transform: translateX(4px); }

.city-footer {
  padding: 28px 0;
  color: var(--city-muted);
  background: var(--city-white);
  border-top: 1px solid var(--city-line);
  text-align: center;
  font-size: 14px;
}

.city-footer a { color: var(--city-orange-dark); font-weight: 750; }

@media (max-width: 900px) {
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .city-shell { width: min(100% - 28px, 1180px); }
  .city-header__inner { min-height: 66px; }
  .city-brand { font-size: 20px; }
  .city-brand img { width: 36px; height: 36px; }
  .city-back { font-size: 13px; }
  .city-hero { padding: 44px 0 26px; }
  .market-section { padding-bottom: 48px; }
  .market-grid { grid-template-columns: 1fr; gap: 18px; }
  .market-card { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}



