/* Custom tweaks to fill gaps in the extracted theme */
body.single-post { color: #000; }
body.page .media-body { color: #000; }

/* Force all blog/news text to black */
.entry-content,
.entry-content p,
.entry-content span,
.post-content,
.post-content p { color: #000000 !important; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: #000000 !important; }

/* Page content wrapper */
.wrapper { padding-top: 20px; padding-bottom: 40px; }
.wrapper.bare { padding: 0; }
.inner { padding: 0 15px; }

/* Home boxes — equal-height cards that sit correctly at all resolutions */
.home-boxes-new { margin: 30px 0 10px; }
.home-boxes-new .row { display: flex; flex-wrap: wrap; }
.home-boxes-new .home-boxes-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  min-height: 280px;
}
.home-boxes-new .home-boxes-card > .item {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  height: 100%;
}
.home-boxes-new .item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.home-boxes-new .item .item-caption {
  /* caption overlays image area only */
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 2;
}
.home-boxes-new .home-boxes-card > h2.item-title {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  color: #143f51;
  min-height: 2.5em;
}
@media (max-width: 767px) {
  .home-boxes-new .home-boxes-card > h2.item-title {
    min-height: 0;
  }
}

/* Buttons — inherit theme .btn-custom styling (orange base, navy hover, uppercase) */

/* Sort bar */
.sort { margin: 20px 0; }

/* News items */
.post-item { margin-bottom: 30px; }
.post-item h2 { font-size: 18px; color: #143f51; }
.post-item img { border-radius: 4px; }

/* News "Read More" as a button (matches featured listings button styling) */
.news .item-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.news .item-caption .btn-custom {
  margin-top: 10px;
  align-self: flex-start;
}

/* Featured listing item captions sit under image in the theme (not overlay) */
.featured-listing .item .item-caption {
  padding: 15px;
}
.featured-listing .item .item-caption .item-title {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.featured-listing .item .item-desc {
  color: #555;
  font-size: 13px;
  margin-bottom: 6px;
}

/* Gallery thumbnails */
.sync2 { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Ensure images in listing cards keep aspect */
.featured-listing .item > a img { max-height: 100%; }

/* Navbar: desktop (≥1200px) shows the full menu; below that the theme collapses to the hamburger.
   The theme's breakpoint is 1199px — our override must not fight it. */
@media (min-width: 1200px) {
  /* Force full-width containers so the nav doesn't hug content / get pushed */
  .navbar .container {
    width: 1170px;
    max-width: 1170px;
  }
  .navbar-main .navbar-collapse.collapse {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
  }
  .navbar-main .navbar-collapse.collapse.in {
    display: block !important;
  }
  .navbar-toggle {
    display: none;
  }
  /* Center the nav items the same way the live theme does (table-cell rows) */
  .navbar-main .navbar-nav {
    float: none;
    display: block;
    text-align: center;
    margin: 0 auto;
  }
  .navbar-main .navbar-nav > li {
    float: none;
    display: table-cell;
    vertical-align: middle;
    white-space: nowrap;
  }
  .navbar-main .navbar-nav > li > a.main-link {
    display: block;
    width: auto;
    white-space: nowrap;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar .container {
    width: 970px;
    max-width: 970px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .navbar .container {
    width: 750px;
    max-width: 750px;
  }
}
/* Below 1200px: hidden until toggle adds .in (matches theme @media(max-width:1199px)) */
@media (max-width: 1199px) {
  .navbar-collapse.collapse {
    display: none !important;
  }
  .navbar-collapse.collapse.in {
    display: block !important;
  }
  .navbar-toggle {
    display: block;
  }
}

/* Featured listings carousel (replaces owl-carousel with a lightweight custom one) */
.featured-carousel-outer {
  position: relative;
}
.featured-carousel-outer .owl-stage-outer {
  overflow: hidden;
}
.featured-carousel-outer .owl-item {
  background: #fff;
  border: 1px solid #e7e7e7;
}
.featured-carousel-outer .owl-item .item {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.featured-carousel-outer .owl-item .item-img {
  background: #fff;
  display: block;
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
}
.featured-carousel-outer .owl-item .item-img > img {
  bottom: 0;
  left: 0;
  margin: auto;
  max-height: 100%;
  max-width: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}
.featured-carousel-outer .owl-item .item-caption {
  text-align: center;
  background: #f0f4f6;
  font-weight: 400;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.featured-carousel-outer .owl-item .item-caption .item-title {
  border-top: 1px solid #e7e7e7;
  padding: 10px;
  width: 100%;
}
.featured-carousel-outer .owl-item .item-caption .item-title h2 {
  color: #275263;
  font-size: 16px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.featured-carousel-outer .owl-item .item-caption .item-detail {
  display: table;
  width: 100%;
  border-top: 1px solid #e7e7e7;
}
.featured-carousel-outer .owl-item .item-caption .item-detail span {
  padding: 5px;
  display: table-cell;
  font-size: 13px;
  width: 1%;
}
.featured-carousel-outer .owl-item .item-caption .item-detail span:not(:last-child) {
  border-right: 1px solid #e7e7e7;
}
.featured-carousel-outer .owl-item .item-caption .btn-custom {
  margin: 12px auto;
}
.featured-carousel-outer .owl-prev,
.featured-carousel-outer .owl-next {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  font-size: 22px;
  line-height: 1;
  padding: 12px 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
}
.featured-carousel-outer .owl-prev:hover,
.featured-carousel-outer .owl-next:hover {
  background: #f38901;
}
.featured-carousel-outer .owl-prev {
  left: 0;
}
.featured-carousel-outer .owl-next {
  right: 0;
}

/* Listing gallery (custom — not owl). Override the theme's owl aspect-box trick
   which collapses our thumbnails to thin lines. */
.gallery-box .sync1 .item {
  height: auto;
  padding-bottom: 0;
  background: #fff;
}
.gallery-box .sync1 .item > img {
  position: static;
  width: 100% !important;
  height: auto;
  max-height: none;
  transform: none;
}
.gallery-box .sync2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: #f5f5f5;
  border: 1px solid #e7e7e7;
  border-top: 0;
}
.gallery-box .sync2 .item {
  height: auto;
  padding-bottom: 0;
  width: 90px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  background: #fff;
  cursor: pointer;
}
.gallery-box .sync2 .item.active {
  border-color: #f38901;
}
.gallery-box .sync2 .item > img {
  position: static;
  width: 100% !important;
  height: 66px;
  object-fit: cover;
  display: block;
  transform: none;
}

/* Servicing enquiry form — the theme sets html{font-size:10px}, which shrinks rem-based
   Tailwind text to ~10px. Use explicit px sizes here for readability. */
.servicing-form {
  font-size: 16px;
}
.servicing-form label,
.servicing-form legend {
  font-size: 15px !important;
  padding-top: 0;
  line-height: 1.3;
}
.servicing-form input:not([type="radio"]):not([type="checkbox"]),
.servicing-form select,
.servicing-form textarea {
  font-size: 16px !important;
  padding: 10px 12px;
}
.servicing-form input[type="radio"],
.servicing-form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-right: 4px;
}
.servicing-form .bg-gray-50 {
  font-size: 15px !important;
  line-height: 1.5;
}
.servicing-form .bg-gray-50 p {
  font-size: 15px !important;
  margin-bottom: 4px;
}
.servicing-form button[type="submit"] {
  font-size: 16px !important;
  padding: 11px 26px;
}

/* Servicing page — tighter vertical rhythm */
.servicing-page {
  padding-top: 10px;
  padding-bottom: 25px;
}
.servicing-page .page-content h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}
.servicing-page .box-snr {
  margin-top: 15px;
}
.servicing-page .box-snr .col {
  margin-bottom: 15px !important;
}
.servicing-page .box-snr .card {
  min-height: 84px;
}
.servicing-page .list-custom {
  margin: 10px auto;
}
.servicing-page .list-custom > li {
  margin-bottom: 3px;
}
.servicing-page .servicing-form {
  margin-top: 20px !important;
}
.servicing-page .servicing-form h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

/* Gravity Forms-like styling (plugin CSS not bundled) */
.gform_heading .gform_title {
  font-size: 20px;
  color: #143f51;
  margin-bottom: 8px;
}
.gform_heading .gform_description {
  font-size: 13px;
  color: #555;
  margin-bottom: 15px;
}
.gform_body .gfield {
  margin-bottom: 12px;
}
.gform_body .gfield_label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}
.gform_body .gfield_label .gfield_required {
  color: #a94442;
}
.gform_body input[type="text"],
.gform_body input[type="email"],
.gform_body input[type="tel"],
.gform_body select,
.gform_body textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
}
.gform_body select {
  height: 38px;
}
.gform_footer {
  margin-top: 10px;
}
.gform_footer .gform_button {
  background: #143f51;
  color: #fff;
  border: 1px solid #143f51;
  padding: 10px 24px;
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
}
.gform_footer .gform_button:hover {
  background: #f38901;
  border-color: #f38901;
}