/*
    Theme Name: PHR Divi Child
    Description: Custom WordPress child theme for PHR onOffice integration. Customizes the UI for real estate listings with Divi parent theme.
    Template: Divi
    Version: main
    Author: Market Strat
    Author URI: https://marketstrat.de/
*/
.phr-estate-detail {
  width: 100%;
}
.phr-estate-detail .et_pb_row {
  width: 100%;
}
p.p1:has(+ div.phr-estate-detail) {
  margin: 0;
  padding: 0;
}
.phr-property-banner {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  margin-left: calc(-50vw + 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phr-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.phr-hero-picture, .phr-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phr-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
}
.phr-property-header {
  position: relative;
  z-index: 10;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: 12px;
  max-width: 800px;
  margin: 5vh 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.phr-property-title {
  color: #ffffff;
  font-size: 2em;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.phr-marketing-status {
  display: inline-block;
  background: #28a745;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}
.phr-property-info {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 2rem;
}
.phr-property-info__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}
@media (max-width: 768px) {
  .phr-property-info__row {
    flex-direction: column;
    gap: 1.5rem;
  }
}
.phr-property-info__left {
  flex: 1;
  min-width: 0;
}
.phr-property-info__right {
  flex-shrink: 0;
  text-align: right;
}
@media (max-width: 768px) {
  .phr-property-info__right {
    text-align: left;
  }
}
.phr-property-info__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {
  .phr-property-info__title {
    font-size: 2rem;
  }
}
@media (max-width: 576px) {
  .phr-property-info__title {
    font-size: 1.75rem;
  }
}
.phr-property-info__subtitle {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}
.phr-property-info__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {
  .phr-property-info__price {
    font-size: 2rem;
  }
}
@media (max-width: 576px) {
  .phr-property-info__price {
    font-size: 1.75rem;
  }
}
.phr-property-info__price-label {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}
.c-property-features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  border-radius: 8px;
}
.c-property-features__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: left;
  margin-bottom: 0;
  position: relative;
}
.c-property-features__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 1rem 0;
  border-radius: 2px;
}
.c-property-features__table {
  width: 100%;
  margin-bottom: 2rem;
}
.c-property-features__row {
  display: flex;
  padding: 1.25rem;
}
.c-property-features__row--even {
  background-color: #ffffff;
}
.c-property-features__row--odd {
  background-color: rgba(102, 126, 234, 0.08);
}
.c-property-features__row:hover {
  background-color: rgba(102, 126, 234, 0.15);
}
.c-property-features__label {
  flex: 0 0 40%;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  padding-right: 1.25rem;
  line-height: 1.4;
}
.c-property-features__value {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2c3e50;
  line-height: 1.4;
  word-break: break-word;
}
.c-property-features .et_pb_button_module_wrapper {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 1024px) {
  .phr-property-header {
    margin: 3vh 1rem;
    padding: 1rem 1.5rem;
  }
  .c-property-features {
    padding: 1.5rem 1.25rem;
  }
  .c-property-features__label {
    flex: 0 0 35%;
  }
  .c-property-features__row {
    padding: 1rem 1.25rem;
  }
}
@media (max-width: 768px) {
  .phr-property-banner {
    height: 70vh;
    min-height: 500px;
  }
  .phr-property-header {
    margin: 2vh 1rem;
    padding: 1rem 1.25rem;
  }
  .c-property-features {
    margin: 0 auto;
    padding: 1.25rem 1rem;
  }
  .c-property-features__title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .c-property-features__label {
    flex: 0 0 35%;
    font-size: 0.8rem;
  }
  .c-property-features__value {
    font-size: 0.8rem;
  }
  .c-property-features__row {
    padding: 1rem;
  }
}
@media (max-width: 576px) {
  .phr-property-banner {
    height: 60vh;
    min-height: 400px;
  }
  .phr-property-header {
    margin: 1.5vh 0.75rem;
    padding: 1.5rem 1rem;
  }
  .phr-marketing-status {
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
  }
  .c-property-features {
    margin: 0 auto;
    padding: 1rem 0.75rem;
  }
  .c-property-features__title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  .c-property-features__label {
    flex: 0 0 40%;
    font-size: 0.8rem;
    padding-right: 0.75rem;
  }
  .c-property-features__value {
    font-size: 0.8rem;
  }
  .c-property-features__row {
    padding: 0.75rem;
    flex-direction: column;
  }
}
@media (max-width: 576px) and (min-width: 400px) {
  .c-property-features__row {
    flex-direction: row;
  }
}
.c-text-block {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  border-radius: 8px;
}
.c-text-block__title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0;
  position: relative;
}
.c-text-block__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 1rem 0;
  border-radius: 2px;
}
.c-text-block__content {
  display: block;
}
.c-text-block__text {
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3e50;
}
.c-text-block__text p {
  margin-bottom: 1rem;
}
.c-text-block__text p:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .c-text-block {
    padding: 1.25rem 1rem;
  }
  .c-text-block__title {
    font-size: 1.75rem;
  }
  .c-text-block__text {
    font-size: 0.875rem;
  }
}
@media (max-width: 576px) {
  .c-text-block {
    padding: 1rem 0.75rem;
  }
  .c-text-block__title {
    font-size: 1.25rem;
  }
  .c-text-block__text {
    font-size: 0.8rem;
  }
}
.phr-estate-gallery {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  border-radius: 8px;
}
.phr-estate-gallery__title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0;
  position: relative;
}
.phr-estate-gallery__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 1rem 0;
  border-radius: 2px;
}
.phr-estate-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 576px) {
  .phr-estate-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .phr-estate-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.phr-estate-gallery__item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.phr-estate-gallery__image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1.3333333333;
  object-fit: cover;
}
@media (max-width: 768px) {
  .phr-estate-gallery {
    padding: 1.25rem 1rem;
  }
  .phr-estate-gallery__title {
    font-size: 1.75rem;
  }
  .phr-estate-gallery__grid {
    gap: 1rem;
  }
}
@media (max-width: 576px) {
  .phr-estate-gallery {
    padding: 1rem 0.75rem;
  }
  .phr-estate-gallery__title {
    font-size: 1.25rem;
  }
  .phr-estate-gallery__grid {
    gap: 0.75rem;
  }
}
.phr-estate-content {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.phr-estate-content .et_pb_row {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .phr-estate-content .et_pb_row {
    flex-direction: column;
    gap: 1.5rem;
  }
}
.phr-estate-content .et_pb_column {
  margin-right: 0;
}
.phr-estate-content .et_pb_column_2_3 {
  flex: 2;
  min-width: 0;
}
.phr-estate-content .et_pb_column_1_3 {
  flex: 1;
  min-width: 0;
}
.phr-contact-person {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}
.phr-contact-person__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.25rem;
  position: relative;
}
.phr-contact-person__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0.75rem 0 0 0;
  border-radius: 2px;
}
.phr-contact-person__content {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.phr-contact-person__image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.phr-contact-person__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phr-contact-person__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50%;
}
.phr-contact-person__details {
  flex: 1;
  min-width: 0;
}
.phr-contact-person__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.phr-contact-person__position {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.phr-contact-person__phone {
  font-size: 0.875rem;
  font-weight: 600;
}
.phr-contact-person__phone a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}
.phr-contact-person__phone a:hover {
  color: #2345e1;
  text-decoration: underline;
}
.phr-estate-details-left .c-property-features, .phr-estate-details-left .c-text-block {
  margin-bottom: 1.5rem;
}
.phr-estate-details-left .c-property-features:last-child, .phr-estate-details-left .c-text-block:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .phr-estate-content {
    padding: 0 1rem;
  }
  .phr-contact-person {
    padding: 1.25rem;
    position: static;
  }
  .phr-contact-person__title {
    font-size: 1.25rem;
  }
  .phr-contact-person__content {
    gap: 1rem;
  }
  .phr-contact-person__image {
    width: 60px;
    height: 60px;
  }
  .phr-contact-person__name {
    font-size: 1rem;
  }
  .phr-contact-person__position, .phr-contact-person__phone {
    font-size: 0.8rem;
  }
}
@media (max-width: 576px) {
  .phr-estate-content {
    padding: 0 0.75rem;
  }
  .phr-contact-person {
    padding: 1rem;
  }
  .phr-contact-person__content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .phr-contact-person__image {
    align-self: center;
    width: 80px;
    height: 80px;
  }
  .phr-contact-person__details {
    text-align: center;
  }
}
