/* Destination hub cards: season · water °C · dive level.
 * Used inside the Destinations search tab only. Identity colours unchanged. */

.ds-dest-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(13, 61, 107, 0.08);
  z-index: 2;
}
.ds-dest-m {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  text-align: center;
  min-width: 0;
  border-right: 1px solid rgba(13, 61, 107, 0.08);
}
.ds-dest-m:last-child {
  border-right: 0;
}
.ds-dest-ml {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #5a6b7b;
  line-height: 1.1;
}
.ds-dest-mv {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0d3d6b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#search .search-dest-grid .dest-guide-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  position: relative;
}
#search .search-dest-grid .dg-media {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #0d3d6b;
}
#search .search-dest-grid .dg-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
#search .search-dest-grid .dg-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 35%;
  background: linear-gradient(180deg, rgba(6, 47, 58, 0) 0%, rgba(6, 47, 58, 0.72) 70%);
  pointer-events: none;
  z-index: 1;
}
#search .search-dest-grid .dg-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 54px;
  z-index: 2;
  pointer-events: none;
}
#search .search-dest-grid .dg-name {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
#search .search-dest-grid .dg-blurb {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
#search .search-dest-grid .dg-media .ds-dest-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
#search .search-dest-grid .dg-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(3, 20, 35, 0.18);
  z-index: 3;
}
#search .search-dest-grid .dg-fav .save-heart {
  padding: 0;
}
#search .search-dest-grid .dg-fav .save-heart svg {
  width: 17px;
  height: 17px;
}
#search .search-dest-grid .dg-body {
  display: flex;
  justify-content: flex-end;
  padding: 8px 2px 0;
  align-items: center;
  min-height: 28px;
}
#search .search-dest-grid .dg-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#search .search-dest-grid .dg-sub {
  display: none;
}
#search .search-dest-grid .dg-price {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0d3d6b;
  text-decoration: none;
  text-align: right;
}
#search .search-dest-grid .dg-price-amt {
  background: #f5b301;
  color: #3a2a00;
  font-weight: 900;
  font-size: 14px;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
#search .search-dest-grid .dg-price .dg-price-mo {
  font-weight: 600;
  color: #5a6b7b;
  font-size: 12px;
}
#search .search-dest-grid .ds-dest-mv {
  font-size: 11px;
}
#search .search-dest-grid .ds-dest-m {
  padding: 7px 2px;
}

@media (min-width: 700px) {
  #search .search-dest-grid .dg-name {
    font-size: 17px;
  }
}

@media (max-width: 1024px) {
  #search .search-dest-grid .dg-media {
    border-radius: 18px;
  }
  #search .search-dest-grid .dg-cover {
    aspect-ratio: 16 / 11;
  }
  #search .search-dest-grid .dg-copy {
    bottom: 56px;
    left: 14px;
    right: 14px;
  }
  #search .search-dest-grid .dg-name {
    font-size: 20px;
  }
  #search .search-dest-grid .dg-blurb {
    font-size: 13px;
  }
  #search .search-dest-grid .ds-dest-mv {
    font-size: 12px;
  }
  #search .search-dest-grid .ds-dest-m {
    padding: 9px 4px;
  }
  #search .search-dest-lede {
    font-size: 14px;
    margin: 0 0 10px;
  }
}
