/* Static-site compatibility layer for the former Joomla template. */
html { scroll-behavior: smooth; }
body { min-width: 0; }

/* Joomla's duplicated off-canvas navigation must stay hidden on desktop. */
#s5_responsive_mobile_sidebar,
#s5_responsive_mobile_bottom_bar,
#s5_responsive_mobile_top_bar,
#s5_responsive_mobile_drop_down_wrap,
#s5_responsive_mobile_drop_down_menu,
#s5_responsive_mobile_drop_down_search,
#s5_responsive_mobile_drop_down_login,
#s5_responsive_mobile_drop_down_register {
  display: none !important;
}

/* The retired enquiry module occupied the left side of the hero. */
#s5_pos_custom_4 { display: none !important; }
#s5_pos_custom_0 { display: none !important; }
#s5_pos_custom_1 { display: block !important; }

/* Rebuild the header explicitly; the old version relied on Joomla helper classes. */
#s5_header_area_inner {
  width: calc(100% - 40px) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}
#s5_header_wrap {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  column-gap: 48px;
  row-gap: 14px;
  padding: 14px 0 6px !important;
  min-height: 0 !important;
}
#s5_logo {
  position: static !important;
  float: none !important;
  display: block !important;
  width: 300px !important;
  max-width: 100% !important;
  margin: 0 !important;
}
#s5_pos_custom_1 {
  position: static !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  text-align: right;
}
#s5_pos_custom_1 .custom { text-align: right; }
#s5_pos_custom_1 .moduletable,
#s5_pos_custom_1 .custom { margin: 0 !important; padding: 0 !important; }
#s5_pos_custom_1 p { margin: 0 !important; line-height: 1.65; }
#s5_pos_custom_1 p > img:first-child + br,
#s5_pos_custom_1 p > img:first-child + br + br { display: none !important; }
#s5_pos_custom_1 img[src*="you-will-be-sold"] {
  display: block !important;
  width: 298px !important;
  height: 72px !important;
  margin: 0 0 4px auto !important;
  object-fit: contain;
}
#s5_pos_custom_1 img[src*="facebook"] {
  width: auto !important;
  max-width: none !important;
}
#s5_header_wrap > div[style*="clear"] { display: none !important; }

#s5_menu_wrap {
  grid-column: 1 / -1;
  display: block !important;
  width: 100% !important;
  margin-top: 0 !important;
}
#s5_header_area1 { margin-bottom: 6px !important; }
#s5_pos_custom_3 {
  opacity: 1 !important;
  visibility: visible !important;
  width: calc(100% - 40px) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}
#s5_pos_custom_3 > .moduletable { margin: 0 !important; }
#s5_pos_custom_3 > .moduletable img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}
#s5_pos_custom_3 ~ #s5_top_row3_area1 {
  padding-top: 76px !important;
}

#s5_menu_wrap { position: relative !important; }
#s5_menu_inner { display: block !important; }
#s5_nav { display: flex !important; flex-wrap: wrap; }
#s5_nav > li { display: block !important; }
#s5_nav a { text-decoration: none; }
#s5_scrolltotop { cursor: pointer; }

.contact-details-card {
  max-width: 960px;
  margin: 24px auto 34px;
  padding: 30px 34px;
  color: #38455e;
  background: #f5f7fb;
  border-top: 4px solid #384efe;
  box-sizing: border-box;
}
.contact-details-card h2 {
  margin: 0 0 22px !important;
  color: #38455e !important;
}
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 42px;
}
.contact-details-grid p { margin: 0; }
.contact-details-grid a { color: #384efe; }
.contact-details-note { margin: 24px 0 0; }

/* Clear, reversible accordion controls. */
.ac-container label {
  position: relative;
  cursor: pointer !important;
  padding-right: 58px !important;
}
.ac-container label .accordion_icon { display: none !important; }
.ac-container label::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  color: #fff;
  background: #384efe;
  font: 600 24px/28px Arial, sans-serif;
  text-align: center;
}
.ac-container input:checked + label::after { content: "−"; }

@media (max-width: 1060px) {
  body { padding-bottom: 0 !important; }
  #s5_menu_wrap { position: static !important; }
  #s5_menu_inner { overflow-x: auto; }
  #s5_nav { justify-content: center; }
  #s5_nav > li { float: none !important; }
}

@media (max-width: 900px) {
  #s5_menu_wrap {
    position: relative !important;
    z-index: 100;
  }
  #s5_header_wrap {
    display: block !important;
    padding: 8px 0 4px !important;
  }
  #s5_logo {
    width: 280px !important;
    margin: 0 auto 4px !important;
  }
  #s5_pos_custom_1,
  #s5_pos_custom_1 .custom {
    width: 100% !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  #s5_pos_custom_1 img[src*="you-will-be-sold"] {
    width: 260px !important;
    height: auto !important;
    margin: 0 auto 2px !important;
  }
  #s5_menu_wrap { margin-top: 8px !important; }
  #s5_menu_wrap,
  #s5_menu_inner,
  #s5_nav { height: auto !important; min-height: 0 !important; }
  #s5_menu_inner { overflow: visible !important; }
  #s5_nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  #s5_nav > li { width: auto !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; background: #38455e !important; }
  #s5_nav > li > span,
  #s5_nav > li > span > span { display: block !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
  #s5_nav > li > span > span > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: auto !important;
    padding: 7px 8px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center;
  }
}

@media (max-width: 720px) {
  #s5_component_wrap_inner {
    box-sizing: border-box;
    padding-right: 18px !important;
    padding-left: 18px !important;
  }
  #s5_header_area_inner { width: calc(100% - 28px) !important; }
  #s5_header_wrap {
    display: block !important;
    padding: 6px 0 0 !important;
  }
  #s5_logo {
    width: 260px !important;
    margin: 0 auto 3px !important;
  }
  #s5_pos_custom_1 {
    text-align: center;
  }
  #s5_pos_custom_1 .custom { text-align: center; }
  #s5_pos_custom_1 { font-size: 14px !important; }
  #s5_pos_custom_1 img[src*="you-will-be-sold"] {
    width: 230px !important;
    height: 56px !important;
    margin: 0 auto 2px !important;
  }
  #s5_menu_wrap { margin-top: 7px !important; }
  #s5_menu_wrap,
  #s5_menu_inner,
  #s5_nav { height: auto !important; min-height: 0 !important; }
  #s5_menu_inner { overflow: visible !important; }
  #s5_nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  #s5_nav > li { width: auto !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; background: #38455e !important; }
  #s5_nav > li > span,
  #s5_nav > li > span > span { display: block !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
  #s5_nav > li > span > span > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: auto !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }
  #s5_nav > li > span > span > a {
    padding: 7px 9px !important;
    font-size: 14px !important;
  }
  .s5_wrap, #s5_component_wrap_inner { width: auto !important; }
  .ac-container { float: none !important; width: 100% !important; }
  #s5_pos_custom_3 { width: 100% !important; }
  #s5_pos_custom_3 ~ #s5_top_row3_area1 { padding-top: 46px !important; }
  .contact-details-card { margin: 18px 14px 28px; padding: 24px 20px; }
  .contact-details-grid { grid-template-columns: 1fr; gap: 16px; }
}
/* Keep contact details visually consistent while making them tap/click targets. */
.contact-link {
  color: inherit;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration: underline;
}

/* The retired About-page image no longer exists; hide its padded placeholder. */
[itemprop="articleBody"] img[src="/images/house-for-sale.jpg"] {
  display: none !important;
}

/* Compact navigation used at tablet and phone widths. */
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    color: #fff;
    background: #38455e;
    font: 600 15px/1.2 Raleway, Arial, sans-serif;
    text-align: left;
    cursor: pointer;
  }
  .menu-toggle::after {
    content: "☰";
    font: 24px/1 Arial, sans-serif;
  }
  #s5_menu_wrap.menu-open .menu-toggle::after { content: "×"; }
  #s5_menu_inner { display: none !important; overflow: visible !important; }
  #s5_menu_wrap.menu-open #s5_menu_inner {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 20;
    display: block !important;
    width: 100%;
    box-shadow: 0 12px 24px rgba(25, 34, 51, 0.24);
  }
  #s5_nav { display: block !important; }
  #s5_nav > li {
    display: block !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  #s5_nav > li > span > span > a {
    position: relative;
    z-index: 21;
    justify-content: flex-start !important;
    pointer-events: auto !important;
    min-height: 44px;
    padding: 10px 16px !important;
    font-size: 14px !important;
    text-align: left !important;
  }
}
