/**
 * Hybrid /mapa — modal, search, toolbar, list cards.
 */

body.uo-mapa-hybrid.page-mapa .bloco-filtro {
  display: none !important;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-legacy-list,
body.uo-mapa-hybrid.page-mapa .uo-mapa-legacy-filters {
  display: none !important;
}

body.uo-mapa-hybrid.page-mapa #loja-credenciada-slide .view-loja-credenciada .view-footer {
  z-index: 1;
}

/* Controles Google Maps: o tema comprime todo button do .view-loja-credenciada (busca). */
body.uo-mapa-hybrid.page-mapa #map .gm-style button,
body.uo-mapa-hybrid.page-mapa #map .gm-style input[type="button"],
body.uo-mapa-hybrid.page-mapa #map-wrapper .gm-style button,
body.uo-mapa-hybrid.page-mapa #map-wrapper .gm-style input[type="button"],
body.uo-mapa-hybrid.page-mapa #loja-credenciada-slide .view-loja-credenciada .gm-style button,
body.uo-mapa-hybrid.page-mapa #loja-credenciada-slide .view-loja-credenciada .gm-style input[type="button"] {
  width: auto !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: normal !important;
  background-image: none !important;
  background-size: auto !important;
  background-position: initial !important;
  background-repeat: no-repeat !important;
  border-radius: 2px !important;
  vertical-align: middle !important;
  box-shadow: none;
}

body.uo-mapa-hybrid.page-mapa #map .gm-style-mtc,
body.uo-mapa-hybrid.page-mapa #map .gm-style-mtc button,
body.uo-mapa-hybrid.page-mapa #map-wrapper .gm-style-mtc,
body.uo-mapa-hybrid.page-mapa #map-wrapper .gm-style-mtc button {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 40px !important;
  font-size: 14px !important;
  background-image: none !important;
  margin: 0 !important;
  margin-left: 0 !important;
}

body.uo-mapa-hybrid.page-mapa #map .gm-style-mtc > div,
body.uo-mapa-hybrid.page-mapa #map-wrapper .gm-style-mtc > div {
  height: 40px !important;
}

body.uo-mapa-hybrid.page-mapa #map .gm-style img,
body.uo-mapa-hybrid.page-mapa #map-wrapper .gm-style img {
  max-width: none !important;
  height: auto;
}

/* Kill oversized top padding from legacy mapa layout. */
body.uo-mapa-hybrid.page-mapa #page #content #loja-credenciada-slide .view-loja-credenciada {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.85rem 1.2vw 0 !important;
  box-sizing: border-box;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-toolbar {
  position: relative;
  z-index: 5;
  width: 26.75%;
  max-width: 26.75%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0.35rem 0.4rem 0;
  box-sizing: border-box;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-toolbar__chips {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  order: -1;
  width: 100%;
  min-width: 0;
}

@media (min-width: 901px) {
  body.uo-mapa-hybrid.page-mapa .uo-mapa-toolbar__chips {
    padding-bottom: 5px;
  }
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-search {
  display: flex;
  align-items: stretch;
  gap: 0.3rem;
  width: 100%;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.15rem !important;
  margin: 0 !important;
  padding: 0 0.65rem !important;
  border: 1px solid #c9d8dd !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  background: #fff !important;
  box-sizing: border-box;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-search__btn {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0 0.7rem;
  background: #00aac8 !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  width: auto !important;
  height: 2.15rem !important;
  margin: 0 !important;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-search__btn:hover {
  background: #0090ab !important;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

body.uo-mapa-hybrid.page-mapa #loja-credenciada-slide .uo-mapa-list-wrap {
  flex: 0 0 auto;
  width: 26.75%;
  max-width: 26.75%;
  height: 34vw;
  max-height: calc(100% - 7.5rem);
  min-height: 0;
  overflow-y: auto;
  padding: 0 0.35rem 1rem 0;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

body.uo-mapa-hybrid.page-mapa #loja-credenciada-slide .uo-mapa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-status {
  margin: 0.15rem 0 0.65rem;
  font-size: 0.9rem;
  color: #4a6168;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-status:empty {
  display: none;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-toolbar__change {
  appearance: none;
  border: 1px solid #00aac8;
  background: #fff;
  color: #00aac8;
  font-weight: 700;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-toolbar__change:hover {
  background: #e8f8fb;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-toolbar__area {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: #33484e;
  font-weight: 600;
  cursor: pointer;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-chiprail {
  display: block;
  width: 100%;
  min-width: 0;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-chiprail__track {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-chiprail__track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-chiprail__track.is-scrollable {
  cursor: grab;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-chiprail__track.is-dragging {
  cursor: grabbing;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-chiprail__track.is-dragging a {
  pointer-events: none;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-sort,
body.uo-mapa-hybrid.page-mapa .uo-mapa-type {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  width: max-content;
  min-width: 100%;
  padding: 0;
  margin: 0;
  overflow: visible;
  list-style: none;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-sort {
  gap: 0.18rem;
}

/* Reset legado .filter-links-style a (vw padding) — só classes uo-mapa-*. */
body.uo-mapa-hybrid.page-mapa .uo-mapa-tag {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: inherit;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-type .uo-mapa-tag span {
  display: inline-block;
  box-sizing: border-box;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d7e3e7;
  background: #eef3f5;
  color: #33484e;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  text-transform: none;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-sort .uo-mapa-tag span {
  display: inline-block;
  box-sizing: border-box;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #eef3f5;
  color: #4a6168;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  text-transform: none;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-type .uo-mapa-tag.is-active span,
body.uo-mapa-hybrid.page-mapa .uo-mapa-sort .uo-mapa-tag.is-active span {
  background: #00aac8 !important;
  border-color: #00aac8 !important;
  color: #fff !important;
}

/* Cards */
body.uo-mapa-hybrid.page-mapa .uo-mapa-card {
  margin: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid #d7e3e7;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card:hover,
body.uo-mapa-hybrid.page-mapa .uo-mapa-card.is-active {
  border-color: #00aac8;
  box-shadow: 0 2px 10px rgba(0, 170, 200, 0.12);
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__inner {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  min-width: 0;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__media {
  flex: 0 0 4.75rem;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef0;
  align-self: center;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__media--empty {
  background: linear-gradient(145deg, #e8f4f7 0%, #d7e3e7 100%);
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
  color: #1c2b30;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__rating {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: #f5b301;
  color: #1c2b30;
  font-weight: 800;
  font-size: 0.85rem;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__snippet,
body.uo-mapa-hybrid.page-mapa .uo-mapa-card__meta {
  margin: 0.2rem 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #4a6168;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #00aac8;
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
}

body.uo-mapa-hybrid.page-mapa .uo-mapa-card__link:hover {
  background: #0090ab;
}

/* Modal */
.uo-mapa-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.uo-mapa-modal.is-open {
  display: flex;
}

.uo-mapa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 34, 0.55);
}

.uo-mapa-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.uo-mapa-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #1c2b30;
  font-weight: 800;
}

.uo-mapa-modal__lead {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4a6168;
}

.uo-mapa-modal__section {
  margin-bottom: 1rem;
}

.uo-mapa-modal__label {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #00aac8;
}

.uo-mapa-modal__hint {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #7a8f96;
  font-size: 0.78rem;
}

.uo-mapa-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.uo-mapa-chip {
  appearance: none;
  border: 1px solid #c9d8dd;
  background: #f4f8f9;
  color: #33484e;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.uo-mapa-chip.is-active {
  border-color: #00aac8;
  background: #00aac8;
  color: #fff;
}

.uo-mapa-modal__error {
  margin: 0 0 0.75rem;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 600;
}

.uo-mapa-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.uo-mapa-modal__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.uo-mapa-modal__btn--primary {
  background: #00aac8;
  color: #fff;
}

.uo-mapa-modal__btn--primary:hover {
  background: #0090ab;
}

.uo-mapa-modal__btn--ghost {
  background: transparent;
  color: #4a6168;
  text-decoration: underline;
  font-weight: 600;
}

/* Marketplace sections below the map (Views block_1 panes). */
body.page-mapa #hospedagem-mapa-info,
body.page-mapa #servicos-mapa-info,
body.page-mapa #eventos-mapa-info {
  display: block !important;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0 2rem;
  padding: 0 1.2vw;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  background: #f7fafb;
}

body.page-mapa #hospedagem-mapa-info .view-header,
body.page-mapa #servicos-mapa-info .view-header,
body.page-mapa #eventos-mapa-info .view-header {
  display: block !important;
  margin: 0 0 1rem;
  padding: 0.25rem 0 0;
}

body.page-mapa #hospedagem-mapa-info .view-header h2,
body.page-mapa #servicos-mapa-info .view-header h2,
body.page-mapa #eventos-mapa-info .view-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1c2b30;
  letter-spacing: 0.01em;
}

body.page-mapa #hospedagem-mapa-info .view-content,
body.page-mapa #servicos-mapa-info .view-content,
body.page-mapa #eventos-mapa-info .view-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  float: none !important;
  padding: 0 !important;
}

body.page-mapa #hospedagem-mapa-info .view-content ul,
body.page-mapa #servicos-mapa-info .view-content ul,
body.page-mapa #eventos-mapa-info .view-content ul {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0 0 1.25rem;
  list-style: none;
}

body.page-mapa #hospedagem-mapa-info .view-content ul li,
body.page-mapa #servicos-mapa-info .view-content ul li,
body.page-mapa #eventos-mapa-info .view-content ul li,
body.page-mapa #hospedagem-mapa-info .view-content ul li.uo-marketplace-row,
body.page-mapa #servicos-mapa-info .view-content ul li.uo-marketplace-row {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.page-mapa #hospedagem-mapa-info .uo-map-payload,
body.page-mapa #servicos-mapa-info .uo-map-payload,
body.page-mapa #eventos-mapa-info .uo-map-payload {
  display: none !important;
}

body.page-mapa #hospedagem-mapa-info .uo-listing-card,
body.page-mapa #servicos-mapa-info .uo-listing-card {
  height: 100%;
}

@media (max-width: 1100px) {
  body.page-mapa #hospedagem-mapa-info .view-content ul,
  body.page-mapa #servicos-mapa-info .view-content ul,
  body.page-mapa #eventos-mapa-info .view-content ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.uo-mapa-hybrid.page-mapa .uo-mapa-toolbar,
  body.uo-mapa-hybrid.page-mapa #loja-credenciada-slide .uo-mapa-list-wrap {
    width: 100%;
    max-width: 100%;
  }

  body.uo-mapa-hybrid.page-mapa #loja-credenciada-slide .uo-mapa-list-wrap {
    height: auto;
    max-height: 38vh;
  }

  body.page-mapa #hospedagem-mapa-info .view-content ul,
  body.page-mapa #servicos-mapa-info .view-content ul,
  body.page-mapa #eventos-mapa-info .view-content ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 560px) {
  body.page-mapa #hospedagem-mapa-info .view-content ul,
  body.page-mapa #servicos-mapa-info .view-content ul,
  body.page-mapa #eventos-mapa-info .view-content ul {
    grid-template-columns: 1fr;
  }
}
