#agentbox-madeneat-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

#agentbox-madeneat-wrapper .listing {
  background-color: #fff;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#agentbox-madeneat-wrapper .listing .property-details {
  padding: 15px;
}

#agentbox-madeneat-wrapper .listing:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#agentbox-madeneat-wrapper .listing h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--agentbox-heading-color);
  font-family: var(--agentbox-heading-font);
  font-weight: var(--agentbox-heading-font-weight);
  min-height: 40px;
}

#agentbox-madeneat-wrapper .listing p {
  margin: 5px 0;
  font-size: 14px;
  color: var(--agentbox-body-color);
  font-family: var(--agentbox-body-font);
  font-weight: var(--agentbox-body-font-weight);
}

.form-section-description,
#agentbox-madeneat-wrapper,
#property-description,
.agentbox-property-single,
#agentbox-madeneat-wrapper p,
#agentbox-madeneat-wrapper span,
#property-description p,
#property-description span,
.agentbox-property-single p,
.agentbox-property-single span {
  color: var(--agentbox-body-color);
  font-family: var(--agentbox-body-font);
  font-weight: var(--agentbox-body-font-weight);
}

.agentbox-property-single h1,
.agentbox-property-single h2,
.agentbox-property-single h3,
.agentbox-property-single h4,
.agentbox-property-single h5,
.agentbox-property-single h6,
#enquiry-form-section h2,
#enquiry-form-section h3,
#enquiry-form-section h4,
#enquiry-form-section h5,
#enquiry-form-section h6,
#agentbox-madeneat-wrapper h2,
#agentbox-madeneat-wrapper h3,
#agentbox-madeneat-wrapper h4,
#agentbox-madeneat-wrapper h5,
#agentbox-madeneat-wrapper h6,
#property-description h1,
#property-description h2,
#property-description h3,
#property-description h4,
#property-description h5,
#property-description h6 {
  color: var(--agentbox-heading-color);
  font-family: var(--agentbox-heading-font);
  font-weight: var(--agentbox-heading-font-weight);
}

@media (max-width: 768px) {
  #agentbox-madeneat-wrapper {
    grid-template-columns: 1fr;
  }
}

.property-main-image {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.loading-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

.property-features {
  display: flex;
  gap: 10px;
}

.property-features span {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 5px;
}

.property-features span svg,
.property-features span img {
  width: 18px;
  height: auto;
}

.property-image-container {
  position: relative;
}

.property-image-container .marketing-status {
  color: #fff;
  width: auto;
  display: inline-flex;
  padding: 5px 10px;
  text-align: center;
  justify-content: center;
  border-radius: 3px;
  font-weight: 500;
  font-size: 12px;
  line-height: 15px;
  background: #00a499;  
  position: absolute;
  top: 10px;
  left: 10px;
}

.marketing-status.not-listed {
    background: var(--agentbox-color-not-listed);
    color: var(--agentbox-font-color-not-listed);
}

.marketing-status.available {
    background: var(--agentbox-color-available);
    color: var(--agentbox-font-color-available);
}

.marketing-status.under-contract {
    background: var(--agentbox-color-under-contract);
    color: var(--agentbox-font-color-under-contract);
}

.marketing-status.sold {
    background: var(--agentbox-color-sold);
    color: var(--agentbox-font-color-sold);
}

.marketing-status.leased {
    background: var(--agentbox-color-leased);
    color: var(--agentbox-font-color-leased);
}

/* Modal styles */
#property-floor-plan .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#property-floor-plan .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10vh auto;
    padding: 10px;
    border: 1px solid #888;
    width: auto;
    max-width: 80vw;
    max-height: 80vh;
    text-align: center;
    overflow: hidden;
}

#property-floor-plan .close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#property-floor-plan .close-button:hover,
#property-floor-plan .close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#property-floor-plan .floor-plan-image {
    width: auto;
    height: auto;
    max-height: calc(80vh - 80px);
    margin-bottom: 10px;
    position: relative;
    object-fit: cover;
}

#property-floor-plan .nav-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin: 5px;
}

#property-floor-plan .nav-button:hover {
    background-color: #0056b3;
}

.property-info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--agentbox-color-primary);
}

.ab-mb-50 {
  margin-bottom: 50px;
}