@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("./assets/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --brand-logo-size: clamp(112px, 10vw, 140px);
  --paper: #f8f8f8;
  --ink: #1a1a1a;
  --primary: #202020;
  --inverse: #111111;
  --white: #fff;
  --silver: #ededed;
  --line: #d7d7d7;
  --muted: #5b5b5b;
  --forest: #193d32;
  --forest-hover: #295345;
  --lime: #d9e8ac;
  --lime-hover: #e8f3c8;
  --accent-soft: #eff4e9;
  --focus: #50805a;
  --sans: Manrope, "Avenir Next", system-ui, sans-serif;
  --display: Fraunces, Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.5 var(--sans);
  font-synthesis: none;
  color-scheme: light;
  accent-color: var(--forest);
}

*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--lime); color: var(--ink); }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; min-width: 300px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; inset: 8px auto auto 8px; transform: translateY(-200%); background: var(--primary); color: white; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.shell { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
[data-icon] { display: inline-flex; flex: 0 0 auto; }
[data-icon] svg, .button > svg, .icon-button > svg { width: 20px; height: 20px; }
.button, .button-plain, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: .875rem;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button { border-radius: 9px; padding: 0 19px; }
.button-light { background: var(--lime); color: var(--forest); border-color: var(--lime); }
.button-light:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
.button-primary { background: var(--forest); color: white; border-color: var(--forest); }
.button-primary:hover { background: var(--forest-hover); border-color: var(--forest-hover); }
.button-outline { background: white; color: var(--forest); border-color: var(--line); }
.button-outline:hover { background: var(--accent-soft); border-color: var(--focus); }
.button-plain { color: var(--primary); background: transparent; padding: 0 4px; }
.button-plain:hover { color: var(--muted); }
.icon-button { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; color: var(--primary); background: white; border-color: var(--line); }
.icon-button:hover { background: var(--silver); }
.icon-button[aria-pressed="true"] { background: var(--lime); color: var(--forest); border-color: var(--forest); }
.icon-button[aria-pressed="true"] svg, .header-favorite[aria-pressed="true"] svg { fill: var(--forest); stroke: var(--forest); }

.site-header { background: var(--paper); }
.header-row { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; column-gap: 22px; min-height: 100px; }
.brand { width: max-content; display: inline-flex; align-items: center; justify-content: center; }
.brand img { object-fit: contain; flex: 0 0 auto; }
.site-header .brand { padding-block: 6px; }
.site-header .brand img { width: var(--brand-logo-size); height: var(--brand-logo-size); }
.header-links { display: flex; gap: clamp(23px, 3.4vw, 54px); align-items: center; white-space: nowrap; }
.header-links a { color: var(--muted); font-size: .9rem; font-weight: 750; padding-block: 12px; }
.header-links a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.header-account, .header-favorite { width: 44px; flex: none; border-radius: 8px; }
.header-account:hover, .header-favorite:hover { background: var(--accent-soft); color: var(--forest); }
#filter-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding-inline: 4px; border-radius: 100px; background: var(--lime); color: var(--forest); font-size: .75rem; line-height: 1; font-weight: 800; }
.menu-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 44px; padding: 0 14px 0 16px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--forest); font-size: .875rem; font-weight: 750; }
.menu-button:hover { background: var(--accent-soft); border-color: var(--focus); }
.hamburger { display: grid; gap: 4px; width: 18px; }
.hamburger i { width: 100%; height: 1px; background: currentColor; border-radius: 1px; }

.hero-frame {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(430px, 37vw, 530px);
  overflow: hidden;
  border-radius: 20px;
  background: #242424;
  color: var(--white);
}
.hero-image, .hero-frame::after { position: absolute; inset: 0; z-index: -1; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero-frame::after { content: ""; background: linear-gradient(90deg, rgba(12,12,12,.93) 0%, rgba(12,12,12,.66) 31%, rgba(12,12,12,.19) 65%, rgba(12,12,12,.02) 100%); }
.hero-content { padding: 56px 5.4% 61px; max-width: 825px; }
.hero-location { display: flex; gap: 7px; align-items: center; color: #eeeeee; font-size: .86rem; font-weight: 700; margin-bottom: 19px; }
.hero-location svg { width: 17px; height: 17px; color: var(--white); }
.hero h1 { font: 500 clamp(3.4rem, 6.05vw, 6.05rem)/.98 var(--display); letter-spacing: -.049em; text-wrap: balance; }
.hero-description { color: #eeeeee; font-size: clamp(1rem, 1.25vw, 1.13rem); line-height: 1.55; max-width: 395px; margin-top: 20px; }
.hero .button { margin-top: 27px; min-height: 50px; }

.catalog { padding-top: 54px; padding-bottom: 72px; }
.catalog-heading { display: flex; gap: 20px; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.catalog h2, .about h2 { font: 500 clamp(2.35rem, 4.3vw, 4.15rem)/1.04 var(--display); letter-spacing: -.047em; }
.section-subtitle { color: var(--muted); margin-top: 7px; max-width: 52ch; }
.view-tabs { display: none; }
.operation-tabs, .view-tabs { gap: 2px; align-items: center; padding: 4px; background: var(--silver); border: 1px solid var(--line); border-radius: 10px; }
.operation-tabs { display: flex; }
.operation-tabs button, .view-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px solid transparent; padding: 0 15px; color: var(--muted); background: transparent; border-radius: 7px; font-size: .875rem; font-weight: 750; }
.operation-tabs button:hover, .view-tabs button:hover { background: var(--accent-soft); color: var(--forest); }
.operation-tabs button[aria-pressed="true"], .view-tabs button[aria-pressed="true"] { color: white; background: var(--forest); border-color: var(--forest); box-shadow: 0 1px 3px #3333330f; }
.filters-button:has(#filter-count:not([hidden])) { border-color: var(--forest); color: var(--forest); background: var(--accent-soft); }
.view-tabs svg { width: 17px; height: 17px; }
.search-bar {
  display: grid;
  grid-template-columns: auto minmax(165px, 1fr) minmax(140px, 210px) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  box-shadow: 0 4px 14px #33333304;
}
.search-field { display: flex; align-items: center; gap: 10px; min-width: 0; padding-inline: 13px; }
.search-field svg { color: var(--muted); width: 21px; height: 21px; }
.search-field input { border: 0; min-height: 46px; width: 100%; padding: 0 3px; outline-offset: 0; color: var(--ink); }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-type { min-width: 0; }
select { color: var(--ink); appearance: none; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235b5b5b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center / 15px; }
.search-type select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 32px 0 12px; background-color: white; font-size: .875rem; font-weight: 700; }

.explorer { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: 23px; align-items: start; margin-top: 22px; }
.results-pane, .map-pane { min-width: 0; }
.results-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 42px; margin-bottom: 10px; color: var(--muted); font-size: .86rem; }
#result-count { color: var(--muted); font-weight: 800; }
.sort-field { display: inline-flex; align-items: center; gap: 5px; }
.sort-field select { min-height: 40px; padding: 0 22px 0 4px; border: 0; border-radius: 7px; color: var(--primary); background-color: transparent; background-position: right 3px center; font-size: .86rem; font-weight: 800; }
.property-list { display: grid; gap: 11px; }
.property-card { position: relative; display: grid; grid-template-columns: minmax(110px, 37%) minmax(0, 1fr); min-height: 150px; padding: 7px; border: 1px solid var(--line); overflow: hidden; border-radius: 13px; background: white; transition: border-color 160ms ease, box-shadow 160ms ease; }
.property-card:hover, .property-card.is-selected { border-color: #696969; box-shadow: 0 3px 11px rgba(0, 0, 0, .06); }
.property-card.is-selected { border-color: var(--forest); }
.card-media { position: relative; display: grid; min-width: 0; }
.card-media .card-image { min-height: 136px; border-radius: 8px; overflow: hidden; }
.card-image { position: relative; width: 100%; height: 100%; background: var(--silver); isolation: isolate; }
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-image .image-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #666666; }
.image-fallback svg { width: 28px; height: 28px; }
.card-favorite { position: absolute; z-index: 2; top: 6px; right: 6px; width: 44px; height: 44px; border-color: var(--paper); box-shadow: 0 2px 7px #1a1a1a20; }
.card-favorite svg { width: 19px; height: 19px; }
.card-content { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 7px 7px 0 13px; }
.card-location { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: .83rem; font-weight: 750; }
.card-location svg { flex: 0 0 auto; width: 15px; height: 15px; }
.card-location span { color: var(--muted); font-weight: 550; }
.card-content h3 { margin: 5px 0 6px; font-size: 1.01rem; line-height: 1.28; font-weight: 800; }
.card-title { border: 0; background: transparent; padding: 0; color: var(--ink); font: inherit; text-align: left; }
.card-title:hover { color: var(--forest-hover); }
.card-select::after { position: absolute; inset: 0; z-index: 1; cursor: pointer; content: ""; }
.card-select:focus-visible { outline: none; }
.card-select:focus-visible::after { box-shadow: inset 0 0 0 3px var(--focus); border-radius: 12px; }
.card-specs { display: flex; flex-wrap: wrap; gap: 3px 10px; color: var(--muted); font-size: .785rem; font-weight: 650; }
.card-specs > span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.card-specs svg { width: 15px; height: 15px; flex-shrink: 0; }
.card-bottom { display: flex; gap: 3px; justify-content: space-between; align-items: center; margin-top: auto; }
.card-price { color: var(--primary); font-size: 1.13rem; font-weight: 800; white-space: nowrap; letter-spacing: -.035em; }
.card-price small { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: 0; margin-left: 5px; }
.card-more { position: relative; z-index: 2; min-height: 44px; padding: 0 3px; border: 0; border-radius: 6px; background: transparent; color: var(--forest); font-size: .83rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.card-more:hover { color: var(--forest-hover); }
.map-pane { position: sticky; top: 20px; }
.property-map { min-height: 585px; height: min(665px, 75vh); min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--silver); }
@media (min-width: 791px) {
  body[data-page="inicio"] .map-pane { position: relative; top: auto; align-self: stretch; }
  body[data-page="inicio"] .property-map {
    position: sticky;
    top: 20px;
    height: 100%;
    min-height: 340px;
    max-height: 72rem;
  }
}
@media (min-width: 791px) and (max-width: 920px) {
  body[data-page="inicio"] .search-bar {
    grid-template-columns: auto minmax(0, 1fr) minmax(125px, .9fr) auto auto;
    gap: 6px;
  }
}
.favorite-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 5px 12px; border-radius: 8px; background: var(--silver); color: var(--primary); }
.favorite-banner > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .89rem; }
.favorite-banner .button-plain { white-space: normal; text-align: right; }
.empty-results { min-height: 227px; display: grid; justify-items: center; align-content: center; gap: 7px; padding: 20px; border: 1px dashed #aaaaaa; border-radius: 12px; text-align: center; }
.empty-results > svg { width: 30px; height: 30px; color: var(--muted); }
.empty-results p { color: var(--muted); font-size: .875rem; }
.empty-results .button { margin-top: 5px; }
.demo-caption { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: .84rem; margin-top: 16px; }
.demo-caption svg { width: 17px; height: 17px; }

.about { display: grid; grid-template-columns: 1.03fr 1fr; min-height: 350px; border-radius: 16px; overflow: hidden; background: var(--inverse); color: white; }
.about-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 45px 11%; }
.about-since { color: var(--white); font-size: .87rem; font-weight: 750; margin-bottom: 12px; }
.about h2 { font-size: clamp(2.25rem, 3.9vw, 3.85rem); }
.about h2 + p { color: var(--silver); max-width: 42ch; margin-top: 13px; }
.about .button { margin-top: 21px; }
.about-image { width: 100%; height: 100%; max-height: 430px; object-fit: cover; object-position: center; background: #242424; }

dialog { color: var(--ink); }
dialog::backdrop { background: rgba(12, 12, 12, .57); backdrop-filter: blur(3px); }
.menu-dialog { position: fixed; inset: 0 0 0 auto; width: min(540px, 100%); max-width: 100%; max-height: 100%; height: 100%; margin: 0; padding: 33px 38px; border: 0; border-left: 1px solid var(--line); background: var(--paper); overflow-y: auto; }
.menu-dialog[open] { display: flex; flex-direction: column; animation: drawer-in 240ms ease-out both; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-header .brand img { width: clamp(92px, 8vw, 102px); height: auto; }
.drawer-close { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); }
.drawer-close svg { width: 32px; height: 32px; }
.drawer-close:hover, .drawer-close:focus-visible { color: var(--forest); }
.drawer-close:focus-visible { outline-color: transparent; }
.drawer-close:focus-visible::after { content: ""; position: absolute; bottom: 5px; width: 22px; border-bottom: 2px solid currentColor; }
.drawer-links { display: grid; margin-block: auto; padding-block: 38px; }
.drawer-links a, .drawer-links button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--line); color: var(--primary); background: transparent; font: 500 clamp(2rem, 6vw, 3.5rem)/1.13 var(--display); letter-spacing: -.05em; text-align: left; }
.drawer-links a:hover, .drawer-links button:hover, .drawer-links [aria-current="page"] { color: var(--forest); }
.drawer-links [aria-current="page"] { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.drawer-links svg { width: 26px; height: 26px; }

.content-dialog { width: min(540px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 30px 80px #2121214d; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-heading h2 { font: 500 2.4rem/1.08 var(--display); letter-spacing: -.055em; }
.advanced-fields { display: grid; gap: 13px; margin-block: 15px 21px; }
.advanced-fields label { display: grid; gap: 6px; font-size: .9rem; font-weight: 750; }
.advanced-fields input, .advanced-fields select { min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; background-color: white; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1120px) {
  .header-actions { gap: 8px; }
  .header-row { column-gap: 14px; }
  .header-links { gap: clamp(12px, 1.75vw, 19px); }
  .menu-button { gap: 7px; padding-inline: 10px; }
}

@media (max-width: 1040px) {
  .shell { width: calc(100% - 58px); }
  .explorer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 13px; }
  .card-content { padding-left: 9px; }
  .card-specs { column-gap: 7px; }
}
@media (min-width: 791px) and (max-width: 880px) {
  .header-row { grid-template-columns: 1fr auto; }
  .header-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .header-actions { grid-column: 2; grid-row: 1; }
}

@media (max-width: 790px) {
  html { scroll-padding-top: max(8px, env(safe-area-inset-top)); }
  .shell { width: calc(100% - 36px); }
  .header-row { grid-template-columns: 1fr auto; min-height: 80px; }
  .header-links { display: none; }
  .hero-frame { min-height: 425px; border-radius: 15px; }
  .hero-content { padding: 40px 6% 45px; }
  .hero-image img { object-position: 65% center; }
  .hero-frame::after { background: linear-gradient(90deg, rgba(12,12,12,.89), rgba(12,12,12,.66) 43%, rgba(12,12,12,.19) 100%); }
  .hero h1 { font-size: clamp(3rem, 8.4vw, 4.7rem); }
  .catalog { padding-top: 39px; padding-bottom: 44px; }
  .catalog-heading { flex-wrap: wrap; align-items: flex-start; gap: 13px; margin-bottom: 14px; }
  .view-tabs {
    position: sticky;
    z-index: 5;
    top: max(8px, env(safe-area-inset-top));
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 13px auto 0;
    background: var(--silver);
    border-color: var(--line);
    box-shadow: 0 3px 9px #20202022;
  }
  .view-tabs button { min-width: 86px; min-height: 44px; }
  .explorer { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .explorer[data-view="list"] .map-pane, .explorer[data-view="map"] .results-pane { display: none; }
  .map-pane { position: static; }
  .property-map { min-height: min(410px, 62svh); height: min(560px, 67svh); scroll-margin-top: 64px; }
  body[data-page="inicio"] .property-map { height: min(650px, 76svh); }
  .search-bar { grid-template-columns: auto minmax(80px, 1fr) auto; gap: 7px; }
  .operation-tabs { grid-column: 1 / 3; justify-self: start; }
  .operation-tabs button, .sort-field select { min-height: 44px; }
  .filters-button { grid-column: 3; grid-row: 1; }
  .search-field { grid-column: 1 / 3; grid-row: 2; border: 1px solid var(--line); border-radius: 8px; padding-inline: 7px; }
  .search-submit { grid-column: 3; grid-row: 2; }
  .search-type { grid-column: 1 / -1; }
  .search-type select, .advanced-fields input, .advanced-fields select { font-size: 1rem; }
  .property-card { grid-template-columns: minmax(115px, 37%) minmax(0, 1fr); }
  .card-more { min-width: 64px; flex-shrink: 0; }
  .card-price { white-space: normal; line-height: 1.25; }
  .card-price small { display: inline-block; margin-left: 3px; white-space: nowrap; }
  .menu-dialog { overscroll-behavior-y: contain; }
  .content-dialog { max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))); overscroll-behavior-y: contain; }
  .about { grid-template-columns: 1fr; }
  .about-content { padding: 33px 7%; }
  .about-image { max-height: 245px; }
}
@media (max-width: 520px) {
  .header-row, .header-actions { gap: 2px; }
  .menu-button { padding-inline: 9px; }
}

@media (max-width: 460px) {
  .shell { width: calc(100% - 24px); }
  .site-header .shell { width: calc(100% - 30px); }
  .drawer-header .brand img { width: 78px; }
  .hero-frame { min-height: 375px; }
  .hero-content { padding: 28px 6% 51px; }
  .hero-location { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(2.52rem, 9.6vw, 3.55rem); }
  .hero-description { margin-top: 15px; }
  .hero .button { margin-top: 17px; min-height: 45px; }
  .section-subtitle { font-size: .94rem; }
  .search-bar { padding: 6px; }
  .search-bar .button { padding-inline: 10px; }
  .search-field input { font-size: 1rem; }
  .operation-tabs button { padding-inline: 12px; }
  .property-card { grid-template-columns: minmax(92px, 37%) minmax(0, 1fr); padding: 6px; }
  .card-specs { font-size: .75rem; }
  .card-specs svg { width: 13px; height: 13px; }
  .card-location { font-size: .78rem; }
  .card-favorite { top: 4px; right: 4px; }
  .card-content h3 { font-size: .96rem; }
  .card-price { font-size: 1.01rem; }
  .menu-dialog { padding: max(18px, env(safe-area-inset-top)) 19px max(18px, env(safe-area-inset-bottom)); }
  .drawer-links { padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
