/*
 * La Ruota 2026 design: the locations page (include/page_locations.php), handoff 03-locations.html.
 * Loaded by header_common.php after styles_l.css, with lr-p-locations on <body>.
 *
 * The page keeps what the live one shows (each store's name, address, phone and its store page
 * link, with the Google map beside them) in the handoff's layout: the stores as cards in a
 * column, the map in a rounded frame next to them. The older sheet placed the list over the
 * map below a fixed 85px header; both now sit side by side in .lr-locs, under the site header.
 */

body.lr-p-locations {
  background: var(--lr-ground);
}

body.lr-p-locations .lr-locs {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 24px;
  box-sizing: border-box;
  height: calc(100vh - 68px);
  min-height: 560px;
  padding: 24px 32px;
}

/* the store column */
body.lr-p-locations .lr-locs main {
  position: static;
  width: auto;
  height: auto;
  min-height: 0;
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px -22px rgba(60, 40, 15, .3);
}

body.lr-p-locations .lr-locs .stores {
  margin: 0;
  padding: 14px;
}

body.lr-p-locations .stores .litem {
  margin: 0 0 12px;
  padding: 18px 20px;
  border: 1.5px solid var(--lr-rule-soft);
  border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}

body.lr-p-locations .stores > div:last-child .litem {
  margin-bottom: 0;
}

body.lr-p-locations .stores .litem:hover {
  border: 1.5px solid var(--lr-ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px -24px rgba(60, 40, 15, .45);
}

body.lr-p-locations .stores .litem .n {
  color: var(--lr-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

body.lr-p-locations .stores .litem .a {
  margin-top: 4px;
  color: var(--lr-muted);
  font-size: 14px;
  line-height: 1.5;
}

body.lr-p-locations .stores .litem .p {
  margin-top: 6px;
  color: var(--lr-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* "Go to store page": the menu cards' pill, red under the pointer */
body.lr-p-locations .stores .litem .l {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--lr-ground);
  color: var(--lr-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  transition: background .2s, color .2s;
}

body.lr-p-locations .stores .litem:hover .l {
  background: var(--lr-red);
  color: #fff;
}

/* the map */
body.lr-p-locations .lr-locs #omap {
  float: none;
  width: auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #F6F3EF;
  box-shadow: 0 14px 40px -22px rgba(60, 40, 15, .3);
}

/* narrower screens: the stores first, the map under them (as before, below 1160px) */
@media (max-width: 1160px) {
  body.lr-p-locations .lr-locs {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }

  body.lr-p-locations .lr-locs main {
    overflow: visible;
  }

  body.lr-p-locations .lr-locs .stores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
  }

  body.lr-p-locations .stores .litem {
    margin: 0;
  }

  body.lr-p-locations .lr-locs #omap {
    height: 60vh;
  }
}

@media (max-width: 760px) {
  body.lr-p-locations .lr-locs {
    gap: 16px;
    padding: 16px 12px 24px;
  }

  body.lr-p-locations .lr-locs .stores {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  body.lr-p-locations .lr-locs #omap {
    height: 56vh;
    border-radius: 20px;
  }
}
