#available-units {
  overflow: visible;
}

.aul-controls {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(16, 40, 63, 0.1);
  border-radius: 15px;
  background: #FCFCFC;
}

.aul-controls-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.7fr)
    repeat(4, minmax(120px, 1fr));
  gap: 9px;
}

.aul-control {
  min-width: 0;
}

.aul-control input,
.aul-control select {
  width: 100%;
  height: 42px;
  padding: 8px 11px;
  border: 1px solid rgba(16, 40, 63, 0.14);
  border-radius: 10px;
  outline: none;
  background: #FCFCFC;
  color: #24394b;
  font-family: inherit;
  font-size: 12px;
}

.aul-control input:focus,
.aul-control select:focus {
  border-color: #957A56;
  box-shadow: 0 0 0 3px rgba(199, 155, 82, 0.12);
}

.aul-results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  color: #697785;
  font-size: 11px;
}

.aul-results-info strong {
  color: #212121;
  font-size: 13px;
}

#available-units .units-grid,
#projectUnits {
  display: grid !important;
  grid-template-columns:
    repeat(3, minmax(0, 1fr)) !important;
  gap: 11px !important;
}

.aul-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 40, 63, 0.1);
  border-radius: 14px;
  background: #FCFCFC;
  box-shadow: 0 5px 16px rgba(13, 31, 48, 0.045);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.aul-card:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 155, 82, 0.45);
  box-shadow: 0 10px 24px rgba(13, 31, 48, 0.08);
}

.aul-image {
  position: relative;
  height: 135px;
  overflow: hidden;
  background: linear-gradient(135deg, #212121, #31536c);
}

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

.aul-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.aul-status {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 5;
  padding: 4px 8px;
  border-radius: 999px;
  background: #FCFCFC;
  color: #293e50;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
  font-size: 9px;
  font-weight: 900;
}

.aul-status.available {
  background: #e6f7ed;
  color: #598068;
}

.aul-status.booked {
  background: #fff3d5;
  color: #906600;
}

.aul-status.sold {
  background: #B86060;
  color: #9d3030;
}

.aul-body {
  padding: 12px;
}

.aul-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.aul-unit-number {
  overflow: hidden;
  margin: 0 !important;
  color: #212121;
  font-size: 15px !important;
  font-weight: 900;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aul-price {
  flex: 0 0 auto;
  margin: 0;
  color: #957A56;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.aul-price small {
  display: block;
  color: #89939c;
  font-size: 8px;
  font-weight: 700;
  text-align: end;
}

.aul-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 32px;
  margin: 0 0 10px !important;
  color: #71808c !important;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.aul-facts {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 10px;
}

.aul-fact {
  min-width: 0;
  padding: 6px;
  border-radius: 8px;
  background: #FCFCFC;
  text-align: center;
}

.aul-fact-label {
  display: block;
  margin-bottom: 2px;
  color: #212121;
  font-size: 8px;
  font-weight: 750;
}

.aul-fact-value {
  display: block;
  overflow: hidden;
  color: #2c4051;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aul-booking {
  margin-bottom: 9px;
  padding: 7px 8px;
  border-inline-start: 2px solid #957A56;
  border-radius: 7px;
  background: rgba(199, 155, 82, 0.08);
  color: #624d2e;
  font-size: 9px;
  line-height: 1.6;
}

.aul-actions {
  display: flex;
  gap: 6px;
}

.aul-action {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #957A56;
  border-radius: 8px;
  background: #957A56;
  color: #FCFCFC !important;
  font-family: inherit;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.aul-action.secondary {
  background: #FCFCFC;
  color: #966d2d !important;
}

.aul-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 17px;
}

.aul-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  padding: 5px 10px;
  border: 1px solid rgba(16, 40, 63, 0.13);
  border-radius: 9px;
  background: #FCFCFC;
  color: #304557;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.aul-page-button:hover,
.aul-page-button.active {
  border-color: #957A56;
  background: #957A56;
  color: #FCFCFC;
}

.aul-page-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.aul-message {
  grid-column: 1 / -1;
  padding: 28px 18px;
  border: 1px dashed rgba(16, 40, 63, 0.18);
  border-radius: 13px;
  color: #6c7984;
  text-align: center;
}

.aul-message.error {
  border-color: rgba(160, 45, 45, 0.25);
  color: #9c3333;
}

@media (max-width: 1050px) {
  .aul-controls-row {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .aul-control:first-child {
    grid-column: 1 / -1;
  }

  #available-units .units-grid,
  #projectUnits {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 650px) {
  .aul-controls {
    padding: 10px;
  }

  .aul-controls-row {
    grid-template-columns: 1fr;
  }

  .aul-control:first-child {
    grid-column: auto;
  }

  #available-units .units-grid,
  #projectUnits {
    grid-template-columns: 1fr !important;
  }

  .aul-image {
    height: 155px;
  }

  .aul-results-info {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ANCOR_MOBILE_CLEANUP_V2_START */
@media (max-width: 650px) {
  .aul-controls { padding: 12px; border-radius: 16px; }
  .aul-controls-row { gap: 10px; }
  .aul-control input, .aul-control select { min-height: 48px; font-size: 16px; }
  #available-units .units-grid, #projectUnits { gap: 14px !important; }
  .aul-image { height: auto; aspect-ratio: 16 / 10; }
  .aul-results-info { gap: 6px; }
}
/* ANCOR_MOBILE_CLEANUP_V2_END */
