.edit-suite {
  border: 0 !important;
  background: none !important;
  color: #082e92 !important;
  padding: 5px 0 !important;
  text-decoration: underline;
  text-align: left;
}
.suite-editor {
  width: min(900px, 94vw);
  max-width: 900px;
  max-height: 92vh;
  overflow: auto;
}
.suite-editor form {
  display: grid;
  gap: 20px;
}
.suite-editor label {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.suite-editor textarea {
  width: 100%;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  padding: 11px;
  margin-top: 6px;
  resize: vertical;
}
.editor-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.editor-columns small {
  font-weight: 400;
  color: #777;
}
.option-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px;
  background: #f6f7fb;
  border-radius: 12px;
}
.option-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.option-grid input {
  width: auto;
}
.photo-editor {
  border-top: 1px solid #e4e4e4;
  padding-top: 18px;
}
.photo-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.upload-photo {
  background: #082e92;
  color: #fff;
  padding: 9px 13px;
  border-radius: 8px;
  cursor: pointer;
}
.upload-photo input {
  display: none;
}
.photo-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.photo-list > div {
  display: grid;
  grid-template-columns: 70px 1fr 34px 34px 72px;
  align-items: center;
  gap: 8px;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 7px;
}
.photo-list img {
  width: 70px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
}
.photo-list button {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 7px;
  height: 32px;
}
.photo-list .remove-photo {
  color: #a33131;
}
.editor-save {
  justify-self: end;
}
.listings-title {
  display: flex;
  justify-content: space-between;
}
@media (max-width: 650px) {
  .editor-columns {
    grid-template-columns: 1fr;
  }
  .suite-editor {
    width: 96vw;
  }
  .photo-list > div {
    grid-template-columns: 55px 1fr 30px 30px;
  }
  .photo-list img {
    width: 55px;
  }
  .photo-list .remove-photo {
    grid-column: 2/-1;
  }
  .option-grid {
    display: grid;
  }
  .editor-save {
    width: 100%;
  }
}
.suite-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.suite-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 9px;
  background: #1238a6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.suite-actions > a:hover {
  background: #0b2a84;
  transform: translateY(-1px);
}
.detail-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  border-bottom: 1px solid #e7e9e5;
}
.detail-header img {
  width: 205px;
}
.detail-back {
  font-size: 14px;
  font-weight: 600;
}
.suite-detail {
  max-width: 1280px;
  margin: auto;
  padding: 38px 6% 80px;
}
.detail-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 26px;
}
.detail-title span {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: #096661;
  font-weight: 700;
}
.detail-title h1 {
  margin: 5px 0;
}
.detail-title p {
  color: #757976;
}
.detail-title > strong {
  white-space: nowrap;
}
.detail-gallery {
  height: 490px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
  border-radius: 18px;
  overflow: hidden;
}
.detail-gallery-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: #eef0f4;
}
.detail-gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.detail-gallery-photo:hover img {
  transform: scale(1.02);
}
.detail-gallery-photo:first-child {
  grid-column: 1;
  grid-row: 1/3;
}
.detail-gallery-photo:first-child img {
  object-fit: cover;
  object-position: center;
}
.detail-gallery-photo:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.detail-gallery-photo:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.detail-gallery-photo:nth-child(4) {
  grid-column: 3;
  grid-row: 1;
}
.detail-gallery-photo:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}
.detail-gallery-photo span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #17203a;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 2px 10px #0002;
}
.detail-gallery.count-1 {
  display: block;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 8%;
  margin-top: 42px;
}
.detail-grid section {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e7e9e5;
}
.detail-grid section p {
  color: #59615c;
  line-height: 1.8;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.detail-book {
  height: max-content;
  border: 1px solid #dedede;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 12px 30px #00000012;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 22px;
}
.detail-book h2,
.detail-book p {
  margin: 0;
}
.detail-book > a {
  background: #096661;
  color: #fff;
  padding: 14px;
  border-radius: 9px;
  text-align: center;
  font-weight: 650;
  margin-top: 8px;
}
.detail-book small {
  color: #757976;
  text-align: center;
}
.suite-detail-state {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.gallery-open {
  overflow: hidden;
}
.suite-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #07112c;
  color: #fff;
  padding: 18px 24px 14px;
}
.suite-lightbox-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 48px;
}
.suite-lightbox-top strong {
  font-size: 16px;
}
.suite-lightbox-top span {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.suite-lightbox-top button {
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  background: #ffffff12;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.suite-lightbox-stage {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: center;
  touch-action: pan-x;
}
.suite-lightbox-image {
  justify-self: center;
  align-self: center;
  max-width: calc(100% - 120px);
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.suite-lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #ffffff18;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}
.suite-lightbox-arrow.previous {
  left: 6px;
}
.suite-lightbox-arrow.next {
  right: 6px;
}
.suite-lightbox > p {
  margin: 8px 0 0;
  text-align: center;
  color: #d7dced;
  font-size: 13px;
}
@media (max-width: 780px) {
  .detail-header {
    height: 75px;
    padding: 0 5%;
  }
  .detail-header img {
    width: 160px;
  }
  .suite-detail {
    padding: 28px 5% 60px;
  }
  .detail-title {
    display: block;
  }
  .detail-title > strong {
    display: block;
    margin-top: 14px;
  }
  .detail-gallery {
    height: 360px;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .detail-gallery-photo:nth-child(n + 4) {
    display: none;
  }
  .detail-gallery-photo:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .detail-gallery-photo:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .suite-lightbox {
    padding: 10px 0 12px;
  }
  .suite-lightbox-top {
    padding: 0 14px;
  }
  .suite-lightbox-top strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .suite-lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 135px);
    border-radius: 0;
  }
  .suite-lightbox-arrow {
    width: 42px;
    height: 42px;
    background: #07112cbb;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-book {
    position: static;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
}
