/* 5-card Bento grid showcasing curated Best Hotels city guides on /hotel/index.html */
.best-hotels-bento {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 56px;
  box-sizing: border-box;
}

.best-hotels-bento-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: var(--hotel-space-title-content, 24px);
}

.best-hotels-bento-title {
  margin: 0;
  font-size: var(--hotel-type-section, 26px);
  font-weight: 800;
  line-height: 1.35;
  color: #03205a;
}

.best-hotels-bento-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #667085;
}

.best-hotels-bento-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr 1fr;
  grid-template-rows: repeat(2, 236px);
  gap: 14px;
}

.best-hotels-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  background-color: #1e293b;
  box-shadow: 0 10px 26px rgba(3, 32, 90, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.best-hotels-card--featured {
  grid-column: 1;
  grid-row: 1 / 3;
}

.best-hotels-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(3, 32, 90, 0.16);
}

.best-hotels-card:focus-visible {
  outline: 2px solid #2c61fe;
  outline-offset: 3px;
}

.best-hotels-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}
.best-hotels-card-bg--paris { object-position: center 20%; }

.best-hotels-card:hover .best-hotels-card-bg {
  transform: scale(1.06);
}

.best-hotels-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.14) 36%,
    rgba(0, 0, 0, 0) 62%,
    rgba(0, 0, 0, 0.18) 100%
  );
  transition: opacity 0.25s ease;
}

.best-hotels-card-body {
  position: relative;
  z-index: 2;
  padding: 22px 24px;
  max-width: 88%;
}

.best-hotels-card--featured .best-hotels-card-body {
  padding: 28px;
}

.best-hotels-card-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.best-hotels-card-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(3, 18, 51, 0.35);
}

.best-hotels-card--featured .best-hotels-card-title {
  font-size: 25px;
  margin-bottom: 10px;
}

.best-hotels-card-desc {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(3, 18, 51, 0.35);
}

.best-hotels-card--featured .best-hotels-card-desc {
  font-size: 14.5px;
}

.best-hotels-card-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.best-hotels-card-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.best-hotels-card:hover .best-hotels-card-arrow {
  transform: rotate(0deg);
  background: #2c61fe;
  border-color: #2c61fe;
}

@media (max-width: 1024px) {
  .best-hotels-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 260px repeat(2, 220px);
    grid-auto-rows: 220px;
  }

  .best-hotels-card--featured {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 768px) {
  .best-hotels-bento {
    padding: 28px 16px 12px;
  }

  .best-hotels-bento-header {
    gap: 4px;
    margin-bottom: 16px;
  }

  .best-hotels-bento-title {
    font-size: var(--hotel-type-section-mobile, 20px);
  }

  .best-hotels-bento-subtitle {
    font-size: 13px;
  }

  .best-hotels-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 200px repeat(2, 176px);
    grid-auto-rows: 176px;
    gap: 10px;
  }

  .best-hotels-card {
    border-radius: 12px;
  }

  .best-hotels-card--featured {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .best-hotels-card-body,
  .best-hotels-card--featured .best-hotels-card-body {
    padding: 14px 14px 44px;
    max-width: 100%;
  }

  .best-hotels-card-badge {
    font-size: 10.5px;
    padding: 2px 8px;
    margin-bottom: 6px;
  }

  .best-hotels-card-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .best-hotels-card--featured .best-hotels-card-title {
    font-size: 19px;
    margin-bottom: 6px;
  }

  .best-hotels-card-desc,
  .best-hotels-card--featured .best-hotels-card-desc {
    font-size: 12px;
    line-height: 1.45;
  }

  .best-hotels-card-arrow {
    right: 12px;
    bottom: 12px;
    width: 30px;
    height: 30px;
  }

  .best-hotels-card-arrow svg {
    width: 15px;
    height: 15px;
  }
}
