/*
 * SANOME — HOME
 * Owner page-level dos estilos especificos da Home.
 *
 * Inicio da consolidacao: FASE 9N.
 */

/* SN_HOME_SECONDARY_NAV_TEST_V1 */
  .sn-home-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sn-home-secondary-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
  }

  .sn-home-secondary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 15px;
    color: #f8fafc;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: rgba(255, 255, 255, 0.045);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition:
      transform .16s ease,
      border-color .16s ease,
      background .16s ease,
      color .16s ease;
  }

  .sn-home-secondary-link::after {
    content: "›";
    flex: 0 0 auto;
    color: #60a5fa;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
  }

  .sn-home-secondary-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.58);
    background: rgba(255, 255, 255, 0.09);
  }

  @media (max-width: 767px) {
    .sn-home-secondary-links {
      grid-template-columns: 1fr;
      gap: 10px;
      margin-bottom: 10px;
    }

    .sn-home-secondary-link {
      padding: 13px;
    }
  }

  .sn-home-link-hub {
    background: #0d1117;
    color: #f8fafc;
    padding: 26px 16px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sn-home-link-hub-inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  .sn-home-link-hub-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
  }

  .sn-home-link-hub-kicker {
    margin: 0 0 7px;
    color: #60a5fa;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .sn-home-link-hub-title {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(22px, 2.3vw, 34px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.04em;
  }

  .sn-home-link-hub-copy {
    max-width: 430px;
    margin: 0;
    color: rgba(248, 250, 252, 0.68);
    font-size: 13px;
    line-height: 1.65;
  }

  .sn-home-link-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .sn-home-link-group {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(12px);
  }

  .sn-home-link-group-title {
    margin: 0 0 12px;
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .sn-home-link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sn-home-link-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    padding: 8px 10px;
    color: rgba(248, 250, 252, 0.88);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.105);
    background: rgba(255, 255, 255, 0.055);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 650;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
  }

  .sn-home-link-chip::after {
    content: "›";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #0d1117;
    background: rgba(96, 165, 250, 0.92);
    font-size: 17px;
    line-height: 1;
    font-weight: 800;
  }

  .sn-home-link-chip:hover {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.58);
    background: rgba(255, 255, 255, 0.09);
  }

  .sn-home-link-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .sn-home-link-main-title {
    min-height: 34px;
    padding: 8px 10px;
    color: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.105);
    background: rgba(255, 255, 255, 0.055);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 650;
  }

  .sn-home-link-main-title-link {
    display: block;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
  }

  .sn-home-link-main-title-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.58);
    background: rgba(255, 255, 255, 0.09);
  }

  .sn-home-link-subactions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 2px;
  }

  .sn-home-link-subchip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 8px;
    color: rgba(248, 250, 252, 0.78);
    text-decoration: none;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(96, 165, 250, 0.08);
    font-size: 11px;
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
  }

  .sn-home-link-subchip:hover {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.58);
    background: rgba(96, 165, 250, 0.15);
  }

  

  @media (max-width: 1365px) {
  .sn-home-secondary-links,
  .sn-home-link-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
    .sn-home-link-hub {
      padding: 28px 14px 32px;
    }

    .sn-home-link-hub-head {
      display: block;
      margin-bottom: 18px;
    }

    .sn-home-link-hub-copy {
      margin-top: 10px;
    }

    .sn-home-link-hub-grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .sn-home-link-group {
      padding: 13px;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }

/* ==========================================================
   SN_CSS_ARCH_HOME_HERO_LCP_OWNER_V1

   Owner canônico da estrutura visual/LCP do Hero da Home.
   Mantém o background legado neutralizado enquanto a imagem
   responsiva é servida pelo <picture>.
   ========================================================== */

.sn-home-hero {
  background: #0d1117 !important;
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
}

/* SN_HOME_HERO_LCP_FINAL_CSS_V2 */

    .sn-home-hero-lcp-picture {
      position: absolute;
      inset: 0;
      z-index: 0;
      display: block;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .sn-home-hero-lcp-image {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      border: 0 !important;
      outline: 0 !important;
      box-shadow: none !important;
      background: transparent !important;
    }

    .sn-home-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;

      background:
        linear-gradient(
          90deg,
          rgba(13,17,23,.58) 0%,
          rgba(13,17,23,.38) 45%,
          rgba(13,17,23,.12) 100%
        ),
        linear-gradient(
          180deg,
          rgba(13,17,23,.24) 0%,
          rgba(13,17,23,.14) 58%,
          rgba(13,17,23,.54) 100%
        );
    }

    .sn-home-hero-inner {
      position: relative !important;
      z-index: 2 !important;
    }

    @media (max-width: 767px) {
      .sn-home-hero::after {
        background:
          linear-gradient(
            180deg,
            rgba(13,17,23,.68) 0%,
            rgba(13,17,23,.38) 48%,
            rgba(13,17,23,.72) 100%
          );
      }
    }

/* ==========================================================
   SN_CSS_ARCH_HOME_SEARCH_OPEN_STATE_V1
   Estado da busca aberta dentro do Hero.
   Owner canônico: Home.
   ========================================================== */

.sn-home-hero:has(
  .sn-home-listing-search-input[aria-expanded="true"]
) {
  overflow: visible !important;
  z-index: 900 !important;
}

.sn-home-hero:has(
  .sn-home-listing-search-input[aria-expanded="true"]
) .sn-home-listing-search {
  position: relative !important;
  z-index: 910 !important;
}

.sn-home-hero:has(
  .sn-home-listing-search-input[aria-expanded="true"]
) .sn-home-listing-search-results {
  z-index: 920 !important;
}


/* ==========================================================
   SN_CSS_ARCH_HOME_HERO_ACTIONS_V1
   Owner canônico da composição dos botões do Hero.
   Breakpoints oficiais SANOME.
   ========================================================== */

.sn-home-hero .sn-home-hero-actions {
  gap: 10px !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .sn-home-hero .sn-home-hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .sn-home-hero .sn-home-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(100%, 620px) !important;
    max-width: 620px !important;
  }
}

@media (min-width: 1024px) and (max-width: 1365px) {
  .sn-home-hero .sn-home-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(60vw, 620px) !important;
    max-width: 620px !important;
  }
}

@media (min-width: 1366px) and (max-width: 1599px) {
  .sn-home-hero .sn-home-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(45vw, 640px) !important;
    max-width: 640px !important;
  }
}

@media (min-width: 1600px) {
  .sn-home-hero .sn-home-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(40vw, 736px) !important;
    max-width: 736px !important;
  }
}
