.dl-page,
.dl-detail {
  max-width: 100%;
}

.dl-grid-wrap {
  width: 100%;
  max-width: 1905px;
  margin: 0 auto;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.dl-card {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.dl-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}

.dl-card__content {
  position: absolute;
  left: 24px;
  bottom: 56px;
  color: #fdfdfd;
  z-index: 2;
}

.dl-card__status {
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.dl-card__title {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  color: #fdfdfd;
}

.dl-card__loc {
  margin-top: 8px;
  font-size: 40px;
  line-height: 1.1;
}

.dl-card__btn {
  display: inline-block;
  margin-top: 24px;
  border: 1px solid #fdfdfd;
  color: #fdfdfd;
  text-decoration: none;
  padding: 12px 48px;
  font-size: 16px;
  line-height: 1;
}

.dl-hero {
  position: relative;
  min-height: 630px;
  background-size: cover;
  background-position: center;
}

.dl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}

.dl-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1245px;
  margin: 0 auto;
  color: #fdfdfd;
  padding: 290px 20px 40px;
}

.dl-hero__status {
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 14px;
}

.dl-hero__title {
  color: #fdfdfd;
  margin: 12px 0 8px;
  font-size: 56px;
  line-height: 1.1;
}

.dl-hero__location {
  font-style: italic;
  font-size: 48px;
  line-height: 1.1;
}

.dl-hero__metrics {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  font-size: 14px;
}

.dl-hero__back {
  display: inline-block;
  margin-top: 24px;
  border: 1px solid #fff;
  color: #fff;
  padding: 14px 45px;
  text-decoration: none;
}

.dl-tabs-wrap {
  max-width: 1245px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.dl-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.dl-tabs button {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  cursor: pointer;
}

.dl-tabs button.is-active {
  border-bottom: 2px solid #000;
}

.dl-tab-panel {
  display: none;
  padding-top: 24px;
}

.dl-tab-panel.is-active {
  display: block;
}

.dl-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dl-gallery__item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.dl-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dl-lightbox.is-open {
  display: flex;
}

.dl-lightbox__image {
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.dl-lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.dl-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.dl-lightbox__nav--prev {
  left: 16px;
}

.dl-lightbox__nav--next {
  right: 16px;
}

.dl-lightbox__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: dlSpin 0.9s linear infinite;
}

.dl-lightbox:not(.is-loading) .dl-lightbox__spinner {
  display: none !important;
}

@keyframes dlSpin {
  to {
    transform: rotate(360deg);
  }
}

.dl-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

@media (max-width: 1024px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .dl-card__title {
    font-size: 36px;
  }
  .dl-card__loc {
    font-size: 32px;
  }
  .dl-hero__title {
    font-size: 42px;
  }
  .dl-hero__location {
    font-size: 34px;
  }
  .dl-specs,
  .dl-gallery {
    grid-template-columns: 1fr;
  }
}
