.agentbox-property-single .property-information {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agentbox-property-single .property-information .price {
  font-size: 24px;
  font-weight: 600;
  color: var(--agentbox-color-primary);
}

.agentbox-property-single .property-details-wrapper {
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.agentbox-property-single .property-gallery {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  max-height: 480px;
}

.agentbox-property-single .main-image-container {
  position: relative;
  height: 600px;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  max-height: 480px;
  object-fit: contain;
  text-align: center;
  width: calc(100% - 180px);
}

.agentbox-property-single .main-image-container img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  max-height: 480px;
  max-width: 100%;
  object-fit: cover;
}

.agentbox-property-single .thumbnails-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  width: 160px;
}

.agentbox-property-single .thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: opacity 0.3s ease;
  opacity: 0.75;
}

.agentbox-property-single .thumbnail:hover {
  opacity: 1;
}

.agentbox-property-single .property-features {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.agentbox-property-single .property-features-list {
  display: flex;
  flex-direction: row;
  column-gap: 20px;
  row-gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.agentbox-property-single .property-features-list li {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.agentbox-property-single .property-features-list li svg,
.agentbox-property-single .property-features-list li img {
  height: 15px;
  width: 15px;
}

.agentbox-property-single .property-features-list li .feature-value {
  font-weight: 500;
}

.agentbox-property-single .property-features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.agentbox-property-single .property-features-grid .feature-item {
  align-items: center;
  display: flex;
  gap: 10px;
}

.agentbox-property-single .property-features-grid .feature-item svg,
.agentbox-property-single .property-features-grid .feature-item img {
  height: 24px;
  width: 24px;
}

.agentbox-property-single .property-status-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.agentbox-property-single .property-status-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.agentbox-property-single .property-status-list .property-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.agentbox-property-single .property-status-list .status-content {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
}

.agentbox-property-single .property-map {
  border-bottom: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  padding: 20px 0;
}

.agentbox-property-single .location-search-container {
  position: relative;
  margin-top: 20px;
}

.agentbox-property-single .location-search-form {
  position: relative;
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
}

.agentbox-property-single .location-search-label {  
  position: relative;
  display: block;
  font-family: var(--agentbox-body-font);
  font-size: 18px;
  font-weight: 500;
  color: var(--agentbox-heading-color);
  text-align: left;
  margin-bottom: 15px;
}

.agentbox-property-single .agentbox-global-input {
  position: relative;
  display: inline-block;
  padding: 10px;
  font-family: var(--agentbox-body-font);
  font-weight: 400;
  font-size: 14px;
  line-height: 23px;
  color: var(--agentbox-heading-color);
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid var(--agentbox-button-bg-color, #cccccc);
  border-radius: var(--agentbox-button-border-radius, 4px);
  box-sizing: border-box;
}

.agentbox-property-single .agentbox-global-button {
  position: relative;
  font-family: var(--agentbox-body-font);
  line-height: 23px;
  font-weight: 400;
  width: 200px;
  background-color: var(--agentbox-button-bg-color, #000000);
  color: var(--agentbox-button-text-color, #ffffff);
  font-size: 14px;
  padding: var(--agentbox-button-padding, 10px 20px);
  border-radius: var(--agentbox-button-border-radius, 4px);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border: 1px solid var(--agentbox-button-bg-color, #000000);
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.agentbox-property-single .agentbox-global-button:hover {
  border: 1px solid var(--agentbox-button-hover-bg-color, #333333);
  background-color: transparent;
  color: var(--agentbox-button-hover-bg-color, #333333);
}

.agentbox-property-single .location-search-form .agentbox-global-input {
  flex: 1;
  width: auto;
}

.agentbox-property-single .location-search-form .agentbox-global-button {
  flex: 0 0 auto;
  padding: 10px 20px;
}

.agentbox-property-single .location-search-result {
  position: relative;
  font-family: var(--agentbox-body-font);
  font-size: 20px;
  font-weight: 500;
  color: var(--agentbox-body-color);
  text-align: left;
  margin-top: 15px;
}

.agentbox-property-single .location-search-result p {
  font: inherit;
  color: inherit;
  margin: 0;
}

#agentbox-gravity-form {
  width: 80%;
  margin: 0 auto;
}

#agentbox-gravity-form .gform_wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

#agentbox-gravity-form .gform_wrapper textarea, 
#agentbox-gravity-form .gform_wrapper input[type=email], 
#agentbox-gravity-form .gform_wrapper input[type=tel], 
#agentbox-gravity-form .gform_wrapper input[type=text], 
#agentbox-gravity-form .gform_wrapper input[type=url], 
#agentbox-gravity-form .gform_wrapper input[type=week] {
    background-color: transparent;
    border: 0;
    border-bottom: 2px solid #2f4a5b;
    width: 100%;
    padding: 5px 12px;
    transition: border-color 0.3s ease;
    height: 44px;
    color: #2f4a5b;
}

#agentbox-gravity-form .gform_wrapper textarea::placeholder, 
#agentbox-gravity-form .gform_wrapper input[type=email]::placeholder, 
#agentbox-gravity-form .gform_wrapper input[type=tel]::placeholder, 
#agentbox-gravity-form .gform_wrapper input[type=text]::placeholder, 
#agentbox-gravity-form .gform_wrapper input[type=url]::placeholder, 
#agentbox-gravity-form .gform_wrapper input[type=week]::placeholder {    
    color: #2f4a5b;
    font-family: var(--agentbox-body-font);
    font-weight: bold;
    text-align: center;
}

#agentbox-gravity-form .gform_wrapper input:focus,
#agentbox-gravity-form .gform_wrapper textarea:focus {
  border-color: #000;
  outline: none;
}

#agentbox-gravity-form .ginput_container.ginput_container_consent {
    display: flex;
    gap: 10px;
    align-items: center;
}

#agentbox-gravity-form label.gform-field-label.gform-field-label--type-inline.gfield_consent_label {
    padding-bottom: 0;
    margin-bottom: 0;
    color: #2f4a5b;
}

#agentbox-gravity-form .gform_wrapper .gfield {
  margin-bottom: 20px;
}

#agentbox-gravity-form .gform_wrapper .ginput_complex label,
#agentbox-gravity-form .gform_wrapper .ginput_complex legend,
#agentbox-gravity-form .gform_wrapper .gfield_label {
  display: none;
}

#agentbox-gravity-form .gform_wrapper .gfield_required {
  color: #790000;
  margin-left: 4px;
}

#agentbox-gravity-form .gform_wrapper .gfield_checkbox li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

#agentbox-gravity-form .gform_wrapper .gfield_checkbox input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

#agentbox-gravity-form .gform_wrapper .gform_footer {
  text-align: left;
  margin-top: 30px;
}

#agentbox-gravity-form .gform_wrapper .gform_button {
  background-color: var(--agentbox-button-hover-bg-color, #333333);
  color: var(--agentbox-button-hover-text-color, #ffffff);
  font-size: var(--agentbox-button-font-size, 16px);
  padding: var(--agentbox-button-padding, 10px 20px);
  border-radius: var(--agentbox-button-border-radius, 4px);
  border: 1px solid var(--agentbox-button-hover-bg-color, #333333);
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  min-width: 150px;
  text-align: center;
  line-height: 23px;
  font-family: var(--agentbox-body-font);
  font-weight: 400;
  font-size: 14px;  
  margin: 0 auto;
}

#agentbox-gravity-form .gform_wrapper .gform_button:hover {
  border: 1px solid var(--agentbox-button-hover-bg-color, #333333);
  background-color: transparent;
  color: var(--agentbox-button-hover-bg-color, #333333);
}

#agentbox-gravity-form .gform_wrapper .validation_error {
  color: #790000;
  border: 1px solid #790000;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

#agentbox-gravity-form .gform_wrapper .validation_message {
  color: #790000;
  font-size: 14px;
  margin-top: 5px;
}

.agentbox-property-single .form-section-title {
  margin-bottom: 1rem;
  width: 100%;
  font-family: var(--agentbox-body-font);
}

.agentbox-property-single .form-section-description {
  margin-bottom: 2rem;
  width: 100%;
  font-family: var(--agentbox-body-font);
}

.agentbox-property-single .brxe-container {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--agentbox-body-font);
}

#enquiry-form-section .content-align-left,
.agentbox-property-single .content-align-left {
  align-items: flex-start;
}

#enquiry-form-section .content-align-center,
.agentbox-property-single .content-align-center {
  align-items: center;
}

.agentbox-property-single .content-align-center .form-section-title,
.agentbox-property-single .content-align-center .form-section-description,
#enquiry-form-section .content-align-center .form-section-title,
#enquiry-form-section .content-align-center .form-section-description {
  text-align: center;
}

#enquiry-form-section .content-align-right,
.agentbox-property-single .content-align-right {
  align-items: flex-end;
}

.agentbox-property-single .content-align-right .form-section-title,
.agentbox-property-single .content-align-right .form-section-description {
  text-align: right;
}

.agentbox-property-single .thumbnails-container::-webkit-scrollbar {
  width: 6px;
}

.agentbox-property-single .thumbnails-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.agentbox-property-single .thumbnails-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.agentbox-property-single .thumbnails-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.agentbox-property-single .marketing-status-label {
  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;
}

.agentbox-property-single .marketing-label-wrapper {
  display: flex;
}

.agentbox-property-single .document-link {
  color: #000;
  text-decoration: none;
  background: #f1f1f1;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
}

.property-features-and-price-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

@media screen and (min-width: 768px) {
  .agentbox-property-single .property-features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .agentbox-property-single .property-gallery {
    display: flex;
    flex-direction: column;
    max-height: 400px;
  }

  .agentbox-property-single .main-image-container {
    max-height: 240px;
    width: 100%;
    margin-bottom: 0;
  }

  .agentbox-property-single .main-image-container img {
    max-height: 240px;
  }

  .agentbox-property-single .thumbnails-container a {
    width: 120px;
    min-width: 120px;
  }

  .agentbox-property-single .thumbnail {
    width: 120px;
    object-fit: cover;
  }

  .agentbox-property-single .thumbnails-container a,
  .agentbox-property-single .thumbnails-container,
  .agentbox-property-single .thumbnail {
    max-height: 120px;
    height: 120px;
  }

  .agentbox-property-single .thumbnails-container {
    flex-direction: row;
    overflow-x: scroll;
    overflow-y: hidden;
    width: 100%;
  }

  .agentbox-property-single .brxe-container {
    padding: 1rem;
  }

  .agentbox-property-single .content-align-right,
  .agentbox-property-single .content-align-center {
    align-items: flex-start;
  }

  .agentbox-property-single .content-align-right .form-section-title,
  .agentbox-property-single .content-align-right .form-section-description,
  .agentbox-property-single .content-align-center .form-section-title,
  .agentbox-property-single .content-align-center .form-section-description {
    text-align: left;
  }

  #agentbox-gravity-form .gform_wrapper {
    padding: 15px;
    font-family: var(--agentbox-body-font);
  }

  #agentbox-gravity-form .gform_wrapper input[type="text"],
  #agentbox-gravity-form .gform_wrapper input[type="email"],
  #agentbox-gravity-form .gform_wrapper input[type="tel"],
  #agentbox-gravity-form .gform_wrapper textarea {
    padding: 10px;
    font-size: 14px;
    font-family: var(--agentbox-body-font);
  }

  #agentbox-gravity-form .gform_wrapper .gform_button {
    width: 100%;
    padding: 12px 20px;
    font-family: var(--agentbox-body-font);
  }
	
	.property-features-and-price-wrapper {
		flex-direction: column;
		justify-content: flex-start;
    align-items: flex-start;
	}
  .agentbox-property-single .property-information h1 {
    font-size: 30px;
  }
  .agentbox-property-single .property-information h2 {
    font-size: 24px;
  }
  .agentbox-property-single .location-search-form {
    flex-wrap: wrap;
    gap: 15px;
    max-width: 100%;
  }
  .agentbox-property-single .location-search-form .agentbox-global-input {
    flex: 0 0 100%;
    width: 100%;
  }
  .agentbox-property-single .location-search-form .agentbox-global-button {
    flex: 0 0 100%;
    width: 100%;
  }
}

#agentbox-gravity-form p.gform_required_legend {
    display: none;
}

/* Make the container position relative */
/* Ensure the container is positioned relatively */
#agentbox-gravity-form .ginput_container {
  position: relative;
}

/* Base styles for the floating label */
#agentbox-gravity-form .floating-label {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 0 4px;
  transition: all 0.2s ease;
  pointer-events: none;
}

/* When the floating label has the "filled" class, lift it up */
#agentbox-gravity-form .ginput_container .floating-label.filled {
  top: -10px;
}

.single.single-property_listing .pswp img {
  object-fit: contain;
}
