/* Home page: cream hero with the Asunción collage, overlapping search panel, listing cards. */
.home-page { --home-ink: #243f34; --home-accent: #c66540; --home-cream: #fcf6ef; background: var(--home-cream); }
.home-page .header { border-color: #3a4e3e1f; }

.home-hero { position: relative; isolation: isolate; background: radial-gradient(circle at 16% 37%, #fffdf9 0%, #fcf4eb 58%, #f8eee3 100%); overflow: hidden; }
/* Copy and collage share the page grid (42/58). The collage's transparent left edge runs under the
   copy column, and its right edge may pass the grid by one gutter, never more. */
.home-hero-inner { display: grid; grid-template-columns: 42fr 58fr; min-height: clamp(480px, 37vw, 540px); }
.home-hero-copy { position: relative; z-index: 1; padding-top: clamp(56px, 6.6vw, 112px); padding-bottom: 60px; pointer-events: none; }
.home-hero-art { position: relative; z-index: 0; pointer-events: none; }
.home-hero-art img { position: absolute; right: -40px; bottom: 0; width: calc(145% + 40px); max-width: none; height: auto; filter: saturate(.93) contrast(.99); user-select: none; }
/* On wide screens only the collage breaks out of the grid: it is sized on the viewport and ends at its
   right edge, while copy and search stay in the centred container. */
@media (min-width: 1181px) {
  .home-hero-inner { display: block; min-height: clamp(520px, calc(min(75vw, 1450px) * .3475 + 90px), 600px); }
  .home-hero-copy { max-width: 42%; }
  .home-hero-art { position: static; }
  .home-hero-art img { right: 0; width: min(75vw, 1450px); }
}
/* Each of the two lines stays whole; the first may run over the collage's transparent sky. */
.home-hero h1 { margin: 0; color: var(--home-ink); font-size: clamp(50px, 5.1vw, 72px); line-height: .98; white-space: nowrap; font-weight: 700; letter-spacing: -.06em; }
.home-hero h1 em { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--home-accent); }
.home-lead { max-width: 500px; text-wrap: balance; margin: 28px 0 0; color: #34473f; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; letter-spacing: -.02em; }

/* Native controls keep the search usable without JavaScript; js/home-search.js adds the barrio list,
   range calendar and guest stepper styled below. */
.home-search-wrap { position: relative; z-index: 5; margin-top: -36px; }
.home-search { display: grid; grid-template-columns: 1.2fr 1.25fr 1fr auto; align-items: stretch; padding: 12px 14px; background: #fffffffa; border: 1px solid #1b352a0d; border-radius: 22px; box-shadow: 0 16px 32px #302a2221, 0 3px 8px #302a2206; }
.home-search > * { min-width: 0; }
.search-field { position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; padding: 10px 22px; color: var(--home-ink); border-radius: 12px; cursor: pointer; }
.search-field:not(:nth-child(3))::after { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 46px; transform: translateY(-50%); background: #e5e6e3; }
.search-field:hover, .search-field:focus-within { background: #f8f6f2; }
.search-field > .icon { width: 24px; height: 24px; }
.search-area > svg:last-of-type { flex: none; width: 15px; height: 15px; margin-left: auto; transform: rotate(90deg); transition: transform .18s; pointer-events: none; }
.search-area.is-open > svg:last-of-type { transform: rotate(-90deg); }
.search-control { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.field-label { font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.search-control select, .search-control input { width: 100%; min-width: 0; height: 24px; margin-top: 2px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #6a716d; font-size: 14px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.search-control input::placeholder { color: #8b918d; }
.search-control input[type=date] { min-height: 24px; }
.search-control input[type=date]::-webkit-date-and-time-value { text-align: left; }
.search-control input[type=number]::-webkit-inner-spin-button { opacity: .5; }
.search-control select:focus-visible, .search-control input:focus-visible { outline: 2px solid #d19a71; outline-offset: 4px; border-radius: 3px; }
.search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-width: 230px; padding: 15px 24px; border: 0; border-radius: 13px; background: var(--home-ink); color: #fff; font-size: 16px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; transition: background .18s, transform .18s; }
.search-submit:hover { background: #315b46; transform: translateY(-1px); }
.search-submit .icon { width: 18px; height: 18px; }
.search-field.is-open { background: #f8f6f2; }
.search-trigger { display: block; width: 100%; height: 24px; margin-top: 2px; padding: 0; overflow: hidden; border: 0; background: none; color: #6a716d; font: inherit; font-size: 14px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.search-trigger:focus-visible { outline: 2px solid #d19a71; outline-offset: 4px; border-radius: 3px; }
.has-value .search-trigger { color: var(--home-ink); font-weight: 600; }
.search-popover { position: absolute; top: calc(100% + 12px); left: 0; z-index: 20; padding: 16px; background: #fff; border: 1px solid #1b352a12; border-radius: 18px; box-shadow: 0 22px 48px #302a2229, 0 4px 12px #302a220d; cursor: default; }
.area-popover { width: 340px; padding: 10px; }
.area-filter { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #dfe2dc; border-radius: 11px; background: #faf9f6; font-size: 15px; }
.area-filter:focus { border-color: #c66540; outline: none; box-shadow: 0 0 0 3px #c665401f; }
.area-list { max-height: 300px; margin: 8px 0 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.area-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--home-ink); font-size: 14px; cursor: pointer; }
.area-option:hover, .area-option.is-active { background: #f6f2ec; }
.area-option[aria-selected=true] { color: var(--home-accent); font-weight: 650; }
.area-count { flex: none; padding: 3px 8px; border-radius: 99px; background: #edf3e9; color: #315340; font-size: 11px; font-weight: 600; }
.area-empty { margin: 12px; color: #6a716d; font-size: 13px; }
.date-popover { width: 660px; padding: 18px 22px 16px; }
.range-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.range-status { margin: 0; color: var(--home-ink); font-size: 14px; font-weight: 650; }
.range-nav { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e3e3de; border-radius: 50%; background: #fff; color: var(--home-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.range-nav:hover:not(:disabled) { background: #f6f2ec; }
.range-nav:disabled { opacity: .3; cursor: default; }
.range-months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 32px; }
.range-month-name { margin: 0 0 10px; color: var(--home-ink); font-size: 15px; font-weight: 650; text-align: center; }
.range-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.range-weekday { padding: 4px 0 8px; color: #8b918d; font-size: 11px; font-weight: 600; text-align: center; text-transform: uppercase; }
.range-day { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--home-ink); font: inherit; font-size: 14px; cursor: pointer; }
.range-day:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--home-ink); }
.range-day:disabled { color: #c8cbc5; cursor: default; }
.range-day.is-today { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.range-day.in-range { border-radius: 0; background: #f4e6db; }
.range-day.is-start, .range-day.is-end { background: var(--home-ink); color: #fff; font-weight: 650; }
.range-day:focus-visible { outline: 2px solid #d19a71; outline-offset: 1px; }
.range-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #efede8; }
.range-clear { padding: 8px 2px; border: 0; background: none; color: var(--home-ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.range-done { padding: 10px 22px; border: 0; border-radius: 11px; background: var(--home-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.range-done:hover { background: #315b46; }
.guest-stepper { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.guest-step { display: grid; flex: none; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #cdd3cb; border-radius: 50%; background: #fff; color: var(--home-ink); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; transition: border-color .15s, background .15s; }
.guest-step:hover:not(:disabled) { border-color: var(--home-ink); background: #f6f2ec; }
.guest-step:disabled { opacity: .35; cursor: default; }
.guest-step:focus-visible { outline: 2px solid #d19a71; outline-offset: 2px; }
.guest-count { min-width: 0; overflow: hidden; color: #6a716d; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.has-value .guest-count { color: var(--home-ink); font-weight: 600; }
.guest-slot { display: grid; min-width: 0; text-align: center; }
.guest-slot > * { grid-area: 1 / 1; }
.guest-ghost { visibility: hidden; font-weight: 600; }
.search-guests .search-control { flex: 1; }

.home-listings { padding: 70px 0 72px; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-accent { display: block; width: 30px; height: 2px; margin-bottom: 22px; background: var(--home-accent); }
.home-section-head h2 { margin: 0; color: var(--home-ink); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.16; font-weight: 650; letter-spacing: -.045em; }
.home-section-head .muted { margin: 8px 0 0; font-size: 13px; }
.view-all { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; color: var(--home-ink); font-size: 15px; font-weight: 650; white-space: nowrap; }
.view-all:hover { color: var(--home-accent); text-decoration: none; }
.view-all .icon { width: 18px; height: 18px; }
.home-page .empty { background: #fff; border: 1px solid var(--line); border-radius: 18px; }

.home-band { padding: 34px 0; background: #eaf0e8; }
.home-band-host { background: #f8f2e8; }
.home-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-band h2 { margin: 0 0 6px; color: var(--home-ink); font-size: 24px; font-weight: 650; letter-spacing: -.04em; }
.home-band p { margin: 0; color: #556b5c; font-size: 15px; }
.band-link { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid #829e8c; border-radius: 9px; color: var(--home-ink); font-size: 15px; font-weight: 650; white-space: nowrap; }
.band-link:hover { background: #ffffff80; text-decoration: none; }
.band-link .icon { width: 17px; height: 17px; }
.home-notes { padding-top: 60px; padding-bottom: 40px; }
.home-barrios { padding: 70px 0 40px; }
.home-listings + .home-barrios { padding-top: 10px; }
.home-section-head h2 span { color: #42694c; }
.home-section-lead { max-width: 560px; margin: 12px 0 0; color: #4c5f55; font-size: 16px; line-height: 1.6; }
.barrios-count { margin: 0; padding-bottom: 6px; color: #5b6a62; font-size: 14px; white-space: nowrap; }
.barrios-count strong { color: var(--home-ink); font-size: 18px; font-weight: 650; margin-right: 4px; }

@media (max-width: 1050px) {
  .home-hero-inner { grid-template-columns: 46fr 54fr; }
  .home-hero-art img { right: -24px; width: calc(150% + 24px); }
  .search-field { padding-inline: 13px; gap: 10px; }
  .search-submit { min-width: 0; padding-inline: 18px; }
}
/* Below 900px the hero stacks: story, then collage, then the search card overlapping it. */
@media (max-width: 900px) {
  .home-hero { min-height: 0; background: linear-gradient(155deg, #fffdf9 0%, #fcf4eb 72%, #f7ecdf 100%); }
  .home-hero-inner { display: block; min-height: 0; }
  .home-hero-copy { padding-top: 42px; padding-bottom: 0; }
  .home-hero h1 { font-size: clamp(48px, 9vw, 76px); }
  .home-lead { margin-top: 20px; }
  .home-hero-art { height: clamp(200px, 50vw, 440px); margin: 8px calc(50% - 50vw) 0; overflow: hidden; }
  .home-search-wrap { margin-top: -22px; }
  .home-hero-art img { width: 135%; right: -16%; bottom: -2px; max-width: none; border-radius: 0; }
  .home-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 12px; }
  .search-field::after { display: none; }
  .search-field { min-height: 66px; }
  .search-field:first-child, .search-dates { grid-column: 1 / -1; }
  .search-field:first-child { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
  .search-dates { border-bottom: 1px solid var(--line); border-radius: 0; }
  .search-submit { min-height: 56px; margin-left: 8px; }
  .search-popover { right: 0; width: auto; }
  .home-listings { padding-top: 56px; }
  }
@media (max-width: 600px) {
  .home-hero-copy { padding-top: 34px; }
  .home-hero h1 { font-size: clamp(42px, 12.4vw, 58px); }
  .home-lead { max-width: 330px; margin-top: 14px; font-size: 16px; }
  .home-hero-art { height: clamp(200px, 62vw, 320px); }
  .home-hero-art img { width: 165%; right: -22%; }
  .home-search-wrap { margin-top: -16px; }
  .home-search { grid-template-columns: minmax(0, 1fr); border-radius: 19px; }
  .search-field { min-height: 60px; padding: 8px 10px; }
  .search-field:nth-child(3) { border-bottom: 1px solid var(--line); border-radius: 0; }
  .search-field > .icon { width: 21px; height: 21px; }
  .field-label { font-size: 14px; }
  .search-submit { height: 52px; min-height: 0; margin: 10px 0 0; }
  .home-listings { padding: 46px 0 52px; }
  .home-section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .section-accent { margin-bottom: 13px; }
  .home-section-head h2 { font-size: 28px; }
  .home-band { padding: 30px 0; }
  .home-band-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .home-band h2 { font-size: 22px; }
  .home-notes { padding-top: 44px; }
  .home-barrios { padding-top: 46px; }
  .home-section-lead { font-size: 15px; }
}
/* Between tablet and wide desktop the guest field needs room for "16 huéspedes" next to both buttons. */
@media (min-width: 901px) and (max-width: 1280px) {
  .home-search { grid-template-columns: 1fr 1fr 1.15fr auto; }
  .guest-stepper { gap: 8px; }
}
@media (min-width: 901px) and (max-width: 1000px) { .search-field > .icon { display: none; } }
@media (prefers-reduced-motion: reduce) { .search-submit, .guest-step { transition: none; } .search-submit:hover { transform: none; } }
