/* ==========================================================================
   SR. CREME — ONDE ESTAMOS — V5
   CSS exclusivo e limpo desta página.
   ========================================================================== */

:root {
  --sr-locator-red: #8f0000;
  --sr-locator-red-dark: #650000;
  --sr-locator-yellow: #f0cb00;
  --sr-locator-brown: #36261e;
  --sr-locator-text: #655b55;
  --sr-locator-muted: #857970;
  --sr-locator-line: #e5d7c7;
  --sr-locator-soft: #fff9f3;
  --sr-locator-shadow: 0 14px 32px rgba(54, 38, 30, 0.11);
  --sr-map-top: 74px;
}

body .page-wrapper {
  overflow: visible;
}

body {
  overflow-x: hidden;
}

.sr-locator,
.sr-locator *,
.sr-locator *::before,
.sr-locator *::after {
  box-sizing: border-box;
}

.sr-locator {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: #fff;
}

.sr-locator .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-locator button:focus-visible,
.sr-locator a:focus-visible,
.sr-locator input:focus-visible {
  outline: 3px solid rgba(240, 203, 0, 0.8);
  outline-offset: 3px;
}

/* Estrutura */
.sr-locator__shell {
  display: grid;
  grid-template-columns: clamp(470px, 34vw, 555px) minmax(0, 1fr);
  align-items: start;
  width: 100%;
  min-width: 0;
  min-height: 760px;
}

.sr-locator__panel {
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
  padding: 34px 32px 42px;
  overflow: visible;
  border-right: 1px solid var(--sr-locator-line);
  background: #fff;
}

.sr-locator__intro {
  width: 100%;
  margin: 0 0 25px;
}


/* SUBTITULO COM BORDA -- aqui muda o subtitulo com borda acima do titulo principal ---*/
.sr-locator__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 8px 13px;
  border: 1px solid rgba(240, 203, 0, 0.5);
  border-radius: 999px;
  color: var(--sr-locator-red);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}


/* TITULO PRINCIPAL -- aqui muda o titulo principal ---*/
.sr-locator__intro h1 {
  width: 100%;
  margin: 0 0 14px;
  color: var(--sr-locator-red);
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(29px, 2.15vw, 20px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.85px;
  overflow-wrap: anywhere;
}

/* TEXTO DESCRICAO -- aqui muda o texto abaixo do titulo principal ---*/
.sr-locator__intro p {
  width: 100%;
  margin: 0;
  color: var(--sr-locator-text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

/* Busca */
.sr-locator__form {
  position: relative;
  width: 100%;
  margin-bottom: 11px;
}

.sr-locator__search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 9px;
  width: 100%;
  min-width: 0;
}

.sr-locator__input-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.sr-locator__input-icon {
  position: absolute;
  z-index: 2;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sr-locator-red);
  font-size: 18px;
  pointer-events: none;
}

.sr-locator__input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 13px 46px 13px 48px;
  border: 1px solid #dfd0c0;
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: var(--sr-locator-brown);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 650;
}

.sr-locator__input:focus {
  border-color: rgba(143, 0, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(143, 0, 0, 0.07);
}

.sr-locator__input::placeholder {
  color: #968981;
  font-weight: 500;
}

.sr-locator__clear {
  position: absolute;
  z-index: 3;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #877a72;
  cursor: pointer;
}

.sr-locator__clear.is-visible {
  display: inline-flex;
}

.sr-locator__clear:hover {
  background: #f8efea;
  color: var(--sr-locator-red);
}

.sr-locator__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--sr-locator-red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(143, 0, 0, 0.18);
  font-size: 20px;
  cursor: pointer;
}

.sr-locator__submit:hover {
  background: var(--sr-locator-red-dark);
}

/* Autocomplete */
.sr-locator__autocomplete {
  position: absolute;
  z-index: 1100;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  display: none;
  max-height: 340px;
  margin: 0;
  padding: 7px;
  overflow-y: auto;
  overflow-x: hidden;
  list-style: none;
  border: 1px solid var(--sr-locator-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sr-locator-shadow);
}

.sr-locator__autocomplete.is-open {
  display: block;
}

.sr-locator__autocomplete li {
  width: 100%;
  margin: 0;
  padding: 0;
}

.sr-locator__autocomplete button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sr-locator-brown);
  text-align: left;
  cursor: pointer;
}

.sr-locator__autocomplete button:hover,
.sr-locator__autocomplete button.is-active {
  background: #fff4ec;
}

.sr-locator__autocomplete-icon {
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(240, 203, 0, 0.22);
  color: var(--sr-locator-red);
}

.sr-locator__autocomplete-copy {
  min-width: 0;
}

.sr-locator__autocomplete-copy strong,
.sr-locator__autocomplete-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.sr-locator__autocomplete-copy strong {
  font-size: 14px;
  line-height: 1.35;
}

.sr-locator__autocomplete-copy small {
  margin-top: 2px;
  color: var(--sr-locator-muted);
  font-size: 12px;
  line-height: 1.35;
}

/* Utilidades e status */
.sr-locator__utility-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 10px;
}

.sr-locator__reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #776a63;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.sr-locator__reset:hover {
  background: #f8f1eb;
  color: var(--sr-locator-red);
}

.sr-locator__status {
  width: 100%;
  min-height: 26px;
  margin-bottom: 12px;
  color: #625953;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sr-locator__status strong {
  color: var(--sr-locator-red);
  font-weight: 800;
}

/* Resultados: sem altura fixa, sem corte */
.sr-locator__results {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.sr-locator__card {
  width: 100%;
  min-width: 0;
  margin-bottom: 13px;
  padding: 17px;
  border: 1px solid var(--sr-locator-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 11px rgba(54, 38, 30, 0.025);
}

.sr-locator__card.is-selected {
  border-color: rgba(143, 0, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(143, 0, 0, 0.07);
}

.sr-locator__card-top {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.sr-locator__card-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border-radius: 12px 12px 12px 4px;
  background: var(--sr-locator-red);
  color: var(--sr-locator-yellow);
}

.sr-locator__card-copy {
  min-width: 0;
}

.sr-locator__card h3 {
  width: 100%;
  margin: 0 0 5px;
  color: #231c18;
  font-family: "Comfortaa", sans-serif;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.sr-locator__card-category {
  display: block;
  color: var(--sr-locator-red);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.sr-locator__card-address {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 5px;
  width: 100%;
  margin: 12px 0;
  color: #6f625c;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.58;
}

.sr-locator__card-address i {
  margin-top: 4px;
  color: var(--sr-locator-red);
}

.sr-locator__card-address span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sr-locator__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.sr-locator__card-button,
.sr-locator__directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 9px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.sr-locator__card-button {
  border: 1px solid rgba(143, 0, 0, 0.18);
  background: #fff;
  color: var(--sr-locator-red);
  cursor: pointer;
}

.sr-locator__directions {
  border: 1px solid var(--sr-locator-red);
  background: var(--sr-locator-red);
  color: #fff !important;
}

.sr-locator__card-button:hover {
  border-color: var(--sr-locator-red);
  background: #fff7f2;
}

.sr-locator__directions:hover {
  border-color: var(--sr-locator-red-dark);
  background: var(--sr-locator-red-dark);
  color: #fff !important;
}

.sr-locator__load-more {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 16px 0 2px;
}

.sr-locator__load-more button {
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid rgba(143, 0, 0, 0.22);
  border-radius: 11px;
  background: #fff;
  color: var(--sr-locator-red);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Estado inicial / sem resultado */
.sr-locator__empty,
.sr-locator__no-results {
  width: 100%;
  padding: 24px 20px;
  border: 1px solid var(--sr-locator-line);
  border-radius: 15px;
  background: var(--sr-locator-soft);
}

.sr-locator__empty {
  text-align: center;
}

.sr-locator__empty-icon,
.sr-locator__no-results-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(240, 203, 0, 0.22);
  color: var(--sr-locator-red);
  font-size: 21px;
}

.sr-locator__empty h3,
.sr-locator__no-results h3 {
  margin: 0 0 8px;
  color: var(--sr-locator-brown);
  font-family: "Comfortaa", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.sr-locator__no-results h3 {
  color: var(--sr-locator-red);
}

.sr-locator__empty p,
.sr-locator__no-results p {
  margin: 0 0 14px;
  color: var(--sr-locator-muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1.62;
}

.sr-locator__contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sr-locator__contact-actions a {
  display: inline-flex;
  flex: 1 1 180px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.sr-locator__contact-email {
  border: 1px solid rgba(143, 0, 0, 0.20);
  background: #fff;
  color: var(--sr-locator-red) !important;
}

.sr-locator__contact-phone {
  border: 1px solid var(--sr-locator-red);
  background: var(--sr-locator-red);
  color: #fff !important;
}

/* Mapa sticky no desktop */
.sr-locator__map-wrap {
  position: sticky;
  z-index: 1;
  top: var(--sr-map-top);
  align-self: start;
  width: 100%;
  min-width: 0;
  height: calc(100vh - var(--sr-map-top));
  min-height: 600px;
  max-height: 920px;
  overflow: hidden;
  background: #e9e2d9;
}

#srLocatorMap {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.sr-locator__map-badge {
  position: absolute;
  z-index: 500;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 36px);
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(255,255,255,0.95);
  color: #625954;
  box-shadow: 0 8px 20px rgba(54,38,30,0.12);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  pointer-events: none;
}

.sr-locator__map-badge i {
  color: var(--sr-locator-red);
}

.sr-locator__map-note {
  position: absolute;
  z-index: 500;
  left: 18px;
  bottom: 62px;
  max-width: min(430px, calc(100% - 36px));
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(255,255,255,0.95);
  color: #665c56;
  box-shadow: 0 8px 20px rgba(54,38,30,0.10);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}

.sr-locator__map-note strong {
  color: var(--sr-locator-red);
}

.sr-locator__map-scroll-hint {
  position: absolute;
  z-index: 520;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 36px);
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(255,255,255,0.95);
  color: #625954;
  box-shadow: 0 8px 20px rgba(54,38,30,0.10);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
}

.sr-locator__map-scroll-hint i,
.sr-locator__map-scroll-hint strong {
  color: var(--sr-locator-red);
}

.sr-locator__loading {
  position: absolute;
  z-index: 900;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255,255,255,0.42);
  pointer-events: none;
}

.sr-locator__loading.is-visible {
  display: flex;
}

.sr-locator__loading-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 11px;
  background: #fff;
  color: #554b45;
  box-shadow: var(--sr-locator-shadow);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 750;
}

.sr-locator__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ead8cb;
  border-top-color: var(--sr-locator-red);
  border-radius: 50%;
  animation: srLocatorSpin .75s linear infinite;
}

@keyframes srLocatorSpin {
  to { transform: rotate(360deg); }
}

/* Leaflet */
.sr-locator .leaflet-container {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.sr-locator .leaflet-popup-content-wrapper {
  border-radius: 13px;
}

.sr-locator .leaflet-popup-content {
  min-width: 225px;
  max-width: 300px;
  margin: 15px 17px;
  color: #665b55;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sr-locator .leaflet-popup-content strong {
  display: block;
  margin-bottom: 5px;
  color: var(--sr-locator-red);
  font-family: "Comfortaa", sans-serif;
  font-size: 15px;
}

.sr-locator__store-pin-wrap {
  background: transparent;
  border: 0;
}

.sr-locator__store-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 7px;
  transform: rotate(-45deg);
  background: var(--sr-locator-red);
  color: var(--sr-locator-yellow);
  box-shadow: 0 6px 15px rgba(54,38,30,0.24);
}

/* Substitui somente o simbolo interno do marcador pela marca Sr. Creme. */
.sr-locator__store-pin i {
  display: block;
  width: 48px;
  height: 30px;
  flex: none;
  transform: rotate(45deg);
  background: url("../images/logo_topo.png") center / contain no-repeat;
  font-size: 0;
}

.sr-locator__store-pin i::before { content: none; }

.sr-locator__store-pin--approximate {
  background: #fff;
  color: var(--sr-locator-red);
  border-color: var(--sr-locator-red);
}

/* Tablet */
@media (max-width: 1199px) {
  .sr-locator__shell {
    grid-template-columns: clamp(425px, 40vw, 495px) minmax(0, 1fr);
  }

  .sr-locator__panel {
    padding: 30px 26px 38px;
  }

  .sr-locator__intro h1 {
    font-size: 29px;
  }
}

@media (max-width: 991px) {
  body .page-wrapper {
    overflow: hidden;
  }

  .sr-locator__shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .sr-locator__panel {
    order: 1;
    width: 100%;
    padding: 31px 27px 35px;
    border-right: 0;
    border-bottom: 1px solid var(--sr-locator-line);
  }

  .sr-locator__intro h1 {
    max-width: 760px;
    font-size: 32px;
  }

  .sr-locator__map-wrap {
    position: relative;
    top: auto;
    order: 2;
    align-self: stretch;
    width: 100%;
    height: 560px;
    min-height: 560px;
    max-height: none;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .sr-locator__panel {
    padding: 26px 18px 31px;
  }

  .sr-locator__eyebrow {
    font-size: 11px;
  }

  .sr-locator__intro h1 {
    font-size: 28px;
  }

  .sr-locator__intro p {
    font-size: 15px;
  }

  .sr-locator__search-row {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 8px;
  }

  .sr-locator__input,
  .sr-locator__submit {
    height: 54px;
  }

  .sr-locator__submit {
    width: 54px;
  }

  .sr-locator__card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-locator__card-button,
  .sr-locator__directions {
    width: 100%;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 11.5px;
  }

  .sr-locator__contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sr-locator__map-wrap {
    height: 480px;
    min-height: 480px;
  }

  .sr-locator__map-badge {
    left: 13px;
    top: 13px;
    max-width: calc(100% - 26px);
    font-size: 12px;
  }

  .sr-locator__map-note {
    left: 13px;
    bottom: 57px;
    max-width: calc(100% - 26px);
    font-size: 11px;
  }

  .sr-locator__map-scroll-hint {
    right: 13px;
    bottom: 13px;
    max-width: calc(100% - 26px);
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .sr-locator__panel {
    padding-left: 15px;
    padding-right: 15px;
  }

  .sr-locator__intro h1 {
    font-size: 26px;
  }

  .sr-locator__search-row {
    grid-template-columns: minmax(0, 1fr) 50px;
    gap: 7px;
  }

  .sr-locator__input {
    height: 52px;
    padding-left: 42px;
    padding-right: 39px;
    font-size: 14px;
  }

  .sr-locator__submit {
    width: 50px;
    height: 52px;
  }

  .sr-locator__card-actions {
    grid-template-columns: 1fr;
  }

  .sr-locator__map-wrap {
    height: 430px;
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sr-locator *,
  .sr-locator *::before,
  .sr-locator *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
