/**
 * Amora Costa — Property Hive styles
 * Isolated overrides to match Divi site branding.
 *
 * Palette:
 *   Cream        #fff9f6 / #e9e1d6
 *   Terracotta   #ef784e / #f59b3e / #df673d
 *   Sage         #5c7b6d
 *   Navy         #374962 / #1e2a40
 *   Ink          #061b21
 */

:root {
  --ph-cream: #fff9f6;
  --ph-sand: #e9e1d6;
  --ph-terracotta: #ef784e;
  --ph-amber: #f59b3e;
  --ph-link: #df673d;
  --ph-sage: #5c7b6d;
  --ph-navy: #374962;
  --ph-ink: #061b21;
  --ph-white: #ffffff;
  --ph-radius-input: 25px;
  --ph-radius-pill: 100px;
  --ph-radius-card: 20px;
  --ph-font: "Open Sans", Varela, Helvetica, Arial, sans-serif;
  --ph-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --ph-search-field-height: 56px;
}

/* ==========================================================================
   Search form
   ========================================================================== */

/*
 * Center search row with the same width as sibling hero rows
 * (row_0 / row_2), so left edges align in the content column.
 */
body #et-boc .et_pb_row:has(.property-search-form),
body .et_pb_row.et_pb_row:has(.property-search-form) {
  width: 80% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 40px !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
  /* Extra side padding so content sits in the flat of the pill */
  padding: 24px 48px !important;
  box-sizing: border-box !important;
}

.property-search-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 10px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* PH clearfix becomes a flex item and shifts the bar off-center */
.property-search-form.clear::before,
.property-search-form.clear::after {
  content: none !important;
  display: none !important;
}

.property-search-form .control {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  position: relative;
  vertical-align: middle;
}

.property-search-form .control-department {
  flex: 0 0 auto;
  min-width: auto;
  justify-content: flex-end;
  padding-bottom: 0;
}

.property-search-form .control label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--ph-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ph-navy);
  white-space: nowrap;
}

.property-search-form .control-department label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 10px;
  height: var(--ph-search-field-height);
  background: var(--ph-cream);
  border-radius: var(--ph-radius-pill);
  font-size: 16px;
  font-weight: 600;
  color: var(--ph-ink);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.property-search-form .control-department input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 2px solid var(--ph-terracotta);
  border-radius: 50%;
  background: var(--ph-white);
  flex-shrink: 0;
  cursor: pointer;
}

.property-search-form .control-department input[type="radio"]:checked {
  background: var(--ph-terracotta);
  box-shadow: inset 0 0 0 2px var(--ph-white);
}

.property-search-form .control select,
.property-search-form .control input[type="text"],
.property-search-form .control input[type="number"],
.property-search-form .control input[type="email"] {
  display: block;
  width: 100%;
  min-width: 0;
  height: var(--ph-search-field-height);
  margin: 0;
  padding: 12px 30px 12px 12px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--ph-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23374962' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px 7px;
  border: 0;
  border-radius: var(--ph-radius-input);
  color: var(--ph-navy);
  font-family: var(--ph-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.property-search-form .control input[type="text"],
.property-search-form .control input[type="number"],
.property-search-form .control input[type="email"] {
  background-image: none;
  padding-right: 14px;
  cursor: text;
}

.property-search-form .control select:hover,
.property-search-form .control input[type="text"]:hover,
.property-search-form .control input[type="number"]:hover {
  background-color: #fff3ec;
}

.property-search-form .control select:focus,
.property-search-form .control input[type="text"]:focus,
.property-search-form .control input[type="number"]:focus,
.property-search-form .control input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 120, 78, 0.35);
  background-color: var(--ph-white);
}

.property-search-form .control select::-ms-expand {
  display: none;
}

/* Same height as the fields + flex-end alignment, so the button
   sits exactly on the field row (below the field labels) */
.property-search-form input[type="submit"] {
  flex: 0 0 auto;
  align-self: flex-end;
  height: var(--ph-search-field-height);
  margin: 0;
  padding: 0 26px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--ph-terracotta);
  border: 2px solid var(--ph-terracotta);
  border-radius: var(--ph-radius-pill);
  color: var(--ph-white);
  font-family: var(--ph-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.property-search-form input[type="submit"]:hover,
.property-search-form input[type="submit"]:focus {
  background: var(--ph-navy);
  border-color: var(--ph-navy);
  color: var(--ph-white);
  outline: none;
}

@media (max-width: 1100px) {
  body #et-boc .et_pb_row:has(.property-search-form),
  body .et_pb_row.et_pb_row:has(.property-search-form) {
    width: 90% !important;
    padding: 20px 22px !important;
  }

  .property-search-form {
    flex-wrap: wrap;
    gap: 12px 14px;
  }

  .property-search-form .control {
    flex: 1 1 calc(25% - 14px);
    min-width: 150px;
  }

  .property-search-form .control-department {
    flex: 1 1 auto;
  }
}

@media (max-width: 980px) {
  .property-search-form .control {
    flex: 1 1 calc(50% - 14px);
    min-width: 160px;
  }

  .property-search-form .control-department,
  .property-search-form input[type="submit"] {
    flex: 1 1 100%;
  }

  .property-search-form .control-department label,
  .property-search-form input[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  body #et-boc .et_pb_row:has(.property-search-form),
  body .et_pb_row.et_pb_row:has(.property-search-form) {
    width: 100% !important;
    padding: 18px 16px !important;
    margin-bottom: 20px !important;
  }

  .property-search-form {
    gap: 10px;
  }

  .property-search-form .control {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   Search results toolbar
   ========================================================================== */

.propertyhive .propertyhive-result-count,
.propertyhive .woocommerce-result-count {
  font-family: var(--ph-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ph-navy);
}

.propertyhive .propertyhive-ordering,
.propertyhive form.propertyhive-ordering {
  margin: 0 0 1.5em;
}

.propertyhive .propertyhive-ordering select,
.propertyhive select.orderby {
  height: 44px;
  padding: 10px 36px 10px 16px;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--ph-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23374962' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 0;
  border-radius: var(--ph-radius-input);
  color: var(--ph-navy);
  font-family: var(--ph-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.propertyhive .propertyhive-ordering select:focus,
.propertyhive select.orderby:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 120, 78, 0.35);
}

/* ==========================================================================
   Property search archive (/property-search/)
   ========================================================================== */

body.post-type-archive-property #et-main-area {
  background: var(--ph-cream);
}

body.post-type-archive-property #container {
  max-width: 1200px !important;
  width: 90% !important;
  margin: 0 auto !important;
  padding: 48px 0 80px !important;
  box-sizing: border-box;
}

body.post-type-archive-property #content {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.post-type-archive-property .page-title {
  font-family: var(--ph-font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ph-ink);
  margin: 0 0 28px;
  text-align: center;
}

/* Search bar panel */
body.post-type-archive-property .property-search-form {
  background: var(--ph-white);
  border-radius: 40px;
  padding: 22px 28px;
  margin: 0 0 32px;
  box-shadow: 0 8px 28px rgba(6, 27, 33, 0.06);
}

body.post-type-archive-property .property-search-form .control {
  text-align: left;
}

/* Results toolbar: count left, sort right */
body.post-type-archive-property .propertyhive-result-count {
  float: left;
  margin: 0 0 28px;
  padding: 0;
  line-height: 44px;
  font-size: 15px;
  color: var(--ph-navy);
}

body.post-type-archive-property .propertyhive-ordering {
  float: right;
  margin: 0 0 28px;
}

body.post-type-archive-property .propertyhive-ordering select.orderby {
  min-width: 240px;
  background-color: var(--ph-white);
  box-shadow: 0 2px 10px rgba(6, 27, 33, 0.05);
}

body.post-type-archive-property ul.properties {
  clear: both;
  margin: 0 0 40px;
}

/* Archive grid: always 3 columns */
body.post-type-archive-property ul.properties li.ph-cols-3,
body.post-type-archive-property ul.properties li.ph-cols-4 {
  flex: 0 0 calc((100% - 48px) / 3);
  width: calc((100% - 48px) / 3) !important;
  max-width: calc((100% - 48px) / 3);
}

body.post-type-archive-property .propertyhive-pagination {
  clear: both;
  margin-top: 8px;
  text-align: center;
}

/* Empty state — no properties found */
body.post-type-archive-property:has(.no-results-message) .propertyhive-result-count {
  display: none;
}

body.post-type-archive-property:has(.no-results-message) .propertyhive-ordering {
  display: none;
}

.propertyhive-info.no-results-message,
body.post-type-archive-property .no-results-message {
  clear: both;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 48px;
  padding: 56px 40px;
  background: var(--ph-white);
  border-radius: var(--ph-radius-card);
  box-shadow: 0 8px 28px rgba(6, 27, 33, 0.06);
  text-align: center;
  font-family: var(--ph-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ph-navy);
}

.propertyhive-info.no-results-message::before,
body.post-type-archive-property .no-results-message::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: var(--ph-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ef784e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px;
}

@media (max-width: 767px) {
  .propertyhive-info.no-results-message,
  body.post-type-archive-property .no-results-message {
    padding: 40px 24px;
    font-size: 16px;
    border-radius: 16px;
  }
}

@media (max-width: 980px) {
  body.post-type-archive-property #container {
    width: 92% !important;
    padding: 36px 0 60px !important;
  }

  body.post-type-archive-property .property-search-form {
    border-radius: 28px;
    padding: 20px;
  }

  body.post-type-archive-property .propertyhive-result-count,
  body.post-type-archive-property .propertyhive-ordering {
    float: none;
    display: block;
    width: 100%;
  }

  body.post-type-archive-property .propertyhive-result-count {
    margin-bottom: 12px;
    line-height: 1.4;
  }

  body.post-type-archive-property .propertyhive-ordering select.orderby {
    width: 100%;
    min-width: 0;
  }

  body.post-type-archive-property ul.properties li.ph-cols-3,
  body.post-type-archive-property ul.properties li.ph-cols-4 {
    flex: 0 0 calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2) !important;
    max-width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 767px) {
  body.post-type-archive-property .page-title {
    text-align: left;
    margin-bottom: 20px;
  }

  body.post-type-archive-property .property-search-form {
    border-radius: 24px;
    padding: 16px;
  }

  body.post-type-archive-property ul.properties li.ph-cols-3,
  body.post-type-archive-property ul.properties li.ph-cols-4 {
    flex: 0 0 100%;
    width: 100% !important;
    max-width: 100%;
  }
}

/* ==========================================================================
   Featured properties — Divi row should hug content
   ========================================================================== */

/* Beat Divi deferred row padding (e.g. padding-bottom: 400px !important) */
body #et-boc .et_pb_row:has(.propertyhive-featured-properties-shortcode),
body .et_pb_row.et_pb_row:has(.propertyhive-featured-properties-shortcode) {
  padding-top: 32px !important;
  padding-right: 32px !important;
  padding-bottom: 32px !important;
  padding-left: 32px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body #et-boc .et_pb_row:has(.propertyhive-featured-properties-shortcode) > .et_pb_column {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.propertyhive-featured-properties-shortcode,
.propertyhive-featured-properties-shortcode ul.properties {
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Property cards (archive + featured modules)
   ========================================================================== */

.propertyhive ul.properties {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 24px;
  width: 100%;
  box-sizing: border-box;
}

.propertyhive ul.properties li {
  float: none !important;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0;
  border: 0;
  clear: none !important;
  background: var(--ph-white);
  border-radius: var(--ph-radius-card);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(6, 27, 33, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.propertyhive ul.properties li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(6, 27, 33, 0.1);
}

/* Default single-column / list layout */
.propertyhive ul.properties li:not([class*="ph-cols-"]) {
  width: 100%;
  flex: 1 1 100%;
  flex-direction: row;
  align-items: stretch;
}

.propertyhive ul.properties li:not([class*="ph-cols-"]) .thumbnail {
  float: none;
  width: 38%;
  min-width: 180px;
  max-width: 320px;
  flex-shrink: 0;
}

.propertyhive ul.properties li:not([class*="ph-cols-"]) .details {
  float: none;
  width: auto;
  flex: 1;
  padding: 24px 28px;
}

/* Multi-column cards — fixed column widths (no grow into empty slots) */
.propertyhive ul.properties li.ph-cols-2,
.propertyhive.columns-2 ul.properties li {
  flex: 0 0 calc((100% - 24px) / 2);
  width: calc((100% - 24px) / 2) !important;
  max-width: calc((100% - 24px) / 2);
}

.propertyhive ul.properties li.ph-cols-3,
.propertyhive.columns-3 ul.properties li,
.propertyhive-featured-properties-shortcode ul.properties li {
  flex: 0 0 calc((100% - 48px) / 3);
  width: calc((100% - 48px) / 3) !important;
  max-width: calc((100% - 48px) / 3);
}

.propertyhive ul.properties li.ph-cols-4,
.propertyhive.columns-4 ul.properties li:not(.ph-cols-3) {
  flex: 0 0 calc((100% - 72px) / 4);
  width: calc((100% - 72px) / 4) !important;
  max-width: calc((100% - 72px) / 4);
}

/* Featured properties: always 3 columns, even if shortcode says columns-4 */
.propertyhive-featured-properties-shortcode.columns-4 ul.properties li {
  flex: 0 0 calc((100% - 48px) / 3);
  width: calc((100% - 48px) / 3) !important;
  max-width: calc((100% - 48px) / 3);
}

.propertyhive ul.properties li .thumbnail {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ph-sand);
  line-height: 0;
}

.propertyhive ul.properties li .thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.propertyhive ul.properties li .thumbnail img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center;
  transition: transform 0.35s ease;
}

.propertyhive ul.properties li:hover .thumbnail img {
  transform: scale(1.04);
}

.propertyhive ul.properties li .details {
  float: none;
  width: 100%;
  padding: 18px 22px 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--ph-white);
}

.propertyhive ul.properties li .details h3 {
  margin: 0;
  padding: 0;
  font-family: var(--ph-font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ph-ink);
}

.propertyhive ul.properties li .details h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.propertyhive ul.properties li .details h3 a:hover {
  color: var(--ph-link);
}

.propertyhive ul.properties li .price {
  font-family: var(--ph-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--ph-terracotta);
  line-height: 1.3;
}

.propertyhive ul.properties li .price .price-qualifier {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ph-navy);
  opacity: 0.75;
}

.propertyhive ul.properties li .summary {
  font-family: var(--ph-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ph-navy);
  opacity: 0.9;
}

.propertyhive ul.properties li .property-type {
  order: -1;
  align-self: flex-start;
  margin: 0 0 2px;
  padding: 3px 10px;
  background: var(--ph-cream);
  border-radius: var(--ph-radius-pill);
  font-family: var(--ph-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ph-sage);
}

.propertyhive ul.properties li .actions {
  margin-top: 8px;
}

.propertyhive ul.properties li .actions a.button,
.propertyhive ul.properties li .actions a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--ph-navy);
  border: 2px solid var(--ph-navy);
  border-radius: var(--ph-radius-pill);
  color: var(--ph-white) !important;
  font-family: var(--ph-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.propertyhive ul.properties li .actions a.button:hover,
.propertyhive ul.properties li .actions a:hover {
  background: var(--ph-terracotta);
  border-color: var(--ph-terracotta);
  color: var(--ph-white) !important;
}

@media (max-width: 980px) {
  .propertyhive ul.properties li.ph-cols-2,
  .propertyhive ul.properties li.ph-cols-3,
  .propertyhive ul.properties li.ph-cols-4,
  .propertyhive.columns-2 ul.properties li,
  .propertyhive.columns-3 ul.properties li,
  .propertyhive.columns-4 ul.properties li,
  .propertyhive-featured-properties-shortcode ul.properties li,
  .propertyhive-featured-properties-shortcode.columns-4 ul.properties li {
    flex: 0 0 calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2) !important;
    max-width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 767px) {
  .propertyhive ul.properties {
    gap: 20px;
  }

  .propertyhive ul.properties li.ph-cols-2,
  .propertyhive ul.properties li.ph-cols-3,
  .propertyhive ul.properties li.ph-cols-4,
  .propertyhive.columns-2 ul.properties li,
  .propertyhive.columns-3 ul.properties li,
  .propertyhive.columns-4 ul.properties li,
  .propertyhive-featured-properties-shortcode ul.properties li,
  .propertyhive-featured-properties-shortcode.columns-4 ul.properties li,
  .propertyhive ul.properties li:not([class*="ph-cols-"]) {
    flex: 0 0 100%;
    width: 100% !important;
    max-width: 100%;
    flex-direction: column;
  }

  .propertyhive ul.properties li:not([class*="ph-cols-"]) .thumbnail {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.propertyhive-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 2em 0 0;
  padding: 0;
}

.propertyhive-pagination ul li a,
.propertyhive-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--ph-radius-pill);
  background: var(--ph-cream);
  color: var(--ph-navy);
  font-family: var(--ph-font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.propertyhive-pagination ul li a:hover,
.propertyhive-pagination ul li span.current {
  background: var(--ph-navy);
  color: var(--ph-white);
}

/* ==========================================================================
   Single property
   ========================================================================== */

.single-property .property h1,
.single-property .property .property_title {
  font-family: var(--ph-font-heading);
  color: var(--ph-ink);
}

.single-property .property .price {
  font-family: var(--ph-font);
  font-size: 28px;
  font-weight: 700;
  color: var(--ph-terracotta);
  margin: 0.4em 0 1em;
}

.single-property .property .price .price-qualifier {
  font-size: 16px;
  font-weight: 600;
  color: var(--ph-navy);
}

.single-property .property .property-meta,
.single-property .property ul.property-meta {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.single-property .property .property-meta li {
  margin: 0;
  padding: 8px 14px;
  background: var(--ph-cream);
  border-radius: var(--ph-radius-pill);
  font-family: var(--ph-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ph-navy);
}

.single-property .property .actions a.button,
.single-property .property a.button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--ph-amber);
  border: 2px solid var(--ph-amber);
  border-radius: var(--ph-radius-pill);
  color: var(--ph-cream) !important;
  font-family: var(--ph-font);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.single-property .property .actions a.button:hover,
.single-property .property a.button:hover {
  background: var(--ph-terracotta);
  border-color: var(--ph-terracotta);
}

.single-property .property .features,
.single-property .property .summary,
.single-property .property .description {
  font-family: var(--ph-font);
  color: var(--ph-ink);
}

.single-property .property .features ul {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 16px;
}

.single-property .property .features ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ph-navy);
}

.single-property .property .features ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ph-terracotta);
}

.single-property .flexslider {
  border: 0;
  border-radius: var(--ph-radius-card);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(6, 27, 33, 0.08);
  background: var(--ph-sand);
}

/* ==========================================================================
   Enquiry form
   ========================================================================== */

.property-enquiry-form .control {
  margin-bottom: 14px;
}

.property-enquiry-form .control label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--ph-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--ph-navy);
}

.property-enquiry-form .control input[type="text"],
.property-enquiry-form .control input[type="email"],
.property-enquiry-form .control input[type="tel"],
.property-enquiry-form .control select,
.property-enquiry-form .control textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--ph-cream);
  border: 0;
  border-radius: var(--ph-radius-input);
  color: var(--ph-navy);
  font-family: var(--ph-font);
  font-size: 15px;
  font-weight: 600;
}

.property-enquiry-form .control textarea {
  min-height: 140px;
  resize: vertical;
}

.property-enquiry-form .control input:focus,
.property-enquiry-form .control select:focus,
.property-enquiry-form .control textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 120, 78, 0.35);
  background: var(--ph-white);
}

.property-enquiry-form input[type="submit"],
.property-enquiry-form button[type="submit"] {
  margin-top: 8px;
  padding: 12px 32px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--ph-amber);
  border: 2px solid var(--ph-amber);
  border-radius: var(--ph-radius-pill);
  color: var(--ph-cream);
  font-family: var(--ph-font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.property-enquiry-form input[type="submit"]:hover,
.property-enquiry-form button[type="submit"]:hover {
  background: var(--ph-terracotta);
  border-color: var(--ph-terracotta);
}

/* ==========================================================================
   Client amends — typography, featured cards, single property
   (sizes given in "pt" by the client are applied as px, the web equivalent)
   ========================================================================== */

/* Homepage: headings Playfair Display navy, sub text Open Sans navy.
   !important needed to beat Divi's per-module heading colours.
   Body copy is NOT blanket-forced: Divi already sets navy on light
   sections and cream on the navy bands — forcing it by section number
   broke when sections were reordered (navy text on navy background). */
body.home #et-main-area h1,
body.home #et-main-area h2,
body.home #et-main-area h3,
body.home #et-main-area h4,
body.home #et-main-area h5,
body.home #et-main-area h6,
body.home #et-main-area .et_pb_module_header {
  font-family: var(--ph-font-heading);
  color: var(--ph-navy) !important;
}

body.home #et-main-area .et_pb_blurb_description,
body.home #et-main-area .et_pb_blurb_description p {
  font-family: var(--ph-font);
  color: var(--ph-navy);
}

/* Keep 18px search text from truncating ("No prefer…") on laptops:
   step fields down a touch below full desktop width */
@media (max-width: 1440px) {
  .property-search-form .control select,
  .property-search-form .control input[type="text"],
  .property-search-form .control input[type="number"] {
    font-size: 16px;
  }
}

/* Featured properties: title Playfair SemiBold 26, body Open Sans Medium 16 */
.propertyhive-featured-properties-shortcode ul.properties li .details h3,
.propertyhive-featured-properties-shortcode ul.properties li .details h3 a {
  font-family: var(--ph-font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ph-navy);
}

.propertyhive-featured-properties-shortcode ul.properties li .summary {
  font-family: var(--ph-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ph-navy);
  opacity: 1;
}

/* Single property: section headings Playfair SemiBold 26 navy.
   No .property wrapper: the Divi Theme Builder template renders these
   as standalone PH modules, so match them directly.
   Summary was left on the theme h4 (Playfair Display SC, 18px). */
.single-property .features h4,
.single-property .description h4,
.single-property .summary h4,
.single-property .embedded-virtual-tours h4 {
  font-family: var(--ph-font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ph-navy);
  margin: 0 0 16px;
}

/* Summary + full details body. Divi sets 18px on some of these modules
   but the line-height stays the body's 23.8px, so the copy looks cramped.
   Summary itself was still the 14px theme default. */
.single-property .summary,
.single-property .summary-contents,
.single-property .description,
.single-property .description-contents {
  font-family: var(--ph-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ph-navy);
}

.single-property .et_pb_property_summary_description_widget {
  margin-bottom: 48px;
}

.single-property .description-contents p.room {
  margin: 0 0 1.75em;
}

.single-property .description-contents p.room:last-child {
  margin-bottom: 0;
}

.single-property .description-contents .room .name {
  font-weight: 700;
  color: var(--ph-ink);
}

.single-property .features ul,
.single-property .features ul li {
  line-height: 1.55;
}

/* Single property: keep videos / virtual tours in proportion, left aligned.
   PH embeds tours as <iframe height="500" width="100%">. Divi's FitVids
   reads those attrs as 500/100 and wraps it with padding-top: 500% —
   that's the giant stretched video. Kill that hack and use 16:9 instead. */
.single-property .embedded-virtual-tours {
  max-width: 880px;
  margin: 0 0 32px;
  margin-right: auto;
}

.single-property .embedded-virtual-tours iframe,
.single-property .embedded-virtual-tours video,
.single-property .description-contents iframe,
.single-property .description-contents video,
.single-property .description-contents embed,
.single-property .description-contents object {
  display: block;
  width: 100% !important;
  max-width: 880px;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
  margin-right: auto;
  border: 0;
  border-radius: var(--ph-radius-card);
  background: #000;
  object-fit: contain;
}

/* FitVids wrapper: remove the 500% padding hack, give the wrapper
   itself the 16:9 ratio (the iframe inside is positioned absolute) */
.single-property .embedded-virtual-tours .fluid-width-video-wrapper,
.single-property .description-contents .fluid-width-video-wrapper {
  padding-top: 0 !important;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
  margin-right: auto;
  border-radius: var(--ph-radius-card);
  overflow: hidden;
  background: #000;
}

.single-property .embedded-virtual-tours .fluid-width-video-wrapper iframe,
.single-property .embedded-virtual-tours .fluid-width-video-wrapper video,
.single-property .description-contents .fluid-width-video-wrapper iframe,
.single-property .description-contents .fluid-width-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

.single-property .description-contents .wp-video,
.single-property .embedded-virtual-tours .wp-video {
  width: 100% !important;
  max-width: 880px;
  margin: 0 0 24px;
  margin-right: auto;
}

.single-property .description-contents .mejs-container,
.single-property .embedded-virtual-tours .mejs-container {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: var(--ph-radius-card);
  overflow: hidden;
}
