/* Property page (src/pages/public/PropertyDetail.jsx) -- layout polish on
   top of the theme's styles.css: the Overview tiles in an even grid, and
   every "label: value" section (Property Details, Address, Project
   Details, Configuration, Leasing & Terms) as the same aligned card, on
   desktop and mobile alike. Loaded after styles.css in index.html. */

/* ---- shared card look ---------------------------------------------------- */
.flat-property-detail .single-property-overview .info-box,
.flat-property-detail .pd-list {
  margin: 0;
  padding: 20px 24px;
  list-style: none;
  background-color: #ffffff;
  border: 1px solid #ececec;
  border-radius: 16px;
}

/* ---- Overview: equal tiles ------------------------------------------------- */
.flat-property-detail .single-property-overview .info-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}
.flat-property-detail .single-property-overview .info-box .item {
  min-width: 0;
  width: auto;
  align-items: center;
}
.flat-property-detail .single-property-overview .info-box .item .box-icon {
  flex: 0 0 52px;
}
.flat-property-detail .single-property-overview .info-box .item .content {
  min-width: 0;
}
.flat-property-detail .single-property-overview .info-box .item .content span {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.flat-property-detail .single-property-overview .info-box .item .content .label {
  font-size: 14px;
  margin-bottom: 2px;
}

/* ---- Label / value sections ------------------------------------------------ */
.flat-property-detail .pd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}
.flat-property-detail .pd-row {
  display: grid;
  grid-template-columns: minmax(110px, 44%) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.flat-property-detail .pd-label {
  color: #5c6368;
  font-size: 14px;
}
.flat-property-detail .pd-value {
  color: #161e2d;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.flat-property-detail .pd-value a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff5930;
}

/* ---- Tablet ------------------------------------------------------------------ */
@media (max-width: 1199px) {
  .flat-property-detail .single-property-overview .info-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .flat-property-detail .pd-list {
    column-gap: 28px;
  }
}

/* ---- Mobile ------------------------------------------------------------------ */
@media (max-width: 767px) {
  .flat-property-detail .pd-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .flat-property-detail .single-property-element:not(:last-child) {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
}
@media (max-width: 575px) {
  .flat-property-detail .single-property-overview .info-box,
  .flat-property-detail .pd-list {
    padding: 16px;
    border-radius: 12px;
  }
  .flat-property-detail .single-property-overview .info-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .flat-property-detail .single-property-overview .info-box .item {
    gap: 10px;
  }
  .flat-property-detail .single-property-overview .info-box .item .box-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .flat-property-detail .single-property-overview .info-box .item .box-icon .icon {
    font-size: 20px;
  }
  .flat-property-detail .pd-row {
    grid-template-columns: minmax(96px, 42%) minmax(0, 1fr);
    padding: 10px 0;
  }
}

/* ---- Header: title, price, features, location, share ----------------------- */
/* Features as rounded chips with brand-orange icons, and the price in the
   brand colour -- desktop and mobile. */
.flat-section-v4 .header-property-detail .box-price h3 {
  color: #ff5930;
}
.flat-section-v4 .header-property-detail .content-bottom .info-box .meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flat-section-v4 .header-property-detail .content-bottom .info-box .meta-list .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #ffffff;
  border: 1px solid #ececec;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}
.flat-section-v4 .header-property-detail .content-bottom .info-box .meta-list .item .icon {
  font-size: 18px;
  color: #ff5930;
}
.flat-section-v4 .header-property-detail .content-bottom .info-box.locationBox .meta-item .icon {
  color: #ff5930;
}

/* Phones: one white card -- title with the share button beside it, the
   price under the title, then small section labels over the chips and the
   location. */
@media (max-width: 767px) {
  .flat-section-v4 .header-property-detail {
    position: relative;
    margin-top: 16px;
    padding: 20px 16px 18px;
    background-color: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(22, 30, 45, 0.06);
  }
  .flat-section-v4 .header-property-detail .content-top {
    display: block !important;
    padding: 0 56px 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px dashed #e4e4e4;
  }
  .flat-section-v4 .header-property-detail .content-top .title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .flat-section-v4 .header-property-detail .box-price {
    gap: 4px;
  }
  .flat-section-v4 .header-property-detail .box-price h3 {
    font-size: 24px;
    line-height: 1.2;
  }
  .flat-section-v4 .header-property-detail .box-price .body-1 {
    font-size: 14px;
  }
  .flat-section-v4 .header-property-detail .content-bottom {
    display: block;
  }
  .flat-section-v4 .header-property-detail .content-bottom .box-left {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .flat-section-v4 .header-property-detail .content-bottom .info-box .label {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8f98;
    opacity: 1;
  }
  .flat-section-v4 .header-property-detail .content-bottom .info-box .meta-list {
    gap: 8px;
  }
  .flat-section-v4 .header-property-detail .content-bottom .info-box .meta-list .item {
    padding: 7px 12px;
    font-size: 14px;
    background-color: #f7f7f7;
  }
  .flat-section-v4 .header-property-detail .content-bottom .info-box .meta-list .item .icon {
    font-size: 16px;
  }
  .flat-section-v4 .header-property-detail .content-bottom .info-box .meta-item .item {
    font-size: 15px;
  }
  .flat-section-v4 .header-property-detail .content-bottom .icon-box {
    position: absolute;
    top: 18px;
    right: 16px;
  }
  .flat-section-v4 .header-property-detail .content-bottom .icon-box .item {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}
