/* ==========================================================
   SEZIONE HOME: "I NOSTRI APPARTAMENTI" (tuo HTML custom)
   ========================================================== */

.sezione-grigia {
  background-color: #f0f0f0;
  padding-top: 60px;
}

.contenitore {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.titolo {
  text-align: center;
  font-size: 2em;
  margin-bottom: 35px;
}

.appartamenti {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.box-appartamento {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  width: 30%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
  margin-bottom: 20px;
}

.box-appartamento h3 {
  color: #4bbed1;
  margin-top: 0;
  text-align: center;
}

/* ✅ HOME: immagini tutte uguali */
.box-appartamento img.immagine-appartamento {
  width: 100%;
  height: 360px;            /* cambia: 320 / 360 / 420 / 480 */
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  margin-bottom: 15px;
  display: block;
}

.box-appartamento p {
  font-size: 0.9em;
  color: #666;
}

.lista-icone {
  list-style: none;
  padding: 0;
}

.lista-icone li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.lista-icone li i {
  font-size: 1.5em;
  margin-right: 10px;
  color: #ffb300;
}

.lista-icone li span {
  font-size: 1em;
}

.contenitore-bottoni {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.contenitore-bottoni a {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
}

.bottone-scopri {
  background-color: #4bbed1;
}

.bottone-prenota {
  background-color: #ffb300;
}

/* ==========================================================
   RISULTATI DI RICERCA (MPHB / MotoPress Hotel Booking)
   Niente "scaletta": immagini stessa altezza
   ========================================================== */

/* Caso 1: il plugin usa  */
.mphb_sc_search_results img,
.mphb-room-type img,
.mphb-room-type-thumbnail img,
.mphb-room-type-gallery img,
.mphb-room-type-images img,
.mphb-room-type-featured-image img {
  width: 100% !important;
  height: 360px !important;          /* cambia: 360 / 420 / 480 */
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Caso 2: alcuni temi usano DIV con background-image */
.mphb_sc_search_results .mphb-room-type-thumbnail,
.mphb_sc_search_results .mphb-room-type-featured-image,
.mphb_sc_search_results .mphb-room-type-gallery {
  height: 360px !important;          /* stesso valore di sopra */
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media screen and (max-width: 768px) {
  .appartamenti {
    flex-direction: column;
    align-items: center;
  }

  .box-appartamento {
    width: 80%;
  }

  /* HOME: immagini più basse su mobile */
  .box-appartamento img.immagine-appartamento {
    height: 260px;
  }

  /* RISULTATI: immagini più basse su mobile */
  .mphb_sc_search_results img,
  .mphb-room-type img,
  .mphb-room-type-thumbnail img,
  .mphb-room-type-gallery img,
  .mphb-room-type-images img,
  .mphb-room-type-featured-image img {
    height: 260px !important;
  }

  .mphb_sc_search_results .mphb-room-type-thumbnail,
  .mphb_sc_search_results .mphb-room-type-featured-image,
  .mphb_sc_search_results .mphb-room-type-gallery {
    height: 260px !important;
  }
}
/* ===== RISULTATI DI RICERCA (MPHB): immagini tutte uguali con taglio "cover" ===== */

/* Se il plugin usa  */
.mphb_sc_search_results img,
.mphb-room-type img,
.mphb-room-type-thumbnail img,
.mphb-room-type-gallery img,
.mphb-room-type-images img,
.mphb-room-type-featured-image img {
  width: 100% !important;
  height: 420px !important;          /* uguale per tutte (stile trilocale). Prova 420; se vuoi più basso 360 */
  object-fit: cover !important;      /* ✅ adattamento con taglio */
  object-position: center !important;/* centra il ritaglio */
  display: block !important;
}

/* Se il tema usa DIV con background-image */
.mphb_sc_search_results .mphb-room-type-thumbnail,
.mphb_sc_search_results .mphb-room-type-featured-image,
.mphb_sc_search_results .mphb-room-type-gallery {
  height: 420px !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Mobile */
@media (max-width: 768px) {
  .mphb_sc_search_results img,
  .mphb-room-type img,
  .mphb-room-type-thumbnail img,
  .mphb-room-type-gallery img,
  .mphb-room-type-images img,
  .mphb-room-type-featured-image img {
    height: 260px !important;
  }

  .mphb_sc_search_results .mphb-room-type-thumbnail,
  .mphb_sc_search_results .mphb-room-type-featured-image,
  .mphb_sc_search_results .mphb-room-type-gallery {
    height: 260px !important;
  }
}