/*
  Spaces (horizontal category cards)
*/

.spaces {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  min-height: 180px;
  margin-top: 40px;
 
}

.spaces__inner {
  width: min(1654px, 100%);
  margin: 0 auto;

}

.spaces__carousel {
  position: relative;
  overflow: visible;
}

.spaces__nav {
  position: absolute;
  top: 50%;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;

  border: 0;
  
  background: transparent;
  cursor: pointer;
}

.spaces__nav:hover {
 
}

.spaces__nav:focus {
  outline: none;
}

.spaces__nav:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 178, 255, 0.35), 0 10px 24px rgba(0, 0, 0, 0.14);
}

.spaces__nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
 
}

.spaces__nav--prev {
  left: 0;
  transform: translate(-75%, -50%);
}

.spaces__nav--next {
  right: 0;
  transform: translate(75%, -50%);
}

.spaces__nav-icon {
  display: block;
  width: 14px;
  height: 32px;
  object-fit: contain;
  pointer-events: none;
}

.spaces__scroller {
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding-right: 10px;

 
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
  width: 100%;
  min-height: 194px;
  cursor: grab;
}

.spaces__scroller:focus {
 
}

.spaces__scroller:focus-visible {
 
}

.spaces__scroller::-webkit-scrollbar {
  display: none;
}

.spaces__scroller::-webkit-scrollbar-track {
 
}

.spaces__scroller::-webkit-scrollbar-thumb {
  
}

.spaces__scroller.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.spaces__carousel:not([data-overflow="true"]) .spaces__nav {
  display: none;
}

.spaces__list {
  display: flex;
  align-items: stretch;
  gap: 11px;
  list-style: none;
  margin: 0;
  /* Keep enough inner gutter so card shadows are not clipped (top/right). */
  padding: 8px 10px 10px 8px;
  width: max-content;
}

.spaces__carousel:not([data-overflow="true"]) .spaces__list {
  width: 100%;
  justify-content: center;
}


.spaces-card__link {
   box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 154px;
    height: 178px;
    padding: 4px;
    background: #ffffff;
    border-radius: 6px;
   box-shadow: 1px 1px 5px 1px #005A8D80;
    opacity: 1;
    transition: opacity 100ms 
linear;
    text-decoration: unset;
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0;
    color: #ffffff;

}

.spaces-card__link:hover {
text-decoration: unset;
  /* Blue glow shadow */
  /* box-shadow: 0 0 5px 1px rgba(0, 178, 255, 0.5); */
 box-shadow: 1px 1px 5px 1px #00B2FF80;


}

.spaces-card.highlight .spaces-card__link {
  box-shadow: 1px 1px 5px 1px #00B2FF;
}



.spaces-card__label {
  box-sizing: border-box;
  width: 146px;
min-height: 11px;
    padding: 4px 0 2px 0;
  background: #5F7874;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}

.spaces-card__label-word {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}

.spaces-card__thumb {
  border-radius: 0px 0px 4px 4px;
}

.spaces-card__thumb img {
  
}

.spaces-card__thumb::after {
 
}



@media (max-width: 1024px) {
  .spaces {
    margin-top: 24px;
  }

  .spaces__inner {
    padding: 16px 24px 8px;
  }

  .spaces__nav--prev {
    transform: translate(-45%, -50%);
  }

  .spaces__nav--next {
    transform: translate(45%, -50%);
  }
}

@media (max-width: 768px) {
  .spaces__inner {
    padding: 12px 12px 8px;
  }

  .spaces__carousel {
    overflow: hidden;
  }

  .spaces__nav--prev {
    left: 0;
    transform: translate(-35%, -50%);
  }

  .spaces__nav--next {
    right: 0;
    transform: translate(35%, -50%);
  }

  .spaces-card__link {
    width: 138px;
    height: 168px;
    font-size: 14px;
  }

  .spaces-card__label {
    width: 100%;
  }

  .spaces-card__thumb {
    display: block;
    flex: 1;
    min-height: 78px;
    overflow: hidden;
    border-radius: 0px 0px 4px 4px;
  }

  .spaces-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
