/*
 * Xevendi clickable mockup — homepage sections added 2026-11-15: centred photo hero with one big
 * search, "homes for you" rail, action cards and property-category shortcuts.
 */

/* ---------- centred hero ---------- */
/* overflow visible + z-index: the location list may hang below the photo and sits above the next section
   (owner, 2026-11-16). The photo and its veil are inset: 0, so nothing else spills out. */
.hero--z { align-items: center; min-height: clamp(520px, 74vh, 660px); overflow: visible; z-index: 2; }
/* Owner, 2026-11-16: "make the hero brighter, a little more vibrant". A lighter veil (darkest only at the top,
   behind the headline, and at the very bottom), and a little more colour and light in the photo itself. */
.hero--z::before {
  background: linear-gradient(180deg, rgb(19 18 17 / .16) 0%, rgb(19 18 17 / .04) 42%, rgb(19 18 17 / .06) 70%, rgb(19 18 17 / .3) 100%);
}
/* The night photo (owner: lit-up city and cars) is already dark in the sky behind the headline, so the veil stays light. */
.hero--z .hero-img { filter: saturate(1.12) brightness(1.05); }
.hero--z .hero-inner { padding: 72px var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Headline lockup (owner, 2026-11-16): "Buy. Rent. Sell." with "Real estate" underneath, bigger and spread from
   under "Buy" to the end of "Sell". The h1 shrinks to the width of the first line; the second line is one box per
   letter, spread edge to edge. No sub-header. The brand tagline lives in the footer and the tab title. */
.hero--z .hero-title { width: fit-content; max-width: 100%; margin-bottom: 28px; text-shadow: 0 2px 24px rgb(19 18 17 / .38); }
.hero-line { display: block; }
.hero-kicker {
  display: flex; justify-content: space-between; margin-top: .12em;
  font-size: .58em; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: uppercase;
}
.hk-gap { width: .25em; }
/* The hero search box uses the shared search-bar shape in searchbar.css (.sb--hero). */

/* ---------- homes-for-you rail ---------- */
.section--hr { padding-block: clamp(40px, 5vw, 64px); }
.hr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hr-title { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); letter-spacing: -.015em; }
.hr-why { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.hr-nav { display: none; gap: 8px; }
@media (min-width: 768px) { .hr-nav { display: flex; } }
.hr-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  padding: 4px 2px 12px; scrollbar-width: thin;
}
.hr-track:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--r-md); }
.hr-item { scroll-snap-align: start; min-width: 0; }
@media (min-width: 640px) { .hr-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (min-width: 1024px) { .hr-track { grid-auto-columns: calc((100% - 60px) / 4); } }

/* ---------- action cards ---------- */
.action-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.action-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: box-shadow var(--d2) var(--ease), transform var(--d2) var(--ease);
}
.action-card:hover { box-shadow: var(--e3); transform: translateY(-2px); }
.action-card p { color: var(--text-2); font-size: 15px; max-width: 40ch; flex: 1; }
.action-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-50); color: var(--sea-700); margin-bottom: 4px; }
.action-title { font-family: var(--font-display); font-weight: 650; font-size: 1.375rem; letter-spacing: -.01em; }
.action-card .btn { margin-top: 6px; }

/* ---------- category shortcuts ---------- */
/* Owner, 2026-11-16: whole rows of 4 ("to not have odd number rows") and tiles that stretch with the screen. Eight tiles:
   4 + 4 from 1024 px, 2 per row below; on phones the icon sits above the text so two still fit side by side. */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.cat-tile {
  height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  grid-template-areas: "icon name" "icon desc" "icon count"; gap: 2px 14px;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--text-1); text-decoration: none;
  transition: border-color var(--d1) var(--ease), box-shadow var(--d2) var(--ease);
}
.cat-tile:hover { border-color: var(--sea-300); box-shadow: var(--e2); text-decoration: none; }
.cat-icon { grid-area: icon; width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--sea-50); color: var(--sea-700); }
.cat-name { grid-area: name; font-weight: 650; }
.cat-desc { grid-area: desc; font-size: 13px; color: var(--text-2); }
.cat-count { grid-area: count; font-size: 12px; font-weight: 600; color: var(--sea-700); margin-top: 4px; }
@media (max-width: 559px) {
  .cat-tile { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; grid-template-areas: "icon" "name" "desc" "count"; padding: 14px; }
  .cat-icon { width: 40px; height: 40px; margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .action-card, .action-card:hover { transition: none; transform: none; }
}
