.detail-page {
  padding-bottom: 50px;
}

.detail-header {
  padding: 15px 40px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area .key {
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

/* Container */
.detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 25px;
  transition: var(--transition);
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.back-link:hover {
  color: var(--text-main);
}

/* Grid Layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Left Column */
.left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Gallery */
.gallery-section {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.main-image {
  width: 100%;
  height: 380px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-list {
  display: flex;
  gap: 10px;
}

.thumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: var(--transition);
}

.thumb.active, .thumb:hover {
  opacity: 1;
}

.thumb.active {
  border-color: var(--primary-color);
}

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

/* Info Cards */
.info-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  background: white;
}

.room-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.room-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-main);
}

.location-detail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-muted);
}

.rating-box {
  background-color: #fffde7;
  padding: 8px 15px;
  border-radius: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #fff59d;
}

.rating-score {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.rating-count {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text-main);
}

/* Informasi Kamar Grid */
.info-grid {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  color: var(--primary-color);
  margin-top: 2px;
}

.info-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* Deskripsi */
.description-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}

/* Fasilitas Grid */
.facility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 20px;
  column-gap: 10px;
}

.fac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.fac-item svg {
  color: #90a4ae;
}

.booking-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  background: white;
  position: sticky;
  top: 20px;
}

.price-header {
  margin-bottom: 25px;
}

.price-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #8da9c4;
  margin: 0 0 5px 0;
}

.price-header span {
  font-size: 12px;
  color: var(--text-muted);
}

.booking-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.detail-box {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
}

.box-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.box-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.btn-pesan {
  width: 100%;
  background-color: #8da9c4;
  color: white;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.btn-pesan:hover {
  background-color: #7b98b3;
}

.thumb {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent; /* Border awal transparan */
  transition: all 0.3s ease;
}

/* Ini class yang bakal bikin warna biru pas dipilih */
.thumb.active {
  border-color: #5b8fb9; /* Warna biru primary kamu */
  box-shadow: 0 0 8px rgba(91, 143, 185, 0.5); /* Opsional: efek glow lembut */
}

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