/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:     #F59E0B;
  --orange-dark:#D97706;
  --navy:       #1E3A5F;
  --navy-dark:  #152B47;
  --green-wa:   #25D366;
  --green-wa-dk:#1DA851;
  --bg:         #F5F5F5;
  --surface:    #FFFFFF;
  --text:       #1A1A1A;
  --text-muted: #6B7280;
  --border:     #E5E7EB;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --app-max:    430px;
}

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  max-width: var(--app-max);
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { display: block; width: 100%; object-fit: cover; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 10px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  margin: 10px 14px 0;
  padding: 0 14px;
  background: var(--navy);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header__icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.header__icon-btn:active { background: rgba(255,255,255,.22); }

.header__logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.5px;
}
.logo__zaap { color: var(--orange); }
.logo__jipa { color: #ffffff; }

/* ===== MAIN ===== */
.main {
  padding-top: 18px;
  padding-bottom: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-radius: 20px;
  margin: 0 14px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(245,158,11,.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(42,82,152,.4) 0%, transparent 55%),
    linear-gradient(135deg, #1E3A5F 0%, #0F2340 40%, #1a4a2e 100%);
}
/* Decorative city skyline silhouette */
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-image:
    linear-gradient(to top, rgba(15,25,45,.6) 0%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70'%3E%3Crect x='0' y='30' width='18' height='40' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='20' y='20' width='22' height='50' fill='rgba(255,255,255,0.07)'/%3E%3Crect x='45' y='35' width='14' height='35' fill='rgba(255,255,255,0.05)'/%3E%3Crect x='62' y='15' width='30' height='55' fill='rgba(255,255,255,0.08)'/%3E%3Crect x='95' y='28' width='16' height='42' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='114' y='10' width='24' height='60' fill='rgba(255,255,255,0.09)'/%3E%3Crect x='141' y='25' width='20' height='45' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='164' y='32' width='14' height='38' fill='rgba(255,255,255,0.05)'/%3E%3Crect x='181' y='18' width='26' height='52' fill='rgba(255,255,255,0.07)'/%3E%3Crect x='210' y='30' width='18' height='40' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='231' y='12' width='22' height='58' fill='rgba(255,255,255,0.09)'/%3E%3Crect x='256' y='22' width='28' height='48' fill='rgba(255,255,255,0.07)'/%3E%3Crect x='287' y='35' width='16' height='35' fill='rgba(255,255,255,0.05)'/%3E%3Crect x='306' y='15' width='20' height='55' fill='rgba(255,255,255,0.08)'/%3E%3Crect x='329' y='28' width='24' height='42' fill='rgba(255,255,255,0.06)'/%3E%3Crect x='356' y='20' width='18' height='50' fill='rgba(255,255,255,0.07)'/%3E%3Crect x='377' y='32' width='23' height='38' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
  background-size: cover, cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,.55) 0%, transparent 55%);
}
.hero__content {
  position: absolute;
  bottom: 22px;
  left: 20px;
  right: 20px;
  z-index: 2;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 8px;
}
.hero__title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.hero__sub {
  margin-top: 5px;
  font-size: .8rem;
  color: rgba(255,255,255,.8);
}

/* ===== MARKET LOCATION BADGE ===== */
.market-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 12px 16px 0;
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.market-location svg { stroke: var(--orange); flex-shrink: 0; }

/* ===== CATEGORY PILLS (idênticas às bpills) ===== */
.cpills-wrap {
  margin: 10px 0 0;
  padding: 0 16px;
}
.cpills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow: hidden;
  transition: max-height .35s ease;
}
/* Pill — mesmo estilo das bpills */
.cpill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
  line-height: 1.3;
}
.cpill:active { transform: scale(.93); }
.cpill:hover  { border-color: var(--navy); color: var(--navy); }
.cpill--active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
/* Botão "Ver todas as categorias" */
.cpills-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 4px 10px;
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.cpills-expand-btn:hover { border-color: var(--navy); color: var(--navy); }

/* ===== PÍLULAS DE BAIRRO ===== */
.bpills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 2px 0 12px;
}
.bpill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
  line-height: 1.3;
}
.bpill:active { transform: scale(.93); }
.bpill:hover  { border-color: var(--navy); color: var(--navy); }
.bpill--active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.bpill__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: rgba(0,0,0,.12);
  border-radius: 10px;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1;
}
.bpill--active .bpill__n {
  background: rgba(255,255,255,.22);
}

/* ===== VER MAIS (nearby) ===== */
.nearby-ver-mais {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  box-shadow: var(--shadow-sm);
}
.nearby-ver-mais:hover  { background: #EEF2F8; border-color: var(--navy); }
.nearby-ver-mais:active { transform: scale(.98); }
.nearby-ver-mais__count {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ===== MARKETPLACE GRID ===== */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.market-grid--nearby {
  padding: 2px 0 6px;
}

.mcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
  animation: fadeInUp .3s ease both;
}
.mcard:active {
  transform: scale(.97);
  box-shadow: none;
}
.mcard__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mcard__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mcard__emoji {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.18));
  position: relative;
  z-index: 1;
}
.mcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.mcard__destaque {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: .72rem;
  background: rgba(245,158,11,.92);
  color: #fff;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.mcard__body {
  padding: 9px 10px 10px;
}
.mcard__name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.mcard__meta {
  font-size: .68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 16px 0;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.search-bar__icon { flex-shrink: 0; }
.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: transparent;
}
.search-bar__input::placeholder { color: #AAA; }

/* ===== SECTION ===== */
.section {
  margin-top: 24px;
  padding: 0 16px;
}
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.section__link {
  font-size: .72rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .5px;
}

/* ===== CATEGORIES ===== */
.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.categories::-webkit-scrollbar { display: none; }

.category {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px 10px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  min-width: 72px;
  transition: all .18s ease;
}
.category--active {
  border-color: var(--orange);
  background: #FFF8EC;
}
.category__icon {
  font-size: 1.5rem;
  line-height: 1;
}
.category__label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.category--active .category__label { color: var(--orange-dark); }

/* ===== DESTAQUES GRID ===== */
.dcard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp .35s ease both;
}

.dcard__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  flex-shrink: 0;
}

.dcard__emoji {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.18));
}

.dcard__body {
  flex: 1;
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dcard__name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dcard__meta {
  font-size: .68rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.dcard__wbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  background: var(--green-wa);
  color: white;
  margin: 6px 10px 10px;
  border-radius: var(--radius-sm);
  transition: background .15s;
  flex-shrink: 0;
}
.dcard__wbtn:active { background: var(--green-wa-dk); }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.card__thumb {
  position: relative;
  height: 120px;
}
.card__thumb img {
  height: 100%;
  object-position: center;
}

.card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 20px;
  color: white;
}
.card__badge--alimentacao { background: var(--orange); }
.card__badge--beleza      { background: #E91E8C; }
.card__badge--saude       { background: #0891B2; }
.card__badge--servicos    { background: #7C3AED; }

.card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.card__fav:hover { background: rgba(0,0,0,.55); }

.card__body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__name {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.card__desc {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== WHATSAPP BUTTON ===== */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  background: var(--green-wa);
  color: white;
  font-size: .78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background .15s, transform .1s;
}
.btn-whatsapp:active {
  background: var(--green-wa-dk);
  transform: scale(.97);
}

/* ===== LIST CARDS ===== */
.list-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.list-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.list-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.list-card__name {
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-card__cat {
  font-size: .7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-card__sep {
  margin: 0 4px;
  opacity: .4;
}

.list-card__wbtn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--green-wa);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s;
}
.list-card__wbtn:active {
  background: var(--green-wa-dk);
  transform: scale(.93);
}

/* ===== DISTRICT TABS ===== */
.district-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.district-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px 10px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s, background .18s, box-shadow .18s;
  overflow: hidden;
}
.district-tab::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--border);
  border-radius: 4px 0 0 4px;
  transition: background .18s;
}
.district-tab--active {
  border-color: var(--navy);
  background: #EEF2F8;
  box-shadow: 0 2px 10px rgba(30,58,95,.12);
}
.district-tab--active::before {
  background: var(--navy);
}
.district-tab:not(.district-tab--active):hover {
  border-color: #CBD5E1;
  background: #FAFAFA;
}
.district-tab__label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.district-tab--active .district-tab__label {
  color: var(--navy);
}
.district-tab__desc {
  font-size: .68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.district-tab__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--border);
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 700;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s;
}
.district-tab--active .district-tab__badge {
  background: var(--navy);
  color: white;
}

/* ===== BAIRRO GROUPS ===== */
#nearby-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bairro-group__header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 12px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  transition: background .15s;
  text-align: left;
}
.bairro-group__header:hover  { background: #162d4a; }
.bairro-group__header:active { background: #0f2035; }

.bairro-group__pin {
  flex-shrink: 0;
  stroke: var(--orange);
}
.bairro-group__name {
  font-size: .82rem;
  font-weight: 700;
  flex: 1;
}
.bairro-group__count {
  font-size: .68rem;
  font-weight: 500;
  background: rgba(255,255,255,.15);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bairro-group__chevron {
  flex-shrink: 0;
  stroke: rgba(255,255,255,.8);
  transition: transform .25s ease;
}
.bairro-group--collapsed .bairro-group__chevron {
  transform: rotate(-90deg);
}

/* corpo recolhível */
.bairro-group__body {
  overflow: hidden;
  max-height: 9999px;
  transition: max-height .35s ease;
}
.bairro-group--collapsed .bairro-group__body {
  max-height: 0;
}

.bairro-group .list-cards {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2px;
}
.bairro-group .list-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  animation: none;
}
.bairro-group .list-card:last-child {
  border-bottom: none;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  margin: 24px 16px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #2A5298 100%);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta-banner__icon { font-size: 1.8rem; flex-shrink: 0; }
.cta-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cta-banner__text strong {
  font-size: .82rem;
  color: #fff;
  font-weight: 700;
}
.cta-banner__text span {
  font-size: .72rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}
.cta-banner__btn {
  flex-shrink: 0;
  padding: 9px 14px;
  background: var(--orange);
  color: white;
  font-size: .78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .15s;
}
.cta-banner__btn:active { background: var(--orange-dark); }

/* ===== ÁREA DO NEGÓCIO ===== */
.neg-access {
  margin: 12px 16px 0;
}
.neg-access__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
}
.neg-access__icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.neg-access__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.neg-access__title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.neg-access__sub {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.neg-access__btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}
.neg-access__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s, opacity .15s;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.neg-access__btn:active { opacity: .8; }
.neg-access__btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.neg-access__btn--outline:active { background: rgba(0,0,0,.05); }

/* ===== CATEGORIES BOTTOM SHEET ===== */
.cats-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 92;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cats-bg.open { opacity: 1; pointer-events: all; }

.cats-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(105%);
  pointer-events: none; /* não bloqueia cliques quando fechado */
  width: 100%;
  max-width: var(--app-max);
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  z-index: 93;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  transition: transform .32s cubic-bezier(.25,.46,.45,.94);
  box-shadow: 0 -8px 32px rgba(0,0,0,.16);
}
.cats-sheet.open {
  transform: translateX(-50%) translateY(0);
  pointer-events: all; /* restaura cliques quando aberto */
}

.cats-sheet__handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.cats-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.cats-sheet__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.cats-sheet__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.cats-sheet__close:hover { background: var(--border); }

.cats-sheet__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 14px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cats-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 6px 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s;
  font-family: inherit;
}
.cats-sheet-item:active { transform: scale(.94); }
.cats-sheet-item:hover  { background: #EEF2F8; }
.cats-sheet-item--active {
  background: var(--navy);
  border-color: var(--navy);
}
.cats-sheet-item--active .cats-sheet-item__label {
  color: #fff;
}
.cats-sheet-item__emoji {
  font-size: 1.8rem;
  line-height: 1;
}
.cats-sheet-item__label {
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

/* ===== FAB SPEED DIAL ===== */

/* Overlay que escurece o fundo quando o menu está aberto */
.fab-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 88;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.fab-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Wrapper do speed dial (agrupa FAB + itens) */
.fab-wrap {
  position: fixed;
  bottom: 22px;
  right: max(20px, calc(50% - var(--app-max)/2 + 20px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  /* Transparente a cliques: só o .fab e itens abertos capturam eventos */
  pointer-events: none;
}

/* Lista de itens (oculta por padrão) */
.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.fab-wrap.open .fab-menu { pointer-events: all; }

/* Um item do speed dial */
.fab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px) scale(.88);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.fab-wrap.open .fab-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
/* Stagger de baixo pra cima: último filho (mais perto do FAB) aparece primeiro */
.fab-wrap.open .fab-item:nth-last-child(1) { transition-delay: .00s; }
.fab-wrap.open .fab-item:nth-last-child(2) { transition-delay: .06s; }
.fab-wrap.open .fab-item:nth-last-child(3) { transition-delay: .12s; }
.fab-wrap.open .fab-item:nth-last-child(4) { transition-delay: .18s; }

/* Label (pill à esquerda do botão) */
.fab-item__label {
  background: rgba(15,35,64,.9);
  color: #fff;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  backdrop-filter: blur(4px);
}

/* Ícone circular */
.fab-item__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  color: var(--navy);
  flex-shrink: 0;
  transition: background .15s, transform .12s;
}
.fab-item:hover .fab-item__btn  { background: #EEF2F8; transform: scale(1.06); }
.fab-item:active .fab-item__btn { transform: scale(.94); }

/* Botão principal FAB */
.fab {
  pointer-events: all; /* o botão em si sempre clicável */
  width: 54px;
  height: 54px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(245,158,11,.5);
  border: none;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), background .18s;
  flex-shrink: 0;
}
.fab:active { transform: scale(.93); }
/* Rotaciona para × quando aberto */
.fab-wrap.open .fab {
  transform: rotate(45deg);
  background: #1a2f4d;
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max);
  height: 66px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: .62rem;
  font-weight: 600;
  text-transform: capitalize;
  transition: color .15s;
}
.bottom-nav__item--active {
  color: var(--navy);
}
.bottom-nav__item--active svg {
  stroke: var(--navy);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  display: flex;
  flex-direction: column;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-overlay__box {
  background: var(--surface);
  padding: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-overlay__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}
.search-overlay__close {
  padding: 4px 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
}
.search-overlay__results {
  background: var(--surface);
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 24px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:active { opacity: .7; }
.search-result-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}
.search-result-item__info { flex: 1; min-width: 0; }
.search-result-item__name {
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item__cat {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card, .list-card, .mcard {
  animation: fadeInUp .3s ease both;
}
.card:nth-child(1), .list-card:nth-child(1), .mcard:nth-child(1) { animation-delay: .04s; }
.card:nth-child(2), .list-card:nth-child(2), .mcard:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3), .list-card:nth-child(3), .mcard:nth-child(3) { animation-delay: .12s; }
.card:nth-child(4), .list-card:nth-child(4), .mcard:nth-child(4) { animation-delay: .16s; }

/* ===== EMPRESA DETAIL PAGE ===== */
.empresa-body { background: var(--bg); } /* carousel-wrap tem seu próprio #111 */

/* Header navy (igual à home) */
.emp-header {
  position: sticky;
  top: 10px; z-index: 50;
  height: 50px;
  background: var(--navy);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin: 10px 14px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.emp-back {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9);
  transition: background .15s;
  flex-shrink: 0;
}
.emp-back:active { background: rgba(255,255,255,.22); }
.emp-header__title {
  font-size: .9rem; font-weight: 700; color: #fff;
  flex: 1; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 0 8px;
}

/* Wrapper do carousel */
.emp-carousel-wrap {
  position: relative;
  background: #111;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  margin: 10px 14px 0;
}

/* Setas de navegação */
.emp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.28); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: .72;
  transition: background .15s, opacity .2s, transform .15s;
  user-select: none; -webkit-user-select: none;
}
.emp-arrow:hover  { background: rgba(0,0,0,.45); opacity: 1; }
.emp-arrow:active { transform: translateY(-50%) scale(.9); }
.emp-arrow--prev  { left: 10px; }
.emp-arrow--next  { right: 10px; }
.emp-arrow--hidden { opacity: 0 !important; pointer-events: none; }

/* Carousel */
.emp-carousel {
  display: flex; overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.emp-carousel::-webkit-scrollbar { display: none; }
.emp-slide {
  flex-shrink: 0; width: 100%; scroll-snap-align: start;
  aspect-ratio: 1 / 1; max-height: 340px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.emp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emp-slide__avatar { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.emp-slide__emoji { font-size: 6rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); }

/* Dots — flutuam sobre a foto, acima da área de sobreposição do content card */
.emp-dots {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.emp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: background .2s, width .2s;
}
.emp-dot--active { background: #fff; width: 18px; border-radius: 4px; }

/* Content card — sobe sobre o carousel, cantos arredondados */
.emp-content {
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  margin-top: -22px;
  position: relative; z-index: 2;
  padding-bottom: 24px;
  min-height: 50vh;
}
/* Handle bar (indicador de conteúdo scrollável) */
.emp-content::before {
  content: '';
  display: block;
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* Hero: nome + badges + localização */
.emp-hero { padding: 14px 16px 0; }
.emp-nome {
  font-size: 1.3rem; font-weight: 800;
  color: var(--text); line-height: 1.25;
  margin-bottom: 8px;
}
.emp-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.emp-cat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #EEF2F8; color: var(--navy);
  border: 1px solid #C7D9F0;
  padding: 4px 12px; border-radius: 20px;
  font-size: .75rem; font-weight: 700;
}
.emp-destaque-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: #FFF8EC; color: var(--orange-dark);
  border: 1px solid var(--orange);
  padding: 4px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 700;
}
.emp-location {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .74rem; color: var(--text-muted); font-weight: 500;
}
.emp-location svg { stroke: var(--orange); flex-shrink: 0; }

/* Botões de contato inline (WhatsApp + Instagram) */
.emp-contacts {
  display: flex; gap: 10px; padding: 14px 16px 0; flex-wrap: wrap;
}
.emp-contact-wa {
  flex: 1; min-width: 140px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 14px;
  background: #25D366; color: #fff;
  border-radius: var(--radius-md);
  font-size: .84rem; font-weight: 700; text-decoration: none;
  transition: background .15s, transform .1s;
}
.emp-contact-wa:active { background: #1DA851; transform: scale(.98); }
.emp-contact-ig {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 14px;
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: #fff; border-radius: var(--radius-md);
  font-size: .84rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: opacity .15s, transform .1s;
}
.emp-contact-ig:active { opacity: .85; transform: scale(.98); }

/* Cards arredondados (descrição + informações) */
.emp-card {
  margin: 14px 16px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.emp-card__label {
  font-size: .66rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .7px;
  padding: 12px 14px 6px;
}
.emp-card__text {
  font-size: .88rem; color: var(--text);
  line-height: 1.65; padding: 4px 14px 14px;
}

/* Linhas de informações (dentro do emp-card) */
.emp-info-rows { padding-bottom: 6px; }
.emp-info-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .84rem; gap: 8px;
}
.emp-info-row:last-child { border-bottom: none; padding-bottom: 16px; }
.emp-info-row__key { color: var(--text-muted); font-weight: 500; }
.emp-info-row__val { font-weight: 600; text-align: right; }

/* Link Instagram na tabela */
.emp-instagram-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; color: #C13584; text-decoration: none;
  transition: opacity .15s;
}
.emp-instagram-link:hover { opacity: .75; }

/* CTA fixo no bottom */
.emp-cta {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-max);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.emp-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px;
  background: #25D366; color: #fff;
  border-radius: var(--radius-md);
  font-size: .95rem; font-weight: 700; text-decoration: none;
  transition: background .15s, transform .1s;
}
.emp-cta__btn:active { background: #1DA851; transform: scale(.98); }
.emp-cta__sub {
  text-align: center; font-size: .7rem;
  color: var(--text-muted); margin-top: 6px;
}


/* Conteúdo */
.emp-content {
  padding: 18px 16px 0;
}
.emp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.emp-nome {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}
.emp-destaque-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #FFF8EC;
  border: 1px solid var(--orange);
  color: var(--orange-dark);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  margin-top: 4px;
}
.emp-cat-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.emp-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #EEF2F8;
  color: var(--navy);
  font-size: .76rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
}
.emp-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .73rem;
  color: var(--text-muted);
  font-weight: 500;
}
.emp-location svg { stroke: var(--orange); flex-shrink: 0; }

.emp-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* Seção de conteúdo */
.emp-section { margin-bottom: 4px; }
.emp-section__label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 8px;
}
.emp-section__text {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.65;
}

/* Tabela de informações */
.emp-info-rows {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.emp-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .84rem;
}
.emp-info-row:last-child { border-bottom: none; }
.emp-info-row__key { color: var(--text-muted); font-weight: 500; }
.emp-info-row__val { font-weight: 600; text-align: right; }
.emp-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #C13584;
  text-decoration: none;
  transition: opacity .15s;
}
.emp-instagram-link:hover { opacity: .75; }

/* CTA fixo no bottom */
.emp-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.emp-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.emp-cta__btn:active {
  background: #1DA851;
  transform: scale(.98);
}
.emp-cta__sub {
  text-align: center;
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 6px;
}
