/* MARU Bienes Raíces: the page CSS the property cards, the property page and the appointment form share
   (inside the visuals only; everything else is system.css) */
.lfacts { list-style: none; margin: 0; padding: var(--s-6); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.lfacts li { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--t-body); line-height: 1.35; }
.lfacts svg { width: 28px; height: 28px; fill: none; stroke: var(--p-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lfacts b { font: var(--display-weight) 24px/1 var(--font-display); }
.lcard__price { display: block; margin-top: var(--s-2); font: var(--display-weight) var(--t-card)/1.3 var(--font-display); color: var(--ink); }
.prop-card { color: inherit; text-decoration: none; }
.prop-card .panel { --p-h: 216px; --ground-bg: var(--p-surface); }
.prop-card .panel--photo { padding: 0; }
.prop-card .panel--photo .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .prop-card .panel { --p-h: 196px; } .lfacts { padding: var(--s-5); } }

/* the appointment form: the honeypot field stays out of sight and out of the tab order */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form select { width: 100%; }
.wa-note { list-style: none; padding: 0; margin: var(--s-7) 0 0; }
.wa-note li { display: flex; gap: var(--s-4); align-items: center; }
.wa-note img { width: 40px; height: 40px; flex: none; }
.form__status a { margin-left: var(--s-2); }

/* the footer, on every page: the ways to write to Marisa on the left, the office and its hours on the right */
.pie__top { align-items: start; }
.pie__lugar h3 { margin: var(--s-5) 0 0; }
.contacto { background: var(--p-inv-bg); color: var(--p-inv-ink); border-radius: var(--r-lg); padding: var(--s-6); display: grid; gap: var(--s-3); }
.contacto__t { margin: 0 0 var(--s-2); font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); color: inherit; }
.contacto__l { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4); border-radius: var(--r-md); background: var(--p-inv-surface); color: inherit; text-decoration: none; min-height: 44px; transition: background 160ms ease; }
.contacto__l:hover { background: color-mix(in oklab, var(--p-inv-surface) 80%, #b8914a); }
.contacto__l span { display: grid; gap: 2px; min-width: 0; }
.contacto__l small { color: var(--p-inv-muted); font-size: var(--t-small); overflow-wrap: anywhere; }
.contacto svg { width: 24px; height: 24px; flex: none; fill: none; stroke: #d2ae6a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contacto__zona { display: flex; gap: var(--s-3); align-items: center; margin: var(--s-2) 0 0; color: var(--p-inv-muted); font-size: var(--t-small); }
.contacto__zona svg { width: 20px; height: 20px; }
@media (max-width: 1023px) { .pie__top > .span-6, .pie__top > .span-5 { grid-column: 1 / -1; } }

/* the property list's filter */
.filtros { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-7); }
.filtros .btn[aria-pressed="true"], .filtros .btn[aria-pressed="true"]:hover { background: var(--p-ink); color: var(--p-bg); border-color: var(--p-ink); }

/* one property: the gallery and the facts */
.gal__main { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--p-surface); position: relative; display: grid; align-content: center; }
.gal__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* a photo that is still on its way: the facts with their icons stand in its place, and the photo fades in over them */
.foto-carga { opacity: 0; transition: opacity 320ms ease; }
.foto-carga.is-cargada { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .foto-carga { transition: none; } }
.gal__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-3); }
.gal__th { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; cursor: pointer; background: none; min-height: 44px; }
.gal__th[aria-pressed="true"] { border-color: var(--p-accent); }
.gal__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__empty { --p-h: 360px; --ground-bg: var(--p-surface); border-radius: var(--r-lg); }
.ficha__datos { list-style: none; margin: var(--s-6) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); }
.ficha__datos li { display: flex; align-items: center; gap: var(--s-3); }
.ficha__datos svg { width: 24px; height: 24px; fill: none; stroke: var(--p-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ficha__precio { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); margin: var(--s-4) 0 0; }
.ficha__desc { white-space: pre-line; max-width: 62ch; }

/* the property's state: Reservada, Vendida or Alquilada, on the card's picture and on the property page */
.estado-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font: 600 13px/1.2 var(--font-text); letter-spacing: 0.04em; text-transform: uppercase; background: var(--p-ink); color: var(--p-bg); }
.estado-tag--reservada { background: var(--p-accent); color: var(--p-accent-ink); }
.lcard__price > b { font: inherit; }
.lcard__price > .estado-tag { margin-left: var(--s-3); vertical-align: 3px; }
.prop-card .panel > .estado-tag { position: absolute; top: var(--s-4); left: var(--s-4); z-index: 2; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); }
.ficha__estado { margin: var(--s-4) 0 0; }
.ficha__acciones { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ficha__acciones .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-right: var(--s-2); }
.ficha__aviso + .ficha__acciones { margin-top: var(--s-4); }
.ficha__compartir { min-height: 1.5em; margin: var(--s-3) 0 0; font-size: var(--t-small); }
.ficha__compartir:empty { display: none; }
.ficha__aviso { margin: 0; padding: var(--s-4) var(--s-5); background: var(--p-surface); border-left: 3px solid var(--p-ink); border-radius: var(--r-sm); max-width: 46ch; }
.ficha__aviso .link { display: inline-block; margin-top: var(--s-2); }
.ficha__estado + .ficha__precio { margin-top: var(--s-3); }
