/* R108_BBB_ROOM_CONTROLS_CLEAN_SAFE_V156_ACTIVE */
/* Clean Forest — จำกัดผลเฉพาะการ์ดบ้านพักในโมดูล BBB */

#rooms .bbb-v148-capacity {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 12px 0 11px !important;
}

#rooms .bbb-v148-capacity > span {
  position: relative;
  display: flex !important;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  padding: 7px 9px 7px 16px !important;
  overflow: hidden;
  border: 1px solid #dce9e4 !important;
  border-radius: 9px !important;
  background: #fbfdfc !important;
  box-shadow: 0 3px 10px rgba(18, 72, 57, .045) !important;
  color: #31574b !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.25;
  text-align: left !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#rooms .bbb-v148-capacity > span::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, #3e9c7e, #a8d5c4);
  content: '';
}

#rooms .bbb-v148-price-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) !important;
  gap: 0 !important;
  margin: 12px 0 !important;
  overflow: hidden;
  border: 1px solid #d9e6e1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(18, 72, 57, .055) !important;
}

#rooms .bbb-v148-price-row > span {
  display: flex !important;
  min-width: 0;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: 7px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #53655f !important;
  font-size: 9.5px !important;
  font-weight: 400 !important;
  line-height: 1.3;
  text-align: center;
}

#rooms .bbb-v148-price-row > .bbb-v148-price {
  flex-wrap: wrap;
  gap: 2px 5px;
  background: #fffaf2 !important;
  color: #8a611f !important;
}

#rooms .bbb-v148-price-row > .bbb-v148-price strong {
  margin: 0 !important;
  color: #b5680d !important;
  font-size: clamp(16px, 1.5vw, 20px) !important;
  font-weight: 750 !important;
  line-height: 1.05;
  white-space: nowrap;
}

#rooms .bbb-v148-price-row > .bbb-v148-extra {
  border-left: 1px solid #d9e6e1 !important;
  background: #f6faf8 !important;
  color: #3f5d53 !important;
  font-size: 9.5px !important;
  white-space: normal !important;
}

#rooms .bbb-v148-book {
  position: relative;
  width: 100%;
  min-height: 46px !important;
  padding: 9px 50px 9px 18px !important;
  overflow: hidden;
  border: 1.5px solid #176753 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(23, 103, 83, .07) !important;
  color: #155d4b !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: .01em;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#rooms .bbb-v148-book::after {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e6f2ed;
  color: #176753;
  content: '→';
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

#rooms .bbb-v148-book:hover,
#rooms .bbb-v148-book:focus-visible {
  background: #176753 !important;
  box-shadow: 0 8px 18px rgba(23, 103, 83, .18) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

#rooms .bbb-v148-book:hover::after,
#rooms .bbb-v148-book:focus-visible::after {
  background: #fff;
  color: #176753;
  transform: translateY(-50%) translateX(2px);
}

#rooms .bbb-v148-book:active {
  box-shadow: none !important;
  transform: translateY(0);
}

@media (max-width: 380px) {
  #rooms .bbb-v148-capacity { gap: 6px !important; }
  #rooms .bbb-v148-capacity > span {
    min-height: 36px;
    padding-right: 6px !important;
    padding-left: 14px !important;
    font-size: 9.5px !important;
  }
  #rooms .bbb-v148-price-row {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
  }
  #rooms .bbb-v148-price-row > span { padding: 6px !important; }
  #rooms .bbb-v148-price-row > .bbb-v148-price strong { font-size: 16px !important; }
  #rooms .bbb-v148-price-row > .bbb-v148-extra { font-size: 8.8px !important; }
}