@font-face {
  font-family: "montserratRegular";
  src: url("fonts/Montserrat-Regular.ttf") format("truetype");
}

/* =========================
   IMÁGENES
   ========================= */

#crucero {
  background-image: url("./imagenes/MT2003WebsiteHomepage.png");
}

#europa {
  background-image: url("./imagenes/MT2003WebsiteHomepage2.png");
}

#medioOriente {
  background-image: url("./imagenes/MT2003WebsiteHomepage3.png");
}

#asia {
  background-image: url("./imagenes/MT2003WebsiteHomepage4.png");
}

#africa {
  background-image: url("./imagenes/MT2003WebsiteHomepage5.png");
}

#norteamerica {
  background-image: url("./imagenes/MT2003WebsiteHomepage6.png");
}

#centroamerica {
  background-image: url("./imagenes/MT2003WebsiteHomepage7.png");
}

#sudamerica {
  background-image: url("./imagenes/MT2003WebsiteHomepage8.png");
}

#oceania {
  background-image: url("./imagenes/MT2003WebsiteHomepage9.png");
}

/* =========================
   CONTENEDOR GENERAL
   ========================= */

.destination_card_container_ft {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "montserratRegular", sans-serif;
}

/* =========================
   CONFIGURACIÓN GENERAL
   ========================= */

#crucero,
#europa,
#medioOriente,
#asia,
#africa,
#norteamerica,
#centroamerica,
#sudamerica,
#oceania {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* =========================
   CONTENEDOR DE TARJETAS
   ========================= */

.destinaation-card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  font-family: "montserratRegular", sans-serif;
  box-sizing: border-box;
}

/* =========================
   TARJETAS
   ========================= */

.destination-card {
  width: 100%;
  height: 273px;
  position: relative;
  overflow: hidden;
  transition: filter 0.3s ease;
  box-sizing: border-box;
}

/* =========================
   OVERLAY
   ========================= */

.destinatio-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 15;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: height 0.3s ease;
}

.destinatio-overlay-detials {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 15;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 0.5rem;
  text-align: center;
  transition: height 0.3s ease;
  box-sizing: border-box;
}

.destinatio-overlay-detials img {
  width: 90%;
  text-align: center;
  font-family: "montserratRegular", sans-serif;
  display: none;
}

.destinatio-overlay h2,
.destinatio-overlay-detials h2 {
  font-family: "montserratRegular", sans-serif;
}

/* =========================
   LISTA DE DESTINOS
   ========================= */

.destinations-list {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "montserratRegular", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.destinations-list span {
  display: inline-block;
  white-space: nowrap;
}

.destinations-list span + span::before {
  content: "•";
  margin: 0 8px;
}

/* =========================
   HOVER
   ========================= */

.destination-card:hover {
  filter: brightness(1.1) saturate(1.1) contrast(1.1);
}

.destination-card:hover .destinatio-overlay {
  height: 1%;
}

.destination-card:hover .destinatio-overlay-detials {
  height: 60%;
}

.destination-card:hover .destinatio-overlay h2,
.destination-card:hover .destinatio-overlay-detials h2 {
  display: none;
}

.destination-card:hover .destinatio-overlay-detials img {
  display: flex;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

  .destinaation-card-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 1rem;
  }

  .destination-card {
    height: 260px;
  }
}

/* =========================================================
   MOBILE
   2 COLUMNAS
   ========================================================= */

@media (max-width: 768px) {

  .destinaation-card-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .destination-card {
    width: 100%;
    height: 220px;
    min-width: 0;
  }

  .destinatio-overlay h2,
  .destinatio-overlay-detials h2 {
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
    padding: 0 8px;
  }

  .destinations-list {
    font-size: 11px;
    line-height: 1.4;
  }

  .destinations-list span {
    white-space: normal;
  }

  .destinations-list span + span::before {
    margin: 0 4px;
  }
}

/* =========================================================
   TELEFONOS PEQUEÑOS
   ========================================================= */

@media (max-width: 500px) {

  .destinaation-card-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 10px;
  }

  .destination-card {
    height: 190px;
  }

  .destinatio-overlay h2,
  .destinatio-overlay-detials h2 {
    font-size: 15px;
  }

  .destinations-list {
    font-size: 10px;
  }

  .destinatio-overlay-detials {
    padding: 5px;
  }
}

/* =========================================================
   TELEFONOS MUY PEQUEÑOS
   ========================================================= */

@media (max-width: 380px) {

  .destinaation-card-container {
    gap: 8px;
    padding: 0 8px;
  }

  .destination-card {
    height: 170px;
  }

  .destinatio-overlay h2,
  .destinatio-overlay-detials h2 {
    font-size: 14px;
  }

  .destinations-list {
    font-size: 9px;
  }
}