/* SóGuia — 21/11/2026 | Controles inferiores lado a lado + vidro translúcido.
 * Escopo: exclusivamente a home no modo SG26. Não altera GPS, país, busca,
 * URLs, painel Explore, datas, imagens ou banco. Sem dependências externas. */

/* Reserva uma única linha no grid: evita o link internacional quebrado abaixo. */
.sg26-home .original-hero-content {
  grid-template-areas:
    "kicker explore"
    "headline explore"
    "subtext explore"
    "form explore"
    "actions explore";
}
.sg26-home .original-hero-content:not(:has(.sg-home-local-dashboard)) {
  grid-template-areas: "kicker" "headline" "subtext" "form" "actions";
}
.sg26-home .original-hero-content > .sg-home-quick-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 3.7vw, 70px);
  min-width: 0;
  width: 100%;
  margin: 12px 0 0;
}
.sg26-home .sg-home-quick-actions > .sg-home-locationbar,
.sg26-home .sg-home-quick-actions .sg-global-search-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(231, 244, 255, .68) !important;
  border-radius: 17px !important;
  background: linear-gradient(127deg,
    rgba(178, 211, 255, .24) 0%,
    rgba(21, 76, 164, .48) 47%,
    rgba(96, 161, 240, .29) 100%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  backdrop-filter: blur(20px) saturate(175%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .48),
    inset 0 -1px 0 rgba(180, 219, 255, .16),
    0 9px 24px rgba(0, 20, 72, .21);
  color: #fff !important;
  transition: background .22s ease, border-color .22s ease,
    box-shadow .22s ease, transform .22s ease;
}
/* Reflexo interno das bordas; ponteiro nunca bloqueado. */
.sg26-home .sg-home-quick-actions > .sg-home-locationbar::before,
.sg26-home .sg-home-quick-actions .sg-global-search-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px 1px auto;
  height: 49%;
  border-radius: 16px 16px 38% 38%;
  background: linear-gradient(180deg, rgba(255,255,255,.19), rgba(255,255,255,0));
  pointer-events: none;
}
.sg26-home .sg-home-quick-actions > .sg-home-locationbar {
  display: flex !important;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px !important;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100% !important;
  width: max-content;
  min-height: 58px;
  margin: 0 !important;
  padding: 6px 8px !important;
}
.sg26-home .sg-home-quick-actions > .sg-home-locationbar:hover,
.sg26-home .sg-home-quick-actions .sg-global-search-button:hover {
  background: linear-gradient(128deg,
    rgba(190,225,255,.37), rgba(19,81,183,.60) 53%, rgba(120,184,255,.39)) !important;
  border-color: rgba(255, 255, 255, .88) !important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.68),
    0 10px 28px rgba(0,21,86,.28),
    0 0 16px rgba(168,210,255,.12);
}
.sg26-home .sg-home-quick-actions .sg-home-proximity {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  width: auto;
  white-space: normal;
}
.sg26-home .sg-home-quick-actions .sg-proximity-label {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,20,67,.46);
}
.sg26-home .sg-home-quick-actions .sg-home-country {
  flex: 0 0 auto;
  border: 1px solid rgba(232,245,255,.55);
  background: linear-gradient(130deg, rgba(255,255,255,.18),rgba(30,97,192,.43));
  box-shadow: inset 0 1px rgba(255,255,255,.26);
}
.sg26-home .sg-home-quick-actions .sg-home-country:hover {
  background: rgba(171,218,255,.26);
}
/* O link é a segunda cápsula, ocupando exatamente o espaço marcado no print. */
.sg26-home .sg-home-quick-actions > .sg-global-search-entry {
  display: flex;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0;
}
.sg26-home .sg-home-quick-actions .sg-global-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 58px !important;
  min-width: 0;
  max-width: none;
  padding: 11px 16px !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0,23,73,.5);
}
.sg26-home .sg-home-quick-actions .sg-global-search-button-label {
  display: block;
  min-width: 0;
  overflow-wrap: normal;
  color: #fff;
}
.sg26-home .sg-home-quick-actions .sg-global-search-button-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  stroke: #ffe69c;
}
.sg26-home .sg-home-quick-actions .sg-global-search-button-arrow {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke: #fff;
}
.sg26-home .sg-home-quick-actions .sg-global-search-button:active {
  transform: scale(.99);
}
.sg26-home .sg-home-quick-actions .sg-global-search-button:focus-visible,
.sg26-home .sg-home-quick-actions .sg-home-proximity:focus-visible,
.sg26-home .sg-home-quick-actions .sg-home-country:focus-within {
  outline: 2px solid #ffdc7b !important;
  outline-offset: 3px;
}

/* Tablet: a busca e os dois controles têm exatamente a mesma largura. */
@media (max-width: 1120px) {
  .sg26-home .original-hero-content > .sg-home-quick-actions {
    max-width: 900px;
  }
}
/* Celulares: dois cartões LADO A LADO; GPS e seletor ficam juntos no esquerdo. */
@media (max-width: 700px) {
  .sg26-home .original-hero-content > .sg-home-quick-actions {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 9px;
    margin-top: 12px;
  }
  .sg26-home .sg-home-quick-actions > .sg-home-locationbar {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 96px;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 5px !important;
    padding: 8px !important;
  }
  .sg26-home .sg-home-quick-actions .sg-home-proximity {
    flex: 0 1 auto !important;
    width: 100%;
    gap: 6px !important;
    font-size: 12px !important;
    line-height: 1.22;
  }
  .sg26-home .sg-home-quick-actions .sg-proximity-icon {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
  }
  .sg26-home .sg-home-quick-actions .sg-proximity-label {
    flex: 1 1 auto;
    padding-left: 0;
  }
  .sg26-home .sg-home-quick-actions .sg-home-country {
    width: 100%;
    min-width: 0 !important;
    height: 32px;
    margin: 0;
    justify-content: flex-start;
  }
  .sg26-home .sg-home-quick-actions .sg-home-country-name {
    font-size: 11.5px;
  }
  .sg26-home .sg-home-quick-actions .sg-home-live-dot {
    position: absolute;
    right: 10px;
    top: 11px;
  }
  .sg26-home .sg-home-quick-actions .sg-proximity-status {
    padding: 4px 6px;
    font-size: 10px;
  }
  .sg26-home .sg-home-quick-actions .sg-global-search-button {
    min-height: 96px !important;
    padding: 10px 9px !important;
    gap: 7px;
    font-size: 12px;
    line-height: 1.28;
  }
  .sg26-home .sg-home-quick-actions .sg-global-search-button-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .sg26-home .sg-home-quick-actions .sg-global-search-button-arrow {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}
@media (max-width: 390px) {
  .sg26-home .original-hero-content > .sg-home-quick-actions {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 7px;
  }
  .sg26-home .sg-home-quick-actions > .sg-home-locationbar {padding: 7px !important;}
  .sg26-home .sg-home-quick-actions .sg-home-proximity {font-size: 11px !important;gap: 5px !important;}
  .sg26-home .sg-home-quick-actions .sg-proximity-icon {
    width: 28px !important;height: 28px !important;flex-basis: 28px !important;
  }
  .sg26-home .sg-home-quick-actions .sg-home-country {padding-left: 7px;gap: 5px;}
  .sg26-home .sg-home-quick-actions .sg-global-search-button {font-size: 11.5px;padding: 9px 7px !important;gap: 5px;}
}
/* Acessibilidade: sem blur para quem solicita reduzir a transparência. */
@media (prefers-reduced-transparency: reduce) {
  .sg26-home .sg-home-quick-actions > .sg-home-locationbar,
  .sg26-home .sg-home-quick-actions .sg-global-search-button {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #0c4796 !important;
  }
}
@media (forced-colors: active) {
  .sg26-home .sg-home-quick-actions > .sg-home-locationbar,
  .sg26-home .sg-home-quick-actions .sg-global-search-button {border: 2px solid ButtonText !important;background: Canvas !important;color: CanvasText !important;}
  .sg26-home .sg-home-quick-actions .sg-global-search-button-label,
  .sg26-home .sg-home-quick-actions .sg-proximity-label {color: CanvasText !important;text-shadow: none;}
}
@media (prefers-reduced-motion: reduce) {
  .sg26-home .sg-home-quick-actions > .sg-home-locationbar,
  .sg26-home .sg-home-quick-actions .sg-global-search-button {transition: none;}
}
