#unit-accommodation .row.unit-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem 3rem;
  width: 100%;
  padding: 3rem 3rem 4rem 3rem;
  box-sizing: border-box;
  background: none;
}

#unit-accommodation .row.unit-details .text {
  width: 100%;
}

#unit-accommodation .row.unit-details .text .tables {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 3rem;
  width: 100%;
  justify-content: space-between;
}

#unit-accommodation .row.unit-details .text .tables table.unit-table {
  font-size: 14px;
  line-height: 1.3;
  text-align: right;
  color: white;
  width: calc(25% - 2.25rem);
  min-width: 260px;
  max-width: 320px;
  border-collapse: separate;
  border-spacing: 0 0.3em;
  position: relative;
  background: none;
}

#unit-accommodation .row.unit-details .text .tables table.unit-table thead th {
  color: #009ee2;
  font-weight: 300;
  font-size: 18px;
  text-align: left;
  padding-bottom: 0.6em;
  border-bottom: 2px solid #004080;
  white-space: nowrap;
}

#unit-accommodation .row.unit-details .text .tables table.unit-table thead th:nth-child(n+2) {
  text-align: right;
  padding-left: 0;
  padding-right: 0.75rem;
}

#unit-accommodation .row.unit-details .text .tables table.unit-table thead th:first-child {
  text-align: left;
  padding-left: 0.4em;
  padding-right: 0;
}

#unit-accommodation .row.unit-details .text .tables table.unit-table tbody td {
  padding: 0.35em 0;
  border-bottom: 1px solid #224466;
  text-align: right;
  white-space: nowrap;
}

#unit-accommodation .row.unit-details .text .tables table.unit-table tbody td:first-child {
  text-align: left;
  padding-left: 0.4em;
}

#unit-accommodation .row.unit-details .text .tables table.unit-table tbody tr.total-row td {
  font-weight: 700;
  border-top: 2px solid #005fa3;
  padding-top: 0.7em;
  color: #fff;
}

/* Ribbons styling placed outside overlay, no overlay present */
#unit-accommodation .unit-ribbon {
  position: absolute;
  top: 14px;
  left: -55px;
  background: #0c8de4;
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 60px;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

#unit-accommodation .unit-ribbon.unit-ribbon-let {
  background: #39a9e0;
}

#unit-accommodation .unit-ribbon.unit-ribbon-under-offer {
  background: #2674d9;
  left: auto;
  right: -55px;
  transform: rotate(45deg);
}

/* Responsive */

@media screen and (max-width: 1279px) {
  #unit-accommodation .row.unit-details .text .tables table.unit-table {
    width: calc(50% - 2rem);
    min-width: auto;
  }
}

@media screen and (max-width: 639px) {
  #unit-accommodation .row.unit-details .text .tables table.unit-table {
    width: 100%;
  }

  #unit-accommodation .unit-ribbon {
    font-size: 10px;
    padding: 2px 50px;
    top: 10px;
    left: -40px;
    right: auto;
  }

  #unit-accommodation .unit-ribbon.unit-ribbon-under-offer {
    left: auto;
    right: -40px;
  }
}



#unit-accommodation table.unit-1 {
  position: relative;
}

#unit-accommodation table.unit-1::after {
  content: "";
  position: absolute;
  inset: 0; /* fill the table */

  background: url("../img/let.png") no-repeat center;
  background-size: contain; /* scale just enough to fit */

  pointer-events: none;
  z-index: 9;
}


/* UNDER OFFER image overlay on Unit 4 */
#unit-accommodation table.unit-4 {
  position: relative;
}

#unit-accommodation table.unit-4::after {
  content: "";
  position: absolute;
  inset: 0;

  background: url("../img/Under-Offer.png") no-repeat center;
  background-size: contain;

  pointer-events: none;
  z-index: 9;
}

