/* Terrenitos de Jorgito. Royal blue main, gold complementary, brown accents, white
   background (owner 2026-11-04). No inline <style> or style="" anywhere: the CSP drops them.
   Contrast: white on --blue is about 7.1:1; ink on --gold about 7.3:1; cream on --brown-deep
   about 9:1. Gold is only ever a fill or an underline behind dark text, never small text on white. */
:root {
  --blue: #1f44c4;
  --blue-deep: #14297f;
  --gold: #d9a520;
  --gold-soft: #fbf1d2;
  --brown: #6a4429;
  --brown-deep: #4a2e1b;
  --cream: #f4e9df;
  --ink: #1a1f36;
  --muted: #5b6076;
  --line: #e6e8f0;
  --paper: #ffffff;
  --display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.5 var(--body); color: var(--ink); background: var(--paper); }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.icon-sheet { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -10000px; top: 0; background: var(--paper); color: var(--blue-deep); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 12px; font: 600 16px var(--body); text-decoration: none; cursor: pointer; }
.btn--blue { background: var(--blue); color: #fff; border-bottom: 4px solid var(--gold); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px var(--display); color: var(--blue-deep); text-decoration: none; }
.brand__icon { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.topbar__links { display: flex; align-items: center; gap: 28px; }
.topbar__link { color: var(--ink); font-weight: 600; text-decoration: none; padding-bottom: 2px; }
.topbar__link:hover { color: var(--blue); box-shadow: inset 0 -3px 0 var(--gold); }
.topbar__wa { min-height: 42px; padding: 0 16px; }

/* ---------- hero (the looping video goes here) ---------- */
.hero { position: relative; height: 240px; overflow: hidden; background: linear-gradient(120deg, #14297f, #1f44c4 50%, #3c6ae0); }
.hero__photo, .hero .site-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Jorge uploads any photo here, so the title gets a dark wash behind it: white
   text must stay readable over a bright sky or a white house. */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 20, 64, 0.72), rgba(10, 20, 64, 0.35) 55%, rgba(10, 20, 64, 0) 85%); }
.hero__title { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); top: 40px; max-width: 14em; color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--gold); }

/* ---------- Jorge: photo and social links ---------- */
.profile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 var(--gutter); margin-top: -52px; }
.photo { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, var(--gold), #f0cd6b); border: 4px solid var(--paper); box-shadow: 0 0 0 3px var(--blue); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__name { font-size: 26px; font-weight: 800; color: var(--blue-deep); }
.profile__role { margin: 4px 0 0; color: var(--brown); font-weight: 600; max-width: 32ch; text-wrap: balance; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.soc { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; background: var(--blue); color: #fff; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; }
.soc--wa { background: var(--gold); color: var(--ink); }
.soc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* icon only on a phone */

/* ---------- cities (the kit's folder-cards block) ---------- */
.cities { padding: 32px 0 8px; }
.cities__head { padding: 0 var(--gutter); }
.cities__head h2 { font-size: 24px; font-weight: 800; color: var(--blue-deep); }
.cities__head p { margin: 4px 0 14px; color: var(--muted); }
.cities__more { display: flex; justify-content: center; padding: 8px var(--gutter) 24px; margin: 0; }
.folder-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 14px; scrollbar-width: none; }
.folder-cards::-webkit-scrollbar { display: none; }
.folder-card { flex: 0 0 78%; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(20, 41, 127, 0.07); }
.folder-card__link { display: block; color: inherit; text-decoration: none; }
.folder-card__link:hover .folder-card__title { color: var(--blue); }
.folder-card__media { aspect-ratio: 16 / 10; background: var(--gold-soft); }
.folder-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.folder-card__body { padding: 12px 14px 16px; }
.folder-card__title { font-size: 19px; font-weight: 800; }
.folder-card__meta { margin: 4px 0 0; color: var(--brown); font-weight: 600; font-size: 14px; }

/* ---------- contact form ---------- */
.notice { display: none; margin: 0 var(--gutter) 16px; padding: 1rem; background: var(--gold-soft); border-left: 5px solid var(--gold); border-radius: 8px; }
.notice:target { display: block; }
.notice h2 { font-size: 20px; color: var(--brown-deep); }
.notice p { margin: 4px 0 0; }
.contact { padding: 16px var(--gutter) 40px; max-width: 40rem; margin: 0 auto; }
.contact h2 { font-size: 24px; font-weight: 800; color: var(--blue-deep); }
.contact__lede { margin: 6px 0 16px; color: var(--muted); }
.form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; }
input, select, textarea { font: inherit; padding: 0.65rem; border: 1px solid #b9bdca; border-radius: 8px; background: var(--paper); color: var(--ink); }
.hint { margin: 0; color: var(--muted); }
.form-error { margin: 0; padding: 0.5rem 0.75rem; border-left: 4px solid #a4262c; background: #fdecec; color: #8a1f24; font-weight: 600; }
[aria-invalid="true"] { border-color: #a4262c; border-width: 2px; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; color: var(--blue-deep); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.foot { background: var(--brown-deep); color: var(--cream); padding: 28px var(--gutter) 22px; font-size: 14px; }
.foot a { color: #fff; }
.foot__grid { display: grid; gap: 22px; max-width: 70rem; margin: 0 auto; }
.foot strong { display: block; color: #fff; font: 800 19px var(--display); margin-bottom: 6px; }
.foot h3 { margin: 0 0 6px; font: 600 12px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); }
.foot p { margin: 0 0 4px; }
.foot__credit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; max-width: 70rem; margin: 20px auto 0; padding-top: 14px; border-top: 1px solid rgba(244, 233, 223, 0.3); }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root { --gutter: 56px; }
  .topbar { padding-block: 16px; }
  .hero { height: 400px; }
  .hero__title { top: 88px; font-size: 54px; line-height: 1.04; }
  .profile { flex-direction: row; align-items: flex-start; text-align: left; gap: 28px; margin-top: -84px; }
  .photo { width: 168px; height: 168px; border-width: 6px; box-shadow: 0 0 0 4px var(--blue); }
  .profile__who { padding-top: 96px; }
  .profile__name { font-size: 36px; }
  .profile__role { max-width: none; font-size: 17px; }
  .socials { justify-content: flex-start; margin-top: 12px; }
  .soc { padding: 0 16px 0 12px; }
  .soc span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .cities { padding-top: 56px; }
  .cities__head h2 { font-size: 32px; }
  .cities__head p { font-size: 16px; margin-bottom: 22px; }
  .folder-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible; }
  .folder-card__body { padding: 16px 18px 18px; }
  .folder-card__title { font-size: 23px; }
  .foot__grid { grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; }
}
@media (max-width: 640px) {
  .topbar__link { display: none; }
  .topbar__links { gap: 12px; }
  .brand { font-size: 17px; }
}
/* Jorge's banner video (the kit's site-video-hero block) is decoration: a visitor
   who asks for less motion gets the still photo behind it. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero .site-video { display: none; } }

/* ================= listings pages (public/_listings/*, filled by the kit) =================
   Same look as the home: blue, gold and brown on white. The kit writes the markup (classes
   only); this is the CSS for it. No prices anywhere (D9). */
.wrap { max-width: 70rem; margin: 0 auto; padding: 24px var(--gutter); }
.topbar__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.btn--outline { background: var(--paper); color: var(--blue-deep); border: 2px solid var(--blue); min-height: 44px; padding: 0 16px; }
.btn .ico { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.listings-page { max-width: 70rem; margin: 0 auto; padding-bottom: 40px; }
.page-head { padding: 24px var(--gutter) 8px; }
.page-head h1, .listing-title { font-size: 28px; font-weight: 800; color: var(--blue-deep); letter-spacing: -0.01em; text-wrap: balance; }
.page-head > p { margin: 6px 0 0; color: var(--muted); }
.page-head__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--blue); }
.back-link .ico, .share-btn .ico { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.share-btn[hidden] { display: none; }
.page-block { padding: 20px var(--gutter) 8px; }
.page-block > h2 { font-size: 22px; font-weight: 800; color: var(--blue-deep); margin-bottom: 12px; }
.page-block--cities:not(:has(.folder-card)) { display: none; }
.page-block .folder-cards { padding-inline: 0; }

/* title block (the kit's listing-head) */
.listing-head { margin: 0; }
.listing-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.listing-badge { padding: 3px 12px; border-radius: 999px; font: 700 13px var(--body); background: var(--gold-soft); color: var(--brown-deep); border: 1px solid var(--gold); }
.listing-badge--pending { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.listing-badge--sold { background: var(--brown); color: #fff; border-color: var(--brown); }
.listing-meta { margin: 6px 0 0; color: var(--brown); font-weight: 600; }
.folder-head .listing-description { margin-top: 8px; color: var(--muted); max-width: 60ch; }

/* cards (listing-cards and the finder) */
.listing-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.listing-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(20, 41, 127, 0.07); }
.listing-card__link { display: block; color: inherit; text-decoration: none; }
.listing-card__link:hover .listing-card__title { color: var(--blue); }
.listing-card__media { aspect-ratio: 16 / 10; background: var(--gold-soft); }
.listing-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.listing-card__body { padding: 12px 14px 16px; }
.listing-card__title { font-size: 18px; font-weight: 800; }
.listing-card__body .listing-badges { margin: 6px 0 0; }
.listing-card__meta { margin: 6px 0 0; color: var(--brown); font-weight: 600; font-size: 14px; }
.listing-empty { color: var(--muted); }

.listing-finder { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 16px; padding: 14px; background: var(--gold-soft); border-radius: 14px; }
.listing-finder__field { display: grid; gap: 4px; font-size: 14px; }
.listing-finder__submit { grid-column: 1 / -1; min-height: 48px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; border-bottom: 4px solid var(--gold); font: 600 16px var(--body); cursor: pointer; }
.listings-clear { display: none; margin: 0 0 12px; }
.listings-index:has(.listing-finder option:checked:not([value=""])) .listings-clear { display: block; }
.listings-empty { margin-top: 8px; padding: 20px; background: var(--gold-soft); border-left: 5px solid var(--gold); border-radius: 8px; }
.listings-empty h3 { font-size: 20px; color: var(--brown-deep); }
.listings-empty p { margin: 6px 0 14px; }
.listings-index:has(.listing-card) .listings-empty { display: none; }

/* a property */
.property__grid { display: grid; gap: 24px; padding: 8px var(--gutter) 0; }
.listing-gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.listing-gallery::-webkit-scrollbar { display: none; }
.listing-photo { flex: 0 0 88%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--gold-soft); }
.listing-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.property__details { margin-top: 24px; }
.property__details h2 { font-size: 22px; font-weight: 800; color: var(--blue-deep); margin-bottom: 10px; }
.listing-facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.listing-facts-list dt, .listing-facts-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.listing-facts-list dt { padding-right: 20px; color: var(--brown); font-weight: 700; }
.listing-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.listing-features li { padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--brown-deep); font-weight: 600; font-size: 14px; }
.listing-description p { margin: 0 0 12px; max-width: 60ch; }
.ask { padding: 18px; background: var(--gold-soft); border-radius: 16px; border-left: 5px solid var(--gold); }
.ask h2 { font-size: 21px; font-weight: 800; color: var(--brown-deep); }
.ask p { margin: 6px 0 14px; }
.listings-page > .page-block > .ask { margin-top: 24px; }
.property__aside { display: grid; gap: 18px; align-content: start; }
.form-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 10px rgba(20, 41, 127, 0.07); }
.form-card h2 { font-size: 21px; font-weight: 800; color: var(--blue-deep); }

/* a property or folder that is gone (410) */
.gone { padding: 40px var(--gutter) 56px; max-width: 40rem; }
.gone h1 { font-size: 28px; font-weight: 800; color: var(--blue-deep); }
.gone p { margin: 10px 0 20px; color: var(--muted); }

@media (min-width: 900px) {
  .page-head { padding-top: 40px; }
  .page-head h1, .listing-title { font-size: 40px; }
  .page-block { padding-top: 32px; }
  .page-block .folder-cards { grid-template-columns: repeat(3, 1fr); }
  .listing-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .listing-finder { grid-template-columns: repeat(3, 1fr) auto; }
  .listing-finder__submit { grid-column: auto; padding: 0 28px; }
  .property__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; }
  .listing-gallery { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
  .listing-photo { flex: none; aspect-ratio: 4 / 3; }
  .listing-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .property__aside { position: sticky; top: 16px; }
}
