/* DigiArch — custom additions layered on top of compiled Tailwind bundle. */

.property-description__lead {
  display: block;
  margin-top: 0.5rem;
  color: #fff;
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
}

/* Slightly smaller, proportional H1 scale across screen sizes. */
h1:not(.sr-only):not(.hero-main-title) {
  font-size: 1.6875rem;
}

.hero-main-title {
  font-size: clamp(1.8rem, 3.6vw, 5.4rem);
}

@media (min-width: 768px) {
  h1:not(.sr-only):not(.hero-main-title) {
    font-size: 2.7rem;
  }
}

/* Reveal-on-scroll (replaces framer-motion whileInView). */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.6, 0.05, 0.1, 0.95),
              transform 0.9s cubic-bezier(0.6, 0.05, 0.1, 0.95);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-y20 {
  transform: translateY(20px);
}
.reveal.reveal-y30 {
  transform: translateY(30px);
}
.reveal.reveal-y14 {
  transform: translateY(14px);
}
.reveal.reveal-delay-1 { transition-delay: 0.08s; }
.reveal.reveal-delay-2 { transition-delay: 0.16s; }
.reveal.reveal-delay-3 { transition-delay: 0.24s; }
.reveal.reveal-delay-4 { transition-delay: 0.32s; }
.reveal.reveal-delay-5 { transition-delay: 0.40s; }
.reveal.reveal-delay-6 { transition-delay: 0.48s; }
.reveal.reveal-delay-7 { transition-delay: 0.56s; }
.reveal.reveal-delay-8 { transition-delay: 0.64s; }
.reveal.reveal-delay-fast { transition-duration: 0.8s; }

/* Hero letters animate immediately on load. */
.hero-fade {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFade 1.1s cubic-bezier(0.6, 0.05, 0.1, 0.95) 0.1s forwards;
}
.hero-fade.hero-fade-small {
  transform: translateY(14px);
  animation-duration: 0.8s;
  animation-delay: 0s;
}
.hero-fade.hero-fade-delay {
  animation-delay: 0.4s;
}
.hero-fade.hero-fade-delay-2 {
  animation-delay: 0.15s;
}

/* Reduce the space before the hero price block on mobile and tablet. */
@media (max-width: 1023px) {
  .hero-main-title {
    margin-top: 1rem;
  }
  .hero-property-meta {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-property-summary {
    margin-top: -1.5rem;
  }
  .hero-property-price {
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-property-summary {
    margin-top: 0;
  }
}

a.sodio {
  width: 25px;
  height: 7px;
  background-image: url("https://www.sodio.com.uy/sodio.png");
  background-repeat: no-repeat;
  background-position: left top;
  display: block;
  float: left;
  margin-top: 20px;
}

a.sodio:hover,
a.sodio:active {
  background-position: left bottom;
}

/* Homepage hero slider. */
.hero-slider {
  isolation: isolate;
  background: #0d0d0d;
}
.hero-slider__media { background: #0d0d0d; }
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}
.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider__contents {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
}
.hero-slider__content {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.hero-slider__content.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-slider__overlay {
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.88),
    rgba(13, 13, 13, 0.32),
    rgba(13, 13, 13, 0.94)
  );
}
.hero-slider__controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(-50%);
}
.hero-slider__dots {
  display: flex;
  gap: 0.6rem;
}
.hero-slider__dot {
  width: 2rem;
  height: 0.2rem;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.25s ease, width 0.25s ease;
}
.hero-slider__dot:hover,
.hero-slider__dot:focus-visible,
.hero-slider__dot.is-active { background: #e5261f; }
.hero-slider__dot.is-active { width: 3rem; }
.hero-slider__toggle {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.hero-slider__toggle:hover,
.hero-slider__toggle:focus-visible { color: #e5261f; }

.hero-property-meta {
  color: #ffffff;
}

.hero-property-location {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.5rem;
  background: #e5261f;
  color: #ffffff;
}

.hero-property-meta__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.hero-property-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #0d0d0d;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.15em;
}

.hero-property-stat strong {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

@media (min-width: 768px) {
  .hero-slider__overlay {
    background: linear-gradient(
      to bottom,
      rgba(13, 13, 13, 0.85),
      rgba(13, 13, 13, 0.52),
      rgba(13, 13, 13, 0.92)
    );
  }
}

@media (min-width: 1024px) {
  .hero-slider__overlay {
    background: linear-gradient(
      to bottom,
      rgba(13, 13, 13, 0.8),
      rgba(13, 13, 13, 0.42),
      rgba(13, 13, 13, 0.88)
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide,
  .hero-slider__content { transition: none; }
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header — starts transparent on the hero page, becomes solid after scroll. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: background-color 0.5s cubic-bezier(0.6, 0.05, 0.1, 0.95),
              color 0.5s cubic-bezier(0.6, 0.05, 0.1, 0.95),
              border-color 0.5s cubic-bezier(0.6, 0.05, 0.1, 0.95),
              backdrop-filter 0.5s cubic-bezier(0.6, 0.05, 0.1, 0.95);
}

.site-header__logo {
  width: clamp(10rem, 15vw, 15rem);
}

.about-hero-image {
  aspect-ratio: 4 / 3;
}

.about-founder-image {
  aspect-ratio: 4 / 5;
}

.about-values {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .about-hero-image {
    aspect-ratio: 16 / 8;
  }

  .about-founder-image {
    aspect-ratio: 4 / 3;
  }

  .about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .about-hero-image {
    aspect-ratio: 16 / 7;
  }

  .about-values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.site-header.is-transparent {
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.88), rgba(13, 13, 13, 0.68));
  color: #ffffff;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header.is-solid {
  background: rgba(245, 241, 234, 0.85);
  color: #1D1D1B;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html.dark .site-header.is-solid {
  background: rgba(13, 13, 13, 0.85);
  color: #ffffff;
  border-bottom-color: rgba(245, 241, 234, 0.05);
}

/* CTA button in header — swap look between transparent and solid states. */
.header-cta-transparent {
  background-color: #E5261F;
  color: #ffffff;
  /* background-color: #ffffff;
  color: #1D1D1B; */
}
.header-cta-transparent:hover {
  background-color: #E5261F;
  color: #ffffff;
}
.header-cta-solid {
  background-color: #1D1D1B;
  color: #ffffff;
}
.header-cta-solid:hover {
  background-color: #E5261F;
}
html.dark .header-cta-solid {
  background-color: #ffffff;
  color: #1D1D1B;
}
html.dark .header-cta-solid:hover {
  background-color: #E5261F;
  color: #ffffff;
}
.site-header.is-transparent .header-cta-solid { display: none; }
.site-header.is-solid       .header-cta-transparent { display: none; }
.site-header:not(.is-transparent):not(.is-solid) .header-cta-transparent { display: none; }

/* Project filter hide/show — class based (no inline style). */
.is-hidden { display: none !important; }

/* Contact form fields — extracted from the React inline <style> block. */
.input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  opacity: 0.95;
  padding: 0.85rem 0;
  font-size: 1rem;
  color: inherit;
  transition: border-color 0.3s ease;
  font-family: inherit;
}
.input:focus { border-color: #E5261F; }
.input::placeholder { color: #8a8378; opacity: 1; }
select.input {
  min-height: 3.25rem;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  cursor: pointer;
}

select option {
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  color: #1d1d1b;
  font-size: 1rem;
  line-height: 1.5;
}
.input-resize-none { resize: none; }

/* Form status message. */
.form-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #E5261F;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.form-status.is-visible { opacity: 1; }

/* Homepage property search. */
.business-opportunities {
  padding-top: 3rem;
}
.business-card-media--wide {
  aspect-ratio: 3 / 4;
}
@media (min-width: 768px) {
  .business-opportunities { padding-top: 5rem; }
  .business-card-media--wide { aspect-ratio: 16 / 10; }
}

.property-search {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0;
  background: #f5f1ea;
  color: #1d1d1b;
}
.property-listing-header {
  padding-top: 8.5rem;
}
html.dark .property-search {
  background: #0d0d0d;
  color: #f5f1ea;
}
.property-search__panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  color: #1d1d1b;
  border: 0;
  box-shadow: 0 20px 55px rgba(13, 13, 13, 0.12);
}
.property-search__mobile-toggle {
  display: none;
  width: 100%;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border: 1px solid rgba(29, 29, 27, 0.14);
  background: #fff;
  color: #1d1d1b;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 12px 30px rgba(13, 13, 13, 0.1);
}
.property-search__mobile-toggle [data-search-collapse-state] {
  color: #e5261f;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .property-search--collapsible.is-collapse-ready { padding: 1rem 0; }
  .property-search--collapsible.is-collapse-ready .property-search__mobile-toggle { display: flex; }
  .property-search--collapsible.is-collapse-ready:not(.is-expanded) .property-search__panel { display: none; }
  .property-search--collapsible.is-expanded .property-search__panel { margin-top: 0.75rem; }
}
html.dark .property-search__panel {
  background: #ffffff;
  color: #1d1d1b;
}
.property-search__heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(29, 29, 27, 0.12);
}
html.dark .property-search__heading { border-bottom-color: rgba(29, 29, 27, 0.12); }
.property-search__fields {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.property-search__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.5rem;
}
.property-search__field[hidden] {
  display: none;
}
.property-search__field > span {
  color: #e5261f;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.property-search__field input,
.property-search__field select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 2rem 0 0;
  border: 0;
  border-bottom: 1px solid rgba(29, 29, 27, 0.28);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  transition: border-color 0.25s ease;
}
html.dark .property-search__field input,
html.dark .property-search__field select { border-bottom-color: rgba(29, 29, 27, 0.28); }
.property-search__field input:focus,
.property-search__field select:focus { border-bottom-color: #e5261f; }
.property-search__field input::placeholder { color: #8a8378; opacity: 1; }
.property-search__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding: 0.7rem 2.5rem 0.7rem 0.75rem;
  cursor: pointer;
}
html.dark .property-search__field option { padding: 0.75rem 1rem; background: #ffffff; color: #1d1d1b; }
.search-multiselect {
  position: relative;
  min-width: 0;
}
.search-multiselect[open] { z-index: 40; }
.search-multiselect summary {
  position: relative;
  min-height: 2.75rem;
  padding: 0.7rem 2rem 0.7rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(29, 29, 27, 0.28);
  cursor: pointer;
  list-style: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-multiselect summary::-webkit-details-marker { display: none; }
.search-multiselect summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.search-multiselect[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.search-multiselect.has-selection summary {
  border-bottom-color: #e5261f;
  color: #1d1d1b;
  font-weight: 500;
}
.search-multiselect.has-selection summary::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #e5261f;
  vertical-align: 0.08rem;
}
.search-multiselect__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 30;
  width: max(100%, 18rem);
  padding: 0.75rem;
  border: 1px solid rgba(29, 29, 27, 0.14);
  background: #fff;
  box-shadow: 0 18px 45px rgba(13, 13, 13, 0.18);
}
.search-multiselect--location .search-multiselect__panel { width: max(100%, 25rem); }
.property-search__field .search-multiselect__search {
  min-height: 2.5rem;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}
.search-multiselect__options {
  max-height: 16rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-multiselect__selected {
  display: flex;
  max-height: 7rem;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0 0 0.65rem;
  overflow-y: auto;
  border-bottom: 1px solid rgba(29, 29, 27, 0.12);
}
.search-multiselect__selected[hidden] { display: none; }
.search-multiselect__chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(229, 38, 31, 0.35);
  border-radius: 999px;
  background: rgba(229, 38, 31, 0.08);
  color: #1d1d1b;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.2;
}
.search-multiselect__chip span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-multiselect__chip span:last-child {
  color: #e5261f;
  font-size: 1rem;
  line-height: 0.75;
}
.search-multiselect__chip:hover,
.search-multiselect__chip:focus-visible {
  border-color: #e5261f;
}
.search-multiselect__options label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.25;
}
.search-multiselect__options label:hover { background: rgba(229, 38, 31, 0.07); }
.search-multiselect__options label.is-selected {
  background: rgba(229, 38, 31, 0.1);
  color: #1d1d1b;
  font-weight: 600;
}
.search-multiselect__options label[hidden],
.search-multiselect__group[hidden] { display: none; }
.property-search__field .search-multiselect input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  min-height: 1rem;
  flex: 0 0 1rem;
  padding: 0;
  accent-color: #e5261f;
}
.search-multiselect__group + .search-multiselect__group {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(29, 29, 27, 0.14);
}
.search-multiselect__department {
  padding: 0.6rem 0.75rem !important;
  background: rgba(229, 38, 31, 0.06);
  color: #e5261f;
  font-weight: 700;
}
.search-multiselect__city-option {
  padding-left: 1.5rem !important;
  font-weight: 600;
}
.search-multiselect__zone-option {
  margin-left: 1.5rem;
  padding-left: 1.5rem !important;
  border-left: 1px solid rgba(29, 29, 27, 0.16);
}
@media (max-width: 767px) {
  .search-multiselect__panel,
  .search-multiselect--location .search-multiselect__panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    max-height: min(70vh, 32rem);
  }
  .search-multiselect__options { max-height: min(55vh, 25rem); }
}
.property-search__submit {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 1.25rem;
  border: 1px solid #e5261f;
  background: #e5261f;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.property-search__submit:hover,
.property-search__submit:focus-visible { background: transparent; color: #e5261f; }

@media (min-width: 768px) {
  .property-search { padding: 4rem 0; }
  .property-search__field > span { letter-spacing: 0.24em; }
  .property-search__panel {
    padding: 2rem;
  }
  .property-search__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .property-search__field > span { letter-spacing: 0.1em; }
  .property-search__fields {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1200px) {
  .property-search__field > span { letter-spacing: 0.1em; }
  .property-search__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
  }
  .property-search__fields {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .property-search__submit { min-width: 8.5rem; }
}

@media (min-width: 1440px) {
  .property-search__field > span { letter-spacing: 0.18em; }
}

/* Property results: list and map views. */
.property-results__toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.property-results__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
}

.property-sort {
  display: grid;
  gap: 0.35rem;
}

.property-sort label {
  color: #8a8378;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.property-sort select {
  min-width: 13rem;
  padding: 0.72rem 2.5rem 0.72rem 0.9rem;
  border: 1px solid rgba(138, 131, 120, 0.35);
  background-color: transparent;
  color: currentColor;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html.dark .property-sort select { background-color: #1d1d1b; color: #f4f0e8; }

.property-view-toggle {
  display: inline-flex;
  padding: 0.25rem;
  border: 1px solid rgba(138, 131, 120, 0.35);
}

.property-view-toggle button {
  min-width: 5.5rem;
  padding: 0.7rem 1rem;
  color: #8a8378;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.property-view-toggle button:hover,
.property-view-toggle button:focus-visible {
  color: currentColor;
}

.property-view-toggle button.is-active {
  background: #e5261f;
  color: #fff;
}

.property-view-toggle button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.property-results__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem 2rem;
}

.property-card {
  min-width: 0;
}

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  background: rgba(29, 29, 27, .35);
  backdrop-filter: blur(8px);
}

.favorite-button.is-active { color: #c97657; background: #fff; }
.favorite-detail { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--color-ash, #777); }
.favorite-detail.is-active { color: #c97657; }

.property-card__media {
  aspect-ratio: 4 / 3;
}

.property-results__empty {
  padding: 5rem 0;
  text-align: center;
}

.property-results__map {
  position: relative;
  scroll-margin-top: 7rem;
}

.property-results__map[hidden],
[data-property-list][hidden] {
  display: none;
}

#property-results-map {
  width: 100%;
  height: clamp(30rem, 70vh, 50rem);
  background: #dedbd4;
}

.property-map__status:not(:empty) {
  padding: 2rem;
  border: 1px solid rgba(229, 38, 31, 0.35);
  color: #e5261f;
  text-align: center;
}

.property-map-popup {
  min-width: 12rem;
  color: #1d1d1b;
  font-family: Inter, sans-serif;
}

.property-map-popup__location {
  color: #8a8378;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.property-map-popup__title {
  margin-top: 0.45rem;
  font-family: Fraunces, serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.15;
}

.property-map-popup__price {
  margin-top: 0.45rem;
  font-weight: 500;
}

.property-map-popup__link {
  display: inline-block;
  margin-top: 0.8rem;
  color: #e5261f;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.property-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(138, 131, 120, 0.3);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.property-pagination > :first-child { grid-column: 1; grid-row: 2; }

.property-pagination > :last-child {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  text-align: right;
}

.property-pagination a {
  transition: color 0.25s ease;
}

.property-pagination a:hover,
.property-pagination a:focus-visible {
  color: #e5261f;
}

.property-pagination__pages {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.property-pagination__ellipsis { cursor: default; color: #8a8378; }

.property-pagination__pages a,
.property-pagination__pages span {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
}

.property-pagination__pages .is-active {
  background: #e5261f;
  color: #fff;
}

.property-pagination .is-disabled {
  color: #8a8378;
  opacity: 0.45;
}

@media (min-width: 768px) {
  .property-listing-header {
    padding-top: 10rem;
  }

  .property-results__toolbar {
    flex-direction: row;
    align-items: center;
  }

  .property-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .property-pagination { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .property-pagination > :first-child,
  .property-pagination > :last-child,
  .property-pagination__pages { grid-column: auto; grid-row: auto; }
}

@media (min-width: 1200px) {
  .property-results__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Individual property page. */
.property-detail__header {
  padding-top: 8.5rem;
  padding-bottom: 3rem;
}

.property-detail__cover {
  aspect-ratio: 4 / 3;
}

.property-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

.property-detail__facts > div { min-width: 0; }
.property-detail__facts > div p:last-child { overflow-wrap: anywhere; }

.property-detail__characteristic-groups {
  display: grid;
  gap: 2.5rem;
}

.property-detail__characteristic-group + .property-detail__characteristic-group {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(138, 131, 120, 0.3);
}

.property-detail__characteristic-group > .property-detail__facts {
  margin-top: 1.5rem;
}

.property-detail__gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.property-detail__gallery-item {
  aspect-ratio: 4 / 3;
}

.property-detail__map {
  width: 100%;
  height: clamp(26rem, 60vh, 42rem);
  background: #dedbd4;
}

.property-inquiry__submit {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.25rem;
  border: 1px solid #e5261f;
  background: #e5261f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.property-inquiry__submit:hover,
.property-inquiry__submit:focus-visible {
  background: transparent;
  color: #e5261f;
}

@media (min-width: 768px) {
  .property-detail__header {
    padding-top: 10rem;
    padding-bottom: 4rem;
  }

  .property-detail__cover {
    aspect-ratio: 16 / 8;
  }

  .property-detail__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .property-detail__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .property-detail__gallery-item.is-featured {
    grid-column: span 2;
    aspect-ratio: 16 / 8;
  }
}

@media (min-width: 1024px) {
  .property-detail__characteristic-group {
    display: grid;
    grid-template-columns: minmax(12rem, 3fr) minmax(0, 9fr);
    gap: 2rem;
    align-items: start;
  }

  .property-detail__characteristic-group > .property-detail__facts {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    margin-top: 0;
  }
}

@media (min-width: 1200px) {
  .property-detail__facts {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  }
}

/* Individual real-estate project page. */
.contact-page__header {
  padding-top: 8.5rem;
  padding-bottom: 3rem;
}

.contact-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5rem;
}

.contact-page__details {
  display: grid;
  align-content: start;
  gap: 3rem;
}

.contact-page__direct {
  border-top: 1px solid rgba(138, 131, 120, 0.3);
}

.contact-page__direct > p {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(138, 131, 120, 0.3);
}

.contact-page__direct a {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(138, 131, 120, 0.3);
  transition: color 0.25s ease;
}

.contact-page__direct a:hover,
.contact-page__direct a:focus-visible {
  color: #e5261f;
}

.contact-page__direct span {
  color: #8a8378;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-page__direct strong {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 300;
  overflow-wrap: anywhere;
}

.contact-page__form {
  min-width: 0;
}

.contact-page__submit {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.4rem;
  border: 1px solid #e5261f;
  background: #e5261f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.contact-page__submit:hover,
.contact-page__submit:focus-visible {
  background: transparent;
  color: #e5261f;
}

.uruguay-hero {
  isolation: isolate;
  background: #0d0d0d;
}

.uruguay-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uruguay-hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.72),
    rgba(13, 13, 13, 0.38),
    rgba(13, 13, 13, 0.88)
  );
}

#datos {
  scroll-margin-top: 6rem;
}

.uruguay-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(138, 131, 120, 0.25);
}

.uruguay-facts article {
  min-height: 10rem;
  padding: 1.5rem;
  background: #f4f1ea;
}

html.dark .uruguay-facts article {
  background: #1d1d1b;
}

.uruguay-facts strong,
.uruguay-facts span {
  display: block;
}

.uruguay-facts strong {
  color: #e5261f;
  font-family: "Fraunces", serif;
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  font-weight: 300;
}

.uruguay-facts span {
  margin-top: 2rem;
  color: #8a8378;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.uruguay-benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: rgba(138, 131, 120, 0.25);
}

.uruguay-benefits article {
  min-height: 17rem;
  padding: 2rem;
  background: #f4f1ea;
}

html.dark .uruguay-benefits article {
  background: #1d1d1b;
}

.uruguay-benefits h3,
.uruguay-places h3 {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 300;
}

.uruguay-benefits h3 {
  margin-top: 0;
}

.uruguay-benefits p,
.uruguay-places p {
  margin-top: 1rem;
  color: #8a8378;
  font-size: 0.9rem;
  line-height: 1.7;
}

.uruguay-places {
  border-top: 1px solid rgba(138, 131, 120, 0.3);
}

.uruguay-places__heading {
  margin-bottom: 5rem;
}

.uruguay-places article {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(138, 131, 120, 0.3);
}

.uruguay-places h3 {
  margin-top: 0.5rem;
}

.uruguay-places p {
  margin-top: 0;
}

.uruguay-places a {
  align-self: center;
  color: #e5261f;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-listing-header {
  padding-top: 8.5rem;
  padding-bottom: 3rem;
}

.project-filters {
  padding: 1.5rem 0;
}

.project-filters__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
}

.project-filter__field > span {
  display: block;
  margin-bottom: 0.55rem;
  color: #e5261f;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-filters__clear {
  align-self: center;
  color: #8a8378;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-transform: uppercase;
}

.project-listing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4rem 1.5rem;
}

.project-listing-card__media {
  aspect-ratio: 4 / 3;
}

.project-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

.project-feature {
  min-height: 9rem;
  padding: 1.75rem;
}

.project-features__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
}

.project-feature span {
  color: #e5261f;
  font-size: 1.5rem;
  line-height: 1;
}

.project-feature p {
  margin-top: 2.25rem;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 300;
}

.project-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(138, 131, 120, 0.35);
}

.project-progress span {
  display: block;
  height: 100%;
  background: #e5261f;
}

.project-units__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .contact-page__header {
    padding-top: 10rem;
    padding-bottom: 4rem;
  }

  .uruguay-places__heading {
    margin-bottom: 6rem;
  }

  .uruguay-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .uruguay-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uruguay-places article {
    grid-template-columns: 1.1fr 1.5fr auto;
    align-items: center;
  }

  .project-listing-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
  }

  .project-filters__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-filters__clear {
    grid-column: 1 / -1;
  }

  .project-listing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-detail__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-units__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .contact-page__layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 6rem;
  }

  .uruguay-facts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .uruguay-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-filters__form {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  }

  .project-filters__clear {
    grid-column: auto;
  }

  .project-listing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-detail__facts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .project-features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-units__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Primary nav dropdown */
.site-navigation {
  display: none;
  align-self: stretch;
}

.site-menu-toggle {
  display: flex;
}

@media (min-width: 1280px) {
  .site-navigation {
    display: flex;
  }

  .site-menu-toggle {
    display: none;
  }
}

.site-navigation > .nav-item {
  height: 100%;
}
.site-nav-link {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  letter-spacing: clamp(0.04em, calc(0.02em + 0.04vw), 0.08em);
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  line-height: 1.2;
}
.nav-dropdown {
  position: absolute;
  left: 0;
  top: calc(50% + 0.75rem);
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav-dropdown a {
  font-size: 1rem;
  line-height: 1.5;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  color: #e5261f;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

/* Fullscreen mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
body.menu-open {
  overflow: hidden;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
@media (min-width: 768px) {
  .lightbox { padding: 3rem; }
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: lightboxIn 0.5s cubic-bezier(0.6, 0.05, 0.1, 0.95);
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Keyboard access and motion preferences. These rules do not alter the
   pointer-driven visual design. */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #1d1d1b;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #e5261f !important;
  outline-offset: 3px !important;
}

.input::placeholder { color: #aaa49b; }
.property-search__field input::placeholder { color: #6b655d; }

html.dark .form-status,
html.dark .property-inquiry__submit:hover,
html.dark .property-inquiry__submit:focus-visible,
html.dark .contact-page__submit:hover,
html.dark .contact-page__submit:focus-visible,
html.dark .contact-page__direct a:hover,
html.dark .contact-page__direct a:focus-visible {
  color: #ff6b65;
}

.hero-slider__dot {
  position: relative;
  height: 2rem;
  background: transparent;
}
.hero-slider__dot:hover,
.hero-slider__dot:focus-visible,
.hero-slider__dot.is-active { background: transparent; }
.hero-slider__dot::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 0.2rem;
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-50%);
}
.hero-slider__dot:hover::before,
.hero-slider__dot:focus-visible::before,
.hero-slider__dot.is-active::before { background: #e5261f; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal,
  .reveal.reveal-y20,
  .reveal.reveal-y30,
  .reveal.reveal-y14,
  .hero-fade {
    opacity: 1;
    transform: none;
  }
}

.site-footer__grid {
  grid-template-columns: minmax(0, 1fr);
}

.site-footer__contact {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__links {
    padding-top: 3rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .site-footer__contact {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}
