/* ===========================
   CONTENEDOR GENERAL
=========================== */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ===========================
   VOLVER LINK
=========================== */
.volver-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7cc242;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 0.95rem;
  transition: gap 0.2s ease;
}

.volver-link:hover {
  gap: 10px;
}

/* ===========================
   LAYOUT DOS COLUMNAS
=========================== */
.propiedad-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

/* ===========================
   SLIDER PRINCIPAL
=========================== */
.slider-container {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  background: #eaeaea;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.slider-img:hover {
  transform: scale(1.02);
}

/* Flechas */
.slider-btn {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: #222;
  font-size: 22px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.slider-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-50%) scale(1.08);
}

.slider-btn.left  { left: 14px; }
.slider-btn.right { right: 14px; }

.slider-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.tag-tipo {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

/* ===========================
   MINIATURAS
=========================== */
.miniaturas {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.miniaturas::-webkit-scrollbar {
  height: 4px;
}
.miniaturas::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.miniatura {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.2s ease;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.miniatura.active,
.miniatura:hover {
  opacity: 1;
  border-color: #7cc242;
  transform: translateY(-2px);
}

/* ===========================
   DESCRIPCIÓN
=========================== */
.propiedad-descripcion {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.propiedad-descripcion h2,
.propiedad-mapa-wrap h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}

.propiedad-descripcion h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
}

.propiedad-descripcion p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

/* ===========================
   MAPA
=========================== */
.propiedad-mapa-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.propiedad-mapa-wrap h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
}

#mapa {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  margin-top: 10px;
  background: #ddd;
  overflow: hidden;
}

/* ===========================
   CARD INFO (COLUMNA DERECHA)
=========================== */
.propiedad-card-info {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.10);
  position: sticky;
  top: 90px;
  border: 1px solid rgba(0,0,0,0.05);
}

.propiedad-precio {
  font-size: 2.2rem;
  font-weight: 900;
  color: #222;
  margin: 12px 0 4px;
  letter-spacing: -1px;
}

.propiedad-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.propiedad-dir {
  font-size: 0.88rem;
  color: #999;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.propiedad-hab {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 18px;
  font-weight: 500;
}

.propiedad-card-info hr {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 18px 0;
}

/* ===========================
   BOTÓN CONTACTAR
=========================== */
.chat-open-btn {
  background: #7cc242;
  color: white;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
  margin-top: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(124, 194, 66, 0.35);
  letter-spacing: 0.2px;
}

.chat-open-btn:hover {
  background: #6aad35;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 194, 66, 0.45);
}

.chat-open-btn:active {
  transform: translateY(0);
}

/* ===========================
   BOTÓN WHATSAPP
=========================== */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: #25d366;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===========================
   AVISO
=========================== */
.propiedad-aviso {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f9fdf5;
  border-radius: 10px;
  border: 1px solid #e8f5e0;
  font-size: 0.82rem;
  color: #6a6a6a;
  line-height: 2;
}

/* ===========================
   MODAL IMÁGENES
=========================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 42px;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
}

.modal-cerrar:hover {
  opacity: 1;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .propiedad-layout {
    grid-template-columns: 1fr;
  }

  .propiedad-card-info {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .slider-container {
    height: 300px;
  }

  .propiedad-precio {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .slider-container {
    height: 240px;
  }
}