
.j1-homelot-assets {
  width: 100%;
  --j1-hla-accent: #375EAB;
  --j1-hla-ink: #0A0A0A;
  color: var(--j1-hla-ink);
}

.j1-homelot-assets-map {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 24px 0;
  background: #f3f4f6;
  position: relative;
}

.j1-homelot-assets-map--missing-key {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed rgba(0,0,0,.2);
}

.j1-homelot-assets-grid {
  display: grid;
  gap: 18px;
}

.j1-homelot-assets-grid.columns-1 { grid-template-columns: 1fr; }
.j1-homelot-assets-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.j1-homelot-assets-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.j1-homelot-assets-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.j1-homelot-assets-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }
.j1-homelot-assets-grid.columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
  .j1-homelot-assets-grid.columns-4,
  .j1-homelot-assets-grid.columns-5,
  .j1-homelot-assets-grid.columns-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .j1-homelot-assets-grid.columns-3,
  .j1-homelot-assets-grid.columns-4,
  .j1-homelot-assets-grid.columns-5,
  .j1-homelot-assets-grid.columns-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .j1-homelot-assets-grid.columns-2,
  .j1-homelot-assets-grid.columns-3,
  .j1-homelot-assets-grid.columns-4,
  .j1-homelot-assets-grid.columns-5,
  .j1-homelot-assets-grid.columns-6 { grid-template-columns: 1fr; }
}

.j1-homelot-card {
  border: 1px solid rgba(10,10,10,.12);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  color: var(--j1-hla-ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.j1-homelot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(55,94,171,.35);
  box-shadow: 0 8px 24px rgba(10,10,10,.10);
}

.j1-homelot-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.j1-homelot-card__media {
  aspect-ratio: 16/10;
  width: 100%;
  overflow: hidden;
  background: #e5e7eb;
}

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

.j1-homelot-card__body {
  padding: 14px 14px 16px;
}


.j1-homelot-card__headline {
  /*
    Two-column headline row.

    Left: street address (title)
    Right: small label that introduces the availability value below.
  */
  display: grid;
  grid-template-columns: 1fr 1fr;
  /*
    Align the right-side "This HOME/LOT is:" label more naturally against the
    street address (previously it was bottom-aligned and looked "low").
  */
  align-items: center;
  gap: 10px;
  margin: 0 0 2px 0;
}

.j1-homelot-card__headline .j1-homelot-card__title {
  margin: 0;
}

.j1-homelot-card__availability-label {
  /* "This" and "is:" */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  color: rgba(122,122,122,.75);
  text-align: center;
  justify-self: stretch;
  align-self: center;
}

.j1-homelot-card__availability-type {
  display: inline-block;
  /* HOME / LOT */
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--j1-hla-accent);
}

.j1-homelot-card__title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  /*
    The location line (city/state/zip) is rendered below the title inside
    .j1-homelot-card__meta-left so we keep the title margin tight.
  */
  margin: 0 0 2px 0;
}

.j1-homelot-card__title-line2 {
  font-size: 14px;
  font-weight: 400;
  opacity: .9;
}

.j1-homelot-card__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--j1-hla-accent);
  margin: 0;
}

.j1-homelot-card__meta {
  /*
    Two-column meta row.

    We *stretch* items to the row height so the availability cell can
    vertically center its text within the same full-height area as the
    left stack (location + type). This avoids the availability text
    appearing visually "low" within the white space.
  */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 10px;
  /*
    Customer request: do not force a minimum height here.
  */
  min-height: 0px;
  padding-bottom: 4px;
  margin: 0 0 12px 0;
}

.j1-homelot-card__meta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.j1-homelot-card__location {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  opacity: .9;
}

.j1-homelot-card__availability {
  text-transform: uppercase;
  font-size: 19px;
  color: #7A7A7A;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;

  /* Fill the right half and center the label both horizontally & vertically */
  justify-self: stretch;
  align-self: stretch;
  display: flex;
  /* Align availability towards the top of the cell (requested UI behavior). */
  align-items: flex-start;
  justify-content: center;

  /* Reduce default leading so the text sits optically centered */
  line-height: 1;

  /* Nudge up slightly so it doesn't sit visually "low" relative to the label */
  margin-top: -2px;
}

.j1-homelot-card__facts {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(55,94,171,.25);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: rgba(55,94,171,.03);
}

.j1-homelot-card__facts::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(55,94,171,.35);
  transform: translateX(-0.5px);
  z-index: 0;
}

.j1-homelot-card__facts::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(55,94,171,.35);
  transform: translateY(-0.5px);
  z-index: 0;
}

.j1-homelot-card__facts--lot {
  grid-template-columns: 1fr;
}

.j1-homelot-card__facts--lot::before {
  display: none;
}

.j1-homelot-card__fact--design {
  gap: 0;
}

.j1-homelot-card__lot-design {
  font-size: 19px;
  font-weight: 800;
  color: #7A7A7A;
  text-align: center;
  line-height: 1.1;
}

.j1-homelot-card__fact {
  margin: 0;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  font-size: 16px;
  /*
    Match the effective HOME-tile height (value + label) so LOT's 2x1 stack
    aligns with HOME's 2x2 grid.
  */
  min-height: 62px;
  position: relative;
  z-index: 1;
}

.j1-homelot-card__fact-label {
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
  font-size: 12px;
}

.j1-homelot-card__fact-value {
  font-weight: 800;
  font-size: 18px;
}
.j1-homelot-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.j1-homelot-card__actions.no-third-party {
  grid-template-columns: 1fr;
}

.j1-homelot-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  /*
   * Normalize line-height across <button> and <a> so single-button cards match
   * the exact height seen in dual-button cards (where <a> can otherwise
   * influence row height).
   */
  line-height: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(10,10,10,.12);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer;
  appearance: none;
}

.j1-homelot-card__btn--primary {
  background: var(--j1-hla-accent);
  color: #fff;
  border-color: var(--j1-hla-accent);
}

.j1-homelot-card__btn--primary:hover {
  background: rgba(55,94,171,.92);
  border-color: rgba(55,94,171,.92);
}

.j1-homelot-card__btn--secondary {
  background: #fff;
  color: var(--j1-hla-accent);
  border-color: rgba(55,94,171,.45);
}

.j1-homelot-card__btn--secondary:hover {
  background: rgba(55,94,171,.06);
}

.j1-homelot-card {
  cursor: pointer;
}

.j1-homelot-card.is-active {
  border-color: var(--j1-hla-accent);
  box-shadow: 0 10px 28px rgba(10,10,10,.16);
}

/*
 * Inquiry modal
 */

.j1-hla-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 99999;
}

.j1-hla-modal.is-open {
  display: flex;
}

.j1-hla-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.55);
}

.j1-hla-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(10,10,10,.25);
  z-index: 1;
}

.j1-hla-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(10,10,10,.12);
  background: #fff;
  color: var(--j1-hla-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.j1-hla-modal__close:hover {
  border-color: rgba(55,94,171,.45);
}

.j1-hla-modal__title {
  margin: 0 0 6px 0;
  font-size: 22px;
}

.j1-hla-modal__property {
  margin: 0 0 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(10,10,10,.78);
}

.j1-hla-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 520px) {
  .j1-hla-form__grid {
    grid-template-columns: 1fr;
  }
}

.j1-hla-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.j1-hla-req {
  color: var(--j1-hla-accent);
}

.j1-hla-field input,
.j1-hla-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(10,10,10,.14);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--j1-hla-ink);
  background: #fff;
}

.j1-hla-field textarea {
  resize: vertical;
  min-height: 78px;
}

.j1-hla-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 12px 0;
  font-size: 13px;
  font-weight: 600;
}

.j1-hla-checkbox input {
  margin-top: 2px;
}

.j1-hla-form__actions {
  display: flex;
  justify-content: flex-end;
}

.j1-hla-submit {
  background: var(--j1-hla-accent);
  border: 1px solid var(--j1-hla-accent);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.j1-hla-submit[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.j1-hla-form__status {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.j1-hla-form__status.is-success {
  color: #14532d;
}

.j1-hla-form__status.is-error {
  color: #7f1d1d;
}

.j1-hla-form__status.is-busy {
  color: rgba(10,10,10,.75);
}

.j1-homelot-assets-empty {
  margin: 0;
  padding: 16px;
  background: rgba(0,0,0,.03);
  border-radius: 12px;
}

/*
 * Force submit button label color.
 * Some themes apply global styles to submit buttons that can override the text color
 * (making it appear blank until hover).
 */
#j1-hla-inquiry-modal button#j1-hla-send-btn,
#j1-hla-inquiry-modal button#j1-hla-send-btn:hover,
#j1-hla-inquiry-modal button#j1-hla-send-btn:focus,
#j1-hla-inquiry-modal button#j1-hla-send-btn:active,
#j1-hla-inquiry-modal button#j1-hla-send-btn[disabled] {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
