/* =========================================================
   DETALLE DE PROPIEDAD
========================================================= */

.property-detail {
  background: var(--white);
}


/* =========================================================
   HEADER
========================================================= */

.property-detail__header {
  padding: 44px 0 34px;
  background: #f8fafb;
}


/* breadcrumb */

.property-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;

  margin-bottom: 27px;

  color: var(--muted);

  font-size: 12px;
}


.property-breadcrumb a {
  transition: color .2s ease;
}


.property-breadcrumb a:hover {
  color: var(--blue);
}


.property-breadcrumb
.material-symbols-outlined {
  font-size: 15px;
}


/* =========================================================
   TÍTULO
========================================================= */

.property-title-row {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;
}


.property-title__tags {
  display: flex;
  gap: 7px;

  margin-bottom: 13px;
}


.property-title__tags span {
  padding: 6px 10px;

  color: var(--white);
  background: var(--blue-deep);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .06em;

  text-transform: uppercase;
}


.property-title__tags span + span {
  color: var(--ink);
  background: var(--gold);
}


.property-title h1 {
  max-width: 850px;

  margin: 0;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: clamp(2.6rem, 5vw, 4.5rem);

  font-weight: 700;

  line-height: .98;

  letter-spacing: -.055em;
}


.property-title__location {
  display: flex;
  align-items: center;
  gap: 5px;

  margin-top: 14px;

  color: var(--muted);

  font-size: 14px;
}


.property-title__location
.material-symbols-outlined {
  color: var(--gold-dark);

  font-size: 19px;
}


/* =========================================================
   ACCIONES
========================================================= */

.property-title__actions {
  display: flex;
  gap: 8px;
}


.property-action {
  display: grid;

  width: 48px;
  height: 48px;

  place-items: center;

  color: var(--blue-dark);
  background: var(--white);

  border: 1px solid var(--line);
  border-radius: 50%;

  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease;
}


.property-action:hover {
  color: var(--white);

  background: var(--blue);

  transform: translateY(-3px);
}


/* =========================================================
   GALERÍA
========================================================= */

.property-gallery {
  padding: 0 0 32px;

  background: #f8fafb;
}


.property-gallery__main {
  position: relative;

  height: clamp(470px, 58vw, 710px);

  overflow: hidden;

  background: var(--sand);
}


.property-gallery__main > img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    opacity .25s ease,
    transform .5s ease;
}


.property-gallery__main > img.is-changing {
  opacity: .25;

  transform: scale(1.015);
}


/* flechas */

.property-gallery__arrow {
  position: absolute;

  z-index: 3;

  top: 50%;

  display: grid;

  width: 52px;
  height: 52px;

  place-items: center;

  color: var(--ink);
  background: rgba(255,255,255,.9);

  border: 0;

  border-radius: 50%;

  box-shadow:
    0 8px 24px rgba(23,54,70,.15);

  transform: translateY(-50%);

  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease;
}


.property-gallery__arrow:hover {
  color: var(--white);
  background: var(--blue);

  transform:
    translateY(-50%)
    scale(1.05);
}


.property-gallery__arrow--prev {
  left: 24px;
}


.property-gallery__arrow--next {
  right: 24px;
}


/* contador */

.property-gallery__counter {
  position: absolute;

  z-index: 3;

  right: 22px;
  bottom: 20px;

  padding: 7px 12px;

  color: var(--white);
  background: rgba(23,54,70,.85);

  border-radius: 30px;

  font-size: 12px;
  font-weight: 700;

  backdrop-filter: blur(8px);
}


/* =========================================================
   MINIATURAS
========================================================= */

.property-gallery__thumbs {
  display: grid;

  grid-template-columns:
    repeat(6, minmax(0, 1fr));

  gap: 8px;

  margin-top: 8px;
}


.property-gallery__thumb {
  position: relative;

  height: 105px;

  overflow: hidden;

  padding: 0;

  background: var(--sand);

  border: 2px solid transparent;

  opacity: .65;

  transition:
    opacity .2s ease,
    border-color .2s ease;
}


.property-gallery__thumb:hover,
.property-gallery__thumb.is-active {
  opacity: 1;
}


.property-gallery__thumb.is-active {
  border-color: var(--gold);
}


.property-gallery__thumb img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}


/* =========================================================
   CONTENIDO PRINCIPAL
========================================================= */

.property-information {
  background: var(--white);
}


.property-detail-layout {
  padding-top: 2rem;
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    350px;

  align-items: start;

  gap: clamp(45px, 6vw, 80px);
}


.property-detail-content {
  min-width: 0;
}


/* =========================================================
   RESUMEN
========================================================= */

.property-summary {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 28px;
}


.property-summary__label {
  margin: 0 0 4px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: .09em;

  text-transform: uppercase;
}


.property-summary__price {
  margin: 0;

  color: var(--blue);

  font-family: "Manrope", sans-serif;

  font-size: clamp(2rem, 4vw, 3.1rem);

  font-weight: 800;

  line-height: 1;
}


.property-summary__code {
  text-align: right;
}


.property-summary__code span,
.property-summary__code strong {
  display: block;
}


.property-summary__code span {
  margin-bottom: 2px;

  color: var(--muted);

  font-size: 10px;

  text-transform: uppercase;
}


.property-summary__code strong {
  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 15px;
}


/* =========================================================
   CARACTERÍSTICAS
========================================================= */

.property-features-detail {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  margin-bottom: 38px;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}


.property-features-detail > div {
  display: grid;

  min-width: 0;

  justify-items: center;

  padding: 25px 15px;

  text-align: center;
}


.property-features-detail
> div + div {
  border-left: 1px solid var(--line);
}


.property-features-detail
.material-symbols-outlined {
  margin-bottom: 7px;

  color: var(--gold-dark);

  font-size: 28px;
}


.property-features-detail strong {
  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 19px;
}


.property-features-detail
div > span:last-child {
  color: var(--muted);

  font-size: 11px;
}


/* =========================================================
   COPETE
========================================================= */

.property-lead {
  margin-bottom: 50px;

  padding: 28px 32px;

  border-left: 4px solid var(--gold);

  background: #f8fafb;
}


.property-lead p {
  max-width: 760px;

  margin: 0;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 20px;
  font-weight: 600;

  line-height: 1.55;
}


/* =========================================================
   BLOQUES
========================================================= */

.property-block {
  padding: 50px 0;

  border-top: 1px solid var(--line);
}


.property-block h2 {
  margin: 0 0 26px;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: clamp(2rem, 3vw, 2.7rem);

  font-weight: 700;

  line-height: 1.1;

  letter-spacing: -.04em;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.property-description {
  max-width: 790px;
}


.property-description p {
  margin: 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.8;
}


.property-description p + p {
  margin-top: 17px;
}


/* =========================================================
   ESPECIFICACIONES
========================================================= */

.property-specs {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  border-top: 1px solid var(--line);
}


.property-spec {
  display: flex;

  min-height: 63px;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 14px 18px;

  border-bottom: 1px solid var(--line);
}


.property-spec:nth-child(odd) {
  border-right: 1px solid var(--line);
}


.property-spec span {
  color: var(--muted);

  font-size: 13px;
}


.property-spec strong {
  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 14px;

  text-align: right;
}


/* =========================================================
   UBICACIÓN
========================================================= */

.property-location__heading {
  margin-bottom: 20px;
}


.property-location__heading > div {
  display: flex;

  align-items: center;

  gap: 10px;
}


.property-location__heading
.material-symbols-outlined {
  color: var(--gold);

  font-size: 29px;
}


.property-location__heading strong,
.property-location__heading span {
  display: block;
}


.property-location__heading strong {
  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 15px;
}


.property-location__heading
div div span {
  color: var(--muted);

  font-size: 12px;
}


/* mapa */

.property-map {
  height: 440px;

  overflow: hidden;

  background: #e6ecef;
}


.property-map iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: 0;
}


/* =========================================================
   AGENTE
========================================================= */

.property-agent {
  position: sticky;

  top: 110px;

  display: grid;

  gap: 18px;
}


.property-agent__card {
  padding: 28px;

  background: var(--blue-deep);

  box-shadow: var(--shadow-soft);
}


.property-agent__eyebrow {
  margin: 0 0 20px;

  color: var(--gold);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .1em;

  text-transform: uppercase;
}


/* perfil */

.property-agent__profile {
  display: flex;

  align-items: center;

  gap: 14px;

  padding-bottom: 22px;

  border-bottom:
    1px solid rgba(255,255,255,.12);
}


.property-agent__profile img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;

  object-fit: cover;

  border-radius: 50%;

  border: 3px solid var(--gold);
}


.property-agent__profile h3 {
  margin: 0;

  color: var(--white);

  font-family: "Manrope", sans-serif;

  font-size: 18px;
}


.property-agent__profile span {
  display: block;

  margin-top: 3px;

  color: rgba(255,255,255,.58);

  font-size: 11px;
}


/* contacto agente */

.property-agent__contact {
  display: grid;

  margin-bottom: 22px;
}


.property-agent__contact a {
  display: flex;

  align-items: center;

  gap: 11px;

  padding: 16px 0;

  color: var(--white);

  border-bottom:
    1px solid rgba(255,255,255,.1);
}


.property-agent__contact
> a > .material-symbols-outlined {
  color: var(--gold);

  font-size: 22px;
}


.property-agent__contact span:not(.material-symbols-outlined),
.property-agent__contact strong {
  display: block;
}


.property-agent__contact
a div span {
  color: rgba(255,255,255,.46);

  font-size: 9px;

  text-transform: uppercase;
}


.property-agent__contact strong {
  margin-top: 1px;

  color: var(--white);

  font-size: 12px;
  font-weight: 600;
}


/* redes */

.property-agent__socials {
  display: flex;

  justify-content: center;

  gap: 13px;

  margin-top: 18px;
}


.property-agent__socials span {
  width: 1px;

  background: rgba(255,255,255,.2);
}


.property-agent__socials a {
  color: rgba(255,255,255,.58);

  font-size: 11px;
}


.property-agent__socials a:hover {
  color: var(--gold);
}


/* =========================================================
   CTA IA
========================================================= */

.property-side-note {
  display: flex;

  align-items: flex-start;

  gap: 13px;

  padding: 22px;

  background: #f8fafb;

  border: 1px solid var(--line);
}


.property-side-note
> .material-symbols-outlined {
  color: var(--blue);

  font-size: 31px;
}


.property-side-note strong {
  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: 14px;
}


.property-side-note p {
  margin: 5px 0 10px;

  color: var(--muted);

  font-size: 12px;

  line-height: 1.5;
}


.property-side-note a {
  display: inline-flex;

  align-items: center;

  gap: 4px;

  color: var(--blue);

  font-size: 11px;
  font-weight: 800;
}


.property-side-note
a .material-symbols-outlined {
  font-size: 15px;

  transition: transform .2s ease;
}


.property-side-note
a:hover .material-symbols-outlined {
  transform: translateX(4px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

  .property-detail-layout {
    grid-template-columns:
      minmax(0, 1fr)
      300px;

    gap: 35px;
  }


  .property-gallery__main {
    height: 560px;
  }


  .property-agent__card {
    padding: 23px;
  }

}


/* =========================================================
   TABLET CHICA
========================================================= */

@media (max-width: 820px) {

  .property-title-row {
    align-items: flex-start;

    flex-direction: column;
  }


  .property-detail-layout {
    grid-template-columns: 1fr;
  }


  .property-agent {
    position: static;

    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, .8fr);

    align-items: start;
  }


  .property-gallery__thumbs {
    grid-template-columns:
      repeat(3, 1fr);
  }


  .property-gallery__thumb {
    height: 110px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 580px) {

  .property-detail__header {
    padding: 30px 0 24px;
  }


  .property-title h1 {
    font-size: 2.6rem;
  }


  /* GALERÍA */

  .property-gallery__main {
    height: 360px;
  }


  .property-gallery__arrow {
    width: 42px;
    height: 42px;
  }


  .property-gallery__arrow--prev {
    left: 12px;
  }


  .property-gallery__arrow--next {
    right: 12px;
  }


  .property-gallery__thumbs {
    display: flex;

    overflow-x: auto;

    gap: 5px;

    scrollbar-width: none;
  }


  .property-gallery__thumbs::-webkit-scrollbar {
    display: none;
  }


  .property-gallery__thumb {
    width: 100px;
    height: 72px;

    flex: 0 0 100px;
  }


  /* RESUMEN */

  .property-summary {
    align-items: flex-start;

    flex-direction: column;
  }


  .property-summary__code {
    text-align: left;
  }


  /* FEATURES */

  .property-features-detail {
    grid-template-columns:
      repeat(2, 1fr);
  }


  .property-features-detail
  > div:nth-child(3),
  .property-features-detail
  > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }


  .property-features-detail
  > div:nth-child(3) {
    border-left: 0;
  }


  .property-lead {
    padding: 22px;
  }


  .property-lead p {
    font-size: 17px;
  }


  /* SPECS */

  .property-specs {
    grid-template-columns: 1fr;
  }


  .property-spec:nth-child(odd) {
    border-right: 0;
  }


  /* MAPA */

  .property-map {
    height: 350px;
  }


  /* AGENTE */

  .property-agent {
    grid-template-columns: 1fr;
  }

}