/* ===== HEADER ===== */
#headerCarousel img {
  height: 12rem;
  object-fit: cover;
}

.carousel-item img {
  transform: scale(1.1);
  transition: transform 6s ease;
}

.carousel-item.active img {
  transform: scale(1);
}

/* ===== FILTER ===== */
.filter-wrapper {
  position: relative;
  z-index: 1010 !important;
}

/* Placeholder supaya tidak loncat */
.filter-placeholder {
  height: 4.5rem;
}

/* hover / active */
.filter .input-group:hover,
.filter .dropdown > div[data-bs-toggle]:hover {
  background: #f8f9fa;
}

/* icon */
.filter i {
  color: #b0b0b0;
}

/* label kecil */
.filter small {
  letter-spacing: 0.3px;
}

/* Filter box */
.filter {
  will-change: top;
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 0;
  z-index: 1050;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);

  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease,
    transform 0.35s ease;
}

.filter input,
.filter .filter-item {
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
}

.filter .filter-item {
  padding-right: 1.2rem;
}

.main {
  width: calc(100% - 2rem);
  margin: 2rem auto;
}

/* efek */
.price-amount {
  position: relative;
  animation: pricePop 0.4s ease;
}

@keyframes pricePop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.35),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:active::after {
  opacity: 1;
}

@media (max-width: 767px) {
  /* efek */
  .card {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateZ(0);
  }

  .spec-allot > .row {
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .spec-allot > .row:active {
    transform: scale(0.98);
  }

  /* Layout utama */
  .spec-room,
  .spec-allot {
    margin-bottom: 1rem;
  }

  .spec-allot > .row {
    padding: 0.75rem;
  }

  /* Gambar */
  .room-img-wrp {
    aspect-ratio: 16 / 9;
  }

  /* Facility jadi 1 kolom */
  .facility-list {
    grid-template-columns: 1fr;
    font-size: 0.9rem;
  }

  /* Allotment jadi stack */
  .spec-allot .row {
    flex-direction: column;
  }

  .spec-allot .col-md-8,
  .spec-allot .col-md-4 {
    width: 100%;
    max-width: 100%;
  }

  /* Price section */
  .allot-price {
    text-align: left;
    margin-top: 0.75rem;
    border-top: 1px dashed #eee;
    padding-top: 0.75rem;
  }

  .price-amount {
    font-size: 1.6rem;
  }

  /* Counter kamar */
  .room-qty {
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  /* CTA full width */
  .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 0.75rem;
  }
}

@media (max-width: 767px) {
  .btn-primary {
    position: sticky;
    bottom: 0.5rem;
    z-index: 100;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .filter {
    width: 80%;
  }

  .main {
    width: 80%;
  }
}

/* Sticky state */
.filter.is-sticky {
  position: fixed;
  top: 5rem;
  opacity: 1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Inputs */
.flatpickr-input,
.form-control {
  border: none !important;
  box-shadow: none !important;
}

#sumperson {
  cursor: pointer;
}

.room-img-wrp {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f1f1f1;
}

.room-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.facility-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 kolom */
  gap: 0.5rem 1rem;
}

.facility-list li {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #444;
}

.facility-list li i {
  color: #c9a44c;
  /* gold accent */
  margin-right: 0.5rem;
  min-width: 18px;
  font-size: 0.9rem;
}

.spec-allot > .row {
  border: 1px solid #eee;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.allot-item {
  height: 100%;
}

.spec-allot-header h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.allot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.allot-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.25rem;
}

.allot-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #28a745;
  font-size: 0.75rem;
}

.allot-price {
  text-align: right;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-label {
  font-size: 0.75rem;
  color: #777;
}

.price-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: #c9a44c;
}

.price-note {
  font-size: 0.7rem;
  color: #888;
}

.room-qty {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.room-qty button {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  border: 1px solid #ddd;
  background: #fff;
}

.room-qty span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.btn-primary {
  background: #c9a44c;
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  padding: 0.5rem 0;
}

.btn-primary:hover {
  background: #725619;
}

.primary-color {
  color: #725619;
}
