@font-face {
  font-family: Portal Sans;
  src: url('/demo-propertylist/marca/regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Portal Sans;
  src: url('/demo-propertylist/marca/bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  --ink: #122f27;
  --muted: #48645b;
  --canvas: #f6f7f1;
  --line: #cdd9cf;
  --accent: #ddf38c;
  --button-bg: #183c31;
  --button-text: #fff;
  --poster: #e8eddf;
  --round: 6px;
  --body-font: 'Portal Sans', system-ui, sans-serif;
  margin: 0;
  font: 400 1rem/1.6 var(--body-font);
  color: var(--ink);
  background: var(--canvas);
}
body.alquilan {
  --ink: #251a47;
  --muted: #59516c;
  --canvas: #fbf9ff;
  --line: #ded7ed;
  --accent: #e4d8ff;
  --button-bg: #4c2cb3;
  --poster: #efe8ff;
  --round: 22px;
}
[hidden] { display: none !important; }
a { color: inherit; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #007a71; outline-offset: 3px; }
.alquilan :focus-visible { outline-color: #643eda; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; }
img { max-width: 100%; display: block; }
.wrap { width: min(1280px, calc(100% - 2 * clamp(16px, 5vw, 76px))); margin-inline: auto; }
.skip, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus { z-index: 3; inset: .6rem auto auto .6rem; width: auto; height: auto; clip-path: none; background: white; padding: .6rem; }
.demo-notice {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .12rem .65rem;
  padding: .43rem .85rem;
  text-align: center;
  color: #3a2c1e;
  background: #fff0cc;
  border-bottom: 1px solid #ead6ac;
  font-size: .84rem;
}
.demo-notice strong { font-weight: 700; }
.site-header, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1.5rem;
}
.site-header { min-height: 76px; }
.site-header nav, .footer-row nav { display: flex; align-items: baseline; gap: .5rem 1.5rem; flex-wrap: wrap; }
.site-header nav a, .footer-row a { font-weight: 700; font-size: .9rem; text-underline-offset: .25em; }
.brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.09em;
  text-decoration: none;
}
.brand svg { align-self: center; width: .88em; height: .88em; margin-inline-end: .22em; }
.brand span { color: var(--muted); font-size: .68em; margin-inline-start: .12em; }
.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: stretch;
  min-height: clamp(310px, 31vw, 440px);
  overflow: hidden;
  background: var(--poster);
  border-radius: var(--round);
  isolation: isolate;
}
.hero-content {
  align-content: center;
  display: grid;
  gap: .85rem;
  padding: clamp(1.35rem, 4vw, 4.1rem) clamp(1.2rem, 4vw, 3.8rem) clamp(1.9rem, 5vw, 5.6rem);
}
.eyebrow { color: var(--muted); font-weight: 700; font-size: .84rem; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 5.45rem); font-weight: 700; line-height: .95; letter-spacing: -.07em; }
.hero h1 em { display: block; font: italic 400 1.02em/.97 Georgia, serif; letter-spacing: -.075em; }
.hero-content > p:last-child { max-width: 41ch; margin-top: .45rem; }
.hero-picture { height: 100%; background: var(--poster); overflow: hidden; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.alquilan .hero { background: var(--button-bg); color: white; border-radius: 32px 32px 32px 10px; grid-template-columns: 1fr .92fr; }
.alquilan .hero-content .eyebrow { color: #eee6ff; }
.alquilan .hero h1 em { color: #e6d3ff; }
.alquilan .hero-picture { min-height: 300px; max-height: 440px; }
.alquilan .hero-picture img { object-position: 50% 57%; }
.hero-picture img { max-height: 480px; }
.search {
  position: relative;
  z-index: 1;
  margin: -1.5rem auto 0;
  width: 95%;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr .9fr auto;
  align-items: end;
  gap: .55rem;
  background: white;
  padding: clamp(.7rem, 1.7vw, 1.15rem);
  border: 1px solid var(--line);
  border-radius: var(--round);
  box-shadow: 0 12px 36px #272c2420;
}
.search label { display: grid; gap: .22rem; min-width: 0; }
.search label span { font-weight: 700; color: var(--muted); font-size: .82rem; }
.search input, .search select {
  width: 100%;
  padding: .52rem .64rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  min-height: 44px;
  background: var(--canvas);
  color: var(--ink);
}
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .52rem 1rem;
  min-height: 44px;
  font: 700 .93rem/1.25 var(--body-font);
  border-radius: var(--round);
  cursor: pointer;
  text-decoration: none;
}
.primary { color: var(--button-text); background: var(--button-bg); border: 1px solid var(--button-bg); }
.primary:hover { filter: brightness(1.18); }
.secondary { color: var(--ink); background: white; border: 1px solid var(--line); }
.secondary:hover { background: var(--poster); }
.listings { margin-block: clamp(2.15rem, 5vw, 4.7rem); scroll-margin-top: 1rem; }
.section-heading { display: flex; gap: .5rem 1rem; flex-wrap: wrap; justify-content: space-between; align-items: end; margin-bottom: 1.2rem; }
.section-heading h2, .demo-box h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
.section-heading .eyebrow, .demo-box .eyebrow { margin-bottom: .35rem; }
.result-count { color: var(--muted); font-size: .89rem; font-weight: 700; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.35rem); }
.property-grid.single-result { grid-template-columns: minmax(0, 1fr); }
.property-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--round);
  background: white;
}
.single-result .property-card { display: grid; grid-template-columns: 1.15fr .85fr; max-width: 920px; }
.card-image, .gallery-main { display: block; position: relative; background: var(--poster); overflow: hidden; }
.card-image { min-height: 180px; aspect-ratio: 1.65; }
.card-image img, .gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.single-result .card-image { height: 100%; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: clamp(.9rem, 2vw, 1.45rem); }
.card-location { color: var(--muted); font-size: .82rem; font-weight: 700; margin-bottom: .32rem; }
.card-reference { color: var(--muted); font-size: .81rem; margin-bottom: .75rem; }
.card-body h3 { font-size: clamp(1.22rem, 2.2vw, 1.75rem); }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover, .card-link:hover { text-decoration: underline; text-underline-offset: .19em; }
.price { margin-top: .5rem; font-size: clamp(1.42rem, 2.5vw, 2.15rem); line-height: 1.22; font-weight: 700; letter-spacing: -.035em; }
.price small { color: var(--muted); font-size: .52em; letter-spacing: 0; }
.specs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  gap: .26rem .9rem;
  margin: .6rem 0 .85rem;
  color: var(--muted);
  font-size: .9rem;
}
.agency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: .35rem .65rem;
  margin-top: auto;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
}
.agency img { width: min(100%, 180px); height: auto; }
.agency-detail img { width: min(100%, 216px); }
.agency strong, .agency small { display: block; }
.agency small { color: var(--muted); font-size: .75rem; }
.agency strong { font-size: .86rem; line-height: 1.22; }
.card-link { display: inline-block; color: var(--button-bg); margin-top: .8rem; font-size: .87rem; font-weight: 700; text-underline-offset: .22em; }
.empty, .demo-box {
  padding: clamp(1rem, 3.5vw, 2.5rem);
  background: var(--poster);
  border-radius: var(--round);
}
.empty p { margin-block: .5rem .9rem; }
.demo-box { display: grid; grid-template-columns: .9fr 1fr; gap: .8rem 2rem; margin-bottom: 3rem; }
.demo-box p + p { margin-top: .75rem; }
.text-link { display: inline-block; margin-top: .6rem; font-size: .92rem; font-weight: 700; text-underline-offset: .25em; }
.site-footer { padding: 1.55rem 0; border-top: 1px solid var(--line); }
.footer-row p { font-size: .86rem; color: var(--muted); }
.detail { padding-block: clamp(1.1rem, 3.7vw, 3.35rem); }
.breadcrumbs, .reference { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .84rem; color: var(--muted); }
.detail-heading { display: flex; align-items: end; gap: .6rem 1.4rem; justify-content: space-between; flex-wrap: wrap; margin-block: .9rem 1.5rem; }
.detail-heading h1 { font-size: clamp(2.35rem, 5.4vw, 4.65rem); }
.detail-columns { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(245px,1fr); align-items: start; gap: clamp(1rem, 3vw, 2.4rem); }
.gallery-main { aspect-ratio: 1.65; border-radius: var(--round); }
.gallery figcaption { color: var(--muted); font-size: .83rem; padding-top: .42rem; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.gallery-thumbnails button {
  background: white;
  border: 2px solid var(--line);
  padding: 2px;
  width: clamp(60px, 16vw, 113px);
  border-radius: 7px;
  cursor: pointer;
}
.gallery-thumbnails button[aria-pressed=true] { border-color: var(--button-bg); }
.gallery-thumbnails img { height: auto; aspect-ratio: 1.55; object-fit: cover; border-radius: 4px; }
.contact-panel { background: white; border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.65rem); border-radius: var(--round); position: sticky; top: 1rem; }
.contact-panel .price { margin-block: .27rem .8rem; }
.consult { margin-top: .95rem; }
.consult .primary { display: flex; justify-content: center; width: 100%; text-align: center; text-decoration: none; }
.consult p { color: var(--muted); font-size: .88rem; margin-top: .65rem; }
.consult-privacy { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.consult-privacy a, .original-description summary { color: var(--button-bg); text-underline-offset: .2em; }
.translation-note { color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.original-description { margin-top: .8rem; }
.original-description summary { cursor: pointer; text-decoration: underline; }
.original-description div { margin-top: .5rem; }
.detail-description { margin-top: 1.6rem; }
.detail-description h2 { font-size: clamp(1.45rem,3vw,2rem); margin-bottom: .65rem; }
.detail-description p + p { margin-top: .8rem; }
.attributes { display: grid; grid-template-columns: repeat(auto-fit,minmax(122px,1fr)); gap: .6rem; }
.attributes div, .feature-list li { list-style: none; background: var(--poster); border-radius: 7px; padding: .39rem .62rem; }
.attributes dt { color: var(--muted); font-size: .84rem; }
.attributes dd { font-weight: 700; }
.feature-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 0; padding: 0; }
.feature-list li { font-size: .86rem; }
.legal-copy { width: min(100% - 2rem, 48rem); margin-inline: auto; padding-block: clamp(2rem, 7vw, 4rem); overflow-wrap: anywhere; }
.legal-copy h1 { font-size: clamp(2rem, 5vw, 3.35rem); margin-bottom: 1rem; }
.legal-copy h2 { font-size: 1.33rem; margin-block: 1.5rem .45rem; }
.legal-copy p + p { margin-top: .75rem; }
.legal-copy a { text-underline-offset: .2em; }

@media (max-width: 890px) {
  .search { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .search button { grid-column: 1/-1; }
  .property-grid:not(.single-result) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 630px) {
  .site-header { min-height: 60px; }
  .site-header nav { gap: .55rem; }
  .site-header nav a { font-size: .81rem; }
  .hero, .alquilan .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding: 1.2rem; }
  .hero h1 { font-size: clamp(2.4rem, 10.8vw, 3.35rem); }
  .hero-content > p:last-child { margin-top: .2rem; }
  .hero-picture, .alquilan .hero-picture { height: clamp(110px, 35vw, 186px); min-height: 0; }
  .alquilan .hero { border-radius: 22px 22px 22px 8px; }
  .search { width: min(calc(100% - .7rem),100%); grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: -.75rem; }
  .search label:first-child { grid-column: 1/-1; }
  .search label:nth-child(2) { grid-column: 1/-1; }
  .property-grid:not(.single-result), .single-result .property-card, .demo-box, .detail-columns { grid-template-columns: 1fr; }
  .single-result .card-image { height: auto; }
  .contact-panel { position: static; }
  .detail-main { display: contents; }
  .detail-main > .gallery { order: 0; }
  .contact-panel { order: 1; }
  .detail-description { order: 2; margin-top: .6rem; }
  .footer-row { flex-direction: column; align-items: start; }
}
