/* FurMap Home redesign. All selectors are scoped to keep other pages unchanged. */
.home-redesign {
  --home-bg: #030712;
  --home-surface: #070d1d;
  --home-surface-2: #0b1226;
  --home-line: rgba(116, 95, 214, 0.28);
  --home-pink: #ff2fad;
  --home-purple: #6f2cff;
  --home-blue: #168cff;
  background:
    radial-gradient(circle at 19% 18%, rgba(255, 47, 173, 0.1), transparent 28%),
    radial-gradient(circle at 90% 13%, rgba(22, 140, 255, 0.1), transparent 32%),
    var(--home-bg);
}

.home-redesign .home-topbar {
  min-height: 78px;
  padding: 10px 20px;
  background: rgba(3, 7, 18, 0.94);
  border-color: rgba(116, 95, 214, 0.24);
}

.home-redesign .home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 242px;
  flex: 0 0 242px;
  font-size: 29px;
  letter-spacing: 0;
}

.home-redesign .home-brand img {
  width: 34px;
  height: 34px;
  margin-left: 7px;
  object-fit: contain;
}

.home-redesign .nav {
  margin-left: 0;
  justify-content: flex-end;
}

.home-redesign .nav .btn,
.home-redesign .nav button {
  min-height: 44px;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 47, 173, 0.5);
  border-radius: 8px;
  background: rgba(8, 13, 29, 0.86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.home-redesign .nav .btn:hover,
.home-redesign .nav button:hover {
  border-color: rgba(255, 47, 173, 0.9);
  background: rgba(255, 47, 173, 0.1);
}

.home-redesign .nav .furtube-cta {
  background: rgba(8, 13, 29, 0.86);
  border-color: rgba(255, 47, 173, 0.7);
  box-shadow: none;
}

.home-redesign .nav .btn.active:not(.furtube-cta),
.home-redesign .nav button.active {
  border-color: rgba(255, 47, 173, 0.82) !important;
  background: rgba(255, 47, 173, 0.08) !important;
  box-shadow: 0 12px 30px rgba(255, 47, 173, 0.1) !important;
}

.home-redesign .nav [data-nav-key]::before,
.home-redesign .nav-side-menu [data-nav-key]::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.home-redesign [data-nav-key="mapa"]::before { background-image: url("/img/home/nav-home.svg"); }
.home-redesign [data-nav-key="updates"]::before { background-image: url("/img/home/nav-updates.svg"); }
.home-redesign [data-nav-key="grupos"]::before { background-image: url("/img/home/nav-groups.svg"); }
.home-redesign [data-nav-key="chat"]::before { background-image: url("/img/home/nav-sync.svg"); }
.home-redesign [data-nav-key="donation"]::before { background-image: url("/img/home/nav-heart.svg"); }
.home-redesign [data-nav-key="perfil"]::before { background-image: url("/img/home/nav-profile.svg"); }
.home-redesign [data-nav-key="adicionarLugar"]::before { background-image: url("/img/home/nav-location.svg"); }
.home-redesign [data-nav-key="deletedata"]::before { background-image: url("/img/home/nav-logout.svg"); }
.home-redesign [data-nav-key="about"]::before { background-image: url("/img/home/nav-about.svg"); }
.home-redesign [data-nav-key="team"]::before { background-image: url("/img/home/nav-team.svg"); }
.home-redesign [data-nav-key="press"]::before { background-image: url("/img/home/nav-press.svg"); }
.home-redesign [data-nav-key="admin"]::before { background-image: url("/img/home/nav-admin.svg"); }
.home-redesign [data-nav-key="furtube"]::before { background-image: url("/img/home/furtube.svg"); }
.home-redesign [data-nav-key="sair"]::before { background-image: url("/img/home/nav-logout.svg"); }

.home-redesign .home-sidebar-shell {
  top: 78px;
  width: 262px;
  display: flex !important;
  flex-direction: column;
  gap: 0;
  padding: 16px 18px 20px;
  background: rgba(3, 7, 18, 0.97);
  border-color: rgba(116, 95, 214, 0.25);
}

.home-redesign .home-sidebar-shell .nav-side-section {
  margin: 0 0 18px;
}

.home-redesign .home-sidebar-shell .nav-side-section[data-nav-section="Comunidade"] { order: 1; }
.home-redesign .home-sidebar-shell .nav-side-section[data-nav-section="Minha Conta"] { order: 2; }
.home-redesign .home-sidebar-shell .nav-side-section[data-nav-section="Sobre"] { order: 3; }
.home-redesign .home-sidebar-shell .nav-side-section[data-nav-section="Administracao"],
.home-redesign .home-sidebar-shell .nav-side-section[data-nav-section="Administração"] { order: 4; }

.home-redesign .home-sidebar-shell .nav-side-heading {
  margin: 0 4px 7px;
  color: #9ca5c5;
  font-size: 11px;
  letter-spacing: 0;
}

.home-redesign .home-sidebar-shell .nav-side-links {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(116, 95, 214, 0.2);
  border-radius: 8px;
  background: rgba(8, 13, 29, 0.82);
}

.home-redesign .home-sidebar-shell .btn,
.home-redesign .home-sidebar-shell button {
  min-height: 44px;
  padding: 10px 13px;
  gap: 12px;
  border: 0 !important;
  border-bottom: 1px solid rgba(116, 95, 214, 0.14) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f6f7ff;
}

.home-redesign .home-sidebar-shell .btn:last-child,
.home-redesign .home-sidebar-shell button:last-child {
  border-bottom: 0 !important;
}

.home-redesign .home-sidebar-shell .btn:hover,
.home-redesign .home-sidebar-shell button:hover,
.home-redesign .home-sidebar-shell .btn.active {
  background: linear-gradient(100deg, rgba(85, 40, 255, 0.9), rgba(255, 47, 173, 0.92)) !important;
}

.home-redesign .home-network-card {
  order: 5;
  margin-top: auto;
  padding: 17px 14px;
  border: 1px solid rgba(116, 95, 214, 0.35);
  border-radius: 8px;
  background: rgba(8, 13, 29, 0.92);
  text-align: center;
}

.home-redesign .home-network-card strong {
  font-size: 17px;
}

.home-redesign .home-network-card strong span {
  color: var(--home-pink);
}

.home-redesign .home-network-card p {
  margin: 10px 0;
  font-size: 12px;
}

.home-redesign .home-network-card small {
  display: block;
  color: #c5cae1;
  line-height: 1.45;
}

.home-redesign .home-social-links {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 15px;
}

.home-redesign .home-social-links a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(116, 95, 214, 0.32);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.home-redesign .home-social-links img {
  width: 21px;
  height: 21px;
}

.home-redesign.has-nav-side .home-main {
  width: auto;
  max-width: 1600px;
  margin: 0 18px 48px 280px;
  padding: 18px 0 0;
}

.home-redesign .home-hero {
  padding: 18px 10px 0;
}

.home-redesign .home-hero-copy h1 {
  margin: 0 0 6px;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: 0;
}

.home-redesign .home-hero-copy h1 span {
  color: #ff65c4;
}

.home-redesign .home-hero-copy p {
  margin: 0;
  color: #e0e4f2;
  line-height: 1.55;
}

.home-redesign .home-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  margin-top: 16px;
}

.home-redesign .home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-redesign .home-feature-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 116px;
  padding: 17px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 13, 29, 0.98), rgba(7, 11, 25, 0.92));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.home-redesign .home-feature-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.home-redesign .home-feature-card strong {
  font-size: 17px;
  line-height: 1.35;
}

.home-redesign .home-location-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 116px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(125deg, #ff2fad 0%, #b51ed8 45%, #4424ff 100%);
  box-shadow: 0 18px 44px rgba(111, 44, 255, 0.25);
}

.home-redesign .home-location-cta:hover {
  filter: brightness(1.08);
}

.home-redesign .home-location-cta img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.home-redesign .home-location-cta strong,
.home-redesign .home-location-cta small {
  display: block;
}

.home-redesign .home-location-cta strong {
  font-size: 19px;
  line-height: 1.2;
}

.home-redesign .home-location-cta small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.home-redesign #mapMsg:empty {
  display: none;
}

.home-redesign .home-security {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) minmax(260px, 340px);
  align-items: center;
  gap: 20px;
  margin: 18px 10px 12px;
  padding: 17px 22px;
  border: 1px solid rgba(255, 183, 0, 0.72);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(38, 25, 2, 0.82), rgba(5, 9, 19, 0.98) 48%, rgba(11, 13, 17, 0.96));
  box-shadow: inset 0 0 40px rgba(255, 183, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.26);
}

.home-redesign .home-security-shield {
  width: 125px;
  height: 125px;
  object-fit: contain;
}

.home-redesign .home-security h2 {
  margin: 0 0 7px;
  color: #ffc400;
  font-size: 23px;
}

.home-redesign .home-security p {
  margin: 4px 0;
  color: #edf0f7;
  line-height: 1.48;
}

.home-redesign .home-security-copy strong {
  display: block;
  margin-top: 7px;
  color: #ffd400;
  line-height: 1.45;
}

.home-redesign .home-security-warning {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 183, 0, 0.38);
}

.home-redesign .home-security-warning img {
  width: 56px;
  height: 56px;
}

.home-redesign .home-map-card {
  margin: 0 10px;
  border: 1px solid rgba(98, 116, 210, 0.45);
  border-radius: 8px;
  background: #020713;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.home-redesign .home-map-card #map {
  height: 640px;
  min-height: 640px;
  background: #020713;
}

.home-redesign .leaflet-control-zoom a {
  color: #111 !important;
}

.home-redesign .home-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 14px;
  margin: 14px 10px 0;
}

.home-redesign .home-help-card,
.home-redesign .home-about-card {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 13, 29, 0.98), rgba(6, 11, 24, 0.94));
  text-align: left;
}

.home-redesign .home-card-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.home-redesign .home-card-title > img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.home-redesign .home-card-title strong,
.home-redesign .home-card-title h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.home-redesign .home-card-title p,
.home-redesign .home-about-card p {
  margin: 4px 0;
  color: #e0e4f2;
  line-height: 1.52;
}

.home-redesign .home-card-title a {
  color: #ff7fd2;
}

.home-redesign .footer-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.home-redesign .home-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 9px;
  border: 1px solid rgba(116, 95, 214, 0.32);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  text-align: left;
}

.home-redesign .home-footer-link img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.home-redesign .home-about-card h2 {
  margin: 0;
}

.home-redesign .footer-partners {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.home-redesign .home-mobile-network {
  display: none;
}

@media (min-width: 1500px) {
  .home-redesign .home-map-card #map {
    height: 700px;
    min-height: 700px;
  }
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .home-redesign .home-feature-layout {
    grid-template-columns: 1fr;
  }

  .home-redesign .home-location-cta {
    min-height: 92px;
  }

  .home-redesign .home-security {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .home-redesign .home-security-warning {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 183, 0, 0.38);
    border-left: 0;
  }

  .home-redesign .footer-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .home-redesign .home-topbar {
    min-height: 70px;
    padding: 9px 12px;
  }

  .home-redesign .home-brand {
    width: auto;
    flex-basis: auto;
  }

  .home-redesign .nav-mobile-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 8px;
    background: url("/img/home/menu.svg") center / 23px no-repeat rgba(8, 13, 29, 0.9);
    color: transparent;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
  }

  .home-redesign .home-sidebar-shell,
  .home-redesign .home-sidebar-shell.open {
    top: 70px;
    display: flex !important;
  }

  .home-redesign.has-nav-side .home-main {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 14px 12px 82px;
  }

  .home-redesign .home-feature-layout {
    grid-template-columns: 1fr;
  }

  .home-redesign .home-location-cta {
    min-height: 92px;
  }

  .home-redesign .home-security {
    grid-template-columns: 115px minmax(0, 1fr);
  }

  .home-redesign .home-security-warning {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 183, 0, 0.38);
    border-left: 0;
  }

  .home-redesign .home-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-redesign .home-topbar {
    display: grid;
    grid-template-columns: 44px auto minmax(0, 1fr);
    gap: 8px;
  }

  .home-redesign .nav-mobile-toggle {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    border-radius: 8px;
    background: url("/img/home/menu.svg") center / 23px no-repeat rgba(8, 13, 29, 0.9);
  }

  .home-redesign .home-brand {
    grid-column: 2;
    grid-row: 1;
    font-size: 23px;
  }

  .home-redesign .home-brand img {
    width: 28px;
    height: 28px;
  }

  .home-redesign .nav {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    justify-content: flex-end;
    gap: 5px;
    overflow: visible;
  }

  .home-redesign .nav .btn,
  .home-redesign .nav button {
    min-height: 40px;
    padding: 8px 9px;
    gap: 5px;
    font-size: 11px;
  }

  .home-redesign .nav [data-nav-key]::before {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .home-redesign .nav .notify-bell {
    display: none;
  }

  .home-redesign .home-sidebar-shell,
  .home-redesign .home-sidebar-shell.open {
    top: 70px;
    width: min(286px, 86vw);
  }

  .home-redesign .home-hero {
    padding: 14px 2px 0;
  }

  .home-redesign .home-hero-copy h1 {
    font-size: 27px;
  }

  .home-redesign .home-hero-copy p {
    font-size: 15px;
  }

  .home-redesign .home-feature-grid {
    gap: 8px;
  }

  .home-redesign .home-feature-card {
    flex-direction: column;
    gap: 8px;
    min-height: 118px;
    padding: 12px 7px;
    text-align: center;
  }

  .home-redesign .home-feature-card img {
    width: 50px;
    height: 50px;
  }

  .home-redesign .home-feature-card strong {
    font-size: 13px;
  }

  .home-redesign .home-location-cta {
    flex-direction: column;
    gap: 8px;
    padding: 17px;
    text-align: center;
  }

  .home-redesign .home-location-cta img {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
  }

  .home-redesign .home-location-cta strong {
    font-size: 19px;
  }

  .home-redesign .home-security {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    margin: 16px 2px 12px;
    padding: 16px;
  }

  .home-redesign .home-security-shield {
    width: 110px;
    height: 110px;
  }

  .home-redesign .home-security h2 {
    font-size: 20px;
  }

  .home-redesign .home-security p,
  .home-redesign .home-security-copy strong {
    font-size: 14px;
  }

  .home-redesign .home-security-warning {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .home-redesign .home-security-warning img {
    width: 42px;
    height: 42px;
  }

  .home-redesign .home-map-card {
    margin: 0 2px;
  }

  .home-redesign .home-map-card #map {
    height: 500px;
    min-height: 500px;
  }

  .home-redesign .home-bottom-grid {
    margin: 12px 2px 0;
  }

  .home-redesign .home-help-card,
  .home-redesign .home-about-card {
    padding: 17px;
  }

  .home-redesign .footer-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-redesign .home-footer-link:last-child {
    grid-column: 1 / -1;
  }

  .home-redesign .home-mobile-network {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(8, 13, 29, 0.98), rgba(6, 11, 24, 0.94));
  }

  .home-redesign .home-mobile-network strong {
    font-size: 18px;
  }

  .home-redesign .home-mobile-network strong span {
    color: var(--home-pink);
  }

  .home-redesign .home-mobile-network p,
  .home-redesign .home-mobile-network small {
    display: block;
    margin: 6px 0 0;
    color: #d4d9eb;
  }

  .home-redesign .home-mobile-network .home-social-links {
    flex: 0 0 auto;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .home-redesign {
    overflow-x: hidden;
  }

  .home-redesign .home-main,
  .home-redesign .home-hero,
  .home-redesign .home-security,
  .home-redesign .home-map-card,
  .home-redesign .home-bottom-grid {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .home-redesign .home-topbar {
    grid-template-columns: 42px minmax(88px, auto) minmax(0, 1fr);
    padding: 8px;
  }

  .home-redesign .home-brand {
    font-size: 20px;
  }

  .home-redesign .home-brand img {
    display: none;
  }

  .home-redesign .nav .btn,
  .home-redesign .nav button {
    width: auto;
    min-width: 38px;
    padding: 0 7px;
    font-size: 10px;
  }

  .home-redesign .nav [data-nav-key]::before {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .home-redesign .nav a[href="/login.html"] {
    width: auto;
    padding: 0 9px;
    font-size: 11px;
  }

  .home-redesign .home-hero-copy h1 {
    font-size: 24px;
  }

  .home-redesign .home-feature-card img {
    width: 43px;
    height: 43px;
  }

  .home-redesign .home-feature-card strong {
    font-size: 12px;
  }

  .home-redesign .home-security {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    overflow: hidden;
  }

  .home-redesign .home-security-shield {
    justify-self: center;
    width: 82px;
    height: 82px;
  }

  .home-redesign .home-security-copy,
  .home-redesign .home-security-warning {
    width: 100%;
    max-width: min(300px, calc(100vw - 70px));
    min-width: 0;
  }

  .home-redesign .home-security-warning {
    padding-left: 0;
    border-left: 0;
  }

  .home-redesign .home-security-copy strong,
  .home-redesign .home-security p {
    max-width: min(300px, calc(100vw - 70px));
    font-size: 13px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .home-redesign .toast,
  .home-redesign .site-notify-toast,
  .home-redesign .floating-toast {
    max-width: calc(100vw - 24px);
    overflow-wrap: anywhere;
  }

  .home-redesign .home-security h2 {
    font-size: 18px;
  }

  .home-redesign .home-map-card #map {
    height: 430px;
    min-height: 430px;
  }

  .home-redesign .home-mobile-network {
    align-items: flex-start;
    flex-direction: column;
  }
}
