/* Tablet and up */
@media (min-width: 640px) {
  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fees {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }

  .area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .listing-board-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .header-call-num {
    display: inline;
  }

  .header-call-word {
    display: none;
  }

  .hero-hung {
    grid-auto-columns: minmax(260px, 46%);
  }
}

/* Desktop: the header carries the menu and the main action; the bottom bar goes */
@media (min-width: 960px) {
  :root {
    --header: 72px;
  }

  body {
    padding-bottom: 0;
  }

  .action-bar,
  .nav-small {
    display: none;
  }

  .nav-wide,
  .header-main {
    display: inline-flex;
  }

  .nav-wide ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-wide a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    text-decoration: none;
    font-weight: 800;
  }

  .nav-wide a:hover,
  .nav-wide a[aria-current="page"] {
    background: var(--yellow);
    box-shadow: inset 0 0 0 2px var(--ink);
  }

  .header-call {
    border: 0;
  }

  .wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  /* a new project carries its MahaRERA block, so its board takes two columns */
  .wall .board-wide {
    grid-column: span 2;
  }

  .wall > li:has(.board-wide) {
    grid-column: span 2;
  }

  /* inside, the photo sits on the left and the facts on the right */
  .wall .board-wide {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-auto-flow: row dense;
    column-gap: 20px;
  }

  .wall .board-wide > .board-top,
  .wall .board-wide > .board-heading,
  .wall .board-wide > .board-where {
    grid-column: 1 / -1;
  }

  .wall .board-wide > .board-photo {
    grid-column: 1;
    grid-row: span 3;
  }

  .wall .board-wide > .board-facts,
  .wall .board-wide > .board-caveat,
  .wall .board-wide > .board-foot {
    grid-column: 2;
  }

  .listing-body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 28px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .listing-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .never {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-table {
    display: table;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  }

  .visit-band {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }

  .form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .form > *,
  .form .unrigid-field {
    grid-column: 1 / -1;
  }

  .form .unrigid-field:has(#unrigid-visit-date),
  .form .unrigid-field:has(#unrigid-visit-time),
  .form .unrigid-field:has(#unrigid-visit-name),
  .form .unrigid-field:has(#unrigid-visit-mobile),
  .form .unrigid-field:has(#unrigid-owner-deal),
  .form .unrigid-field:has(#unrigid-owner-size),
  .form .unrigid-field:has(#unrigid-owner-carpet),
  .form .unrigid-field:has(#unrigid-owner-expected),
  .form .unrigid-field:has(#unrigid-owner-name),
  .form .unrigid-field:has(#unrigid-owner-mobile) {
    grid-column: auto;
  }

  /* Hero: the noticeboard across the whole width. The big board on the left, today's
     listings hung beside it, all on one wall. */
  .hero {
    padding: 34px 0 44px;
  }

  .hero-wall {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.95fr);
    gap: 34px;
    align-items: start;
  }

  .hero-board {
    padding: 30px 28px 24px;
    margin-top: 8px;
  }

  .hero-hung {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    gap: 22px;
  }

  .hero-hung .board {
    height: calc(100% - 30px);
  }

  /* inside the hero a new-project board keeps one column; its MahaRERA block sits on top */
  .hero-hung .board-top {
    flex-direction: column;
  }

  .hero-hung .rera {
    width: 100%;
  }
}

@media (min-width: 1280px) {
  .wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-board h1 {
    font-size: clamp(3.4rem, 4.4vw, 5rem);
  }
}

@media (min-width: 1700px) {
  .wrap {
    width: min(100% - 96px, 1600px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
