/* ===== GALERÍA PRINCIPAL ===== */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  height: auto;
}

/* Imagen grande */
.gallery-item {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Imágenes pequeñas */
.gallery-item2 {
  overflow: hidden;
  position: relative;
}

.gallery-item2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item2 img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Asimetría */
.gallery-item2:nth-child(2) { grid-column: 3; grid-row: 1; }
.gallery-item2:nth-child(3) { grid-column: 4; grid-row: 1; }
.gallery-item2:nth-child(4) { grid-column: 3; grid-row: 2; }
.gallery-item2:nth-child(5) { grid-column: 4; grid-row: 2; }

@media (max-width: 992px) {
  .gallery-item {
    width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
  }
  .gallery-item2:nth-child(2),
  .gallery-item2:nth-child(3),
  .gallery-item2:nth-child(4),
  .gallery-item2:nth-child(5) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
  }

  .gallery-container img {
    width: 100% !important;
    min-width: 100% !important;
    height: auto;
    object-fit: cover;
    scroll-snap-align: center;
    border-radius: 0 !important;
  }
   /* Fuerza que los dos bloques se apilen */
  .cont_inf_prod,   /* si este es el contenedor .row */
  .row.cont_inf_prod {
    display: block !important;
  }

  /* Bloque izquierdo ocupa ancho completo */
  .cont_inf_prod > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  /* Bloque derecho (contacto) debajo ocupando 100% */
  .cont_inf_prod > div:last-child {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2rem !important;
  }
  .region,
  .lead,.list-unstyled,
  .commission,
  .more{
    font-size: 10px !important;
  }
  .titulo_prod,
  .precio,
  .eigen,.eint,
  .cont_caracteristicas{
    font-size: 12px !important;
  }
  .mapa{
    width: 300px !important;
    padding-left: 0% !important;
  }

  
  
}

.cont_inf_prod{
  width: auto;
  gap: 2;
}
.precio{
  font-weight: 700;
}
.eigen{
  margin-top: 10px;
  margin-bottom: 15px;
  
}
.more{
  margin-bottom: 50px;
}
.cont_caracteristicas{
  font-size: 20px;
}
.eint{
  margin-top: 30px;
  margin-bottom: 30px;
}





/* ===== MODAL GALERÍA ===== */
#galleryModal img {
  max-height: 85vh;
  object-fit: contain;
}

.delete-photo-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 50%;
}

.gallery-item:hover .delete-photo-btn,
.gallery-item2:hover .delete-photo-btn {
  opacity: 1;
}


.energieausweis { 
  color:#000000 !important;
  margin-left: 35%;
  font-size: 15px;
  padding: 10px; 
  width: 720px; 
  font-family: sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #000000d0;
  background: linear-gradient(45deg,rgba(0, 0, 0, 0.247) 40%, rgba(165, 190, 124, 0) 94%);

}
.energy-wrapper {
  font-family: Arial, sans-serif;
  width: 500px;
  margin-top: 1rem;
  margin-bottom: 3rem;

}

.energy-scale {
  position: relative;
  margin-top: 10px;
}

.energy-labels, .energy-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: bold;
}

.energy-bar {
  margin-top: 4px;
  height: 35px;
  border-radius: 20px;
  background: linear-gradient(to right,
    #00A500 0%, #7FFF00 20%, #FFFF00 40%,
    #FFAA00 60%, #ff5500cf 80%, #f7020295 100%);
}

.energy-values {
  font-size: 12px;
  margin-top: 5px;
}

.energy-pointer {
  position: absolute;
  top: 18px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid red;
  transition: left 0.3s;
}

/* ===== AJUSTE PARA TELÉFONOS ===== */
@media (max-width: 768px) {

  .energieausweis {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px;
    margin: 0 auto;
    font-size: 10px !important;
  }

  .energy-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem auto 2rem auto;
  }

  .energy-labels, 
  .energy-values {
    font-size: 10px !important;
  }

  .energy-bar {
    height: 28px;
  }

  .energy-pointer {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 13px solid red;
    top: 14px;
  }
  
}



/* ===== OFERTAS ===== */
.cont_prod {
  width: 90%;
  margin: 0 auto;
}

.body_pro{
    padding-bottom: 3rem;
    color: rgb(var(--bs-tertiary-color-rgb));
    background: #000000;
    background: radial-gradient(circle, rgba(186, 220, 150, 0.663) 0%,rgba(121, 202, 33, 0.663) 0%, rgba(0, 0, 0, 0.794) 100%);
}
.tarj {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  overflow: hidden;
  position: relative;
}

.tarj img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              filter 0.3s ease;
  will-change: transform;
  opacity: 80%;
}

/* ✅ El hover es en el CONTENEDOR */
.tarj:hover img {
  transform: scale(1.10);
  filter: brightness(1.05);
  opacity: 100%;
}
.contact-form {
    position: sticky;
    top: 80px; /* altura aproximada del navbar */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 15px 15px 5px;
}

.img_kont2 {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* no deforma la imagen */
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-origin: center;
  background-color: white;
}
.form_lay{
  padding: 10px 10px 10px 10px;
}
.icon_layout{
  color: white;
}

/* Estilos para flechas del modal */
.modal-nav {
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background-color: rgba(49, 48, 48, 0.437);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-right: 1rem;
  padding-bottom: 10px;
}

.modal-nav:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  color: rgb(0, 0, 0);
}

#modalThumbnails {
  max-height: 120px;
  overflow-x: auto;
}

#modalThumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

#modalThumbnails img:hover {
  transform: scale(1.05);
  border-color: #ffffff80;
}

#modalThumbnails img.active {
  border-color: #ffffff;
}
/* Asegura recorte y que la img transforme suave */
#galleryModal .modal-body { 
  overflow: hidden; 
}
#modalImage { will-change: transform; transition: transform 0.08s linear; }

.bullets-list .col-md-6 {
  position: relative;
  padding-left: 20px; /* espacio para el puntito */
}

.bullets-list .col-md-6::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #ffffff; /* puntito negro */
}

/* Auto-ajuste de altura */
.auto-text {
  resize: none;
  overflow: hidden;
}

/* ======================================= */
/*   MODAL FULLSCREEN SOLO PARA GALERÍA    */
/* ======================================= */

/* El modal de galería siempre adelante */
#galleryModal.show {
  z-index: 300000 !important;
}

#galleryModal .modal-backdrop.show {
  z-index: 299999 !important;
  backdrop-filter: blur(4px);
}

#galleryModal .modal-dialog {
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  height: 100vh !important;
}

#galleryModal .modal-content {
  border-radius: 0 !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.95) !important;
  animation: fadeInModal 0.25s ease-out;
}

/* Imagen */
#galleryModal #galleryModalImg {
  width: auto !important;
  max-width: 100%;
  max-height: 100vh;
  margin: auto;
  display: block;
  transition: transform 0.25s ease;
}

#galleryModal #galleryModalImg.zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}

/* Botones */
#galleryModal #prevImg,
#galleryModal #nextImg,
#galleryModal #deletePhotoModal,
#galleryModal #closeGalleryModal {
  z-index: 999999 !important;
}

#galleryModal #prevImg,
#galleryModal #nextImg {
  font-size: 3rem;
  padding: 10px 15px;
  opacity: 0.9;
}

#galleryModal #deletePhotoModal {
  font-size: 1.2rem;
  opacity: 0.85;
}

#galleryModal #closeGalleryModal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  z-index: 1000000;
}

/* Animación */
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mapa{
  padding-left: 18%;
  width: 900px;
}

@media (max-width: 768px) {
  .cont_contact-form {
    width: 100% !important;
    margin: 2rem 0 0 0 !important;
    padding: 0 1rem !important;
  }

  /* eliminar efecto de offset y medidas del grid */
  .cont_contact-form[class*="offset-"] {
    margin-left: 0 !important;
  }

  .property-info .col-3,
  .property-info .offset-2 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .tit_contact{
    font-size: 15px;
  }
  
}


.modalof {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content2 {
  background: #353434;
  padding: 25px;
  border-radius: 14px;
  width: 350px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  animation: fadeIn 0.25s ease-out;
  text-align: center;
}

/* LOGO CENTRADO */
.modal-logo img {
  width: 220px;
  margin: 0 auto 10px auto;
  display: block;
}

/* Inputs */
.modal-content2 input {
  padding: 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  background: #4a4a4a;
  color: white;
  font-size: 15px;
}

.modal-content2 input::placeholder {
  color: #c9c9c9;
}

/* Buttons */
.btn-primary {
  background: #1e90ff;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.btn-secondary {
  background: #696969;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.btn-primary:hover { background: #1677d6; }
.btn-secondary:hover { background: #5c5c5c; }

/* Error text */
.error {
  color: red;
  height: 18px;
  font-size: 14px;
}

/* Animation */
@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Hide */
.hidden { display: none; }











