/*
 * The city landing page — /{city}/ (direction PP1).
 *
 * Loaded only on that route. Everything else on the page (app bar, footer,
 * tab bar, the request form, buttons) keeps its site-wide styles; this file
 * styles the landing sections and the one thing that is different about the
 * chrome here: the bar sits on the photo, transparent, until the hero has
 * scrolled under it.
 *
 * Mobile first; 600 and 900 widen the grids, 900 lifts the hero.
 */

/* ---------------------------------------------------------------- the bar */

/*
 * Pulled up under the sticky bar by its own height so the photo starts at the
 * top of the screen. Only the .js state goes transparent: with scripting off
 * nothing would ever switch it back to solid over the white sections.
 */
.rr-landing .app-main { margin-top: calc(-1 * var(--rr-bar-h, 65px)); }
.rr-landing .appbar { transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease); }
.js .rr-landing .appbar:not(.appbar--solid) {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.js .rr-landing .appbar:not(.appbar--solid) .logo,
.js .rr-landing .appbar:not(.appbar--solid) .logo__mark,
.js .rr-landing .appbar:not(.appbar--solid) .logo__word,
.js .rr-landing .appbar:not(.appbar--solid) .logo__word strong,
.js .rr-landing .appbar:not(.appbar--solid) .nav a { color: #fff; }
.js .rr-landing .appbar:not(.appbar--solid) .placechip {
  color: #fff;
  background: rgba(14, 20, 27, .28);
  border-color: rgba(255, 255, 255, .38);
}
.js .rr-landing .appbar:not(.appbar--solid) .burger span { background: #fff; }
.js .rr-landing .appbar.appbar--solid { box-shadow: var(--shadow-sm); }
.js .rr-landing .appbar:not(.appbar--solid) .appbar__sentinel { display: none; }

/* --------------------------------------------------------------- the hero */

.landing-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: 72px 0 52px;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.landing-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 20, 27, .62) 0%, rgba(14, 20, 27, .10) 34%, rgba(14, 20, 27, .14) 55%, rgba(14, 20, 27, .84) 100%);
}
.landing-hero__pic,
.landing-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  z-index: 0;
}
.landing-hero__text { position: relative; z-index: 2; }
.landing-hero__crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1 var(--font-body);
  color: #d5dee6;
}
.landing-hero__crumb a { color: inherit; text-decoration: none; }
.landing-hero__crumb span[aria-hidden] { opacity: .6; }
.landing-hero__crumb [aria-current] { color: #fff; font-weight: 600; }
.landing-hero__stamp {
  display: inline-flex;
  margin-top: 12px;
  padding: 3px 8px;
  border-left: 2px solid var(--verified);
  background: rgba(14, 20, 27, .45);
  font: 500 10.5px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.landing-hero h1 {
  margin: 10px 0 0;
  font: 800 31px/1.08 var(--font-display);
  letter-spacing: -.032em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(14, 20, 27, .45);
  max-width: 22ch;
}
.landing-hero p {
  margin: 8px 0 0;
  font: 400 14px/1.5 var(--font-body);
  color: #e6ecf1;
  text-shadow: 0 1px 2px rgba(14, 20, 27, .45);
  max-width: 44ch;
}
.landing-hero__credit {
  position: absolute;
  top: calc(var(--rr-bar-h, 65px) + 8px);
  right: 12px;
  z-index: 2;
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(14, 20, 27, .6);
}
.landing-hero__credit:hover { color: #fff; text-decoration: underline; }

/* -------------------------------------------------------- the search card */

.landing-search { position: relative; z-index: 3; margin-top: -36px; }
.landing-search__card {
  padding: 8px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.landing-search__row { display: flex; gap: 6px; }
.landing-search__field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  font: 400 15px/1.2 var(--font-body);
  color: var(--slate);
  text-decoration: none;
}
.landing-search__field svg { width: 17px; height: 17px; color: var(--slate-light); flex: 0 0 auto; }
.landing-search__field span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-search__field:hover { border-color: var(--brand); text-decoration: none; }
.landing-search__locate {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
}
.landing-search__locate svg { width: 16px; height: 16px; }
.landing-search__locate:hover { background: var(--brand-hi); }
.landing-search__locate[hidden] { display: none; }
.landing-types { display: flex; gap: 4px; margin-top: 8px; }
.landing-types a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--mist);
  font: 600 12px/1 var(--font-body);
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.landing-types a span { font-weight: 500; opacity: .7; }
.landing-types a.is-primary { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }
.landing-types a:hover { border-color: var(--brand); text-decoration: none; }

.landing-live { margin: 12px auto 0; }
.landing-live .dataline { display: inline-block; padding-left: 6px; border-left: 2px solid var(--verified); }

/* ------------------------------------------------------------- sections */

.landing-sec { margin-top: 28px; }
.landing-sec__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.landing-sec__head h2 { margin: 0; font: 800 22px/1.15 var(--font-display); letter-spacing: -.024em; color: var(--ink); }
.landing-sec__head p { flex-basis: 100%; margin: 4px 0 0; font: 400 13.5px/1.5 var(--font-body); color: var(--slate); }
.landing-sec__link { margin-left: auto; font: 600 12px/1 var(--font-body); color: var(--brand); text-decoration: none; white-space: nowrap; }

/* areas */
.landing-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.landing-area {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name n" "from n";
  align-items: center;
  column-gap: 8px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
}
.landing-area:hover { border-color: var(--brand); text-decoration: none; }
.landing-area__name { grid-area: name; font: 700 13.5px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-area__from { grid-area: from; font: 400 11.5px/1.3 var(--font-body); color: var(--slate); }
.landing-area__n {
  grid-area: n;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--brand-tint);
  font: 700 11px/1 var(--font-body);
  color: var(--brand);
}
.landing-area--empty .landing-area__n { background: var(--mist); color: var(--slate-light); }
.landing-more { margin-top: 8px; }
.landing-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 600 13px/1 var(--font-body);
  color: var(--brand);
  cursor: pointer;
  list-style: none;
}
.landing-more > summary::-webkit-details-marker { display: none; }
.landing-more[open] > summary { margin-bottom: 8px; }
.landing-more[open] > summary span { display: inline-block; transform: rotate(90deg); }

/* landmark rail */
.landing-rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.landing-rail::-webkit-scrollbar { display: none; }
.landing-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 12.5px/1 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.landing-chip span { font-weight: 500; color: var(--slate); }

/* trust */
.landing-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.landing-trust li { display: flex; flex-direction: column; gap: 3px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
.landing-trust strong { display: inline-flex; align-items: center; gap: 5px; font: 700 13px/1.2 var(--font-body); color: var(--ink); }
.landing-trust strong svg { width: 14px; height: 14px; color: var(--verified); }
.landing-trust span { font: 400 11.5px/1.4 var(--font-body); color: var(--slate); }

/* proxy viewing */
.landing-proxy { padding: 18px 16px; border-radius: 14px; background: var(--ink); color: #fff; }
.landing-proxy__eyebrow { display: block; font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #9cc4e8; }
.landing-proxy h2 { margin: 6px 0 0; font: 800 22px/1.15 var(--font-display); letter-spacing: -.024em; color: #fff; }
.landing-proxy p { margin: 8px 0 0; font: 400 13px/1.5 var(--font-body); color: #b7c2cc; }
.landing-proxy .btn { margin-top: 12px; }
.landing-proxy .btn--onbrand { background: #fff; color: var(--ink); }

/* steps */
.landing-steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.landing-steps li { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.landing-steps li > span { flex: 0 0 auto; padding-top: 2px; font: 500 12px/1 var(--font-mono); color: var(--brand); }
.landing-steps strong { display: block; font: 700 14px/1.2 var(--font-body); color: var(--ink); }
.landing-steps p { margin: 2px 0 0; font: 400 12.5px/1.45 var(--font-body); color: var(--slate); }

/* prose */
.landing-seo h2 { margin: 0 0 8px; font: 800 20px/1.15 var(--font-display); letter-spacing: -.024em; color: var(--ink); }
.landing-seo p { margin: 0 0 10px; font: 400 14.5px/1.6 var(--font-body); color: var(--ink-soft); }
.landing-seo p a { font-weight: 600; text-decoration: none; }
.landing-seo p a:hover { text-decoration: underline; }

/* guides */
.landing-guides { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.landing-guides a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: 600 13.5px/1.3 var(--font-body); color: var(--ink); text-decoration: none; }
.landing-guides a span { margin-left: auto; color: var(--slate-light); font-size: 16px; }
.landing-guides a:hover { border-color: var(--brand); text-decoration: none; }

/* faq */
.landing-faq details { border-top: 1px solid var(--line); }
.landing-faq details:last-child { border-bottom: 1px solid var(--line); }
.landing-faq summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 0; font: 700 14px/1.3 var(--font-body); color: var(--ink); cursor: pointer; list-style: none; }
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after { content: "▾"; margin-left: auto; font-size: 10px; color: var(--brand); }
.landing-faq details[open] summary::after { content: "▴"; }
.landing-faq p { margin: 0 0 12px; font: 400 13.5px/1.5 var(--font-body); color: var(--slate); }

/* lead + owner */
.landing-lead .askus { padding: 16px; border-radius: 14px; background: var(--brand-tint); border: 0; }
.landing-owner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}
.landing-owner:hover { background: var(--brand-hi); text-decoration: none; }
.landing-owner > span:first-child { flex: 1 1 auto; font: 400 12.5px/1.4 var(--font-body); color: #bfd4e8; }
.landing-owner strong { display: block; font: 800 16px/1.2 var(--font-display); letter-spacing: -.02em; color: #fff; }
.landing-owner > span[aria-hidden] { font-size: 20px; }

.rr-landing .site-footer { margin-top: 28px; }

/* ------------------------------------------------------------ 600 / 900 */

@media (min-width: 600px) {
  .landing-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .landing-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .landing-steps { flex-direction: row; }
  .landing-steps li { flex: 1 1 0; }
  .landing-hero h1 { font-size: 36px; }
}

@media (min-width: 900px) {
  .landing-hero { min-height: 520px; padding: 110px 0 70px; }
  .landing-hero h1 { font-size: 48px; max-width: 18ch; }
  .landing-hero p { font-size: 17px; max-width: 52ch; }
  .landing-hero__credit { right: 24px; }
  .landing-search { margin-top: -44px; }
  .landing-search__card { max-width: 760px; }
  .landing-search__field { min-height: 52px; }
  .landing-search__locate { height: 52px; }
  .landing-sec { margin-top: 40px; }
  .landing-sec__head h2 { font-size: 28px; }
  .landing-areas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .landing-proxy { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; padding: 28px 28px; }
  .landing-proxy__eyebrow, .landing-proxy h2, .landing-proxy p { grid-column: 1; }
  .landing-proxy h2 { font-size: 30px; max-width: 22ch; }
  .landing-proxy .btn { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .landing-seo { max-width: 760px; }
  .landing-seo h2 { font-size: 26px; }
  .landing-seo p { font-size: 16px; }
  .landing-guides { flex-direction: row; }
  .landing-guides li { flex: 1 1 0; }
  .landing-faq, .landing-lead .askus { max-width: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  .rr-landing .appbar { transition: none; }
}

/* ------------------------------------------------- the brand home (SS6) */

/*
 * The rising sheet: a white surface with rounded top corners lifted over the
 * photo's lower edge, carrying the search control and the city grid. On the
 * home the hero holds only the live line and the headline; the sub-line moves
 * under the cities, because controls come before prose (§9.2g).
 */
.landing-hero--home { min-height: 300px; padding-bottom: 46px; }
.landing-hero--home h1 { font-size: 30px; }
.landing-sheet {
  position: relative;
  z-index: 3;
  margin-top: -22px;
  padding: 16px 0 0;
  border-radius: 22px 22px 0 0;
  background: var(--paper);
}
.landing-sheet .landing-search__row { margin-bottom: 8px; }
.home-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.home-city {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 104px;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-soft);
  color: #fff;
  text-decoration: none;
}
.home-city--lead { grid-column: 1 / -1; min-height: 132px; }
.home-city picture, .home-city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.home-city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 20, 27, .05) 30%, rgba(14, 20, 27, .82) 100%);
}
.home-city__name, .home-city__meta, .home-city__go { position: relative; z-index: 1; }
.home-city__name { font: 800 15px/1.1 var(--font-display); letter-spacing: -.024em; color: #fff; }
.home-city--lead .home-city__name { font-size: 20px; }
.home-city__meta { margin-top: 2px; font: 500 9.5px/1.3 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: #d5dee6; }
.home-city__go {
  position: absolute;
  right: 10px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 18px;
}
.home-city:hover { text-decoration: none; }
.home-city:hover .home-city__go { background: #fff; }
.home-sub { margin: 12px 0 0; font: 400 13.5px/1.5 var(--font-body); color: var(--slate); }
.landing-guides a small { margin-left: auto; font: 500 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate-light); }
.landing-guides a small + span { margin-left: 8px; }

@media (min-width: 600px) {
  .home-cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-city--lead { grid-column: auto; min-height: 104px; }
  .home-city--lead .home-city__name { font-size: 16px; }
}
@media (min-width: 900px) {
  .landing-hero--home { min-height: 460px; padding-bottom: 60px; }
  .landing-hero--home h1 { font-size: 48px; }
  .landing-sheet { margin-top: -30px; border-radius: 26px 26px 0 0; padding-top: 24px; }
  .landing-sheet .landing-search__row { max-width: 760px; }
  .home-cities { max-width: 980px; gap: 10px; }
  .home-city { min-height: 150px; }
  .home-city__name { font-size: 20px; }
  .home-sub { max-width: 60ch; font-size: 15px; }
}
