.geo-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(30, 20, 25, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.geo-modal {
  background: #fff;
  border-radius: 22px;
  width: min(390px, 100%);
  padding: 30px 28px 26px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(20, 10, 15, 0.3);
  animation: geo-pop 0.22s ease;
  flex: 0 0 auto;
  margin: auto;
}
@keyframes geo-pop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.geo-modal__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--crimson);
  display: grid;
  place-items: center;
}
.geo-modal__icon svg { width: 25px; height: 25px; }

.geo-modal h2 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.geo-modal__text {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.geo-modal__text strong { color: var(--crimson); font-weight: 600; }

.geo-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: -1px;
  border: 2px solid #e8e4db;
  border-top-color: var(--crimson);
  border-radius: 50%;
  animation: geo-spin 0.8s linear infinite;
}
@keyframes geo-spin { to { transform: rotate(360deg); } }

.geo-field {
  text-align: left;
  margin-top: 14px;
}
.geo-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #6e6a70;
  margin-bottom: 6px;
}
.geo-field select,
.geo-field input {
  width: 100%;
  height: 46px;
  background: #faf9f3;
  border: 1px solid #e5e1d6;
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}
.geo-field select:focus,
.geo-field input:focus { border-color: #c9c2b4; }
.geo-field select:disabled { color: #a49fa7; background: #f4f2ec; }
.geo-field input::placeholder { color: #9a959d; }
.geo-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355505a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
  padding-right: 36px;
}

.geo-msg {
  margin-top: 10px;
  font-size: 12px;
  color: var(--crimson);
  text-align: left;
}

.geo-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.geo-btn-primary {
  height: 50px;
  background: var(--bar);
  color: #fff;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.geo-btn-primary:hover { background: #8e142e; }
.geo-btn-ghost {
  height: 50px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.geo-btn-ghost:hover { border-color: #cfc9bf; }


.geo-modal--parceiros {
  padding: 26px 28px 24px;
}

.geo-selo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eaf5ee;
  color: #1f7a45;
  font-size: 12.5px;
  font-weight: 600;
}
.geo-selo svg { width: 14px; height: 14px; }

.geo-modal--parceiros h2 {
  margin-top: 14px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--wine);
}

.geo-local {
  margin-top: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.geo-map {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: #eae6dc;
  border: 1px solid var(--border);
}
.geo-map__palco {
  position: absolute;
  top: 0;
  left: 0;
  width: 334px;
  height: 200px;
  transform-origin: 0 0;
}
.geo-map__tiles,
.geo-map__pins {
  position: absolute;
  inset: 0;
}
.geo-map__pins { z-index: 2; }
.geo-map__tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  border: 0;
}
.geo-map--vazio .geo-map__tiles { display: none; }
.geo-map--vazio .geo-map__pins { opacity: 0.9; }
.geo-map--vazio {
  background:
    linear-gradient(135deg, #f3f0e7 0%, #eae6dc 100%);
}

.geo-pin {
  position: absolute;
  z-index: 1;
  width: 26px;
  height: 34px;
  transform: translate(-50%, -100%);
  color: var(--bar);
  pointer-events: none;
}
.geo-pin svg {
  width: 26px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(20, 10, 15, 0.35));
}
.geo-pin__nome {
  position: absolute;
  z-index: 2;
  top: 37px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(20, 10, 15, 0.25);
}

.geo-loja {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg);
  text-align: left;
}
.geo-loja__icone {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--pink-soft);
  color: var(--crimson);
  display: grid;
  place-items: center;
}
.geo-loja__icone svg { width: 19px; height: 19px; }
.geo-loja__txt { display: block; min-width: 0; }
.geo-loja__txt b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.geo-loja__txt i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.geo-modal--parceiros .geo-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.geo-modal--parceiros .geo-btn-primary svg { width: 17px; height: 17px; }

.geo-rodape {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 420px) {
  .geo-modal { padding: 26px 20px 22px; }
  .geo-modal--parceiros { padding: 22px 18px 20px; }
  .geo-modal--parceiros h2 { font-size: 20px; }
}
