.columns,
.space {
  width: 1280px;
  max-width: 100%;
  display: flex;
  align-items: center;
}
.columns {
  height: 349px;
  background-color: #fcfdfd;
  border-top: 0;
  box-sizing: border-box;
  flex-direction: column;
  padding: 30px 0 0;
  gap: 34px;
  text-align: left;
  font-size: 12px;
  color: #fff;
  font-family: Saira;
  position: relative;
  overflow: visible;
}

.columns::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background-color: #f0f4f5;
  transform: translateX(-50%);
  pointer-events: none;
}
.space {
  justify-content: space-between;
  gap: 8.9px;
}
.bedroom,
.room-card-primary,
.room-label-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bedroom {
  height: 140px;
  width: 120px;
}
.room-card-primary,
.room-label-top {
  box-sizing: border-box;
}
.room-card-primary {
  width: 120px;
  height: 140px;
  box-shadow: 1px 1px 3.5px 1px rgba(0, 90, 141, 0.5);
  border-radius: 4px;
  background-color: #fff;
  padding: 3px;
  gap: 1.5px;
}
.room-label-top {
  align-self: stretch;
  height: 18px;
  border-radius: 4px 4px 0 0 ;
  background-color: #5f7874;
  padding: 0 23px;
}
.room-label {
  width: 61px;
  height: 18px;
  position: relative;
  display: inline-block;
 
  font-style: normal;
 

  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
font-family: Saira;
font-size: 12px;
font-style: italic;
font-weight: 700;
line-height: normal;
}
.room-card-img {
  align-self: stretch;
  flex: 1;
  position: relative;
  border-radius: 0 0 2px 2px;
  max-width: 100%;
  overflow: hidden;
  max-height: 100%;
  object-fit: cover;
}
.room-card-secondary,
.room-label-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.room-card-secondary {
  width: 120px;
  height: 140px;
  box-shadow: 1px 1px 3.5px 1px rgba(0, 90, 141, 0.5);
  border-radius: 6px;
  background-color: #fff;
  justify-content: center;
  padding: 3px;
  box-sizing: border-box;
  gap: 1.5px;
}
.room-label-bottom {
  align-self: stretch;
  height: 18px;
  border-radius: 4px 4px 0 0 ;
  background-color: #5f7874;
  justify-content: center;
}
.room-label-kitchen {
  height: 18px;
  position: relative;
  width: 51px;
  display: inline-block;
  font-weight: 700;
  font-style: normal;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.room-card-img-alt {
  align-self: stretch;
  flex: 1;
  position: relative;
  border-radius: 0 0 3px 3px;
  max-width: 100%;
  overflow: hidden;
  max-height: 100%;
  object-fit: cover;
}
.room-card {
  width: 120px;
  height: 140px;
  box-shadow: 1px 1px 5px 1px rgba(0, 90, 141, 0.5);
  border-radius: 6px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-sizing: border-box;
  gap: 1.5px;
}
.room-label-living {
  width: 79px;
  height: 18px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-style: normal;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.spaces-list-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8.9px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.childroom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.room-label-wide,
.room-label-bathroom,
.room-label-office,
.room-label-hallway {
  width: 71px;
  height: 18px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-style: normal;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.room-label-bathroom,
.room-label-office,
.room-label-hallway {
  width: 69px;
}
.room-label-office,
.room-label-hallway {
  width: 41px;
}
.room-label-hallway {
  width: 57px;
}
.room-card-flex {
  width: 120px;
  flex: 1;
  box-shadow: 1px 1px 5px 1px rgba(0, 90, 141, 0.5);
  border-radius: 6px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-sizing: border-box;
  gap: 1.5px;
}
.room-label-exterior,
.room-label-establishments {
  width: 107px;
  height: 18px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-style: normal;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.room-label-exterior {
  width: 59px;
}

/* ── Space carousel nav arrows ─────────────────────────────────── */
.spaces-section {
  position: relative;
  width: 100%;
}
.space--scrollable {
  overflow-x: scroll;
  overflow-y: visible;
  scrollbar-width: none;
  justify-content: flex-start;
  scroll-behavior: smooth;
  padding: 5px 1px;
  width: 1285px;
}
.space--scrollable::-webkit-scrollbar { display: none; }
.space-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.space-nav[disabled] { opacity: 0.35; cursor: not-allowed; }
.space-nav--prev { left: 0; transform: translate(-85%, -50%); }
.space-nav--next { right: 0; transform: translate(85%, -50%); }
.space-nav-icon {
  display: block;
  width: 14px;
  height: 32px;
  object-fit: contain;
  pointer-events: none;
}

/* ── Tablet: up to 1280px ───────────────────────────────────────── */
@media screen and (max-width: 1280px) {
  .columns,
  .space {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ── Tablet: up to 1024px ───────────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .space {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 8px;
  }
  .bedroom {
    flex-shrink: 0;
  }
  .columns {
    height: auto;
    gap: 20px;
    padding: 16px 12px;
  }
}

/* ── Mobile: up to 768px ────────────────────────────────────────── */
@media screen and (max-width: 768px) {
  /* room cards: horizontal scroll */
  .space {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0 8px 6px;
    gap: 8px;
  }
  .space::-webkit-scrollbar { display: none; }
  .bedroom {
    width: 100px;
    height: 120px;
    flex-shrink: 0;
  }
  .room-card-primary,
  .room-card-secondary,
  .room-card,
  .room-card-flex {
    width: 100px;
    height: 120px;
  }

  .columns {
    gap: 16px;
    padding: 16px 0;
  }
}

/* ── Small mobile: up to 480px ─────────────────────────────────── */
@media screen and (max-width: 480px) {
  .bedroom {
    width: 90px;
    height: 110px;
    flex-shrink: 0;
  }
  .room-card-primary,
  .room-card-secondary,
  .room-card,
  .room-card-flex {
    width: 90px;
    height: 110px;
  }
}

/* Spaces hover + selected states. */
.spaces-card:hover :is(.room-card-primary, .room-card-secondary, .room-card, .room-card-flex) {
  border-radius: 5px;
  background: #fff;
  box-shadow: 1px 1px 5px 1px rgba(0, 178, 255, 0.50);
}

.spaces-card.highlight :is(.room-card-primary, .room-card-secondary, .room-card, .room-card-flex) {
  border-radius: 6px;
  background: #fff;
  box-shadow: 1px 1px 5px 1px #00B2FF;
}