/* The Google Maps & local search page (plan.md, "Google Maps & local search"). #hero: the kit's rotate over two aerial
   clips, the place card pinned over the rooftops, lmap in glass at the right. #area: area-rings in its panel on the
   designed ground. #picked: island in glass over the porch photo. #details: same-details (rings, light) on the designed
   ground. #included: four framed photos with their cards. #faq. #close. Tokens only. */

/* #hero: the kit's rotate, as kit.md gives it */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
@media (scripting: none) { [data-kit-scene="rotate"] [data-kit-slide] video { display: none; } }

.mph { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(680px, calc(100svh - 84px), 900px); overflow: hidden; background: var(--c-ink); }
.mph__slide--1 { --pos: 50% 45%; }
.mph__slide--2 { --pos: 50% 50%; }
.mph__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 22%, transparent), transparent 28%, transparent 72%, color-mix(in srgb, var(--c-ink) 30%, transparent)); }
.mph__in { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) min(460px, 36%); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(3rem, 5vw, 4.5rem); }
.mph__place { display: grid; justify-items: center; }
.mph__card { position: relative; width: min(100%, 37rem); padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.6rem) clamp(1.5rem, 2.6vw, 2.25rem); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); text-align: center; }
.mph__card::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 22px; height: 22px; translate: -50% 0; rotate: 45deg; border-radius: 0 0 5px 0; background: var(--c-paper); }
.mph__title { margin: 0 0 .85rem; font-size: clamp(2.25rem, 1.3rem + 2.5vw, 3.5rem); line-height: 1.08; }
.mph__line { max-width: 29rem; margin: 0 auto 1.5rem; color: var(--c-ink-soft); }
.mph__cta { display: grid; justify-items: center; }
.mph__pin { display: block; width: 58px; margin-top: 18px; filter: drop-shadow(0 10px 8px color-mix(in srgb, var(--c-ink) 45%, transparent)); }
.mph__pin svg { display: block; width: 100%; height: auto; overflow: visible; }
.mph__drop { fill: var(--c-ink); }
.mph__o { fill: var(--c-brand-on-ink); }
.mph__arrow { fill: var(--c-accent-on-ink); }
.mph__side { position: relative; }
.mph__stop { top: -3.1rem; right: 0; }
.scene.mph__map { position: relative; width: 100%; height: 540px; }

@media (max-width: 1199px) {
  .mph { align-items: start; }
  .mph__in { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2.25rem; padding-block: 2.5rem 3rem; }
  .mph__side { width: min(460px, 100%); padding-top: 3.25rem; }
  .mph__stop { top: 0; }
}
@media (max-width: 759px) {
  .mph__in { gap: 1.25rem; padding-block: 1.25rem 2rem; }
  .mph__card { padding: 1.5rem 1.15rem 1.35rem; }
  .mph__title { font-size: clamp(2.05rem, 1.4rem + 3vw, 2.4rem); }
  .mph__line { margin-bottom: 1.2rem; }
  .mph__pin { width: 46px; margin-top: 14px; }
  .mph__side { padding-top: 3rem; }
  .scene.mph__map { height: 520px; }
}
@media (max-width: 480px) { .scene.mph__map { height: 500px; } }

/* #area: the signature, its panel on the designed ground */
.mpa__panel { height: 580px; container-type: inline-size; }
.scene.mpa__scene { position: absolute; inset: 0; border-radius: inherit; }
.mpa__stop { top: 1rem; right: 1rem; }
@container (max-width: 859px) { .mpa__stop { top: auto; bottom: .75rem; right: .75rem; } }
@media (max-width: 1199px) { .mpa__panel { height: 540px; } }
@media (max-width: 1023px) { .mpa__panel { height: 640px; } }
@media (max-width: 759px) { .mpa__panel { height: 600px; margin-inline: calc(8px - var(--gutter)); } }

/* #picked: island in glass over the porch */
.mpp__in { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(2rem, 4.5vw, 4rem); }
.mpp__words { max-width: 26rem; }
.mpp__frame { height: clamp(520px, 44vw, 620px); }
.mpp__frame img { --pos: 45% 50%; }
.mpp__stop { top: 1rem; right: 1rem; }
.scene.mpp__scene { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 58%); }
/* a long line wraps inside its card instead of ending in "…" (the card is narrow at 1024 px and on a 360 px phone) */
.scene.mpp__scene .is-t :is(b, small) { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 1023px) {
  .mpp__in { grid-template-columns: minmax(0, 1fr); }
  .mpp__words { max-width: 36rem; }
  .mpp__frame { height: 560px; }
}
@media (max-width: 759px) {
  .mpp__frame { height: 460px; margin-inline: calc(8px - var(--gutter)); }
  .mpp__frame img { --pos: 40% 50%; }
  .scene.mpp__scene { width: 100%; }
}

/* #details: same-details on the designed ground */
.mpd__stage { position: relative; }
.scene.mpd__scene { width: 100%; }
.mpd__stop { top: .5rem; right: .5rem; }
@media (max-width: 759px) { .mpd__stage { margin-inline: calc(8px - var(--gutter)); } }

/* #included: the row of four */
.mpi__head { max-width: 40rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.mpi__row { --prow-n: 4; }
.mpi__stop { top: .75rem; right: .75rem; }
.mpi__stop--card { display: none; }
.mpi__item--photos { --pos: 22% 50%; }
.mpi__item--review { --pos: 30% 50%; }
.mpi__item--search { --pos: 55% 50%; }
.mpi__item--ai { --pos: 42% 50%; }
.mpi .gcard { padding: .6rem .8rem .6rem .6rem; gap: .6rem; }
.mpi .gcard__icon { width: 2rem; height: 2rem; }
.mpi .gcard b { font-size: .875rem; }
@media (max-width: 1023px) { .mpi__row { --prow-n: 2; } .mpi .prow__media { aspect-ratio: 4 / 4.2; } }
@media (max-width: 759px) {
  .mpi__stop:not(.mpi__stop--card) { display: none; }
  .mpi__stop--card { display: grid; }
  .mpi .prow__media { aspect-ratio: 3 / 4; }
  .mpi__item--review { --pos: 22% 50%; }   /* the roofer at the door out of the crop, so its stop icon covers no face */
  /* every stack the same height, its cards at its foot: the site check scrolls the row to its highest moving card, so
     the first card's stack must be (one of) the highest, its own stop icon beside it */
  .mpi .gstack { min-height: 10.75rem; align-content: end; }
}

/* #close */
.mpclose { --close-pos: 50% 40%; --close-pos-m: 50% 30%; }
.mpclose__seq { top: 28%; right: clamp(1.25rem, 3vw, 2.5rem); width: 16.5rem; }
@media (max-width: 1199px) {
  .mpclose { padding-top: 6.25rem; }
  .mpclose__seq { top: 1.25rem; left: 1.25rem; right: auto; grid-auto-flow: column; grid-auto-columns: 13.25rem; width: auto; }
}
@media (max-width: 759px) {
  .mpclose { padding-top: 17.5rem; }
  .mpclose .close__media { inset: 0 0 auto 0; height: 22rem; }
  /* the first card above her head, the review at the photo's foot under her face (Tomer's round 2: stacked, the review
     covered her face) */
  .mpclose__seq { top: .75rem; bottom: calc(100% - 16.75rem); left: .75rem; grid-auto-flow: row; grid-auto-columns: auto; align-content: space-between; width: min(15rem, 66%); }
}
