.single-propiedad {
    background-color: #f7f8f9;
}

.single-propiedad .ags_contenedor_propiedad {
    padding: 50px 0;
    max-width: 1140px;
}

.flex_propiedades {
    display:flex;
    gap:30px;
}

.seccion_info_propiedad {
    width: 70%;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.seccion_info_vendedor {
    width:30%;
    background-color: #fff;
    position:sticky !important;
    top:90px;
    align-self: flex-start; /* clave en layouts flex */
  height: fit-content;    /* evita estiramiento */
}

.seccion_titulo_prop {
    padding: 25px
}

.ags-prop-single__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.ags-prop-single__kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.ags-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.ags-pill--venta {
    background: #fff3e6;
    border-color: #ffd7b0;
}

.ags-pill--arriendo {
    background: #eef7ff;
    border-color: #cfe6ff;
}

.ags-pill--code {
    background: #f6f6f6;
}

.ags-prop-single__title {
    margin: 0 0 6px;
    color: #000C36;
    line-height: 1.1;
    font-size: 30px;
    font-weight: 600;
}

.ags-prop-single__location {
    display:flex;
    align-items:center;
    gap:10px;
}

.ags-prop-single__location i {
    color: #000C36;
}

.ags-prop-single__location .texto_direccion {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 400;
    color: #5E6784;
}

.ags-prop-single__media {
    margin-top: 18px;
}

.ags-prop-single__featured img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.ags-prop-single__gallery {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.ags-prop-single__thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    border: 1px solid #eee;
}

.ags-prop-single__grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
    margin-top: 18px;
}

@media (max-width: 980px) {
    .ags-prop-single__grid {
        grid-template-columns: 1fr;
    }

    .ags-prop-single__gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ags-card {
    padding: 20px;
}

.ags-card__title {
    margin-bottom: 12px;
        font-size: 22px;
    font-weight: 600;
    color: #000C36;
}

.ags-prop-desc {
    color: #54595f;
    font-size: 15px;
    font-weight: 400;
}

.ags-price-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
}

.ags-price-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.ags-price-row__label {
    color: #666;
    font-weight: 700;
}

.ags-price-row__value {
    font-weight: 900;
    font-size: 18px;
}

.ags-price-row__value small {
    font-size: 12px;
    color: #666;
    font-weight: 700;
}

.ags-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    color: #333;
}

.ags-note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.ags-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ags-prop-desc {
    color: #333;
    line-height: 1.7;
}

.ags-video {
    position: relative;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
}

.ags-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


.ags-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

.ags-lightbox.is-open{ display:flex; }

.ags-lightbox__img{
  max-width: min(1100px, 95vw);
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.ags-lightbox__close,
.ags-lightbox__prev,
.ags-lightbox__next{
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.ags-lightbox__close{ top: 18px; right: 18px; font-size: 34px; line-height: 40px; }
.ags-lightbox__prev{ left: 18px; }
.ags-lightbox__next{ right: 18px; }


/* HERO full width */
.ags-hero{
  width: 100%;
  margin: 0;
}

.ags-hero--single,
.ags-hero--two,
.ags-hero--carousel{
  position: relative;
  width: 100%;
}

/* Altura controlada para 1 y 2 fotos (no se come toda la pantalla) */
.ags-hero__img,
.ags-hero--two .ags-hero__img{
  display: block;
  width: 100%;
  height: clamp(320px, 38vh, 440px);
  overflow: hidden;
}

.ags-hero__img img,
.ags-hero__slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* 2 imágenes split */
.ags-hero--two{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Carrusel multi-columna: varias fotos chicas por vista (clic = ampliar).
   Full-bleed: ocupa todo el ancho de la pantalla. */
.ags-hero--carousel{
  width: 100%;
  padding: 0;
}
.ags-hero--carousel .ags-hero__track{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  gap: 12px;
}
.ags-hero--carousel .ags-hero__track::-webkit-scrollbar{ display:none; }

.ags-hero--carousel .ags-hero__slide{
  flex: 0 0 calc(33.333% - 8px);   /* 3 por vista en desktop */
  scroll-snap-align: start;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  cursor: zoom-in;
}

@media (max-width: 900px){
  .ags-hero--carousel .ags-hero__slide{ flex-basis: calc(50% - 6px); height: 260px; }
}
@media (max-width: 560px){
  .ags-hero--carousel .ags-hero__slide{ flex-basis: calc(80% - 6px); height: 240px; }
}

/* Nav */
.ags-hero__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;
}
.ags-hero__nav.prev{ left: 14px; }
.ags-hero__nav.next{ right: 14px; }

/* Badge */
.ags-hero__badge{
  position: absolute;
  top: 18px;
  right: 18px;
  background: #ff7a00;
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  letter-spacing: .5px;
  z-index: 3;
}

/* Keyfacts */
.ags-keyfacts{
  padding: 22px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.ags-precio {
    background-color: #000b36;
    padding: 10px;
    text-align: center;
    display:flex;
    flex-direction: column;
    align-items: center;
}
.ags-keyfacts__price-main{
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 2px;
  color: #fff;
  line-height:1;
}
.ags-keyfacts__price-sub{
  font-size: 14px;
  opacity: .7;
  color: #fff;
}

.ags-keyfacts__grid{
  display: grid;
  /* nº de columnas = nº de tarjetas (--kf-cols, fijado inline en el template),
     así 4, 5 o 6 iconos quedan todos en una sola fila. */
  grid-template-columns: repeat(var(--kf-cols, 4), minmax(0, 1fr));
  gap: 10px;
  border: 0;
  padding: 0 10px;
}
@media (max-width: 768px){
  .ags-keyfacts__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px){
  .ags-keyfacts__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ags-kf{
  display:flex;
  flex-direction: column;
  gap: 6px;
    padding: 12px 8px;
    border: 1.5px solid #cfd6e0;   /* borde marcado en cada cuadro */
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    text-align:center;
}

.ags-kf__icon{
  display:flex;
  align-items:center;
  justify-content:center;
}

.ags-kf__icon svg {
    stroke: #000C36;
    width: 30px;
    height: 30px;
    stroke-width: 1.5px;
}

.ags-kf__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.ags-kf__label{
  font-size: 12px;
  opacity: .65;
  line-height: 1.1;
}
.ags-kf__value{
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.ags-kf__value small{
  display:block;
  font-size:12px;
  font-weight:600;
  opacity:.65;
  margin-top:2px;
}


/* Mapa de ubicación */
.mapa_prop{ margin-top: 16px; }
.ags-map{
  border-radius: 10px;
  overflow: hidden;
}
.ags-map iframe{
  display: block;
  width: 100%;
  border: 0;
}

/* Lightbox */
.ags-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 22px;
}
.ags-lightbox.is-open{ display:flex; }
.ags-lightbox__img{
  max-width: min(1200px, 95vw);
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.ags-lightbox__close,
.ags-lightbox__prev,
.ags-lightbox__next{
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
}
.ags-lightbox__close{ top: 16px; right: 16px; font-size: 34px; line-height: 40px; }
.ags-lightbox__prev{ left: 16px; }
.ags-lightbox__next{ right: 16px; }


.form_ags {
    padding: 20px;
}

.form_ags .wpcf7 .wpcf7-form-control {
    width:100%;
}

/* Formulario nativo de leads */
.ags-lead-field {
    margin-bottom: 16px;
}
.ags-lead-field label {
    display: block;
    font-size: 14px;
    color: #000C36;
    margin-bottom: 6px;
}
.ags-lead-field input,
.ags-lead-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 14px;
    font-family: inherit;
    color: #1d2327;
}
.ags-lead-field input:focus,
.ags-lead-field textarea:focus {
    outline: none;
    border-color: #000C36;
    background: #fff;
}
.ags-lead-field textarea {
    resize: vertical;
    min-height: 120px;
}
.ags-lead-submit {
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: #000C36;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s ease;
}
.ags-lead-submit:hover { opacity: .92; }
.ags-lead-submit:disabled { opacity: .6; cursor: default; }
.ags-lead-feedback {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
}
.ags-lead-feedback.is-ok  { color: #1a8c4e; }
.ags-lead-feedback.is-err { color: #b32d2e; }

.ags-keyfacts__extras {
    display:flex;
    gap:2%;
    width:100%;
    flex-wrap: wrap;
}

.ags-extra {
    font-size: 14px;
    padding: 20px;
    width: 30%;
}

.ags-extra__k {
    font-weight: bold;
    color: #000b36;
}

.ags-extra__v {
    display:block;
}

/* =========================================================================
   Agente / Vendedor card
   ========================================================================= */

.ags-card.ags-card--agent {
    padding:0;
    border:0;
    border-bottom: 1px solid #eaeaea;
}

.ags-seller {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ags-seller__foto {
    flex-shrink: 0;
    width: 90px;
    height: 105px;
    /* border-radius: 50%; */
    overflow: hidden;
    background: #eee;
}

.ags-seller__foto img,
.ags-seller__ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ags-seller__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ags-seller__name {
    font-weight: 700;
    font-size: 15px;
    color: #000b36;
    line-height: 1.2;
}

.ags-seller__cargo,
.ags-seller__tel,
.ags-seller__email {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
    line-height: 1.3;
}

.ags-seller__cargo svg,
.ags-seller__tel svg,
.ags-seller__email svg {
    flex-shrink: 0;
    color: #000b36;
}

.ags-seller__tel a,
.ags-seller__email a {
    color: #444;
    text-decoration: none;
    word-break: break-all;
}

.ags-seller__tel a:hover,
.ags-seller__email a:hover {
    color: #000b36;
    text-decoration: underline;
}
