:root {
  /* Paleta da logo Guia Comercial */
  --bg: #f2f6fc;
  --bg-2: #ffffff;
  --ink: #0c1830;
  --muted: #566781;
  --line: #d5e0f0;
  --brand: #0078f0;
  --brand-2: #0056b3;
  --brand-soft: rgba(0, 120, 240, .14);
  --accent: #ff7a00;
  --accent-2: #e85d00;
  --accent-soft: rgba(255, 122, 0, .18);
  --green: #28a745;
  --green-2: #1e8e3e;
  --green-soft: rgba(40, 167, 69, .16);
  --ok: #1e8e3e;
  --danger: #b91c1c;
  --shadow: 0 14px 36px rgba(12, 24, 48, 0.09);
  --radius: 18px;
  --max: 1480px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", var(--font);
  --border: var(--line);
  --input-bg: #fff;
  --input-text: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 6% -14%, rgba(0,120,240,.16), transparent 58%),
    radial-gradient(900px 480px at 100% -4%, rgba(255,122,0,.14), transparent 52%),
    radial-gradient(700px 400px at 72% 12%, rgba(40,167,69,.10), transparent 55%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 1200;
  transition: background .3s ease, backdrop-filter .3s ease;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--brand), var(--accent), var(--green)) 1;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; min-height: 88px; width: min(100% - 2.5rem, var(--max)); margin-inline: auto;
  position: relative;
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 800; letter-spacing: -.03em; z-index: 2; }
.brand-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
}
.brand-text-sm { font-size: 1.35rem; }
.brand-text-guia { color: var(--brand); }
.brand-text-comercial { color: var(--accent); }
.brand-logo {
  display: block;
  height: 76px;
  width: auto;
  max-width: min(320px, 72vw);
  object-fit: contain;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 10px 22px rgba(0,80,180,.22));
}
.brand-logo-sm { height: 64px; max-width: 280px; filter: none; }
.brand-footer { margin-bottom: .55rem; }
@media (max-width: 980px) {
  .header-inner { min-height: 72px; }
  .brand-logo { height: 64px; max-width: 68vw; }
}
@media (max-width: 420px) {
  .header-inner { min-height: 96px; }
  .brand-logo { height: 56px; max-width: 62vw; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px;
  background: rgba(255,255,255,.15); cursor: pointer; place-items: center; gap: 5px;
  padding: 0; flex-direction: column; justify-content: center; z-index: 3;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled .nav-toggle {
  border-color: var(--line); background: #fff;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .2s ease, opacity .2s ease, background .3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.site-header .nav-toggle { border-color: var(--line); background: #fff; }
.site-header .nav-toggle span { background: var(--ink); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: flex; gap: .85rem; align-items: center; flex-wrap: wrap; }
.nav a { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; transition: color .3s ease; }
.nav a:hover { color: #ffffff; }
.site-header .nav a { color: var(--muted); }
.site-header .nav a:hover { color: var(--brand); }
.site-header.scrolled .nav a { color: var(--muted); }
.site-header.scrolled .nav a:hover { color: var(--brand); }
.nav-cart { gap: .35rem; font-weight: 700 !important; }
.nav-cart-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; margin-left: .35rem; padding: 0 .25rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; line-height: 1; }
.plan-feature-matrix th small { display:block; color:var(--muted); font-size:.72rem; font-weight:500; margin-top:.2rem; }
.plan-feature-matrix td,.plan-feature-matrix th { min-width:150px; vertical-align:middle; }
.feature-limit { width:100%; min-height:42px; border:1px solid var(--line); border-radius:10px; padding:.5rem .65rem; }
.feature-toggle { display:inline-flex; align-items:center; gap:.45rem; color:var(--muted); font-size:.82rem; white-space:nowrap; }
.feature-toggle input { width:18px; height:18px; accent-color:var(--brand); }
.product-purchase-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 360px); gap: 2rem; align-items: start; }
.purchase-panel { position: sticky; top: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.purchase-panel-icon { font-size: 2rem; margin-bottom: .5rem; }
.purchase-panel h2 { margin: 0 0 .6rem; font-family: var(--display); }
.purchase-panel p { color: var(--muted); }
.purchase-panel strong { display: block; margin: 1rem 0; font-size: 1.25rem; }
@media (max-width: 900px) { .product-purchase-layout { grid-template-columns: 1fr; } .purchase-panel { position: static; } }
.site-header:not(.scrolled) .btn-ghost { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.site-header:not(.scrolled) .btn-ghost:hover { background: rgba(255,255,255,.25); }
.site-header:not(.scrolled) .btn-cadastre { background: var(--accent); color: #fff !important; }
.company-open-status { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; margin: .7rem 0; padding: .35rem .7rem; border-radius: 999px; font-size: .86rem; }
.company-open-open { color: #166534; background: #dcfce7; }
.company-open-closed { color: #991b1b; background: #fee2e2; }
.company-open-dot { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
@media (max-width: 640px) { .form > div[style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; } .form > div[style*="grid-template-columns"] > strong { grid-column: 1 / -1; } }

.mobile-tabbar { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .75rem 1.15rem; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.is-loading { opacity: .7; cursor: wait; position: relative; }
.btn.is-loading::after { content: ''; width: .85rem; height: .85rem; margin-left: .35rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btn-spin .7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-primary { background: var(--brand); color: #ffffff !important; box-shadow: 0 10px 24px rgba(0,120,240,.32); }
.btn-primary:hover { background: var(--brand-2); color: #ffffff !important; }
.btn-accent { background: linear-gradient(135deg, #ff9a2e, var(--accent) 40%, var(--accent-2)); color: #ffffff !important; box-shadow: 0 10px 24px rgba(255,122,0,.35); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-wa { background: var(--green); color: #ffffff !important; box-shadow: 0 8px 18px rgba(40,167,69,.28); }
.nav .btn-primary, .nav .btn-accent, .nav .btn-wa { color: #ffffff !important; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: .4rem .8rem; font-size: .82rem; }
.btn-danger { background: #ef4444; color: #fff !important; }
.btn-danger:hover { background: #dc2626; }

.banner-img { width: 100%; height: auto; max-height: 300px; object-fit: contain; display: block; }
.banner-link { display: block; border-radius: 14px; overflow: hidden; background: #f0f4f8; text-align: center; line-height: 0; }
.banner-link:hover { opacity: .92; }

/* Banner slots (render_banner_slot) */
.guia-banner-slot { width: 100%; max-width: 1200px; margin: 1rem auto; border-radius: 14px; overflow: hidden; position: relative; }
.guia-banner-label { position: absolute; top: 6px; left: 10px; font-size: .7rem; color: #94a3b8; z-index: 1; }
.guia-banner-link { display: block; line-height: 0; }
.guia-banner-link img { width: 100%; height: auto; max-height: 280px; object-fit: contain; display: block; margin: 0 auto; }
.guia-banner-horizontal { background: #f8fafc; border: 1px solid #e2e8f0; }
@media (max-width: 768px) { .guia-banner-link img { max-height: 180px; } }

.cat-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .cat-layout { grid-template-columns: 1fr; } }
.cat-layout aside { position: sticky; top: 80px; }

.badge-warn { background: #fef3c7; color: #92400e; }
.badge-err { background: #fee2e2; color: #991b1b; }

.hide-mobile { }
@media (max-width: 760px) { .hide-mobile { display: none !important; } }

.panel-main table input[type="checkbox"] { width: auto; }

.hero { padding: 0; }
.hero-full .hero-card {
  border-radius: 0;
  min-height: clamp(300px, 44vh, 460px);
  display: flex;
  align-items: center;
  box-shadow: none;
  padding: clamp(2rem, 5vw, 3.6rem) 0;
  background:
    radial-gradient(560px 280px at 86% 20%, rgba(255,122,0,.45), transparent 62%),
    radial-gradient(420px 260px at 10% 90%, rgba(40,167,69,.32), transparent 64%),
    linear-gradient(125deg, #062048 0%, #0056b3 42%, #0078f0 72%, #1e90ff 100%);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}
.hero-full .hero-card::before {
  content: ""; position: absolute; inset: -30% auto auto 48%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 68%);
  pointer-events: none;
}
.hero-full .hero-card::after {
  content: ""; position: absolute; inset: auto -12% -48% auto; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,122,0,.5), transparent 66%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: min(100% - 2.5rem, var(--max)); }
.hero h1 {
  font-family: var(--display); font-size: clamp(2rem, 5.2vw, 3.35rem);
  line-height: 1.05; letter-spacing: -.04em; margin: 0 0 .75rem; max-width: 16ch;
}
.hero p { margin: 0 0 1.35rem; color: rgba(248,250,252,.9); max-width: 46ch; font-size: 1.05rem; }
.search-box {
  display: grid; gap: .7rem; position: relative; z-index: 1;
}
@media (min-width: 820px) {
  .search-box { grid-template-columns: 1.5fr .75fr .75fr auto; }
}
.search-box input, .search-box select, .form input, .form select, .form textarea {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid var(--line);
  padding: .8rem 1rem; background: #fff; color: var(--ink);
}
.search-box input, .search-box select { border: 0; }
.hero .search-box input, .hero .search-box select { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.section { padding: 1.6rem 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem;
}
.section-head h2 {
  font-family: var(--display); margin: 0; font-size: clamp(1.25rem, 3vw, 1.7rem); letter-spacing: -.03em;
}
.section-head p { margin: .2rem 0 0; color: var(--muted); }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; }
}

/* —— Mobile / tablet —— */
@media (max-width: 980px) {
  .container, .header-inner, .hero-inner { width: min(100% - 1.25rem, var(--max)); }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; top: calc(100% + 8px); right: 0; left: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow); padding: .6rem; flex-direction: column; align-items: stretch;
    gap: .15rem; z-index: 1250;
  }
  body.nav-open .nav { display: flex; }
  .nav a {
    padding: .75rem .9rem; border-radius: 12px; width: 100%;
    justify-content: flex-start;
  }
  .nav .btn { width: 100%; justify-content: center; }
  .btn-cadastre { font-size: .92rem; }
  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
    gap: .1rem;
  }
  .mobile-tabbar a {
    display: grid; place-items: center; gap: .15rem;
    font-size: .68rem; font-weight: 600; color: var(--muted);
    min-height: 52px; text-align: center; padding: .2rem;
  }
  .mobile-tabbar a:hover, .mobile-tabbar a:focus { color: var(--brand); }
  .tab-ico { font-size: 1.05rem; line-height: 1; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 1rem; }
  .hero-full .hero-card {
    min-height: auto;
    padding: 1.5rem 0 1.35rem;
  }
  .hero h1 { font-size: clamp(1.55rem, 7vw, 2.1rem); max-width: none; }
  .hero p { font-size: .98rem; margin-bottom: 1rem; }
  .section { padding: 1.15rem 0; }
  .section-head { align-items: start; flex-wrap: wrap; }
  .actions .btn { flex: 1 1 auto; min-width: min(100%, 160px); }
  .table-wrap, .hist-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 560px; }
  .auth-card { margin: 1rem auto; padding: 1.1rem; width: min(100% - .5rem, 440px); }
  .panel-main, .side { padding: .9rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .company-title-row { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .brand-text { font-size: 1.2rem; }
  .header-inner { min-height: 64px; }
}

@media (hover: none) {
  .btn:hover, .cta-item:hover { transform: none; }
}

.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
}
a.card { color: inherit; text-decoration: none; }
.card-body { padding: 1rem 1.05rem 1.15rem; display: grid; gap: .4rem; min-width: 0; }
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #eef3fb;
  color: var(--brand);
  font-weight: 700;
}
.card-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--brand);
  background:
    linear-gradient(145deg, rgba(0,120,240,.14), rgba(255,122,0,.08)),
    #eef3fb;
}
.card-media img {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: .75rem;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-media img.is-cover {
  padding: 0;
  object-fit: cover;
}
.card h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.meta { color: var(--muted); font-size: .88rem; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem;
  border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  background: var(--brand-soft); color: var(--brand-2);
}
.badge-gold { background: var(--accent-soft); color: #c2410c; }
.badge-ok { background: var(--green-soft); color: var(--green-2); }
.price { font-weight: 800; font-size: 1.1rem; }
.price s { color: var(--muted); font-weight: 500; font-size: .9rem; margin-right: .35rem; }

.cta-strip {
  display: grid; gap: .8rem; grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 900px) { .cta-strip { grid-template-columns: 1fr 1fr; } }
.cta-item {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1rem;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(90deg, var(--brand), var(--accent), var(--green));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta-item:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,120,240,.14); }
.cta-item strong { display: block; margin-bottom: .25rem; color: var(--ink); }

.flash-wrap { display: grid; gap: .5rem; margin: 1rem 0; }
.flash {
  padding: .8rem 1rem; border-radius: 12px; font-weight: 500;
}
.flash-ok { background: #ecfdf5; color: #065f46; }
.flash-erro { background: #fef2f2; color: #991b1b; }
.flash-info { background: #eff6ff; color: #1e3a8a; }

.site-footer {
  margin-top: 2.5rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted);
}
.footer-grid { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.panel-shell { display: grid; grid-template-columns: 250px 1fr; gap: 1rem; padding: 1.2rem 0 2rem; }
@media (max-width: 900px) { .panel-shell { grid-template-columns: 1fr; } }
.side {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1rem; height: fit-content;
  box-shadow: var(--shadow);
}
.side a {
  display: block; padding: .65rem .75rem; border-radius: 10px; color: var(--muted); margin-bottom: .2rem;
}
.side a.active, .side a:hover { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.panel-main { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: #f8fafb; border: 1px solid var(--line); border-radius: 14px; padding: .9rem; }
.stat strong { display: block; font-size: 1.35rem; letter-spacing: -.03em; }

.company-hero {
  display: grid; gap: 1rem; grid-template-columns: 1.4fr .8fr; align-items: start;
}
@media (max-width: 860px) { .company-hero { grid-template-columns: 1fr; } }
.company-page { padding-top: 1.4rem; }
.company-page .breadcrumb { margin-bottom: 1.2rem; }
.company-profile-card { border: 0; overflow: hidden; box-shadow: 0 20px 55px rgba(12,24,48,.12); }
.company-profile-card .company-banner { min-height: 300px; aspect-ratio: 16/6 !important; background: linear-gradient(135deg, #0b1a30, #0878e8); }
.company-profile-card .company-banner img { object-fit: cover; width: 100%; height: 100%; }
.company-profile-body { padding: 1.5rem 1.7rem 1.7rem; }
.company-profile-body .company-title-row { margin-top: -3.6rem; position: relative; z-index: 2; align-items: end; }
.company-profile-body .company-logo { width: 92px; height: 92px; border: 5px solid #fff; box-shadow: 0 8px 22px rgba(12,24,48,.18); }
.company-profile-body h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.company-profile-body .actions { margin-top: 1.2rem; }
.company-info-card { position: sticky; top: 1.4rem; border: 1px solid rgba(0,120,240,.16); box-shadow: 0 18px 42px rgba(12,24,48,.1); }
.company-info-card h3 { font-family: var(--display); font-size: 1.2rem; margin-top: .5rem; }
.company-info-card .company-open-status { margin: .3rem 0 1rem; }
.empresa-map-feature, .company-page > .section { scroll-margin-top: 100px; }
.company-page > .section > .section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.company-page .grid-3 .card { transition: transform .2s ease, box-shadow .2s ease; }
.company-page .grid-3 .card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(12,24,48,.12); }
@media (max-width: 860px) {
  .company-info-card { position: static; }
  .company-profile-card .company-banner { min-height: 220px; }
  .company-profile-body { padding: 1.2rem; }
}
.actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .7rem .4rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.empty {
  padding: 2rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px;
}
.form { display: grid; gap: .8rem; max-width: 560px; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.auth-card {
  width: min(100%, 440px); margin: 2rem auto; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 1.4rem; box-shadow: var(--shadow);
}
.stars { color: var(--accent); letter-spacing: .05em; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.breadcrumb a:hover { color: var(--brand); }

.dropzone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: #f8fafb;
  min-height: 140px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.dropzone.is-drag {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dropzone-ui {
  pointer-events: none;
  display: grid;
  gap: .25rem;
  place-items: center;
  text-align: center;
  min-height: 88px;
}
.dropzone-preview {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
  pointer-events: none;
}
.dropzone-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .7rem;
}
.photo-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  background: #eef2f5;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-del {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(185,28,28,.92); color: #fff; font-size: 1.1rem; cursor: pointer;
  line-height: 1;
}
.product-gallery {
  display: grid;
  gap: .6rem;
}
.product-gallery-main {
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  background: #e8eef2;
}
.product-gallery-main img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; object-position: center; }
.product-thumbs {
  display: flex; gap: .45rem; flex-wrap: wrap;
}
.product-thumbs img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer;
}
.product-thumbs img.is-active { border-color: var(--brand); }

.company-banner-preview {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21/9;
  background: #eef2f5;
}
.company-banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.dropzone-banner { min-height: 160px; }
.company-title-row {
  display: flex;
  gap: .85rem;
  align-items: center;
  margin-bottom: .35rem;
}
.company-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
  flex: 0 0 auto;
}

/* Mapa (Leaflet) — classes guia-map e guia-map-full */
.map-page-head { margin-bottom: 1rem; }
.map-fullscreen {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: min(70vh, 560px);
}
.guia-map-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
body.page-map-fullscreen main { padding-top: 0; }
body.page-map-fullscreen .map-fullscreen { margin: 0 -1rem; width: calc(100% + 2rem); }
.map-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  pointer-events: none;
}
.map-overlay-top a,
.map-overlay-top select,
.map-overlay-filters,
.map-overlay-top .map-flt { pointer-events: auto; }
.map-overlay-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
  pointer-events: none;
}
.map-count-full {
  display: inline-block;
  background: rgba(255, 255, 255, .92);
  padding: .35rem .65rem;
  border-radius: 8px;
  font-size: .82rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.map-empty-full {
  position: absolute;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .75);
  text-align: center;
  padding: 1rem;
}
.map-empty-full[hidden] { display: none !important; }
.map-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.map-filter { display: flex; flex-direction: column; gap: .25rem; min-width: 180px; }
.map-filter select {
  padding: .5rem .65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--card);
}
.map-count { margin: 0; flex: 1; min-width: 140px; }
.map-wrap { padding: 0; overflow: hidden; position: relative; }
.guia-map {
  width: 100%;
  min-height: 58vh;
  height: 420px;
  background: #e8ecef;
}
.map-empty {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.map-popup { font-size: .9rem; line-height: 1.35; }
.map-popup-cat, .map-popup-city { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.map-popup-link {
  display: inline-block;
  margin-top: .45rem;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.map-perfil-block h3 { font-size: 1rem; }
.map-perfil-block {
  position: relative;
  isolation: isolate;
}
.map-perfil-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem;
  margin-bottom: .75rem;
}
.map-perfil-fields label:has(#perfilStreet),
.map-perfil-fields label:has(#perfilNumber) {
  grid-column: 1 / -1;
}
.map-perfil-fields input,
.map-perfil-fields select { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; background: #fff; color: var(--ink); }
.hours-row { display: grid; grid-template-columns: minmax(130px, 1fr) 1fr 1fr auto; gap: .5rem; align-items: end; }
.hours-row label { display: grid; gap: .35rem; font-size: .82rem; font-weight: 600; }
.hours-row input[type="time"] { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; background: #fff; color: var(--ink); }
.hours-row input[type="checkbox"] { width: auto; min-height: auto; }
.social-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.social-fields label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.social-fields input { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; background: #fff; color: var(--ink); }
@media (max-width: 640px) {
  .map-perfil-fields { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row > strong { grid-column: 1 / -1; }
  .social-fields { grid-template-columns: 1fr; }
}
.map-perfil-status { margin: .5rem 0; }
.btn-block { justify-content: center; }

.map-perfil-map-layer {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-address-search-wrap {
  display: block;
  position: relative;
}
.map-address-input {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.map-address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  max-height: 220px;
  overflow-y: auto;
  z-index: 1300;
}
.map-address-suggestions[hidden] {
  display: none !important;
}
.map-address-suggestions li {
  padding: .6rem .75rem;
  cursor: pointer;
  font-size: .88rem;
  line-height: 1.35;
  color: var(--text, #0f172a);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.map-address-suggestions li:last-child {
  border-bottom: none;
}
.map-address-suggestions li:hover,
.map-address-suggestions li:focus {
  background: var(--brand-soft, #e8f4ff);
}
.perfil-map-picker {
  border-radius: 0;
}

.impersonate-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .55rem 1rem;
  background: #1e3a5f;
  color: #fff;
  font-size: .88rem;
}
.impersonate-banner .btn.btn-ghost {
  background: #fff;
  color: #1e3a5f !important;
  border: 1px solid rgba(255, 255, 255, .9);
  font-weight: 600;
}
.impersonate-banner .btn.btn-ghost:hover,
.impersonate-banner .btn.btn-ghost:focus {
  background: #e8f0fa;
  color: #0c1830 !important;
  border-color: #fff;
}

.empresa-map-head { align-items: center; }
.empresa-map-head .btn { flex-shrink: 0; }

.empresa-map-wrap { padding: 0; overflow: hidden; position: relative; }
.empresa-map { border-radius: 0; }

