/* Homepage: Google reviews section and project map.
   Markup is in index.html, behaviour in assets/js/reviews-map.js.
   Sizes are in px because the site sets html { font-size: 62.5% }. */

.g-reviews,
.project-map {
  --rm-ink: #313131;
  --rm-muted: #5e5e5e;
  --rm-yellow: #F8D215;
  --rm-card: #fff;
  --rm-line: #d6d6d6;
  color: var(--rm-ink);
  font-family: Matter_R, Arial, sans-serif; }

.g-reviews {
  padding: 80px 0 40px; }

.project-map {
  padding: 40px 0 80px; }

.g-reviews .container,
.project-map .container {
  padding: 0 70px; }

.g-reviews [hidden],
.project-map [hidden] {
  display: none !important; }

/* headings: same face and yellow rule as the other homepage sections */
.g-reviews-heading,
.project-map-heading {
  color: var(--rm-ink);
  font-family: Cormorant_Garamond_M, Georgia, serif;
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 30px;
  padding-bottom: 14px;
  position: relative; }

.g-reviews-heading::after,
.project-map-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--rm-yellow); }

.g-reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px; }

.g-reviews-nav {
  display: flex;
  gap: 8px;
  padding-top: 10px; }

.g-reviews-arrow {
  width: 40px;
  height: 40px;
  border: 0;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer; }

.g-reviews-arrow:hover:not(:disabled) {
  background-color: var(--rm-yellow); }

.g-reviews-arrow:hover:not(:disabled) img {
  filter: invert(1); }

/* nothing further that way: outline only, so it doesn't read as a grey block */
.g-reviews-arrow:disabled {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px #b9b9b9;
  cursor: default; }

.g-reviews-arrow:disabled img {
  filter: invert(1);
  opacity: .4; }

.g-reviews-arrow:focus-visible,
.g-review-more:focus-visible,
.project-map-locate:focus-visible,
.project-map-item-focus:focus-visible {
  outline: 2px solid var(--rm-ink);
  outline-offset: 2px; }

/* overall rating */
.g-reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 30px;
  font-size: 16px;
  color: var(--rm-muted); }

.g-reviews-score {
  font-family: Cormorant_Garamond_M, Georgia, serif;
  font-size: 52px;
  line-height: .9;
  color: var(--rm-ink); }

.g-reviews-summary .g-stars {
  align-self: center;
  font-size: 24px; }

.g-reviews-summary > span:last-child {
  padding-left: 16px;
  border-left: 1px solid #c4c4c4;
  line-height: 1.9; }

.g-reviews-summary a {
  color: var(--rm-ink);
  text-decoration: underline; }

/* stars: an empty row with a filled row clipped on top of it */
.g-stars {
  position: relative;
  display: inline-block;
  flex: none;
  align-self: flex-start; /* keep the row as wide as its five stars so the fill % is right */
  font-size: 19px;
  line-height: 1;
  letter-spacing: 3px;
  color: #c9c9c9;
  white-space: nowrap; }

.g-stars::before {
  content: '★★★★★'; }

.g-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #e7a800; }

.g-stars-fill::before {
  content: '★★★★★'; }

/* loading / empty / error line */
.g-reviews-status,
.project-map-status {
  margin: 0;
  font-size: 18px;
  color: var(--rm-muted); }

.g-reviews-status {
  background-color: var(--rm-card);
  border: 1px solid #d7d2c8;
  border-radius: 10px;
  padding: 30px; }

/* cards: a scroll-snap row, so it works by swipe, trackpad, keyboard and the arrows.
   The scrollbar is hidden; the arrows in the heading row show there is more. */
.g-reviews-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none; }

.g-reviews-track::-webkit-scrollbar {
  display: none; }

.g-review {
  scroll-snap-align: start;
  position: relative;
  background-color: var(--rm-card);
  border: 1px solid #d7d2c8;
  border-radius: 10px;
  padding: 30px 30px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0; }

/* opening quote mark in the corner of each card */
.g-review::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 26px;
  font-family: Cormorant_Garamond_M, Georgia, serif;
  font-size: 96px;
  line-height: 1;
  color: var(--rm-yellow);
  pointer-events: none; }

.g-review.is-highlighted {
  border-color: var(--rm-ink);
  box-shadow: inset 0 4px 0 var(--rm-yellow); }

.g-review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-right: 54px; /* clear of the quote mark */ }

.g-review-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--rm-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px; }

.g-review-name {
  display: block;
  font-family: Matter_B, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  color: var(--rm-ink);
  text-decoration: none;
  overflow-wrap: anywhere; }

a.g-review-name:hover {
  text-decoration: underline; }

.g-review-date {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--rm-muted); }

.g-review > .g-stars {
  margin-top: 20px; }

.g-review-text {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: #3d3d3d;
  white-space: pre-line;
  overflow-wrap: anywhere; }

.g-review-text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden; }

.g-review-more {
  align-self: flex-start;
  margin-top: 10px;
  border: 0;
  background: none;
  padding: 0;
  font: 15px/1.4 Matter_B, Arial, sans-serif;
  color: var(--rm-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer; }

.g-review-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 14px; }

/* the rule sits on a pseudo-element so the footer keeps its distance from the text above */
.g-review-foot::before {
  content: '';
  flex: 0 0 100%;
  height: 1px;
  margin: 24px 0 10px;
  background-color: #e6e2d9; }

.g-review-foot a {
  font-family: Matter_B, Arial, sans-serif;
  color: var(--rm-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--rm-yellow);
  padding-bottom: 1px; }

.g-review-foot a:hover {
  border-bottom-color: var(--rm-ink); }

/* Google Maps text attribution, per Google's attribution guidelines */
.g-maps-attr {
  font-family: Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  white-space: nowrap;
  color: #5e5e5e; }

.g-reviews-foot {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px; }

.g-reviews-attribution {
  margin: 0;
  font-size: 14px;
  color: var(--rm-muted); }

.g-reviews-all,
.project-map-locate {
  display: inline-block;
  border: 1px solid #000;
  background-color: #000;
  color: #fff;
  font-family: Matter_R, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  padding: 12px 22px;
  text-decoration: none;
  cursor: pointer; }

.g-reviews-all:hover,
.project-map-locate:hover {
  background-color: var(--rm-yellow);
  border-color: var(--rm-yellow);
  color: #000; }

/* ---------- project map ----------
   Two layouts, switched by a class on the section (set in assets/js/reviews-map.js):
     .project-map--list   project cards in a grid (default; also the fallback without a map)
     no modifier          map on the left, the same cards in a column beside it */
.project-map-eyebrow {
  font: 700 13px/1.5 Matter_B, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #655f4f;
  margin: 0 0 12px; }

.project-map .project-map-heading {
  margin-bottom: 18px; }

.project-map-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  max-width: 62ch;
  margin: 0 0 26px; }

.project-map-status {
  background-color: var(--rm-card);
  border: 1px solid #d7d2c8;
  border-radius: 10px;
  padding: 26px; }

/* "What are you planning?" choices */
.project-map-intents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px; }

.project-map-intent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 18px;
  background-color: #fff;
  border: 1px solid #cfcabd;
  border-radius: 3px;
  color: #222;
  font: 16px/1.3 Matter_R, Arial, sans-serif;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; }

.project-map-intent:hover {
  border-color: #171717; }

.project-map-intent[aria-pressed="true"] {
  background-color: #171717;
  border-color: #171717;
  color: #fff; }

.project-map-intent-count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 20px;
  background-color: #f1efe8;
  color: #444;
  font-size: 13px;
  line-height: 1.4;
  text-align: center; }

.project-map-intent[aria-pressed="true"] .project-map-intent-count {
  background-color: var(--rm-yellow);
  color: #171717; }

.project-map-intent:focus-visible,
.project-map-item-link:focus-visible,
.project-map-cta a:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px; }

.project-map-cta a:focus-visible {
  outline-color: #fff; }

/* layout */
.project-map-body {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start; }

.project-map--list .project-map-body {
  display: block; }

.project-map--list .project-map-stage {
  display: none; }

.project-map-frame {
  height: 560px;
  background-color: #e9e5db;
  border: 1px solid #d7d2c8;
  border-radius: 10px;
  overflow: hidden; }

.project-map-canvas {
  width: 100%;
  height: 100%; }

.project-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 14px; }

.project-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px; }

.project-map-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  cursor: pointer; }

.project-map-filter input {
  width: 18px;
  height: 18px;
  accent-color: #171717; }

.project-map-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 20px;
  background-color: #fff;
  border: 1px solid #d7d2c8;
  font-size: 13px;
  line-height: 1.4;
  text-align: center; }

.project-map .project-map-locate {
  background-color: #fff;
  border-color: #171717;
  border-radius: 3px;
  color: #171717;
  font-size: 15px;
  padding: 9px 16px; }

.project-map .project-map-locate:hover {
  background-color: #171717;
  border-color: #171717;
  color: #fff; }

.project-map-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--rm-muted); }

/* project cards */
.project-map-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 610px;
  overflow-y: auto; }

.project-map--list .project-map-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-height: none;
  overflow: visible; }

.project-map-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  background-color: var(--rm-card);
  border: 1px solid #d7d2c8;
  border-radius: 10px;
  overflow: hidden;
  flex: none; /* keep full height inside the scrolling column */
  transition: box-shadow .2s, transform .2s, border-color .2s; }

.project-map--list .project-map-item {
  display: flex;
  flex-direction: column; }

.project-map--list .project-map-item:hover {
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, .5);
  transform: translateY(-2px); }

.project-map-item.is-active {
  border-color: #171717;
  box-shadow: inset 4px 0 0 var(--rm-yellow); }

.project-map-item-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  background-color: #e9e5db; }

.project-map--list .project-map-item-photo {
  height: 260px; }

/* stands in for a photo when a project has none: the place, not a borrowed picture */
.project-map-item-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px; }

.project-map-item-tile strong {
  font: 500 22px/1.1 Cormorant_Garamond_M, Georgia, serif;
  color: #222;
  overflow-wrap: anywhere; }

.project-map-item-tile span {
  margin-top: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #655f4f; }

.project-map--list .project-map-item-tile {
  padding: 32px; }

.project-map--list .project-map-item-tile strong {
  font-size: 44px; }

.project-map--list .project-map-item-tile span {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 2px; }

.project-map-item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 16px 18px; }

.project-map--list .project-map-item-body {
  padding: 24px; }

.project-map-item-place {
  margin: 0 0 6px;
  font: 700 12px/1.5 Matter_B, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #655f4f; }

.project-map-item-title {
  margin: 0;
  font: 700 18px/1.25 Proxima_Nova_B, Arial, sans-serif;
  color: #222; }

.project-map--list .project-map-item-title {
  font-size: 22px; }

.project-map-item-desc {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #444;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden; }

.project-map--list .project-map-item-desc {
  font-size: 16px;
  line-height: 1.6;
  display: block; }

.project-map-item-chips {
  list-style: none;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px; }

.project-map-item-chips:not(:has(li:not([hidden]))) {
  display: none; }

.project-map-item-chips li {
  background-color: #f5f4f0;
  border: 1px solid #e5e3db;
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 13px;
  line-height: 1.4;
  color: #333; }

.project-map-item-chips .project-map-item-distance {
  background-color: #171717;
  border-color: #171717;
  color: #fff; }

.project-map-item-links {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 15px; }

.project-map-item-link {
  color: #222;
  font-family: Matter_B, Arial, sans-serif;
  font-weight: 700;
  text-decoration: none; }

.project-map-item-link:hover {
  color: #222;
  text-decoration: underline; }

.project-map-item-focus {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: #444;
  text-decoration: underline;
  cursor: pointer; }

/* next step, worded for whatever the visitor picked above */
.project-map-cta {
  margin-top: 28px;
  padding: 26px 30px;
  background-color: #171717;
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px; }

.project-map-cta-text {
  margin: 0;
  font: 700 24px/1.25 Proxima_Nova_B, Arial, sans-serif;
  color: #fff; }

.project-map-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px; }

.project-map-cta-button {
  padding: 13px 20px;
  background-color: var(--rm-yellow);
  border-radius: 3px;
  color: #171717;
  font: 700 16px/1.3 Matter_B, Arial, sans-serif;
  text-decoration: none; }

.project-map-cta-button:hover {
  background-color: #e9c400;
  color: #171717; }

.project-map-cta-link {
  color: #fff;
  font-size: 16px;
  text-decoration: underline; }

.project-map-cta-link:hover {
  color: var(--rm-yellow); }

@media (max-width: 1199px) {
  .project-map--list .project-map-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 991px) {
  .project-map-body {
    grid-template-columns: minmax(0, 1fr); }

  .project-map-frame {
    height: 440px; }

  .project-map-list {
    max-height: none; } }

@media (max-width: 767px) {
  .project-map-lead {
    font-size: 16px;
    margin-bottom: 20px; }

  .project-map-intents {
    margin-bottom: 20px; }

  .project-map-intent {
    font-size: 15px;
    padding: 10px 12px 10px 14px; }

  .project-map--list .project-map-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px; }

  .project-map--list .project-map-item-photo {
    height: 220px; }

  .project-map-item {
    grid-template-columns: 104px minmax(0, 1fr); }

  .project-map-frame {
    height: 360px; }

  .project-map .project-map-locate {
    width: 100%; }

  .project-map-cta {
    padding: 22px 20px; }

  .project-map-cta-text {
    font-size: 20px; }

  .project-map-cta-actions,
  .project-map-cta-button {
    width: 100%;
    text-align: center; }

  .project-map-cta-actions {
    justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  .project-map-item,
  .project-map-intent {
    transition: none; }

  .project-map--list .project-map-item:hover {
    transform: none; } }

/* map pins (also used as the legend swatches in the toolbar) */
.pm-pin {
  display: inline-block;
  box-sizing: border-box;
  width: 22px;
  height: 22px; }

.pm-pin--project {
  background-color: #000;
  border: 5px solid #000;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background-image: radial-gradient(circle, var(--rm-yellow, #F8D215) 0 45%, #000 46%); }

.pm-pin--review {
  background-color: #F8D215;
  border: 2px solid #000;
  border-radius: 50%;
  position: relative; }

.pm-pin--review::after {
  content: '★';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: #000; }

.pm-pin--user {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #1a73e8;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }

/* on the map itself the pins are larger; a review pin sits up and to the right
   of the project pin it belongs to so both stay clickable */
.pm-marker {
  cursor: pointer; }

.pm-marker .pm-pin--project {
  width: 30px;
  height: 30px;
  border-width: 7px;
  margin-bottom: 6px; }

.pm-marker--review {
  transform: translate(20px, -14px); }

.pm-marker .pm-pin--review {
  width: 26px;
  height: 26px; }

.pm-marker .pm-pin--review::after {
  font-size: 14px; }

/* info window */
.pm-info {
  font-family: Matter_R, Arial, sans-serif;
  color: #313131;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.45; }

.pm-info img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 8px; }

.pm-info-title {
  font-size: 16px;
  margin: 0 0 2px; }

.pm-info p {
  margin: 0 0 6px; }

.pm-info-muted {
  color: #5e5e5e; }

.pm-info a,
.pm-info button {
  color: #313131;
  text-decoration: underline;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer; }

/* ---------- reviews: tablet ---------- */
@media (max-width: 991px) {
  .g-reviews .container,
  .project-map .container {
    padding: 0 40px; }

  .g-reviews-track {
    grid-auto-columns: calc((100% - 24px) / 2); } }

/* ---------- reviews: phone ---------- */
@media (max-width: 767px) {
  .g-reviews {
    padding: 0 0 30px; }

  .project-map {
    padding: 30px 0 60px; }

  .g-reviews .container,
  .project-map .container {
    padding: 0 20px; }

  .g-reviews-heading,
  .project-map-heading {
    font-size: 32px;
    margin-bottom: 22px; }

  .g-reviews-nav {
    padding-top: 0; }

  .g-reviews-summary {
    margin-bottom: 22px; }

  .g-reviews-score {
    font-size: 42px; }

  /* the count wraps under the stars here, so the divider would sit on its own */
  .g-reviews-summary > span:last-child {
    flex-basis: 100%;
    padding-left: 0;
    border-left: 0;
    line-height: 1.4; }

  .g-reviews-track {
    grid-auto-columns: 88%;
    gap: 14px; }

  .g-review {
    padding: 20px; }

  .g-review-text {
    font-size: 16px; }

  .g-reviews-all {
    width: 100%;
    text-align: center; } }

@media (prefers-reduced-motion: reduce) {
  .g-reviews-track {
    scroll-behavior: auto; } }
