.booking-page {
  background: #f5f5f5;
}

.catalog-hero {
  padding: 170px 0 34px;
  background: linear-gradient(135deg, #11363e, #0b2b33);
  color: var(--white);
}

.catalog-hero-inner h1 {
  margin: 14px 0 14px;
  max-width: 860px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.22;
}

.catalog-hero-inner p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 15px;
}

.catalog-controls {
  padding: 24px 0 0;
}

.platform-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(18,52,61,.05);
}

.platform-btn {
  width: 180px;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.platform-btn img {
  display: block;
  width: auto;
  max-width: 120px;
  max-height: 26px;
}

.platform-btn.active {
  background: #f4f6f7;
}

.catalog-note {
  margin: 14px 0 0;
  color: #7c7c7c;
  font-size: 12px;
}

.catalog-grid-section {
  padding: 28px 0 88px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.unit-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e7e7e7;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
  transition: transform .2s ease, box-shadow .2s ease;
}

.unit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.unit-card-media {
  position: relative;
  padding: 12px 12px 0;
}


.favorite-btn {
  position: absolute;
  top: 22px;
  inset-inline-start: 22px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.favorite-btn svg {
  width: 30px;
  height: 30px;
}

.unit-card-body {
  padding: 10px 14px 16px;
}

.unit-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.unit-platform-row {
  height: 28px;
  display: inline-flex;
  align-items: center;
}

.unit-platform-row img {
  width: auto;
  max-width: 88px;
  max-height: 20px;
  display: block;
}

.unit-id-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #666;
  font-size: 10px;
}

.unit-id-wrap strong {
  font-size: 10px;
  font-weight: 700;
  color: #515151;
}

.unit-type {
  font-size: 9px;
  color: #919191;
}

.unit-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  color: #191919;
}

.unit-location {
  margin: 0 0 8px;
  color: #868686;
  font-size: 11px;
  font-weight: 600;
}

.unit-description {
  margin: 0 0 12px;
  color: #8a8a8a;
  font-size: 10px;
  line-height: 1.8;
}

.unit-bottom {
  display: grid;
  gap: 10px;
}

.unit-stay-type {
  color: #5f5f5f;
  font-size: 10px;
  font-weight: 600;
}

.unit-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  background: #12343d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.unit-link:hover {
  background: #1b4650;
  transform: translateY(-1px);
}

.compact-footer {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-hero {
    padding-top: 148px;
  }
}

@media (max-width: 640px) {
  .platform-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .platform-btn {
    width: 100%;
    min-width: 0;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* Make platform logos consistent inside every unit card */
.unit-platform-row.airbnb img,
.unit-platform-row.gathern img {
  width: auto;
  max-width: 88px;
  max-height: 20px;
  object-fit: contain;
  display: block;
}

.unit-platform-row.gathern img {
  max-width: 92px;
  max-height: 20px;
}


.unit-gallery-viewport {
  overflow: hidden;
  border-radius: 18px;
  direction: ltr;
  position: relative;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.unit-gallery-track {
  display: flex;
  width: 100%;
  direction: ltr;
  transition: transform .28s ease;
  will-change: transform;
}

.unit-slide {
  min-width: 100%;
  flex: 0 0 100%;
}

.unit-slide img {
  width: 100%;
  aspect-ratio: 1.18 / .95;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #101010;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  z-index: 3;
}

.gallery-arrow svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-arrow.prev {
  left: 20px;
}

.gallery-arrow.next {
  right: 20px;
}

.gallery-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}

.gallery-dot.active {
  width: 16px;
  background: #ffffff;
}
