:root {
  --ink: #18211d;
  --muted: #66716a;
  --paper: #f7f6f0;
  --surface: #ffffff;
  --mist: #edf2ef;
  --line: rgba(24, 33, 29, 0.14);
  --green: #2f6b55;
  --river: #376f83;
  --clay: #c8793a;
  --red: #9b3d30;
  --shadow: 0 16px 42px rgba(24, 33, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.nav-cta,
.button,
.language-option {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 108px;
}

.brand-logo {
  width: 108px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 760;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-option {
  min-width: 39px;
  min-height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.language-option.is-active {
  color: #fff;
  background: var(--green);
}

.nav-cta {
  min-width: max-content;
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--green);
  font-weight: 850;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 96px clamp(22px, 7vw, 92px) 72px;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 29, 24, 0.78), rgba(13, 29, 24, 0.34) 56%, rgba(13, 29, 24, 0.12)),
    linear-gradient(0deg, rgba(10, 20, 17, 0.72), rgba(10, 20, 17, 0.04) 52%);
}

.hero-content {
  position: relative;
  width: min(920px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  width: min(780px, 100%);
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  width: min(640px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) 180px 130px auto;
  gap: 10px;
  align-items: end;
  width: min(880px, 100%);
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-search label {
  color: #fff;
}

.hero-search input {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.96);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust-row span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 750;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 16px;
  font-weight: 880;
  cursor: pointer;
}

.button.primary {
  background: var(--clay);
  color: #fff;
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.marketplace,
.how-section,
.owner-band,
.contact-section,
.site-footer {
  width: min(1240px, calc(100% - 38px));
  margin: 0 auto;
}

.marketplace {
  padding: 46px 0 76px;
}

.marketplace-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
}

.result-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--green);
  font-weight: 850;
}

.sort-control {
  min-width: 188px;
}

.marketplace-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.filter-panel,
.map-panel {
  position: sticky;
  top: 92px;
}

.availability-filter,
.map-card,
.inquiry-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(24, 33, 29, 0.07);
}

.availability-filter {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.date-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfaf6;
}

textarea {
  resize: vertical;
}

.checkbox-group {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.checkbox-group legend {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.checkbox-group input {
  width: 16px;
  min-height: 16px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.quick-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.quick-filters button.is-active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.property-list {
  display: grid;
  gap: 14px;
}

.property-card {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(24, 33, 29, 0.07);
}

.property-media {
  position: relative;
  min-height: 230px;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(47, 107, 85, 0.16), rgba(55, 111, 131, 0.12)),
    url("assets/ebrostay-hero.png") center / cover;
}

.property-pedro {
  background:
    linear-gradient(135deg, rgba(55, 111, 131, 0.16), rgba(200, 121, 58, 0.16)),
    url("assets/ebrostay-zaragoza-hero.png") center / cover;
}

.property-movera {
  background:
    linear-gradient(135deg, rgba(24, 33, 29, 0.14), rgba(200, 121, 58, 0.14)),
    url("assets/ebrostay-hero.png") center / cover;
}

.availability-pill {
  position: absolute;
  top: 12px;
}

.availability-pill {
  left: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
}

.favorite-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.favorite-button.is-active {
  color: #fff;
  background: var(--red);
}

.property-body {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.property-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.property-title-row strong {
  color: var(--ink);
  white-space: nowrap;
}

.property-body p {
  margin: 0;
}

.property-badges,
.property-meta,
.amenity-list,
.property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.property-badges span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #774317;
  background: rgba(200, 121, 58, 0.15);
  font-size: 0.78rem;
  font-weight: 900;
}

.property-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green);
  background: var(--mist);
  font-size: 0.82rem;
  font-weight: 850;
}

.amenity-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.property-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.details-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.request-button {
  min-width: 110px;
}

.map-card {
  overflow: hidden;
}

.google-map-wrap {
  position: relative;
  width: 100%;
  min-height: 340px;
  background: var(--mist);
}

.google-map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-copy {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.map-copy strong {
  color: var(--ink);
}

.map-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.map-addresses {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.map-addresses button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.map-addresses button.is-active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.how-section,
.owner-band,
.contact-section {
  padding: 76px 0;
}

.how-section {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: clamp(28px, 6vw, 76px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.steps article {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.steps span {
  color: var(--green);
  font-weight: 950;
}

.steps p {
  margin-bottom: 0;
}

.owner-band {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(28px, 6vw, 70px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.owner-band p,
.contact-copy p {
  margin: 0;
  font-size: 1.06rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr minmax(320px, 500px);
  gap: clamp(34px, 8vw, 92px);
  align-items: start;
}

.inquiry-form {
  display: grid;
  gap: 15px;
  padding: clamp(20px, 4vw, 30px);
}

.form-button {
  width: 100%;
  border: 0;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 60px;
  height: auto;
}

@media (max-width: 1080px) {
  .marketplace-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .map-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .google-map-wrap {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .brand {
    min-width: 84px;
  }

  .brand-logo {
    width: 84px;
  }

  .hero {
    min-height: 640px;
    padding: 76px 20px 48px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.35rem);
  }

  .hero-search,
  .marketplace-toolbar,
  .marketplace-layout,
  .property-card,
  .how-section,
  .steps,
  .owner-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .marketplace-toolbar {
    align-items: start;
  }

  .result-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .filter-panel {
    position: static;
  }

  .property-media {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .property-title-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
