/* ===== 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; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item { grid-column: span 2; grid-row: span 1; height: 20rem; }
  .gallery-item2 { height: 12rem; }
}

@media (max-width: 576px) {
  .gallery-container { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item2 { grid-column: 1; height: 16rem; }
}

/* ===== 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 { 
  
  padding: 10px; 
  width: 700px; 
  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;
}


/* ===== 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{
  width: 700px;
}

@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;
  }
  
}










