/* JB Casa de Madeira — v112 Location Gate Premium com imagens verticais corretas */
.jb-location-gate-open { overflow: hidden !important; }
.modal-localidade-overlay,
.jb-location-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 180, 75, .20), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(16, 185, 129, .16), transparent 34%),
    rgba(6, 8, 10, .78);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  opacity: 0;
  transition: opacity .22s ease;
}
.modal-localidade-overlay.active,
.jb-location-gate-overlay.active {
  display: flex;
  opacity: 1;
}
.jb-location-gate-card,
.modal-localidade-content.jb-location-gate-card {
  width: min(960px, 94vw);
  max-width: none;
  max-height: min(92dvh, 820px);
  overflow: auto;
  border-radius: 32px;
  padding: clamp(18px, 2.8vw, 34px);
  text-align: center;
  color: #fdf5e8;
  border: 1px solid rgba(255, 217, 153, .38);
  background:
    linear-gradient(145deg, rgba(48, 28, 12, .96), rgba(12, 20, 24, .94)),
    #20140d;
  box-shadow: 0 30px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.12);
  position: relative;
}
.jb-location-gate-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  pointer-events: none;
  border: 1px solid rgba(245, 190, 97, .28);
}
.jb-location-gate-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  font: 800 11px/1.2 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f7c972;
  background: rgba(255, 198, 93, .10);
  border: 1px solid rgba(255, 198, 93, .24);
}
.jb-location-gate-card h2 {
  margin: 0 0 10px;
  color: #fff5df;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: clamp(36px, 5vw, 66px);
  line-height: .94;
  letter-spacing: -.035em;
}
.jb-location-gate-card p {
  margin: 0 auto 22px;
  max-width: 680px;
  color: rgba(255, 245, 223, .80);
  font: 500 clamp(14px, 1.4vw, 17px)/1.6 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.jb-location-gate-options,
.btn-group-localidade.jb-location-gate-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: 8px;
}
.jb-location-gate-option,
.btn-localidade.jb-location-gate-option {
  min-height: clamp(230px, 26vw, 340px);
  border: 0;
  border-radius: 26px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #18100b;
  box-shadow: 0 18px 42px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  appearance: none;
  font: inherit;
}
.jb-location-gate-option:hover,
.jb-location-gate-option:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 26px 62px rgba(0,0,0,.44), 0 0 0 3px rgba(246, 180, 77, .22), inset 0 0 0 1px rgba(255,255,255,.24);
  outline: none;
}
.jb-location-gate-option::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center top;
  background-size: cover;
  transform: scale(1.02);
  transition: transform .28s ease;
}
.jb-location-gate-option:hover::before,
.jb-location-gate-option:focus-visible::before { transform: scale(1.07); }
.jb-location-gate-option::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.24) 42%, rgba(0,0,0,.84)),
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.20), transparent 42%);
}
.jb-location-gate-option.is-es::before { background-image: url('../assets/img/localidade-es-v112.webp'); }
.jb-location-gate-option.is-fora::before { background-image: url('../assets/img/localidade-fora-es-v112.webp'); }
.jb-location-gate-option-content {
  position: absolute;
  inset-inline: 18px;
  bottom: 16px;
  display: grid;
  gap: 6px;
  text-align: left;
}
.jb-location-gate-option-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 3.7vw, 48px);
  font-weight: 800;
  line-height: .95;
  color: #ffe8b8;
  text-shadow: 0 3px 12px rgba(0,0,0,.56);
}
.jb-location-gate-option-subtitle {
  color: rgba(255,255,255,.86);
  font: 800 12px/1.2 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.jb-location-gate-note {
  margin-top: 18px;
  color: rgba(255, 244, 225, .62) !important;
  font-size: 13px !important;
}
body:not(.premium-theme):not(.obsidian-theme):not(.axon-theme) .jb-location-gate-card {
  background: linear-gradient(145deg, rgba(255, 251, 244, .98), rgba(243, 235, 219, .96));
  color: #3f2a1c;
  border-color: rgba(119, 86, 46, .18);
}
body:not(.premium-theme):not(.obsidian-theme):not(.axon-theme) .jb-location-gate-card h2 { color: #3c2517; }
body:not(.premium-theme):not(.obsidian-theme):not(.axon-theme) .jb-location-gate-card p { color: rgba(63, 42, 28, .78); }
body:not(.premium-theme):not(.obsidian-theme):not(.axon-theme) .jb-location-gate-kicker { color: #8b5a1e; background: rgba(210, 156, 53, .12); border-color: rgba(210, 156, 53, .25); }
body:not(.premium-theme):not(.obsidian-theme):not(.axon-theme) .jb-location-gate-note { color: rgba(63, 42, 28, .58) !important; }


/* v111 — Refinamento desktop: mais respiro, cards maiores e texto menos apertado. Mobile preservado. */
@media (min-width: 721px) {
  .modal-localidade-overlay,
  .jb-location-gate-overlay {
    padding: clamp(30px, 4.5vw, 66px);
  }

  .jb-location-gate-card,
  .modal-localidade-content.jb-location-gate-card {
    width: min(1300px, 94vw);
    max-width: 1300px !important;
    min-height: min(640px, 82dvh);
    padding: clamp(36px, 4.2vw, 58px);
    display: grid;
    grid-template-columns: minmax(360px, .82fr) minmax(680px, 1.42fr);
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: clamp(54px, 5vw, 86px);
    row-gap: 10px;
    align-items: center;
    text-align: left;
  }

  .jb-location-gate-card::before {
    inset: 16px;
    border-radius: 26px;
  }

  .jb-location-gate-kicker,
  .jb-location-gate-card h2,
  .jb-location-gate-card > p:not(.jb-location-gate-note),
  .jb-location-gate-note {
    grid-column: 1;
    position: relative;
    z-index: 1;
  }

  .jb-location-gate-kicker {
    justify-self: start;
    margin-bottom: 12px;
  }

  .jb-location-gate-card h2 {
    max-width: 430px;
    margin-bottom: 14px;
    font-size: clamp(50px, 4.15vw, 70px);
    line-height: .95;
  }

  .jb-location-gate-card > p:not(.jb-location-gate-note) {
    max-width: 460px;
    margin: 0 0 22px;
    font-size: clamp(16px, 1.08vw, 18px);
  }

  .jb-location-gate-note {
    align-self: end;
    max-width: 440px;
    margin: 24px 0 0 !important;
    font-size: 13px !important;
  }

  .jb-location-gate-options,
  .btn-group-localidade.jb-location-gate-options {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: stretch;
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 2.35vw, 34px);
  }

  .jb-location-gate-option,
  .btn-localidade.jb-location-gate-option {
    min-height: 500px;
    border-radius: 32px;
  }

  .jb-location-gate-option-content {
    inset-inline: clamp(24px, 2vw, 34px);
    bottom: clamp(22px, 2vw, 32px);
    gap: 10px;
  }

  .jb-location-gate-option-title {
    font-size: clamp(38px, 3.15vw, 54px);
    max-width: 96%;
    letter-spacing: -.025em;
  }

  .jb-location-gate-option-subtitle {
    font-size: 12px;
    max-width: 96%;
  }
}

/* Em notebooks menores, mantém o mesmo visual, mas reduz suavemente para não apertar. */
@media (min-width: 721px) and (max-width: 1180px) {
  .jb-location-gate-card,
  .modal-localidade-content.jb-location-gate-card {
    width: min(1080px, 94vw);
    grid-template-columns: minmax(310px, .85fr) minmax(540px, 1.25fr);
    column-gap: clamp(34px, 4vw, 54px);
  }

  .jb-location-gate-card h2 {
    font-size: clamp(44px, 4.8vw, 58px);
  }

  .jb-location-gate-option,
  .btn-localidade.jb-location-gate-option {
    min-height: 430px;
  }

  .jb-location-gate-option-title {
    font-size: clamp(34px, 3.9vw, 46px);
  }
}
