/* Home page on phones: light layout (headline, one search row, pills). Loaded last by index.html together with home-lite.js.
   Remove the <link> and <script> (or git revert) to roll back. Desktop is not affected. */
.nh-pills, .nh-sub { display: none; }

@media (max-width: 560px) {
  /* Hero without the dark card */
  .hero.nh-lite { margin-top: 6px; padding: 8px 0 0; background: none; border-radius: 0; box-shadow: none; color: var(--brand); }
  .hero.nh-lite h1 { font-size: 30px; line-height: 1.12; margin: 6px 0 8px; color: var(--brand); }
  .hero.nh-lite h1 em { color: var(--brand); padding: 0 5px; border-radius: 6px; background: linear-gradient(transparent 58%, rgba(0, 174, 231, .4) 58%); }
  .hero.nh-lite .nh-sub { display: block; margin: 0 0 18px; font-size: 16px; line-height: 1.45; color: var(--muted); }
  .hero.nh-lite .filter-panel { padding: 0; background: none; border: 0; box-shadow: none; max-width: none; border-radius: 0; }

  /* One search row: field plus round icon button */
  .hero.nh-lite .property-search label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .hero.nh-lite .property-search-row { flex-direction: row; gap: 10px; align-items: stretch; }
  .hero.nh-lite .property-search-row input[type="search"] { flex: 1 1 0; width: auto; min-width: 0; height: 56px; min-height: 56px; padding-right: 14px; }
  .hero.nh-lite .property-search-btn { flex: none; width: 56px; min-width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 50%; font-size: 0; color: transparent;
    background-repeat: no-repeat; background-position: center; background-size: 24px 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23132d4c' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); }
  .hero.nh-lite .search-hint, .hero.nh-lite .advanced-toggle { display: none; }

  /* Pill row */
  .hero.nh-lite .nh-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .nh-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: #fff; color: var(--brand);
    font: 700 14px/1 var(--font); cursor: pointer; box-shadow: 0 2px 8px rgba(19, 45, 76, .06); transition: transform .15s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
  .nh-pill:active { transform: scale(.97); }
  .nh-pill[aria-expanded="true"] { background: var(--brand-light); border-color: var(--accent); }
  .nh-pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

  /* Advanced filters open in their own card */
  .hero.nh-lite .advanced-filters.open { margin-top: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-card); }

  /* UPI checker folds away until "Check UPI" is tapped */
  .upi-checker.nh-upi-fold { display: none; }
  .upi-checker.nh-upi-fold.nh-open { display: block; animation: nh-rise .25s var(--ease) both; }
  .upi-checker { margin: 14px 0 6px; padding: 14px 12px; border-radius: 20px; }
  .upi-checker-text h2 { font-size: 17px; margin: 0 0 10px; }
  .upi-checker-text p, .upi-checker-more { display: none; }
  .upi-checker-form { flex-direction: row; gap: 8px; }
  .upi-checker-form input[type="text"] { flex: 1 1 0; width: auto; min-width: 0; height: 52px; min-height: 52px; padding-right: 12px; }
  .upi-checker-form .search-btn { width: auto; flex: none; min-height: 52px; padding: 0 16px; font-size: 16px; }

  /* Trust pills: one swipeable row */
  .badges-row { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 12px -16px 8px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .badges-row::-webkit-scrollbar { display: none; }
  .badge-explain { flex: none; white-space: nowrap; font-size: 12px; padding: 7px 12px; }

  /* Listings heading */
  .listings-head { margin: 14px 0 10px; }
  .listings-head #results-heading { font-size: 22px; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .nh-pill, .upi-checker.nh-upi-fold.nh-open { animation: none; transition: none; } }
