/* Refinamento visual mobile da página inicial. Mantém o layout desktop intacto. */
@media (max-width: 760px) {
  :root {
    --mobile-blue: #0b63ce;
    --mobile-ink: #102a43;
    --mobile-muted: #6b7c93;
    --mobile-line: #dbe4ee;
  }

  html {
    background: #f7f9fc;
    padding-top: env(safe-area-inset-top);
  }

  body {
    background: #f7f9fc !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif !important;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .home-topbar {
    position: relative !important;
    min-height: auto;
    padding: 14px 14px 10px !important;
    border: 0 !important;
    background: #f7f9fc !important;
    box-shadow: none !important;
    justify-content: stretch;
  }

  .home-topbar .home-location-card {
    width: 100%;
    max-width: none;
    min-height: 76px;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    gap: 12px;
    padding: 13px 15px !important;
    border: 1px solid var(--mobile-line) !important;
    border-radius: 21px !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(24, 57, 91, .07) !important;
    text-align: left;
  }

  .home-user-icon {
    position: relative;
    display: grid;
    place-items: end center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 2px solid var(--mobile-blue);
    border-radius: 50%;
    color: var(--mobile-blue);
    font-style: normal;
    font-size: 0;
  }

  .home-user-icon::before {
    content: "";
    position: absolute;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
  }

  .home-user-icon::after {
    content: "";
    width: 26px;
    height: 16px;
    margin-bottom: 4px;
    border-radius: 50% 50% 40% 40%;
    background: currentColor;
  }

  .home-location-copy {
    display: grid !important;
    align-content: center;
    min-width: 0;
    gap: 2px;
  }

  .home-location-copy strong,
  .home-location-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-location-copy strong {
    color: var(--mobile-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
  }

  .home-location-copy small {
    display: block;
    max-width: none !important;
    margin: 0 !important;
    color: var(--mobile-muted) !important;
    font-size: 14px;
    line-height: 1.25;
  }

  .home-location-chevron {
    align-self: center;
    color: var(--mobile-ink);
    font-size: 24px;
    font-style: normal;
    line-height: 1;
  }

  .home-wrap {
    padding: 8px 12px 30px;
  }

  .official-banner {
    margin: 4px 0 18px;
    border: 1px solid var(--mobile-line);
    border-radius: 22px;
    box-shadow: 0 7px 22px rgba(24, 57, 91, .06);
  }

  .official-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .search-panel {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 24px 18px 20px;
    border: 1px solid var(--mobile-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(24, 57, 91, .06);
  }

  .search-heading {
    margin-bottom: 20px;
  }

  .search-heading h1 {
    margin: 0 0 9px;
    color: var(--mobile-ink);
    font-size: clamp(27px, 8vw, 34px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .search-heading p {
    color: var(--mobile-muted);
    font-size: 15px;
    line-height: 1.5;
  }

  .main-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--mobile-line);
    border-radius: 19px;
    box-shadow: none;
  }

  .main-search:focus-within {
    border-color: #a8c7ec;
    box-shadow: 0 0 0 4px rgba(11, 99, 206, .08);
  }

  .search-input-wrap {
    grid-column: 1 / -1;
    min-height: 54px;
    padding: 0 12px;
    border: 1px solid var(--mobile-line);
    border-radius: 15px;
    color: var(--mobile-muted);
    background: #fff;
  }

  .search-input-wrap input {
    min-height: 52px;
    color: var(--mobile-ink);
    font-size: 16px;
  }

  .photo-button,
  .search-button {
    min-width: 0;
    min-height: 52px;
    border-radius: 14px;
    font-size: 15px;
  }

  .photo-button {
    border: 1px solid var(--mobile-line);
    background: #f8fafc;
    color: var(--mobile-ink);
  }

  .search-button {
    border: 1px solid var(--mobile-blue);
    background: var(--mobile-blue);
    color: #fff;
    box-shadow: 0 5px 12px rgba(11, 99, 206, .18);
  }

  .section-title {
    margin-top: 28px;
  }

  .quick-grid a {
    border-color: var(--mobile-line);
    border-radius: 19px;
    box-shadow: 0 4px 14px rgba(24, 57, 91, .045);
  }

  .trust-strip {
    border: 1px solid var(--mobile-line);
    border-radius: 19px;
    background: #fff;
  }

  .bottom-nav {
    min-height: 76px;
    padding: 8px 5px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(160, 176, 194, .32);
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: 0 -8px 28px rgba(22, 47, 74, .08);
    backdrop-filter: saturate(170%) blur(20px);
    -webkit-backdrop-filter: saturate(170%) blur(20px);
  }

  .bottom-nav a {
    align-content: center;
    gap: 4px;
    color: #78879a;
    font-size: 10px;
    font-weight: 600;
  }

  .bottom-nav i {
    font-size: 21px;
    line-height: 1;
  }

  .bottom-nav .announce i {
    width: 48px;
    height: 48px;
    margin-top: -25px;
    border: 3px solid #f7f9fc;
    box-shadow: 0 7px 16px rgba(8, 102, 232, .25);
    font-size: 30px;
    font-weight: 300;
  }

  .bottom-nav .announce span {
    color: var(--mobile-blue);
    font-weight: 700;
  }
}

@media (max-width: 374px) {
  .main-search {
    grid-template-columns: 1fr;
  }

  .photo-button,
  .search-button {
    grid-column: 1 / -1;
  }
}
