:root {
  /* Paleta do condomínio (o JS substitui quando o condomínio tem cores próprias) */
  --acc: #43df97;   /* destaque */
  --acc2: #04c47a;  /* destaque mais intenso (botões/gradientes) */
  --acc-rgb: 67, 223, 151;
  --bg: #03120e;    /* fundo */
  --bg-rgb: 3, 18, 14;
  --on-acc: #ffffff; /* texto sobre o destaque */
}

/* ==========================================================
   VILLAGE DAMHA II
   PÁGINA PÚBLICA
   public/css/public.css
========================================================== */

/* ==========================================================
   RESET
========================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  background: #03120e;
}

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #ffffff;
  background: #03120e;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

/* ==========================================================
   FUNDO
========================================================== */

.background {
  position: fixed;
  z-index: 0;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(2, 13, 10, 0.91) 0%,
      rgba(3, 18, 14, 0.73) 46%,
      rgba(3, 18, 14, 0.42) 100%
    ),
    #06120e center / cover no-repeat;
  transition: background-image 0.4s;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.03) 60%,
    rgba(0, 13, 10, 0.4)
  );
}

/* ==========================================================
   PÁGINA
========================================================== */

.page {
  position: relative;
  z-index: 1;

  width: min(1220px, calc(100% - 64px));
  min-height: 100vh;

  margin: 0 auto;

  display: flex;
  flex-direction: column;
}

/* ==========================================================
   HEADER
========================================================== */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 28px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-box {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;

  padding: 5px;

  border-radius: 18px;
  background: #ffffff;

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.32);
}

.logo-box img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  border-radius: 13px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 800;
}

.brand-text span {
  color: rgba(255, 255, 255, 0.58);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;
  padding: 0 18px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;

  background: color-mix(in srgb, color-mix(in srgb, var(--acc2) 15%, var(--bg)) 58%, transparent);

  color: #ffffff;

  font-size: 11px;
  font-weight: 700;

  text-decoration: none;

  backdrop-filter: blur(12px);
}

/* ==========================================================
   HERO
========================================================== */

.hero {
  flex: 1;

  display: grid;

  grid-template-columns:
    minmax(400px, 1.05fr)
    minmax(460px, 520px);

  gap: clamp(60px, 7vw, 120px);

  align-items: center;

  padding: 20px 0 55px;
}

/* ==========================================================
   INTRO
========================================================== */

.intro {
  width: 100%;
  max-width: 590px;
}

.eyebrow {
  display: block;

  margin-bottom: 18px;

  color: color-mix(in srgb, #fff 5%, var(--acc));

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.2em;
}

.intro h1 {
  margin: 0;

  font-size: clamp(64px, 5.2vw, 82px);
  font-weight: 800;

  line-height: 0.92;
  letter-spacing: -0.055em;
}

.intro h1 span {
  color: var(--acc);
}

.intro p {
  max-width: 460px;

  margin: 26px 0 0;

  color: rgba(255, 255, 255, 0.72);

  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================
   PAINEL
========================================================== */

.app-panel {
  position: relative;

  width: 100%;

  padding: 34px;

  border: 1px solid color-mix(in srgb, color-mix(in srgb, #fff 4%, var(--acc)) 22%, transparent);
  border-radius: 28px;

  background: linear-gradient(
    145deg,
    color-mix(in srgb, color-mix(in srgb, var(--acc2) 32%, var(--bg)) 97%, transparent),
    color-mix(in srgb, color-mix(in srgb, var(--acc2) 15%, var(--bg)) 98%, transparent)
  );

  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(22px);

  /*
    Precisa permanecer visible para o dropdown
    poder aparecer para fora do painel.
  */
  overflow: visible;
}

.app-view {
  position: relative;

  animation: viewIn 0.25s ease;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   CABEÇALHO DO PAINEL
========================================================== */

.panel-heading {
  display: flex;
  align-items: center;

  gap: 17px;

  margin-bottom: 30px;
}

.location-icon {
  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  flex: 0 0 58px;

  border-radius: 17px;

  background: linear-gradient(145deg, color-mix(in srgb, var(--acc2) 74%, var(--bg)), color-mix(in srgb, var(--acc) 15%, var(--acc2)));

  box-shadow: 0 12px 30px color-mix(in srgb, var(--acc2) 15%, transparent);
}

.location-icon svg {
  width: 30px;
  height: 30px;

  fill: none;

  stroke: #ffffff;
  stroke-width: 2;
}

.panel-label {
  display: block;

  margin-bottom: 5px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.16em;
}

.panel-heading h2 {
  margin: 0;

  font-size: 27px;
  font-weight: 800;

  line-height: 1.1;
  letter-spacing: -0.025em;
}

.panel-heading p {
  margin: 5px 0 0;

  color: rgba(255, 255, 255, 0.56);

  font-size: 12px;
}

/* ==========================================================
   CAMPOS
========================================================== */

.fields {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 16px;
}

.field {
  position: relative;
  min-width: 0;
}

.field-label {
  display: block;

  margin: 0 0 9px 3px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.14em;
}

/* ==========================================================
   CUSTOM SELECT
========================================================== */

.custom-select {
  position: relative;

  width: 100%;

  z-index: 10;
}

.custom-select.open {
  z-index: 100;
}

/* ==========================================================
   BOTÃO DO SELECT
========================================================== */

.select-button {
  width: 100%;
  height: 62px;

  padding: 0 16px 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 16px;

  background: color-mix(in srgb, color-mix(in srgb, var(--acc) 29%, var(--bg)) 96%, transparent);

  color: #ffffff;

  text-align: left;

  font-size: 15px;

  cursor: pointer;

  outline: none;

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.select-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.38);

  background: color-mix(in srgb, color-mix(in srgb, var(--acc) 33%, var(--bg)) 98%, transparent);
}

.select-button:focus-visible {
  border-color: var(--acc);

  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 10%, transparent);
}

.custom-select.open .select-button {
  border-color: var(--acc);

  background: color-mix(in srgb, var(--acc) 34%, var(--bg));

  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 10%, transparent);
}

/* ==========================================================
   SETA
========================================================== */

.chevron {
  width: 20px;
  height: 20px;

  flex: 0 0 20px;

  fill: none;

  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform 0.2s ease;
}

.custom-select.open .chevron {
  transform: rotate(180deg);
}

/* ==========================================================
   SELECT DESATIVADO
========================================================== */

.custom-select.disabled {
  opacity: 0.43;
}

.custom-select.disabled .select-button {
  cursor: not-allowed;
}

/* ==========================================================
   MENU CUSTOMIZADO
========================================================== */

.select-menu {
  position: absolute;

  z-index: 200;

  top: calc(100% + 9px);
  left: 0;

  width: 100%;
  max-height: 260px;

  padding: 7px;

  overflow-y: auto;
  overflow-x: hidden;

  border: 1px solid color-mix(in srgb, color-mix(in srgb, #fff 5%, var(--acc)) 25%, transparent);
  border-radius: 17px;

  background: color-mix(in srgb, color-mix(in srgb, var(--acc2) 15%, var(--bg)) 99%, transparent);

  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.48);

  backdrop-filter: blur(18px);

  transform-origin: top center;

  animation: dropdownOpen 0.17s ease;
}

@keyframes dropdownOpen {
  from {
    opacity: 0;

    transform: translateY(-5px) scale(0.985);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* ==========================================================
   SCROLL DO MENU
========================================================== */

.select-menu::-webkit-scrollbar {
  width: 6px;
}

.select-menu::-webkit-scrollbar-track {
  background: transparent;
}

.select-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 20px;
}

/* ==========================================================
   OPÇÕES
========================================================== */

.select-option {
  width: 100%;
  min-height: 47px;

  padding: 0 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  border: 0;
  border-radius: 11px;

  background: transparent;

  color: rgba(255, 255, 255, 0.88);

  text-align: left;

  font-size: 14px;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.select-option:hover {
  background: color-mix(in srgb, color-mix(in srgb, var(--acc) 68%, var(--acc2)) 13%, transparent);

  color: #ffffff;
}

.select-option.selected {
  background: color-mix(in srgb, color-mix(in srgb, var(--acc) 56%, var(--acc2)) 17%, transparent);

  color: color-mix(in srgb, #fff 14%, var(--acc));

  font-weight: 800;
}

.option-check {
  display: grid;
  place-items: center;

  width: 23px;
  height: 23px;

  flex: 0 0 23px;

  border-radius: 50%;

  background: color-mix(in srgb, color-mix(in srgb, var(--acc) 68%, var(--acc2)) 16%, transparent);

  color: color-mix(in srgb, #fff 5%, var(--acc));

  font-size: 13px;
  font-weight: 900;
}

/* ==========================================================
   STATUS
========================================================== */

.status {
  min-height: 0;

  margin-top: 12px;

  color: #ffd28b;

  text-align: center;

  font-size: 11px;
}

/* ==========================================================
   DESTINO SELECIONADO
========================================================== */

.success-top {
  padding: 2px 0 24px;

  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;

  width: 68px;
  height: 68px;

  margin: 0 auto 15px;

  border: 1px solid color-mix(in srgb, color-mix(in srgb, #fff 7%, var(--acc)) 25%, transparent);
  border-radius: 50%;

  background: linear-gradient(145deg, color-mix(in srgb, var(--acc2) 53%, var(--bg)), color-mix(in srgb, var(--acc2) 94%, var(--bg)));

  color: color-mix(in srgb, #fff 24%, var(--acc));

  font-size: 31px;
  font-weight: 900;

  box-shadow: 0 12px 35px color-mix(in srgb, color-mix(in srgb, var(--acc2) 95%, var(--bg)) 18%, transparent);
}

.success-top > span {
  display: block;

  color: var(--acc);

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.16em;
}

.success-top h2 {
  margin: 7px 0 4px;

  font-size: 28px;
  font-weight: 800;
}

.success-top p {
  margin: 0;

  color: rgba(255, 255, 255, 0.55);

  font-size: 13px;
}

/* ==========================================================
   CARD DO DESTINO
========================================================== */

.destination-card {
  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr
    55px;

  align-items: center;

  gap: 17px;

  padding: 19px 20px;

  border: 1px solid color-mix(in srgb, color-mix(in srgb, var(--acc) 97%, var(--acc2)) 32%, transparent);
  border-radius: 18px;

  background: color-mix(in srgb, color-mix(in srgb, var(--acc2) 7%, var(--bg)) 58%, transparent);
}

/*
  CORREÇÃO:
  este seletor precisa ficar desta forma.
*/
.destination-card > div:not(.destination-divider):not(.destination-location) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.destination-card span {
  color: color-mix(in srgb, #fff 3%, var(--acc));

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.14em;
}

.destination-card strong {
  font-size: 25px;
  font-weight: 800;
}

.destination-divider {
  width: 1px;
  height: 39px;

  background: rgba(255, 255, 255, 0.12);
}

.destination-location {
  display: grid;
  place-items: center;

  width: 51px;
  height: 51px;

  border-radius: 15px;

  background: color-mix(in srgb, color-mix(in srgb, var(--acc2) 85%, var(--bg)) 18%, transparent);
}

.destination-location svg {
  width: 27px;
  height: 27px;

  fill: none;

  stroke: color-mix(in srgb, #fff 4%, var(--acc));
  stroke-width: 2;
}

.available {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  margin-top: 11px;

  color: color-mix(in srgb, #fff 9%, var(--acc));

  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================
   BOTÃO INICIAR NAVEGAÇÃO
========================================================== */

.navigate-button {
  width: 100%;
  min-height: 64px;

  margin-top: 19px;

  padding: 0 17px;

  display: flex;
  align-items: center;

  gap: 13px;

  border: 1px solid color-mix(in srgb, color-mix(in srgb, #fff 34%, var(--acc)) 35%, transparent);
  border-radius: 16px;

  background: linear-gradient(100deg, color-mix(in srgb, #fff 6%, var(--acc)), var(--acc2) 48%, color-mix(in srgb, var(--acc2) 69%, var(--bg)));

  color: #ffffff;

  cursor: pointer;

  box-shadow: 0 15px 35px color-mix(in srgb, var(--acc2) 22%, transparent);

  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.navigate-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.navigate-button:active {
  transform: translateY(0);
}

.navigate-plane {
  display: grid;
  place-items: center;

  width: 31px;
  height: 31px;
}

.navigate-plane svg {
  width: 26px;
  height: 26px;

  fill: #ffffff;
}

.navigate-button strong {
  flex: 1;

  text-align: left;

  font-size: 14px;
  font-weight: 900;
}

.button-arrow {
  font-size: 22px;
}

/* ==========================================================
   WHATSAPP
========================================================== */

.whatsapp-button {
  width: 100%;
  min-height: 56px;

  margin-top: 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  border: 1px solid color-mix(in srgb, color-mix(in srgb, var(--acc) 85%, var(--acc2)) 46%, transparent);
  border-radius: 16px;

  background: color-mix(in srgb, color-mix(in srgb, var(--acc2) 11%, var(--bg)) 45%, transparent);

  color: #ffffff;

  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.whatsapp-button:hover {
  background: color-mix(in srgb, color-mix(in srgb, var(--acc2) 24%, var(--bg)) 65%, transparent);
  border-color: color-mix(in srgb, color-mix(in srgb, var(--acc) 85%, var(--acc2)) 70%, transparent);
}

.wa-icon {
  display: grid;
  place-items: center;

  width: 29px;
  height: 29px;

  border-radius: 50%;

  background: color-mix(in srgb, var(--acc) 32%, var(--acc2));
}

.wa-icon svg {
  width: 18px;
  height: 18px;

  fill: #ffffff;
}

.whatsapp-button strong {
  font-size: 12px;
  font-weight: 800;
}

.change-button {
  display: block;

  margin: 17px auto 0;
  padding: 8px 12px;

  border: 0;

  background: transparent;

  color: rgba(255, 255, 255, 0.52);

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;
}

.change-button:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================
   FOOTER
========================================================== */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 19px 0 25px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  color: rgba(255, 255, 255, 0.42);

  font-size: 10px;
}

/* ==========================================================
   MODAL DE NAVEGAÇÃO
========================================================== */

.nav-modal {
  position: fixed;

  z-index: 1000;

  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 9, 7, 0.82);

  backdrop-filter: blur(15px);
}

.nav-sheet {
  position: relative;

  width: min(100%, 440px);

  padding: 30px;

  border: 1px solid color-mix(in srgb, color-mix(in srgb, #fff 5%, var(--acc)) 18%, transparent);
  border-radius: 28px;

  background: linear-gradient(145deg, color-mix(in srgb, var(--acc) 11%, var(--bg)), #071713);

  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.58);

  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sheet-handle {
  display: none;
}

.close-modal {
  position: absolute;

  right: 17px;
  top: 17px;

  width: 39px;
  height: 39px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.06);

  color: #ffffff;

  font-size: 25px;
  line-height: 1;

  cursor: pointer;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.11);
}

.modal-header {
  margin-bottom: 23px;
}

.modal-header > span {
  display: block;

  margin-bottom: 8px;

  color: var(--acc);

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.17em;
}

.modal-header h2 {
  margin: 0;

  padding-right: 45px;

  font-size: 27px;
}

.modal-header p {
  margin: 8px 0 0;

  color: rgba(255, 255, 255, 0.53);

  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================
   OPÇÕES DOS APLICATIVOS
========================================================== */

.app-option {
  width: 100%;
  min-height: 75px;

  margin-top: 10px;
  padding: 10px 13px;

  display: flex;
  align-items: center;

  gap: 13px;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;

  background: rgba(255, 255, 255, 0.035);

  color: #ffffff;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.app-option:hover {
  background: rgba(255, 255, 255, 0.07);

  border-color: rgba(255, 255, 255, 0.23);

  transform: translateY(-1px);
}

.map-icon {
  display: grid;
  place-items: center;

  width: 50px;
  height: 50px;

  flex: 0 0 50px;

  overflow: hidden;

  border-radius: 14px;
}

.map-icon svg {
  width: 38px;
  height: 38px;
}

.google-map {
  background: rgba(66, 133, 244, 0.13);
}

.waze-map {
  background: rgba(74, 205, 238, 0.12);
}

.apple-map {
  background: rgba(255, 255, 255, 0.11);
}

.app-info {
  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.app-info strong {
  font-size: 14px;
}

.app-info span {
  color: rgba(255, 255, 255, 0.47);

  font-size: 10px;
}

.app-option > b {
  color: rgba(255, 255, 255, 0.48);

  font-size: 21px;
  font-weight: 400;
}

.cancel-button {
  width: 100%;
  height: 49px;

  margin-top: 15px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;

  background: transparent;

  color: rgba(255, 255, 255, 0.61);

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.cancel-button:hover {
  background: rgba(255, 255, 255, 0.05);

  color: #ffffff;
}

/* ==========================================================
   DESKTOP GRANDE
========================================================== */

@media (min-width: 1400px) {
  .page {
    width: min(1280px, calc(100% - 80px));
  }

  .hero {
    grid-template-columns:
      minmax(450px, 1fr)
      520px;

    gap: 120px;
  }
}

/* ==========================================================
   NOTEBOOK COM TELA MAIS BAIXA
========================================================== */

@media (min-width: 721px) and (max-height: 800px) {
  .topbar {
    padding: 18px 0 10px;
  }

  .logo-box {
    width: 62px;
    height: 62px;

    flex-basis: 62px;
  }

  .hero {
    padding: 5px 0 25px;
  }

  .intro h1 {
    font-size: clamp(55px, 5vw, 70px);
  }

  .intro p {
    margin-top: 19px;

    font-size: 14px;
  }

  .app-panel {
    padding: 28px;
  }

  .select-button {
    height: 56px;
  }

  footer {
    padding: 13px 0 15px;
  }
}

/* ==========================================================
   TABLET / NOTEBOOK ESTREITO
========================================================== */

@media (min-width: 721px) and (max-width: 1000px) {
  .page {
    width: min(920px, calc(100% - 44px));
  }

  .hero {
    grid-template-columns:
      minmax(300px, 0.85fr)
      minmax(400px, 1fr);

    gap: 42px;
  }

  .intro h1 {
    font-size: clamp(52px, 6vw, 66px);
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 720px) {
  .background {
    background:
      linear-gradient(
        180deg,
        rgba(3, 14, 11, 0.38) 0%,
        rgba(3, 17, 13, 0.7) 43%,
        rgba(2, 14, 11, 0.97) 100%
      ),
      url("/public/img/entrada-village.jpg") center / cover no-repeat;
  }

  .page {
    width: min(calc(100% - 28px), 500px);
  }

  .topbar {
    padding: calc(17px + env(safe-area-inset-top)) 0 8px;
  }

  .logo-box {
    width: 57px;
    height: 57px;

    flex-basis: 57px;

    border-radius: 14px;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .brand-text span {
    font-size: 8px;
  }

  .admin-link {
    display: none;
  }

  .hero {
    display: block;

    padding: 30px 0;
  }

  .intro {
    margin-bottom: 27px;
  }

  .eyebrow {
    margin-bottom: 10px;

    font-size: 9px;
  }

  .intro h1 {
    font-size: 45px;

    line-height: 0.95;
  }

  .intro p {
    max-width: 350px;

    margin-top: 15px;

    font-size: 13px;
  }

  .app-panel {
    padding: 21px;

    border-radius: 25px;
  }

  .panel-heading {
    gap: 14px;

    margin-bottom: 22px;
  }

  .location-icon {
    width: 48px;
    height: 48px;

    flex-basis: 48px;

    border-radius: 14px;
  }

  .location-icon svg {
    width: 25px;
    height: 25px;
  }

  .panel-heading h2 {
    font-size: 21px;
  }

  .fields {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .select-button {
    height: 58px;

    font-size: 14px;
  }

  .select-menu {
    max-height: 230px;

    border-radius: 16px;
  }

  .select-option {
    min-height: 49px;
  }

  /* ========================================================
     DESTINO SELECIONADO NO MOBILE
  ======================================================== */

  body.destination-mode .intro {
    display: none;
  }

  body.destination-mode .hero {
    padding-top: 22px;
  }

  .success-top {
    padding: 5px 0 22px;
  }

  .success-icon {
    width: 63px;
    height: 63px;
  }

  .success-top h2 {
    font-size: 25px;
  }

  .destination-card {
    grid-template-columns:
      1fr
      auto
      1fr
      48px;

    gap: 12px;

    padding: 16px;
  }

  .destination-card strong {
    font-size: 22px;
  }

  .destination-location {
    width: 45px;
    height: 45px;
  }

  .navigate-button {
    min-height: 60px;
  }

  .whatsapp-button {
    min-height: 55px;
  }

  /* ========================================================
     FOOTER MOBILE
  ======================================================== */

  footer {
    padding: 18px 0 calc(20px + env(safe-area-inset-bottom));
  }

  /* ========================================================
     MODAL MOBILE / BOTTOM SHEET
  ======================================================== */

  .nav-modal {
    align-items: flex-end;

    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .nav-sheet {
    width: 100%;

    padding: 18px 18px 17px;

    border-radius: 27px 27px 18px 18px;
  }

  .sheet-handle {
    display: block;

    width: 43px;
    height: 5px;

    margin: 0 auto 20px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.22);
  }

  .close-modal {
    display: none;
  }

  .modal-header h2 {
    padding-right: 0;

    font-size: 24px;
  }

  .app-option {
    min-height: 70px;
  }
}

/* ==========================================================
   CELULAR PEQUENO
========================================================== */

@media (max-width: 380px) {
  .page {
    width: calc(100% - 22px);
  }

  .intro h1 {
    font-size: 40px;
  }

  .app-panel {
    padding: 18px;
  }

  .destination-card {
    grid-template-columns:
      1fr
      auto
      1fr;
  }

  .destination-location {
    display: none;
  }

  .navigate-button strong {
    font-size: 12px;
  }
}


/* ---------- Tema e áreas comuns (v4.1) ---------- */
.navigate-button { color: var(--on-acc); }
.select-option { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.select-option small { font-size: 11px; opacity: 0.62; font-weight: 500; }
.select-option.opt-areas { border-bottom: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 4px; padding-bottom: 10px; border-radius: 11px 11px 0 0; }
.select-option.opt-areas span::before { content: "★ "; color: var(--acc); }
.destination-card.is-area .destination-divider,
.destination-card.is-area > div:nth-of-type(3) { display: none; }
.destination-card.is-area strong#finalQuadra { font-size: clamp(18px, 4.6vw, 24px); line-height: 1.2; }
.destination-card.is-area { grid-template-columns: 1fr 55px; }
.select-option:has(small) { padding-top: 8px; padding-bottom: 8px; }

/* ---------- Lista em tela cheia no celular (v4.3) ---------- */
.pick-sheet {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0, 9, 7, 0.78);
  backdrop-filter: blur(10px);
  animation: pickFade 0.15s ease;
}
.pick-box {
  width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  padding: 12px 10px 10px;
  border: 1px solid color-mix(in srgb, color-mix(in srgb, #fff 5%, var(--acc)) 18%, transparent);
  border-radius: 27px 27px 18px 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--acc) 11%, var(--bg)), color-mix(in srgb, #071713 60%, var(--bg)));
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.5);
  animation: pickUp 0.22s ease;
}
.pick-box .sheet-handle {
  display: block;
  width: 43px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.22);
}
.pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pick-head strong { display: block; font-size: 18px; color: #fff; }
.pick-head small { display: block; margin-top: 2px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.pick-head small:empty { display: none; }
.pick-close {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.pick-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.pick-list .select-menu {
  position: static;
  width: 100%;
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}
.pick-list .select-option { min-height: 54px; font-size: 16px; padding: 0 14px; }
.pick-list .select-option:has(small) { padding-top: 9px; padding-bottom: 9px; }
@keyframes pickFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pickUp { from { transform: translateY(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* ---------- Mapa do condomínio (v5.0) ---------- */
.map-button {
  width: 100%;
  min-height: 52px;
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.map-button:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.26); }
.map-button-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linejoin: round; display: block; }
.app-option-mapa { border-color: color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.app-option-mapa:hover { background: color-mix(in srgb, var(--acc) 17%, transparent); }
.condo-map svg { width: 100%; height: 100%; }

.gps-alvo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 2px; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }
.gps-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); max-width: 100%; }
.gps-seg button { border: 0; border-radius: 9px; padding: 7px 11px; background: none; color: rgba(255, 255, 255, 0.78); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.gps-seg button.on { background: var(--acc); color: var(--on-acc); }

.mapa-tela { position: fixed; inset: 0; z-index: 950; background: color-mix(in srgb, var(--bg) 85%, #000); color: #fff; overflow: hidden; animation: pickFade 0.18s ease; }
.mapa-palco { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.mapa-palco:active { cursor: grabbing; }
.mr-borda { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.mr-linha { fill: none; stroke: #ff2d3d; stroke-linecap: round; stroke-linejoin: round; }
.mr-anim { fill: none; stroke: #fff; stroke-linecap: round; animation: mrAnda 1.1s linear infinite; }
@keyframes mrAnda { to { stroke-dashoffset: var(--passo); } }
.mr-pulso { fill: #ff2d3d; animation: mrPulso 1.6s ease-out infinite; }
@keyframes mrPulso { from { transform: scale(0.4); opacity: 0.55; } to { transform: scale(2.6); opacity: 0; } }

.mapa-topo { position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 10px 30px #0005; backdrop-filter: blur(8px); }
.mapa-linha { display: flex; align-items: center; gap: 12px; }
.mapa-voltar { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 20px; cursor: pointer; }
.mapa-titulo { min-width: 0; }
.mapa-titulo small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: var(--acc); }
.mapa-titulo strong { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapa-portarias { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; }
.mapa-portarias > span { flex: none; }
.mapa-portarias > div { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.mapa-portarias > div::-webkit-scrollbar { display: none; }
.mapa-portarias button { flex: none; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 7px 12px; background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 12.5px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.mapa-portarias button.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.mapa-zoom { position: absolute; z-index: 2; right: 14px; top: 50%; transform: translateY(-50%); display: grid; gap: 7px; }
.mapa-zoom button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 6px 16px #0006; cursor: pointer; }
.mapa-card { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; padding: 14px; border-radius: 22px; background: linear-gradient(145deg, color-mix(in srgb, var(--acc) 10%, var(--bg)), color-mix(in srgb, #071713 60%, var(--bg))); border: 1px solid color-mix(in srgb, var(--acc) 22%, transparent); box-shadow: 0 -10px 40px #0007; }
.mapa-legenda { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.85); margin-bottom: 12px; }
.mapa-legenda em { flex: none; width: 28px; height: 6px; margin-top: 7px; border-radius: 6px; background: #ff2d3d; box-shadow: 0 0 0 2px #fff; }
.mapa-legenda b { color: #fff; }
.mapa-gps { width: 100%; min-height: 50px; border: 0; border-radius: 15px; background: var(--acc); color: var(--on-acc); font-size: 14.5px; font-weight: 800; cursor: pointer; }

/* v5.5: "Mapa do condomínio" em destaque, no topo do modal */
.app-option-mapa {
  margin-top: 16px;
  border: 1.5px solid var(--acc);
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 22%, transparent), color-mix(in srgb, var(--acc) 8%, transparent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 12%, transparent), 0 14px 30px -16px color-mix(in srgb, var(--acc) 70%, transparent);
}
.app-option-mapa:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 30%, transparent), color-mix(in srgb, var(--acc) 12%, transparent)); }
.app-option-mapa > b { color: var(--acc); }
.app-badge { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 99px; background: var(--acc); color: var(--on-acc); font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; vertical-align: 2px; }
.gps-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.gps-sep::before, .gps-sep::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); }

/* v5.11: o mapa é desenhado num canvas do tamanho da tela (sem "pedaços pretos" no zoom) */
.mapa-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Bússola do mapa (v5.12) */
.mapa-bussola { display: grid; place-items: center; }
.mapa-bussola svg { width: 22px; height: 22px; transition: none; }
