/* =============================================
   RentyHub — css/styles.css
   One stylesheet for every page. Mobile-first: the base rules are for
   phones, then min-width 768px (tablet) and 1024px (desktop).
   BEM naming: block__element--modifier
   ============================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand green is a fill only: text on it is --ink. White on it is 2.1:1. */
  --brand:         #8BC34A;
  --brand-dark:    #3E7A1C;  /* white text on it 5.2:1, and 5.2:1 as text on white */
  --brand-deeper:  #2C5A13;
  --brand-tint:    #EAF4DE;
  --brand-tint-2:  #DDEFC8;
  --ink:           #0F1A12;
  --ink-2:         #1B2A1F;
  --muted:         #4A5A4E;  /* 6.9:1 on --bg */
  --muted-on-dark: #C9D6CC;  /* 11.9:1 on --ink */
  --line:          #E2EBDD;
  /* Borders of inputs and selects. --line is 1.2:1 on white, too faint to
     show where a field is; this is 3.4:1 (WCAG 1.4.11 asks for 3:1). */
  --line-strong:   #7F8F83;
  /* Something to fix in a form: 6.5:1 as text on white, 6.2:1 on --bg. */
  --danger:        #B3261E;
  --bg:            #F7FAF5;
  --surface:       #FFFFFF;

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-control: 12px;
  --radius-btn:     14px;
  --radius-card:    20px;
  --radius-card-lg: 24px;
  --radius-block:   28px;
  --radius-block-lg: 36px;
  --radius-pill:    999px;

  --container: 1200px;
  --gutter:    20px;
  --section-y: 56px;
  --header-h:  60px;

  --shadow-card:  0 1px 2px rgba(15, 26, 18, .04), 0 10px 28px rgba(15, 26, 18, .07);
  --shadow-float: 0 14px 36px rgba(15, 26, 18, .16);
  --ease: .2s ease;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 72px; --header-h: 72px; }
}
@media (min-width: 1024px) {
  :root { --section-y: 96px; }
}

/* ---------- Context tokens ----------
   Components read these instead of fixed colours, so the same button, link,
   card or icon is legible on the light page, a dark section and a green
   block without a modifier for each. */
:root {
  --text:          var(--ink);
  --text-muted:    var(--muted);
  --accent:        var(--brand-dark);
  --accent-hover:  var(--brand-deeper);
  --focus:         var(--brand-dark);
  --control-line:  var(--line-strong);
  --card-bg:       var(--surface);
  --card-line:     var(--line);
  --icon-bg:       var(--brand-tint);
  --icon-fg:       var(--brand-dark);
}

.theme-dark,
.section--dark,
.block--dark,
.card--dark,
.header--dark {
  --text:          #FFFFFF;
  --text-muted:    var(--muted-on-dark);
  --accent:        var(--brand);
  --accent-hover:  #FFFFFF;
  --focus:         var(--brand);
  --control-line:  rgba(255, 255, 255, .45);
  --card-bg:       var(--ink-2);
  --card-line:     rgba(255, 255, 255, .08);
  --icon-bg:       rgba(139, 195, 74, .14);
  --icon-fg:       var(--brand);
  color: var(--text);
}

.theme-brand,
.section--brand,
.block--brand,
.card--brand {
  --text:          var(--ink);
  --text-muted:    #2A3F1E;  /* 5.5:1 on --brand */
  --accent:        var(--ink);
  --accent-hover:  var(--ink);
  --focus:         var(--ink);
  --control-line:  rgba(15, 26, 18, .5);
  --icon-bg:       rgba(15, 26, 18, .08);
  --icon-fg:       var(--ink);
  color: var(--text);
}

.section--tint,
.card--tint {
  --icon-bg: var(--surface);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Page scrollbar: Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: var(--brand);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

/* Firefox */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: var(--brand) var(--bg);
    scrollbar-width: thin;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
  body { font-size: 1.0625rem; }
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* An author `display` rule on a class must never beat the hidden attribute
   (script.js hides and shows its messages with it). */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Anchored sections land below the sticky header, not under it. */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Shared stroke icon: 24px viewBox, drawn with currentColor. */
.i {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display {
  font-size: 2.625rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .display { font-size: 3.5rem; }
  .title   { font-size: 2.5rem; }
  .h2      { font-size: 2.5rem; }
  .h3      { font-size: 1.375rem; }
  .lead    { font-size: 1.1875rem; }
}

@media (min-width: 1024px) {
  .display { font-size: 4.25rem; }
  .title   { font-size: 2.75rem; }
  .h2      { font-size: 3.25rem; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--dark  { background: var(--ink); }
.section--brand { background: var(--brand); }
.section--tint  { background: var(--brand-tint); }

.section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

@media (min-width: 768px) {
  .section-head { gap: 16px; margin-bottom: 48px; }
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .grid { gap: 20px; }
  .grid--2,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid { gap: 24px; }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo__tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .logo__tile { width: 36px; height: 36px; border-radius: 11px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn .i {
  width: 20px;
  height: 20px;
}

/* Primary: dark pill. */
.btn--dark,
.btn--dark:hover {
  color: #FFFFFF;
}
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: var(--ink-2); }

/* Green primary: white text on --brand-dark. */
.btn--green,
.btn--green:hover {
  color: #FFFFFF;
}
.btn--green { background: var(--brand-dark); }
.btn--green:hover { background: var(--brand-deeper); }

/* On dark sections: brand fill, ink text. */
.btn--brand,
.btn--brand:hover {
  color: var(--ink);
}
.btn--brand { background: var(--brand); }
.btn--brand:hover { background: #9DCE62; }

.btn--outline,
.btn--outline:hover {
  color: var(--text);
}
.btn--outline {
  background: transparent;
  border-color: var(--control-line);
}
.btn--outline:hover {
  border-color: var(--text);
}

.btn--lg {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--rounded {
  border-radius: var(--radius-btn);
}

/* "View details →" style text link. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.link-arrow:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ---------- Pills, eyebrows, icon tiles ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.pill .i {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.pill--lg {
  padding: 8px 14px;
  font-size: .875rem;
}

.pill--brand {
  background: var(--brand);
  color: var(--ink);
}

.pill--dark {
  background: var(--ink);
  color: #FFFFFF;
}

.pill--on-dark {
  background: rgba(139, 195, 74, .14);
  color: var(--brand);
}

.pill--verified {
  background: var(--surface);
  color: var(--brand-deeper);
  box-shadow: 0 1px 4px rgba(15, 26, 18, .14);
}

.eyebrow {
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--icon-fg);
}

.icon-tile .i {
  width: 22px;
  height: 22px;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* One scrolling row that bleeds to the edge of its container: the screen
   edge on phones by default, or a card's edge when that card sets --bleed
   to its own padding. */
.chips--scroll {
  --bleed: var(--gutter);
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-inline: calc(var(--bleed) * -1);
  padding-inline: var(--bleed);
  scroll-padding-inline: var(--bleed);
  scrollbar-width: none;
}

.chips--scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.chip:hover {
  border-color: var(--line-strong);
}

.chip[aria-pressed="true"],
.chip--active,
.chip--active:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #FFFFFF;
}

/* Chips that are links, e.g. room types that open the Listings page. */
a.chip {
  text-decoration: none;
}

a.chip:not(.chip--active):hover {
  color: var(--ink);
}

/* ---------- Form controls ---------- */
.field {
  display: grid;
  gap: 6px;
}

.label {
  color: var(--text);
  font-size: .875rem;
  font-weight: 700;
}

/* 16px text keeps iOS from zooming into a focused field. */
.input,
.select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background-color: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}

.input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.input:focus-visible,
.select:focus-visible {
  border-color: var(--ink);
  outline-offset: 1px;
}

.select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5A4E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
  cursor: pointer;
}

/* A field showFormErrors() (script.js) has marked: red border, kept on focus. */
.input[aria-invalid="true"],
.input[aria-invalid="true"]:focus-visible {
  border-color: var(--danger);
}

/* A field with an icon or a ₱ prefix inside it. */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group__icon,
.input-group__prefix {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}

.input-group__icon {
  width: 20px;
  height: 20px;
}

.input-group__prefix {
  font-weight: 700;
}

.input-group .input {
  padding-left: 44px;
}

.input-group--prefix .input {
  padding-left: 32px;
}

/* ---------- Cards and blocks ---------- */
.card {
  padding: 24px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-card);
  background: var(--card-bg);
}

.card--tint  { border-color: transparent; background: var(--brand-tint); }
.card--brand { border-color: transparent; background: var(--brand); }
.card--dark  { border-color: transparent; background: var(--ink); }

@media (min-width: 768px) {
  .card { padding: 28px; border-radius: var(--radius-card-lg); }
}

/* Large call-to-action blocks. */
.block {
  padding: 40px 24px;
  border-radius: var(--radius-block);
}

.block--brand { background: var(--brand); }
.block--dark  { background: var(--ink); }

@media (min-width: 768px) {
  .block { padding: 64px 56px; border-radius: var(--radius-block-lg); }
}

/* Image placeholder: a tinted box with a caption. */
.img-ph {
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--brand-tint-2);
  color: var(--brand-deeper);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
}

/* Content still waiting for real data, e.g. [NUMBER]. Tinted so it is easy
   to find on a page before launch. */
.ph {
  padding: 0 .2em;
  border-radius: 6px;
  background: rgba(139, 195, 74, .28);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Room card ---------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  transition: box-shadow var(--ease), transform var(--ease);
}

.room-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* The title link covers the whole card, so the card shows the focus ring. */
.room-card:focus-within {
  outline: 3px solid var(--brand-dark);
  outline-offset: 2px;
}

.room-card__link:focus-visible {
  outline: none;
}

.room-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--brand-tint-2);
}

/* Pinned to the frame: in normal flow, a portrait photo's own height
   would stretch the 4:3 box. */
.room-card__media img,
.room-card__media .img-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card__media .pill {
  position: absolute;
  top: 12px;
  left: 12px;
}

/* A column, so the price row (margin-top: auto) sits at the bottom of every
   card in a row, however long each title is. */
.room-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
}

.room-card__type {
  color: var(--brand-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.room-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.room-card__link {
  color: var(--ink);
  text-decoration: none;
}

.room-card__link:hover {
  color: var(--ink);
}

.room-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.room-card__location {
  color: var(--muted);
  font-size: .9375rem;
}

.room-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 10px;
}

.room-card__price {
  color: var(--muted);
  font-size: .9375rem;
}

.room-card__price strong {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.room-card__more {
  color: var(--brand-dark);
  font-size: .875rem;
  font-weight: 700;
}

.room-card:hover .room-card__more {
  text-decoration: underline;
}

/* Hidden by the client-side filter in script.js. */
.room-card--hidden {
  display: none;
}

/* Photo pager dots: 44px buttons each drawing a small dot, above the
   card-wide link so a tap pages the photo instead of opening the room. */
.room-card__dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  transform: translateX(-50%);
}

.room-card__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.room-card__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 1px 3px rgba(15, 26, 18, .4);
  transition: width var(--ease), background-color var(--ease);
}

.room-card__dot[aria-pressed="true"]::before {
  width: 20px;
  background: #FFFFFF;
}

.room-card__dot:focus-visible {
  outline-color: #FFFFFF;
  outline-offset: -6px;
}

/* Phones: compact cards in one column, a 110px photo beside the text. */
@media (max-width: 767.98px) {
  .room-grid--compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .room-grid--compact .room-card {
    flex-direction: row;
  }

  .room-grid--compact .room-card__media {
    flex: none;
    width: 110px;
    min-height: 110px;
    aspect-ratio: auto;
  }

  .room-grid--compact .room-card__media .pill,
  .room-grid--compact .room-card__dots,
  .room-grid--compact .room-card__more {
    display: none;
  }

  .room-grid--compact .room-card__media .img-ph {
    padding: 8px;
    font-size: .75rem;
  }

  .room-grid--compact .room-card__body {
    gap: 2px;
    padding: 12px 14px;
  }

  .room-grid--compact .room-card__title {
    font-size: 1rem;
  }

  .room-grid--compact .room-card__foot {
    padding-top: 6px;
  }

  .room-grid--compact .room-card__price strong {
    font-size: 1.0625rem;
  }
}

/* ---------- Loading and empty states ---------- */
.status {
  padding: 24px 0;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 16px;
  text-align: center;
}

.empty-state .icon-tile {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 16px;
}

.empty-state__title {
  font-size: 1.125rem;
  font-weight: 800;
}

.empty-state__text {
  color: var(--text-muted);
}

/* ---------- Phone mockup ----------
   Everything inside is sized in em, so the whole phone scales from one
   font-size: 10px gives 300 × 620, the phone-width size about 230 × 475. */
.phone {
  position: relative;
  z-index: 1;
  width: 30em;
  height: 62em;
  padding: 1.1em;
  border-radius: 4.8em;
  background: var(--ink);
  box-shadow: 0 2.4em 6em rgba(15, 26, 18, .28);
  font-size: 7.667px;
}

@media (min-width: 768px) {
  .phone { font-size: 10px; }
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 3.8em;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.35;
}

.phone__notch {
  position: absolute;
  top: 1em;
  left: 50%;
  width: 9em;
  height: 2.6em;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.phone__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.2em;
  padding: 5em 1.6em 0;
}

.phone__tabbar {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding: 1.3em 1.6em 2.2em;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.phone__tabbar .i {
  width: 2.4em;
  height: 2.4em;
}

.phone__tabbar .i:first-child {
  color: var(--brand-dark);
}

/* Small pieces of app UI drawn inside the phone. */
.app-eyebrow {
  display: flex;
  align-items: center;
  gap: .4em;
  color: var(--muted);
  font-size: 1.2em;
  font-weight: 600;
}

.app-eyebrow .i {
  width: 1.2em;
  height: 1.2em;
}

.app-title {
  font-size: 2.5em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.app-search {
  display: flex;
  align-items: center;
  gap: .7em;
  height: 3.6em;
  padding: 0 1.1em;
  border: 1px solid var(--line);
  border-radius: 1.2em;
  background: var(--surface);
  color: var(--muted);
  font-size: 1.2em;
}

.app-search .i {
  width: 1.4em;
  height: 1.4em;
}

.app-chips {
  display: flex;
  gap: .6em;
  overflow: hidden;
}

.app-chip {
  flex: none;
  padding: .5em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 1.1em;
  font-weight: 600;
}

.app-chip--active {
  border-color: var(--ink);
  background: var(--ink);
  color: #FFFFFF;
}

.app-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.8em;
  background: var(--surface);
  box-shadow: 0 .6em 1.6em rgba(15, 26, 18, .06);
}

.app-card__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--brand-tint-2);
}

.app-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card__photo .img-ph {
  position: absolute;
  inset: 0;
  padding: 0;
  font-size: 1.1em;
}

.app-card__pill {
  position: absolute;
  top: .8em;
  left: .8em;
  display: flex;
  align-items: center;
  gap: .3em;
  padding: .35em .8em;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-deeper);
  font-size: 1em;
  font-weight: 700;
}

.app-card__pill .i {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.6;
}

.app-card__body {
  display: grid;
  gap: .25em;
  padding: 1.1em 1.3em 1.3em;
}

.app-card__type {
  color: var(--brand-dark);
  font-size: .95em;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-card__name {
  overflow: hidden;
  font-size: 1.4em;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card__location,
.app-card__price {
  color: var(--muted);
  font-size: 1.15em;
}

.app-card__price strong {
  color: var(--ink);
  font-size: 1.3em;
  font-weight: 800;
}

/* ---------- Floating cards beside a phone mockup ---------- */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}

.float-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.float-card__icon--brand {
  background: var(--brand);
  color: var(--ink);
}

.float-card__icon .i {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.float-card__title {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.float-card__sub {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.4;
}

/* ---------- Browser window frame ---------- */
.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.browser__dots {
  display: flex;
  flex: none;
  gap: 6px;
}

.browser__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.browser__url {
  flex: 0 1 340px;
  overflow: hidden;
  margin-inline: auto;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Balances the dots, so the address sits in the middle. Phones need that
   room for the address itself. */
@media (min-width: 768px) {
  .browser__bar::after {
    content: "";
    flex: none;
    width: 42px;
  }
}

.browser__body {
  --bleed: 16px;
  display: grid;
  gap: 16px;
  padding: var(--bleed);
}

@media (min-width: 768px) {
  .browser__body { --bleed: 24px; gap: 20px; }
}

/* ---------- Scrolling card row ----------
   Swipes sideways on phones, a three-column grid from tablet up. */
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter);
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row > * {
  flex: 0 0 min(85%, 340px);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .scroll-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
}

/* ---------- Testimonial card ---------- */
.quote {
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.quote__mark {
  width: 32px;
  height: 32px;
  color: var(--brand);
}

.quote__text {
  margin-top: 12px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
}

.quote__by {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9375rem;
}

.quote__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-tint-2);
}

.quote__name {
  display: block;
  font-weight: 700;
}

.quote__role {
  display: block;
  color: var(--muted);
}

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq__list {
  display: grid;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: var(--card-bg);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 16px 14px 20px;
  border-radius: 18px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-fg);
  transition: transform var(--ease);
}

.faq__icon .i {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 20px 20px;
  color: var(--text-muted);
}

.faq__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Sticky "get the app" bar on phones ----------
   Fades in over a gradient once the hero has scrolled away (script.js). The
   gradient lets taps through; only the button takes them. */
.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  padding: 32px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 55%, rgba(247, 250, 245, 0));
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  pointer-events: none;
}

.mobile-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

.mobile-cta .btn {
  pointer-events: auto;
}

@media (max-width: 767.98px) {
  /* A focused element scrolled into view stops above the bar, not under it. */
  html:has(.mobile-cta) { scroll-padding-bottom: 96px; }
}

@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

/* ---------- Header ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: #FFFFFF;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 245, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header--dark {
  border-bottom-color: rgba(255, 255, 255, .08);
  background: rgba(15, 26, 18, .96);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 16px;
}

.header__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}

.header__link:hover {
  color: var(--brand-deeper);
}

.header__link[aria-current="page"] {
  color: var(--brand-deeper);
  font-weight: 800;
}

.header--dark .header__link {
  color: var(--muted-on-dark);
}

.header--dark .header__link:hover {
  color: #FFFFFF;
}

.header--dark .header__link[aria-current="page"] {
  color: var(--brand);
}

.header__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text);
}

.header__toggle .header__icon-close,
.header__toggle[aria-expanded="true"] .header__icon-menu {
  display: none;
}

.header__toggle[aria-expanded="true"] .header__icon-close {
  display: block;
}

/* The dropdown under the header on narrow screens. */
.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 18px 32px rgba(15, 26, 18, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

.mobile-menu__links li + li {
  border-top: 1px solid var(--line);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu__link:hover {
  color: var(--brand-deeper);
}

.mobile-menu__link[aria-current="page"] {
  color: var(--brand-deeper);
  font-weight: 800;
}

.mobile-menu .btn {
  margin-top: 16px;
}

.header--dark .mobile-menu {
  border-bottom-color: rgba(255, 255, 255, .08);
  background: var(--ink);
}

.header--dark .mobile-menu__links li + li {
  border-top-color: rgba(255, 255, 255, .1);
}

.header--dark .mobile-menu__link {
  color: #FFFFFF;
}

.header--dark .mobile-menu__link[aria-current="page"] {
  color: var(--brand);
}

/* Tenant nav fits from tablet width; the landlord nav (five links and a
   longer button) needs desktop width. */
@media (min-width: 768px) {
  .header--tenant .header__nav { display: flex; }
  .header--tenant .header__toggle,
  .header--tenant .mobile-menu { display: none; }
}

@media (min-width: 1024px) {
  .header__nav { gap: 24px; }
  .header__links { gap: 6px; }
  .header--landlords .header__nav { display: flex; }
  .header--landlords .header__toggle,
  .header--landlords .mobile-menu { display: none; }
}

/* Shown only when JavaScript is off, in place of the header. */
.noscript-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.noscript-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 48px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.footer__top {
  display: grid;
  grid-template-areas:
    "brand   brand"
    "product contact"
    "team    team";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer__brand        { grid-area: brand; }
.footer__col--product { grid-area: product; }
.footer__col--contact { grid-area: contact; }
.footer__col--team    { grid-area: team; }

.footer__title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__links a:hover {
  color: var(--brand-deeper);
  text-decoration: underline;
}

/* Same 44px rows as the link columns, so the columns line up. */
.footer__names li {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

@media (min-width: 768px) {
  .footer { padding-block: 64px 28px; }

  .footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 48px;
  }

  .footer__brand { flex: 1 1 200px; }
  .footer__col   { flex: 0 1 auto; min-width: 150px; }
  .footer__bottom { margin-top: 56px; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   PAGES
   ============================================= */

/* ---------- Shared page bits ---------- */
.section--flush-top {
  padding-top: 0;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Home: hero ---------- */
.hero {
  overflow: hidden;
  padding-block: 40px 56px;
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: 40px;
}

.hero__content {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.hero__lead {
  max-width: 34em;
}

@media (min-width: 768px) {
  .hero { padding-block: 64px 80px; }
  .hero__content { gap: 24px; }
}

@media (min-width: 1024px) {
  .hero { padding-block: 72px 96px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
  }
}

/* Avatar stack beside the community count. */
.avatars {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9375rem;
  font-weight: 600;
}

.avatars__stack {
  display: flex;
  flex: none;
}

.avatars__stack span {
  width: 36px;
  height: 36px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--brand);
}

.avatars__stack span + span { margin-left: -10px; }
.avatars__stack span:nth-child(2) { background: var(--brand-dark); }
.avatars__stack span:nth-child(3) { background: var(--brand-tint-2); }
.avatars__stack span:nth-child(4) { background: var(--brand-deeper); }

/* The phone, the circle behind it and its floating cards. */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 16px 40px;
}

.hero-visual__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand-tint-2);
  transform: translate(-50%, -50%);
}

.hero-visual .float-card--bottom-left {
  bottom: 24px;
  left: 0;
}

.hero-visual .float-card--top-right {
  display: none;
}

@media (min-width: 768px) {
  .hero-visual { padding-block: 24px; }
  .hero-visual__circle { width: 520px; }
  .hero-visual .float-card--bottom-left { bottom: 88px; left: calc(50% - 280px); }
  .hero-visual .float-card--top-right { display: flex; top: 96px; right: calc(50% - 290px); }
}

@media (min-width: 1024px) {
  .hero-visual .float-card--bottom-left { left: -8px; }
  .hero-visual .float-card--top-right { right: -8px; }
}

/* ---------- Home: how it works ---------- */
.step {
  display: grid;
  align-content: start;
  gap: 10px;
}

.step__number {
  color: var(--brand-dark);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .06em;
}

/* ---------- Home: screenshot strip ----------
   A scroll container. script.js turns it into a slow endless loop (copies
   of the cards are appended) unless the visitor prefers reduced motion; then
   it stays a swipeable row that snaps to each card. */
.shots__viewport {
  overflow-x: auto;
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  scrollbar-width: none;
}

.shots__viewport::-webkit-scrollbar {
  display: none;
}

.shots:not(.shots--looping) .shots__viewport {
  scroll-snap-type: x mandatory;
}

.shots__track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.shot {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 16px;
  width: 220px;
  height: 440px;
  padding: 22px 18px 18px;
  border-radius: 32px;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .shot {
    width: 260px;
    height: 540px;
    gap: 18px;
    padding: 24px 20px 20px;
    border-radius: 34px;
  }

  .shot__caption {
    font-size: 1.1875rem;
  }

  .shots__track {
    gap: 18px;
  }
}
.shot__caption {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* The app screenshot: a framed phone on a transparent background, scaled to
   fill the card under the caption without stretching. */
.shot__img {
  display: block;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 22px rgba(10, 30, 50, .22));
}

.shot--ink  { background: var(--ink); color: #FFFFFF; }
.shot--brand { background: var(--brand); color: var(--ink); }
.shot--tint { background: var(--brand-tint); color: var(--ink); }

.shots__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.shots__dots {
  display: flex;
  gap: 8px;
}

.shots__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  opacity: .4;
  transition: width var(--ease), opacity var(--ease);
}

.shots__dots .is-active {
  width: 22px;
  background: var(--ink);
  opacity: 1;
}


/* ---------- Home: safety ---------- */
.safety-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.safety-card .h3 {
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .safety-card {
    flex-direction: column;
    gap: 20px;
    padding: 28px;
  }
}

/* ---------- Home: web listings preview ---------- */
.room-grid--preview {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .room-grid--preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023.98px) {
  .room-grid--preview > :nth-child(n + 3) { display: none; }
}

@media (min-width: 1024px) {
  .room-grid--preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Home: audience cards ---------- */
.audience-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 24px;
  border-radius: var(--radius-block);
}

.audience-card__title {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* The landlord card is one big link to the Landlords page. */
.audience-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.audience-card__link:focus-visible {
  outline: none;
}

.audience-card:has(.audience-card__link:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.audience-card:hover .audience-card__link {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .audience-card { gap: 16px; padding: 40px; }
  .audience-card__title { font-size: 2rem; }
}

/* ---------- Home: download ---------- */
.download {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.download .lead {
  max-width: 32em;
}

.download .btn {
  margin-top: 8px;
}

/* No app link yet: the button shows, but isn't a link. */
.download .btn:not([href]) {
  cursor: default;
}

.download__pending {
  font-size: .875rem;
  font-weight: 600;
}

/* ---------- Listings ---------- */
.listings-page {
  padding-block: 28px 56px;
}

.listings-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.listings-head__count {
  min-height: 1.6em;
  margin-top: 6px;
}

.sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort--wide .select {
  width: auto;
  min-width: 210px;
}

/* Phones: "Filters" plus the room-type chips, above the folded panel. */
.listings-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.filters-toggle {
  justify-self: start;
}

.search-panel {
  --bleed: 16px;
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.search-panel__fields {
  display: grid;
  gap: 12px;
}

/* What to change before the search runs (#search-error). */
.search-panel__error {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
}

/* Phones: count and sort share a row above the cards. */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.results-bar__count {
  font-weight: 700;
}

.sort--compact label {
  color: var(--muted);
  font-weight: 600;
}

/* A select that reads as text: "Sort: Newest ▾". */
.select--inline {
  width: auto;
  padding: 0 28px 0 4px;
  border-color: transparent;
  background-color: transparent;
  background-position: right 4px center;
  font-weight: 700;
}

.room-grid[aria-busy="true"] {
  opacity: .5;
  transition: opacity var(--ease);
}

.listings-results .empty-state .btn {
  margin-top: 8px;
}

.listings-more {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination__page,
.pagination__step {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.pagination__step {
  display: inline-flex;
  gap: 6px;
  padding: 0 16px;
}

.pagination__page:hover,
.pagination__step:hover {
  border-color: var(--line-strong);
}

.pagination__page[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #FFFFFF;
}

.pagination__gap {
  padding: 0 4px;
  color: var(--muted);
}

.app-nudge {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

.app-nudge .h3 {
  margin-bottom: 4px;
  font-size: 1.5rem;
}

/* A room opened from an old ?room= link pulses once. */
@keyframes room-card-highlight {
  0%, 60% { box-shadow: 0 0 0 4px var(--brand); }
  100%    { box-shadow: 0 0 0 4px rgba(139, 195, 74, 0); }
}

.room-card--highlighted {
  animation: room-card-highlight 2s ease;
}

@media (max-width: 767.98px) {
  .listings-head__count,
  .sort--wide { display: none; }
  .search-panel[data-collapsed="true"] { display: none; }
}

@media (min-width: 768px) {
  .listings-page { padding-block: 40px 72px; }
  .listings-head { margin-bottom: 28px; }
  .listings-tools,
  .results-bar { display: none; }

  .search-panel {
    --bleed: 20px;
    margin-bottom: 32px;
    padding: 20px;
  }

  .search-panel__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  }

  .search-panel__query { grid-column: 1 / -1; }
  .listings-more .btn--block { width: auto; }

  .app-nudge {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 64px;
    padding: 40px 48px;
  }

  .app-nudge .h3 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
  .listings-page { padding-block: 48px 96px; }

  .search-panel__fields {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto;
  }

  .search-panel__query { grid-column: auto; }
}

/* ---------- Featured spaces ---------- */
.featured-intro {
  padding-block: 40px 32px;
}

.featured-intro .section-head {
  margin-bottom: 0;
}

.featured-page > .container > .status,
.featured-page > .container > .empty-state {
  padding-block: 48px;
}

.spotlight {
  display: grid;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-block);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.spotlight__media {
  position: relative;
  min-width: 0;
}

.spotlight__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
}

.spotlight__main {
  position: relative;
  display: none;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  background: var(--brand-tint-2);
}

.spotlight__main img,
.spotlight__main .img-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight__thumbs {
  display: none;
}

.spotlight__thumb {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  text-align: left;
}

.spotlight__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 12px;
  object-fit: cover;
}

.spotlight__thumb:hover img {
  border-color: var(--line-strong);
}

.spotlight__thumb[aria-pressed="true"] {
  color: var(--ink);
}

.spotlight__thumb[aria-pressed="true"] img {
  border-color: var(--brand-dark);
}

/* Phones: the photos as a swipeable row of 300 × 300 squares. */
.spotlight__swipe {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-inline: -16px;
  padding-inline: 16px;
  scroll-padding-inline: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.spotlight__swipe::-webkit-scrollbar {
  display: none;
}

.spotlight__swipe li {
  flex: 0 0 min(300px, 85%);
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  background: var(--brand-tint-2);
  scroll-snap-align: start;
}

.spotlight__swipe img,
.spotlight__swipe .img-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight__details {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  min-width: 0;
}

.spotlight__name {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.spotlight__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.spotlight__location .i {
  width: 18px;
  height: 18px;
}

.spotlight__price {
  color: var(--muted);
  font-weight: 600;
}

.spotlight__price strong {
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: .875rem;
  font-weight: 600;
}

.featured-more .h2 {
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .featured-intro { padding-block: 56px 40px; }
  .spotlight { padding: 20px; }
  .spotlight__main { display: block; }
  .spotlight__swipe { display: none; }

  .spotlight__thumbs:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .spotlight__badge { top: 16px; left: 16px; }
  .spotlight__name { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .featured-intro { padding-block: 72px 48px; }

  .spotlight {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 24px;
    border-radius: var(--radius-block-lg);
  }

  .spotlight__details { padding-right: 16px; }
  .spotlight__name { font-size: 2.75rem; }
  .room-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Room details ---------- */

/* Phones: an app-style bar (back, title, share) replaces the site header. */
.detail-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 245, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.detail-bar__title {
  font-size: 1.0625rem;
  font-weight: 800;
}

.detail-bar__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
}

.room-page {
  padding-block: 0 48px;
}

.room-page > .container > .status {
  padding-block: 64px;
}

.room-missing {
  padding-block: 64px;
}

.room-missing .empty-state__title {
  font-size: 1.5rem;
}

.room-missing .btn {
  margin-top: 12px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  color: var(--muted);
  font-size: .875rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  min-width: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand-deeper);
  text-decoration: underline;
}

/* A long room name ends in "…" rather than wrapping. */
.breadcrumb li:last-child {
  max-width: 40ch;
}

.breadcrumb [aria-current] {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-block: 20px;
}

.room__heading {
  min-width: 0;
}

.room__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
}

.room__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.room__location .i {
  width: 18px;
  height: 18px;
}

.room__share-status {
  flex-basis: 100%;
  color: var(--muted);
  font-size: .875rem;
}

.room__share-status:empty {
  display: none;
}

/* Gallery: a swipeable carousel on phones, a grid from tablet up. */
.gallery {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
}

.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
}

.gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--brand-tint-2);
  cursor: zoom-in;
}

.gallery__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__open:focus-visible {
  outline-offset: -4px;
}

.gallery__counter {
  position: absolute;
  right: calc(var(--gutter) + 4px);
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 26, 18, .72);
  color: #FFFFFF;
  font-size: .8125rem;
  font-weight: 700;
}

.gallery__all {
  display: none;
}

/* A listing with no photos: one tile, the shape the gallery would be. */
.gallery__empty .img-ph {
  aspect-ratio: 4 / 3;
  font-size: 1rem;
}

.room__layout {
  display: grid;
  gap: 32px;
  margin-top: 24px;
}

.room__section + .room__section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.room__section .h3 {
  margin-bottom: 14px;
}

.room__description {
  white-space: pre-line;
}

.room__none {
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fact {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.fact dt {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}

.fact dd {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

/* Amenities: chips on phones, a check-mark grid from tablet up. */
.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenities li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: .9375rem;
  font-weight: 600;
}

.amenities .i {
  width: 18px;
  height: 18px;
  color: var(--brand-dark);
  stroke-width: 2.4;
}

.amenities .room__none {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 400;
}

.rules li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
}

.rules li:last-child {
  border-bottom: 0;
}

.rules li::before {
  content: "";
  position: absolute;
  top: 1.25em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.rules .room__none {
  padding-left: 0;
}

.rules .room__none::before {
  display: none;
}

/* Map placeholder: a drawn street grid and a shaded circle for the area. */
.map-ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  background-color: var(--brand-tint);
  background-image:
    linear-gradient(var(--brand-tint-2) 2px, transparent 2px),
    linear-gradient(90deg, var(--brand-tint-2) 2px, transparent 2px);
  background-size: 36px 36px;
}

.map-ph__area {
  position: absolute;
  width: 56%;
  aspect-ratio: 1;
  border: 2px dashed var(--brand-dark);
  border-radius: 50%;
  background: rgba(139, 195, 74, .28);
}

.map-ph__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-weight: 700;
}

.map-ph__label .i {
  width: 18px;
  height: 18px;
  color: var(--brand-dark);
}

.room__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .9375rem;
}

.room__note .i {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

/* Side card: the price and the app actions. */
.price-card {
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.price-card__price {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.price-card__unit {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.price-card__availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--brand-deeper);
  font-weight: 700;
}

.price-card__availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}




.host-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.host-card__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
}

.host-card__name {
  font-weight: 800;
}

.host-card__meta {
  color: var(--muted);
  font-size: .875rem;
}

.similar {
  margin-top: 56px;
}

.similar .h2 {
  margin-bottom: 24px;
}

/* Phones: price and the app link in a bar along the bottom. */
.detail-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -8px 24px rgba(15, 26, 18, .08);
}

.detail-cta__price {
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 600;
}

.detail-cta__price strong {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
}

/* All photos, in a modal. Full screen on phones. */
.photo-dialog {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}

.photo-dialog::backdrop {
  background: rgba(15, 26, 18, .72);
}

.photo-dialog__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.photo-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  border-bottom: 1px solid var(--line);
}

.photo-dialog__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
}

.photo-dialog__list {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 16px;
}

.photo-dialog__list img {
  width: 100%;
  border-radius: 16px;
  background: var(--brand-tint-2);
}

html:has(.photo-dialog[open]) {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  body[data-page="room"] .header,
  .breadcrumb,
  .room__share { display: none; }

  /* Room for the bottom bar, and focus scrolls stop above it. */
  body[data-page="room"] { padding-bottom: 76px; }
  html:has(.detail-cta:not([hidden])) { scroll-padding-bottom: 88px; }

  .room__head { margin-block: 20px 16px; }
}

@media (min-width: 768px) {
  .detail-bar,
  .detail-cta,
  .gallery__counter { display: none; }

  .room-page { padding-block: 24px 72px; }
  .room__head { margin-block: 12px 24px; }

  .gallery { margin-inline: 0; }

  .gallery__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 170px);
    gap: 8px;
    overflow: hidden;
    border-radius: var(--radius-card-lg);
  }

  .gallery__item { aspect-ratio: auto; }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(n + 6) { display: none; }
  /* Fewer than five photos still fill the frame. */
  .gallery[data-count="1"] .gallery__item:first-child { grid-column: span 4; }
  .gallery[data-count="2"] .gallery__item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
  .gallery[data-count="3"] .gallery__item:nth-child(n + 2) { grid-column: span 2; }
  .gallery[data-count="4"] .gallery__item:nth-child(4) { grid-column: span 2; }

  .gallery__open:hover img { opacity: .9; }

  .gallery__empty .img-ph {
    height: 240px;
    aspect-ratio: auto;
    border-radius: var(--radius-card-lg);
  }

  /* On the last thumbnail. */
  .gallery__all {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    border-radius: var(--radius-btn);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-card);
  }

  .gallery__all:hover { background: var(--bg); color: var(--ink); }

  .facts { gap: 12px; }
  .fact { padding: 18px; }
  .fact dd { font-size: 1.125rem; }

  .amenities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }

  .amenities li {
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 500;
  }

  .amenities .i {
    flex: none;
    width: 28px;
    height: 28px;
    padding: 5px;
    border-radius: 50%;
    background: var(--brand-tint);
  }

  .map-ph { aspect-ratio: 21 / 9; }
  /* A wide map: the circle is sized by height so it stays whole. */
  .map-ph__area { width: auto; height: 78%; }
  .similar { margin-top: 72px; }

  .photo-dialog {
    width: min(960px, 100% - 48px);
    height: auto;
    max-height: calc(100% - 48px);
    margin: auto;
    border-radius: var(--radius-card-lg);
  }

  .photo-dialog__inner { max-height: calc(100vh - 48px); }
}

@media (min-width: 1024px) {
  .room-page { padding-block: 32px 96px; }
  .gallery__track { grid-template-rows: repeat(2, 220px); }
  .gallery__empty .img-ph { height: 300px; }

  .room__layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 48px;
    margin-top: 40px;
  }

  .room__aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .amenities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- About ---------- */
.about-hero {
  padding-block: 40px 56px;
}

.about-hero__grid {
  display: grid;
  align-items: center;
  gap: 40px;
}

.about-hero__content {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.about-hero__photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-block);
  background: var(--brand-tint-2);
}

.about-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two columns of green check tiles. */
.checklist {
  display: grid;
  gap: 12px 24px;
  width: 100%;
  margin-top: 4px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.checklist__tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--ink);
}

.checklist__tile .i {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.story-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.story-card__title {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Team: a row per person on phones, cards in a grid from tablet up. */
.team-grid {
  display: grid;
  gap: 12px;
}

.member {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.member__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.member__name {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.member__role {
  color: var(--muted);
  font-size: .9375rem;
}

@media (min-width: 768px) {
  .about-hero { padding-block: 64px 80px; }
  .about-hero__content { gap: 24px; }
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-card { gap: 16px; padding: 40px; border-radius: var(--radius-block); }
  .story-card__title { font-size: 2rem; }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .member {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
  }

  .member__avatar {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .about-hero { padding-block: 72px 96px; }

  .about-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .about-hero__photo { aspect-ratio: 4 / 5; }
  .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Landlords ---------- */

/* The hero sits on ink, continuing the dark header. */
.hero--dark {
  background: var(--ink);
}

.hero--dark .hero-visual__circle {
  background: rgba(139, 195, 74, .16);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Three figures; the number reads first, the label under it. */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 8px;
}

.hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.hero-stats dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-stats dt {
  color: var(--text-muted);
  font-size: .875rem;
}

/* Landlord dashboard pieces inside the phone mockup (em, like the rest). */
.app-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8em;
}

.app-tile {
  padding: 1.1em 1.2em;
  border: 1px solid var(--line);
  border-radius: 1.4em;
  background: var(--surface);
}

.app-tile--brand {
  border-color: transparent;
  background: var(--brand);
}

.app-tile__number {
  font-size: 2em;
  font-weight: 800;
  line-height: 1.1;
}

.app-tile__label {
  color: var(--muted);
  font-size: 1.1em;
  font-weight: 600;
}

.app-tile--brand .app-tile__label {
  color: #2A3F1E;
}

/* A chip row whose chips must all show (Home's row is cut off on purpose). */
.app-chips--fit .app-chip {
  padding: .5em .8em;
  font-size: 1em;
}

.app-section {
  margin-top: .4em;
  font-size: 1.3em;
  font-weight: 800;
}

.app-rows {
  display: grid;
  gap: .6em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-row {
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .8em 1em;
  border: 1px solid var(--line);
  border-radius: 1.4em;
  background: var(--surface);
}

.app-row__avatar {
  flex: none;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  background: var(--brand-tint-2);
}

.app-row__text {
  display: grid;
  flex: 1;
  min-width: 0;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.3;
}

.app-row__meta {
  color: var(--muted);
  font-size: .9em;
  font-weight: 500;
}

.app-row__badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .3em;
  padding: .35em .7em;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-deeper);
  font-size: 1em;
  font-weight: 700;
}

.app-row__badge .i {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.6;
}

/* Features: the viewing manager block, then three cards. */
.viewing-manager {
  display: grid;
  gap: 24px;
  padding: 28px 24px;
  border-radius: var(--radius-block);
  background: var(--brand-tint);
}

.viewing-manager__text {
  display: grid;
  align-content: center;
  gap: 12px;
}

.viewing-manager__title {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.agreed-mock {
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.agreed-mock__title {
  margin-bottom: 12px;
  font-size: 1.125rem;
  font-weight: 800;
}

.agreed-mock__list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.agreed-mock__list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agreed-mock__box {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
}

.agreed-mock__box--on {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #FFFFFF;
}

.agreed-mock__box .i {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

/* Looks like the app's button; it is part of the picture, not a control. */
.agreed-mock__button {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: #FFFFFF;
  font-size: .9375rem;
  font-weight: 700;
}

.tool-cards {
  margin-top: 16px;
}

.tool-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.tool-card .icon-tile {
  margin-bottom: 4px;
}

/* Verification: heading, then three rows. */
.verify__head {
  margin-bottom: 28px;
}

.verify__rows {
  display: grid;
  gap: 12px;
}

.verify__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-card);
  background: var(--card-bg);
}

.verify__row .h3 {
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .hero-stats { gap: 24px 48px; }
  .hero-stats dd { font-size: 1.75rem; }

  .viewing-manager {
    gap: 32px;
    padding: 48px;
    border-radius: var(--radius-block-lg);
  }

  .viewing-manager__title { font-size: 2rem; }
  .tool-cards { margin-top: 20px; }
  .verify__row { padding: 24px; }
}

@media (min-width: 1024px) {
  .viewing-manager {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }

  .tool-cards { margin-top: 24px; }

  .verify {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 56px;
  }

  .verify__head { margin-bottom: 0; }
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 640px;
  padding-block: 24px;
  text-align: center;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .room-card:hover,
  .btn:active {
    transform: none;
  }
}
