/* Compare cards: full-width image + action overlay; sticky = title+price only */
.compare__media-row {
  margin: 2rem 0 0.4rem;
  padding: 0 2.5rem;
}

@media (min-width: 1199px) {
  .compare__media-row {
    margin: 2.4rem 0 0.5rem;
    padding: 0 3rem;
  }
}

.compare__topbar {
  padding-bottom: 0;
}

/* Equal slide widths; theme first-child padding-left:0 made image #1 larger */
.js-compare .swiper-compare {
  overflow: hidden;
}

.js-compare .swiper-compare .swiper-slide {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 27rem;
  min-width: 27rem;
  max-width: 27rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.js-compare .swiper-compare .swiper-slide:first-child,
.js-compare .swiper-compare .swiper-slide:last-child {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.js-compare .swiper-compare .swiper-slide:last-child {
  border-right: none;
}

@media (min-width: 1199px) {
  .js-compare .swiper-compare .swiper-slide {
    width: 25%;
    min-width: 28rem;
    max-width: 28rem;
  }
}

/* Soft grey thick scrollbar — scroll only via this bar */
.js-compare .js-swiper-compare-scrollbar {
  height: 1rem;
  margin: 1.6rem 0 0;
  background: #E8EAEE;
  border-radius: 999px;
}

.js-compare .js-swiper-compare-scrollbar .swiper-scrollbar-drag {
  height: 100%;
  top: 0;
  background: #C8CDD6;
  border-radius: 999px;
}

.js-compare .js-swiper-compare-scrollbar .swiper-scrollbar-drag:hover {
  background: #B4BAC6;
}

.compare__item--media,
.compare__item--meta {
  max-width: none;
  width: 100%;
  margin: 0;
}

.compare__item--meta .compare__item-title {
  margin-bottom: 0.5rem;
}

.compare__item--meta .compare__item-price {
  margin: 0;
}

.compare__sticky {
  padding-top: 0.8rem;
  padding-bottom: 1.2rem;
}

.compare__sticky.is-sticky {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: #2c3e50;
  box-shadow: 0 0 20px rgba(44, 62, 80, 0.35);
  color: #fff;
}

.compare__sticky.is-sticky .compare__item-title,
.compare__sticky.is-sticky .compare__item-price,
.compare__sticky.is-sticky .compare__item-price ins {
  color: #fff;
}

.compare__sticky.is-sticky .compare__item-title:hover {
  color: #fff;
  opacity: 0.85;
}

.compare__sticky.is-sticky .compare__item-price del {
  color: rgba(255, 255, 255, 0.55);
}

.compare__item-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0.8rem;
  background: #fff;
  container-type: inline-size;
  container-name: compare-card;
}

.compare__item-buttons {
  position: absolute;
  top: 3cqi;
  right: 3cqi;
  z-index: 100;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  gap: 2cqi;
}

.compare__item-buttons .ui-btn,
.compare__item-buttons .ui-btn--40x40 {
  width: 12cqi;
  height: 12cqi;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: 1.2cqi;
  background: rgba(255, 255, 255, 0.85);
}

.compare__item-buttons .ui-btn:last-child {
  margin: 0;
}

.compare__item-buttons .ui-btn svg {
  display: block;
  width: 45%;
  height: 45%;
  margin: 0;
}

.compare__item-image {
  display: block !important;
  height: auto !important;
  margin: 0 !important;
  width: 100%;
  -ms-flex-align: unset;
  align-items: unset;
  -ms-flex-pack: unset;
  justify-content: unset;
}

.compare__item-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.compare__item-action {
  position: absolute;
  left: 3cqi;
  right: 3cqi;
  bottom: 3cqi;
  z-index: 100;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: stretch;
  align-items: stretch;
  gap: 2cqi;
  margin: 0 !important;
}

.compare__item-action__reserve.ui-btn {
  -ms-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  -ms-flex-pack: center;
  justify-content: center;
  height: 14cqi;
  padding: 0 3cqi;
  font-size: 4.2cqi;
  line-height: 1;
  border-radius: 1.2cqi;
  white-space: nowrap;
  margin: 0 !important;
}

.compare__item-action__preview.ui-btn {
  -ms-flex: 0 0 14cqi;
  flex: 0 0 14cqi;
  width: 14cqi;
  min-width: 0;
  height: 14cqi;
  padding: 0;
  border-radius: 1.2cqi;
  margin: 0 !important;
}

.compare__item-action__preview.ui-btn svg {
  display: block;
  width: 40%;
  height: 40%;
  margin: 0;
}
