/* A CSS grid (not flex) so .plx-property-meta can sit between the header and
   the actions in source order — needed so .plx-property-actions can move to
   below .plx-property-meta on narrow screens via grid-template-areas — while
   still rendering in the exact same two-row arrangement as before on desktop
   (header+actions side by side, meta spanning beneath, zero gap between
   them, matching the original flex layout's measured positions exactly). */
.plx-property-header-row {
  align-items: center;
  column-gap: var(--space-3);
  display: grid;
  grid-template-areas:
    "header actions"
    "meta meta";
  grid-template-columns: 1fr auto;
  row-gap: 0;
}

.plx-property-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  grid-area: header;
  margin-bottom: var(--space-1);
}
.plx-property-header .plx-section-title {
  font-size: var(--text-xl);
}

.plx-property-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  grid-area: actions;
  justify-self: end;
}

.plx-property-meta {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--text-base);
  gap: var(--space-2);
  grid-area: meta;
}

@media (max-width: 767.98px) {
  .plx-property-header-row {
    grid-template-areas:
      "header"
      "meta"
      "actions";
    grid-template-columns: 1fr;
    row-gap: var(--space-3);
  }

  .plx-property-actions {
    justify-self: start;
  }
}

.plx-property-meta-sep {
  color: var(--text-subtle);
}

.plx-detail-grid {
  column-gap: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: var(--space-4);
}

.plx-detail-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.plx-detail-label {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.03em;
  /* text-transform: uppercase; */
}

.plx-detail-value {
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

.plx-room-number-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(87px, 1fr));
}

.plx-floor-card-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
}

@media (max-width: 575.98px) {
  .plx-detail-grid {
    grid-template-columns: 1fr;
  }
}

.plx-info-banner {
  background: rgba(154, 162, 255, 0.12);
  border-left: 5px solid var(--pm-accent);
  border-radius: var(--radius-sm);
  color: var(--color-info);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  padding: 15px;
}

/* ---- Create-property wizard chrome (header / body / footer) ---- */
.plx-wizard-card {
  padding: 0;
}

.plx-wizard-panel-header {
  align-items: center;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  padding: 15px 25px;
}

.plx-wizard-panel-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: var(--weight-medium);
}

.plx-wizard-panel-meta {
  color: var(--text-primary);
  font-size: 16px;
}

/* These two are hardcoded rather than reading a --text-* token, so they
   need their own override to scale down alongside everything else between
   1200 and 1535px (see base/variables.css for the token-level scaling). */
@media (min-width: 1200px) and (max-width: 1535.98px) {
  .plx-wizard-panel-title,
  .plx-wizard-panel-meta {
    font-size: 15px;
  }
}

.plx-wizard-panel-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px 25px 0;
}

.plx-wizard-footer {
  align-items: center;
  justify-content: end;
  display: flex;
  /* justify-content: space-between; */
  padding: 15px 25px 50px;
  gap: 10px;
}

/* The Back/Continue pair is wide enough (the longest label is "Continue to
   Property Details") that side-by-side stops fitting once the viewport
   drops below ~400px. Stack them full-width a comfortable margin before
   that, at the same breakpoint already used elsewhere in this file. */
@media (max-width: 575.98px) {
  .plx-wizard-footer {
    flex-direction: column;
    gap: var(--space-3);
    padding: 15px 20px 30px;
  }

  .plx-wizard-footer .plx-btn {
    width: 100%;
  }
}

/* Step 1 — property type grid */
.plx-type-card-grid {
  display: grid;
  gap: 15px 25px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991.98px) {
  .plx-type-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .plx-type-card-grid {
    grid-template-columns: 1fr;
  }
}

#plxFloorsContainerJs,
#plxUnitFloorsContainerJs,
#plxRoomNumbersContainerJs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Create-property wizard — floor card (room and unit configuration) */
.plx-floor-card-js {
  background: var(--bg-surface-muted);
  border-color: var(--border-default);
  border-radius: var(--radius-md);
  border-width: 1px;
  padding: 15px 20px;
}

.plx-floor-card-js .plx-floor-card-header {
  margin-bottom: 0;
  min-height: 45px;
border-bottom: 1px solid rgb(from var(--pm-accent) r g b / 0.5);
  padding-bottom: 16px;

}

.plx-floor-card-js .plx-room-types-js,
.plx-floor-card-js .plx-units-js {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: 25px;
}

/* Room Category / Room Sub Category / No. of Rooms / Standard Rate fields
   inside the Hotel-Motel "Floors & Room Configuration" row (and the
   matching Unit No. / No. of Rooms / Unit Size / Size Unit / Rate fields
   inside "Floors & Units Configuration") carry an accent border in the
   Figma source (distinct from the default form-field border used
   elsewhere, e.g. step 2). */
.plx-rt-category-js,
.plx-rt-subcategory-js,
.plx-rt-count-js,
.plx-rt-rate-js,
.plx-unit-no-js,
.plx-unit-rooms-js,
.plx-unit-size-js,
.plx-unit-size-unit-js,
.plx-unit-rate-month-js,
.plx-unit-rate-night-js {
  border-color: var(--pm-accent);
}

/* "+ Add Room Type" pill button (Hotel/Motel "Floors & Room Configuration"
   floor card): white fill, default-gray 1px border, full pill radius,
   muted 14px regular label — matches the Figma component exactly. */
.plx-add-room-type-btn-js,
.plx-add-unit-btn-js {
  background: var(--bg-surface);
  border-color: var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  height: 30px;
  padding: 0 10px;
}

.plx-add-room-type-btn-js:hover:not(:disabled),
.plx-add-unit-btn-js:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.plx-add-room-type-btn-js:focus-visible,
.plx-add-unit-btn-js:focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: 2px;
}

.plx-add-room-type-btn-js .plx-icon,
.plx-add-unit-btn-js .plx-icon {
  font-size: 15px;
}

/* Floor/room-type and floor/unit config rows */
.plx-config-row {
  align-items: end;
  display: grid;
  gap: 25px;
}

.plx-config-row > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.plx-config-row-4 {
  grid-template-columns: repeat(4, 1fr) 24px;
}

.plx-config-row-6 {
  grid-template-columns: repeat(6, 1fr) 24px;
}

.plx-config-row-remove {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--color-danger);
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 24px;
}

/* Below 1200px the 6-field unit row (Unit No. / Rooms / Size / Size Unit /
   Rate-Month / Rate-Night) gets cramped before the 4-field room row does —
   relieve it a breakpoint earlier.

   At each step the row drops its dedicated 24px remove-button track, so the
   button becomes just another grid item — left to auto-placement, it would
   get slotted into whichever column happens to be free on the row it lands
   on (visibly squeezing a field into a narrow cell instead). Pinning it with
   `grid-column: -1` looks tempting but is wrong here: with fewer explicit
   columns than the previous breakpoint, `-1` resolves *past* the explicit
   grid and forces the browser to fabricate an extra implicit column sized
   to the button — which then bleeds into the other rows too and quietly
   turns "1 column" back into two. Targeting the exact last explicit column
   number avoids that. */
@media (max-width: 1199.98px) {
  .plx-config-row-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .plx-config-row-6 .plx-config-row-remove {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 991.98px) {
  .plx-config-row-4,
  .plx-config-row-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .plx-config-row-4 .plx-config-row-remove,
  .plx-config-row-6 .plx-config-row-remove {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 575.98px) {
  .plx-config-row-4,
  .plx-config-row-6 {
    grid-template-columns: 1fr;
  }

  .plx-config-row-4 .plx-config-row-remove,
  .plx-config-row-6 .plx-config-row-remove {
    grid-column: 1;
    justify-self: end;
  }
}

/* Create-property wizard — room number assignment (step 4) */
.plx-rnf-card-js {
  background: var(--bg-surface-muted);
  border-color: var(--pm-accent);
  border-radius: var(--radius-md);
  border-width: 1px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  /* padding: 10px 20px 25px; */
  padding: 10px 0 25px;
}

.plx-rnf-card-js .plx-rnf-title-js {
  border-bottom: 1px solid var(--pm-accent);
  color: var(--text-secondary);
  padding: 0 20px 10px;
}

.plx-rnf-groups-js {
  display: flex;
  flex-direction: column;
  gap: 45px;
  padding: 15px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-left: 16px;
  margin-right: 16px;
}

.plx-room-number-group-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgb(from var(--pm-accent) r g b / 0.5);
}

.plx-room-number-group-header .plx-rng-title-js {
  color: var(--text-secondary);
  flex: 1 1 auto;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  min-width: 0;
}

.plx-room-number-group-header .plx-rng-count-js {
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.plx-room-number-group-header .plx-rng-count-js {
  color: var(--pm-accent);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.plx-rng-rate-js {
  color: var(--color-info);
}

.plx-room-number-input {
  border-color: var(--pm-accent);
  border-width: 1px;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  height: 35px;
  text-align: center;
}

.plx-room-number-input::placeholder {
  color: #8F9DA7;
  font-weight: var(--weight-regular);
}
