/* Shared component for ExteriorCards + InteriorCards (.feature-cards root, reused per BUILDER_RULES). */

.feature-cards {
  width: 100%;
}

/* ---------- Desktop (>=768px): drag-scroll row + expanding side panel ---------- */

.feature-cards__pc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
}

.feature-cards__row {
  list-style: none;
  margin: 0;
  user-select: none;
  display: flex;
  gap: 16px;
  flex-direction: row;
  overflow-x: auto;
  padding: 80px 48px 80px;
  box-sizing: border-box;
  scrollbar-width: none;
  cursor: grab;
}

.feature-cards__row:active {
  cursor: grabbing;
}

.feature-cards__row::-webkit-scrollbar {
  display: none;
}

.feature-cards__item {
  display: flex;
  background: #f7f7f7;
  border-radius: 32px;
  max-height: 606px;
  min-height: 350px;
}

.feature-cards__media {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-shrink: 0;
  width: 432px;
  aspect-ratio: 432 / 606;
}

.feature-cards__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.feature-cards__media-content {
  z-index: 1;
  flex: 1 1 0%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.feature-cards__title {
  margin: 0;
  font-weight: 600;
  font-size: 28px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #fff;
}

.feature-cards__toggle {
  pointer-events: auto;
  background: #fff;
  height: 48px;
  width: 48px;
  border-radius: 50%;
  color: #252728;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-cards__toggle svg {
  transition: transform 0.4s ease-in-out;
}

.feature-cards__toggle[aria-expanded="true"] {
  background: #000;
  color: #fff;
}

.feature-cards__toggle[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.feature-cards__panel {
  display: flex;
  gap: 32px;
  width: 0;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  max-height: 100%;
  max-width: 384px;
  opacity: 0;
}

.feature-cards__panel::-webkit-scrollbar {
  width: 4px;
}

.feature-cards__panel::-webkit-scrollbar-thumb {
  width: 100%;
  border-radius: 999px;
  background-color: #dcdddf;
}

.feature-cards__desc {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #242728;
}

/* ---------- Mobile (<=767px): swiper carousel + bottom drawer ---------- */

.feature-cards__mob {
  display: none;
}

@media (max-width: 767px) {
  .feature-cards__pc {
    display: none;
  }

  .feature-cards__mob {
    display: block;
    width: 100vw;
  }

  .feature-cards__swiper {
    padding: 24px 21px 29px;
  }

  .feature-cards__slide {
    position: relative;
    height: 80vh;
    max-width: 635px;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
  }

  .feature-cards__slide-media {
    position: absolute;
    inset: 0;
    z-index: -1;
  }

  .feature-cards__slide-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .feature-cards__slide-content {
    z-index: 1;
    padding: 16px;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .feature-cards__slide-title {
    margin: 0;
    font-weight: 600;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #fff;
  }

  .feature-cards__slide-toggle {
    cursor: pointer;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    background-color: #fff;
    color: #252728;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .feature-cards__controller-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
  }

  .feature-cards__controller-placeholder {
    height: 0;
  }

  .feature-cards__controller {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(60px);
    border-radius: 48px;
    box-sizing: content-box;
  }

  .feature-cards__controller.fixedClass {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--distance-bottom, 29px);
    z-index: 2;
    width: fit-content;
    margin: 0 auto;
  }

  .feature-cards__controller .swiper-button-prev,
  .feature-cards__controller .swiper-button-next {
    position: unset;
    margin: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: 0.2s ease-in-out;
    color: #fff;
  }

  .feature-cards__controller .swiper-button-prev svg,
  .feature-cards__controller .swiper-button-next svg {
    height: 100%;
    width: 100%;
  }

  .feature-cards__controller .swiper-button-prev::after,
  .feature-cards__controller .swiper-button-next::after {
    display: none;
  }

  .feature-cards__controller .swiper-pagination {
    position: unset;
    width: auto;
  }

  .feature-cards__controller .swiper-pagination-bullet {
    background: #5c606a;
    width: 8px;
    height: 8px;
    opacity: 1;
  }

  .feature-cards__controller .swiper-pagination-bullet-active {
    width: 16px;
    border-radius: 4px;
    background: #fff;
  }
}

/* ---------- Bottom drawer (mobile "+" popup) ---------- */

.feature-cards__drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
}

.feature-cards__drawer.is-open {
  display: block;
}

.feature-cards__drawer-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px 16px;
  height: 80dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feature-cards__drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.feature-cards__drawer-close {
  cursor: pointer;
  transform: rotate(45deg);
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background-color: #000;
  color: #fff;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-cards__drawer-body {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
}

.feature-cards__drawer-title {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0%;
  color: #1a1d25;
}

.feature-cards__drawer-desc {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 21px;
  letter-spacing: 0%;
  color: #242728;
}

.feature-cards__drawer-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 32px;
}

.feature-cards__drawer-img {
  flex: 1;
  height: 218px;
  object-fit: cover;
  max-width: 100%;
  width: 100%;
}
