:root {
  --primary-blue: #0d6efd;
  --primary-purple: #6f42c1;
  --font-family: 'Poppins', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-purple);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar */
nav {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}
.navbar-brand img {
  height: 50px;
  transition: height 0.3s ease;
}
.nav-links {
  display: flex;
  gap: 1rem;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}
@media(max-width: 768px) {
  .navbar-brand img {
    height: 36px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}
/* End of Nav */

/* Hero Section */
.hero-bg {
  background: url('images/hero-property.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(111,66,193,0.5), rgba(13,110,253,0.5));
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2rem 0;
}
.hero-content {
  max-width: 1200px;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}
.hero-text {
  color: #fff;
  max-width: 600px;
  z-index: 1;
  margin-bottom: 1rem;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}
.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}
.hero-text small {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.hero-property-search {
  color: #fff;
  width: 100%;
  max-width: 1200px;
  z-index: 1;
  margin-bottom: 1rem;
}
.hero-property-search h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}
.hero-property-search p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}
.hero-property-search small {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.hero-buttons {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.property_searchbox {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto;
}

.property_searchbox form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}

.property_searchbox div {
  flex: 1 1;
  min-width: 150px;
}

.property_searchbox label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.property_searchbox select,
.property_searchbox input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  outline: none;
}

.property_searchbox select:focus,
.property_searchbox input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 4px rgba(111,66,193,0.3);
}

.property_searchbox button {
  height: 42px;
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  border: none;
  background: var(--primary-purple);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.property_searchbox button:hover {
  background: var(--primary-blue);
}

.property_searchbox .button-group {
  display: flex;
  align-items: flex-end; /* makes button sit at bottom with selects */
  flex: auto;
}

/* On smaller screens: stack vertically */
@media(max-width: 768px) {
  .property_searchbox form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem; /* reduce gap when stacked */
  }

  .property_searchbox div {
    margin-bottom: 0; /* no extra spacing beyond the reduced gap */
  }

  .property_searchbox button {
    width: 100%; /* make button full width on small screens */
  }
  .property_searchbox div {
    margin: 0;
  }
}


.btn {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  border: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: var(--primary-purple);
  transform: translateY(-2px);
}
.btn-purple {
  background: var(--primary-purple);
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.btn-purple:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

/* Hero Search */
.hero-search {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(255,255,255,0.95);
  padding: 1rem;
  border-radius: 12px;
  color: #000;
  min-width: 250px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}
.hero-search h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--primary-purple);
  text-align: center;
}
.hero-search input,
.hero-search select {
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
}
.hero-search input:focus,
.hero-search select:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 4px rgba(111,66,193,0.4);
}
.hero-search button {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: none;
  background: var(--primary-purple);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.hero-search button:hover {
  background: var(--primary-blue);
}
@media(min-width: 992px) {
  .hero-overlay {
    flex-wrap: nowrap;
  }
  .hero-search {
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
  }
}
@media(max-width: 991px) {
  .hero-search {
    display: none;
  }
}

/* Sections */
section {
  padding: 4rem 0;
}
h2 {
  text-align: center;
  color: var(--primary-purple);
  margin-bottom: 2rem;
}
.services-grid,
.property-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.service-card,
.property-card {
  background: #fff;
  padding: 1.5rem;
  flex: 1 1 250px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.service-card:hover,
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.service-card h5,
.property-card h5 {
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}
.property-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.property-card {
  background: #fff;
  padding: 1.5rem;
  flex: 1 1 250px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.property-card h5 {
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.property-card img {
  width: 100%;
  height: 200px; /* Forced height */
  object-fit: cover; /* Crop images */
  border-radius: 8px;
}

.property-card-body {
  padding: 1rem 0;
}

.property-card-body p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #555;
}

.property-card-body a {
  font-weight: 600;
  color: var(--primary-blue);
}


#about-us {
  background-color: #fff;
  padding: 4rem 0;
}

#about-us .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

#about-us h2 {
  color: var(--primary-purple);
  margin-bottom: 2rem;
  font-size: 2rem;
}

#about-us p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

#about-us .highlight {
  color: var(--primary-purple); /* Or var(--primary-blue) if you prefer */
  font-weight: 600;
}

#about-us strong {
  color: var(--primary-purple);
}

@media(max-width: 768px) {
  #about-us h2 {
    font-size: 1.75rem;
  }
  #about-us p {
    font-size: 0.95rem;
  }
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid #dee2e6;
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.footer-column {
  flex: 1 1;
}
.footer-column h5 {
  color: var(--primary-purple);
  margin-bottom: 1rem;
}
.footer-column p,
.footer-column ul,
.footer-column li {
  margin-bottom: 0.5rem;
  color: #555;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column li a {
  color: #555;
  transition: color 0.3s ease;
}
.footer-column li a:hover {
  color: var(--primary-purple);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
  color: #6c757d;
  font-size: 0.8rem;
}
@media(max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Trust Logos */
.trust-logos {
  background: #f8f9fa;
  padding: 1.5rem 0;
  text-align: center;
}
.trust-logos .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-logos img {
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.trust-logos img:hover {
  transform: scale(1.05);
}
@media(max-width: 768px) {
  .trust-logos img {
    max-height: 50px;
    margin-bottom: 0.5rem;
  }
}

/* Cookie Banner */
.cookie-agreement {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #dee2e6;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  z-index: 2000;
  padding: 1rem 0;
  font-family: var(--font-family);
}

.cookie-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.cookie-container h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-purple);
  font-size: 1.2rem;
}

.cookie-container p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
  flex: 1 1 400px;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  background-color: var(--primary-purple);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-buttons button:hover {
  background-color: var(--primary-blue);
}

.cookie-buttons .learn-more {
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-purple);
  border-radius: 5px;
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cookie-buttons .learn-more:hover {
  background-color: var(--primary-purple);
  color: #fff;
}

@media(max-width:768px) {
  .cookie-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .cookie-buttons {
    justify-content: center;
  }
}

/* Property Search Display */
.property_searchdisplay {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 1rem auto;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property_searchdisplay:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Main picture */
.property_searchdisplay_picture_holder {
  flex: 0 0 350px;   /* ✅ Fix: lock column to 350px instead of picture itself */
  position: relative;
}

.property_searchdisplay_picture_holderinner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.property_searchdisplay_picture {
  width: 100%;       /* ✅ Now takes up full holder width */
  height: 220px;     /* fixed height only */
  object-fit: cover;
  display: block;
  border-radius: 10px 0 0 10px;
}

/* Overlay images (Let / Under Negotiation) */
.property_searchdisplay_imgover {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: 120px;
  z-index: 2;
}

/* Additional thumbnails */
.property_searchdisplay_additionalpictures_holder {
  display: flex;
  flex-direction: column;   /* stack vertically */
  gap: 0.15rem 0.25rem;
  padding: 0.15rem 0.25rem;
  justify-content: flex-start;
  align-items: center;
  flex: 0 0 auto;
}

.property_searchdisplay_additionalpictures_holderinner {
  width: 135px;
}

.property_searchdisplay_additionalpictures {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

/* Responsive: on mobile, switch back to row */
@media(max-width: 768px) {
  .property_searchdisplay_additionalpictures_holder {
    flex-direction: row;
    justify-content: center;
  }
  .property_searchdisplay_picture_holder {
    flex: 1 1 auto; /* ✅ allow full width on small screens */
  }
  .property_searchdisplay_picture_holderinner {
    width: 100%;
  }
  .property_searchdisplay_picture {
    width: 100%;
  }
}

/* Text content */
.property_searchdisplay_text {
  flex: 2 1 400px;
  padding: 1rem;
  color: #333;
}

.property_searchdisplay_text location {
  font-weight: 600;
  color: var(--primary-purple);
  font-size: 1.05rem;
}

.property_searchdisplay_text price {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin: 0.25rem 0;
}

.property_searchdisplay_text beds {
  font-weight: 500;
  color: #444;
}

.property_searchdisplay_text briefdesc {
  display: block;
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.property_searchdisplay_text vacant {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #28a745;
  font-weight: 600;
}

.property_searchdisplay_text vacant .redtxt {
  color: #c00;
}

.property_searchdisplay_text ref {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #777;
}

/* Responsive */
@media(max-width: 768px) {
  .property_searchdisplay {
    flex-direction: column;
  }
  .property_searchdisplay_picture {
    border-radius: 10px 10px 0 0;
  }
  .property_searchdisplay_text {
    flex: 2 1;
  }
  .property_searchdisplay_additionalpictures_holderinner {
    width: 100%;
  }
}

/* =========================
   SINGLE PROPERTY PAGE (new design, works with your current HTML)
   ========================= */

/* Generic card container used for single property wrappers */
.container_95,
.property_holder {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin: 2rem auto;
  width: 95%;
  max-width: 1200px;
}

/* If you show the "No Properties Found" message */
.container_95 h1, .container_95 h2 { margin-bottom: .5rem; }

/* Layout */
.property_holder {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Left/right columns */
.property_details,
.property_description,
.property_epc,
.map {
  flex: 1 1 48%;
  min-width: 300px;
}

/* Return link */
.property_details .return_link {
  margin-bottom: .75rem;
}
.property_details .return_link a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}
.property_details .return_link a:hover {
  color: var(--primary-purple);
}

/* Headline meta (your custom tags kept as-is) */
.property_holder location,
.property_holder price,
.property_holder beds,
.property_holder vacant,
.property_holder ref {
  display: block;
  line-height: 1.35;
  margin: .25rem 0;
}

/* Styles for those custom tags */
.property_holder location {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-purple);
}
.property_holder price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
}
.property_holder beds {
  font-size: 1.05rem;
  color: #444;
  font-weight: 500;
}
.property_holder vacant {
  font-size: .95rem;
  font-weight: 600;
  color: #28a745;
}
.property_holder vacant .redtxt { color: #c00; }
.property_holder ref {
  font-size: .85rem;
  color: #777;
}

/* Features list (inside <features><ul>…</ul></features>) */
.property_details features ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}
.property_details features li { margin-bottom: .35rem; color: #555; }

/* Facebook like button spacing */
.property_details .fb-like { margin: .5rem 0; }

/* Map card */
.map {
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* Description card text */
.property_description { color: #333; line-height: 1.6; }

/* =========================
   EPC TABLE (keeps your band colours)
   ========================= */
.property_epc h2 { margin: 0 0 .5rem; color: #000; }
.epc_table_res {
  width: 100%;
  border-collapse: collapse;
  margin-top: .5rem;
  font-size: .95rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}
.epc_table_res thead td {
  background: var(--primary-purple);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: .6rem;
}
.epc_table_res td {
  border: 1px solid #dee2e6;
  padding: .5rem;
  text-align: center;
}

/* Your original band colours preserved */
.epc_band_a { background-color:#008054; color:#fff; }
.epc_band_b { background-color:#19b459; color:#fff; }
.epc_band_c { background-color:#8dce46; }
.epc_band_d { background-color:#ffd500; }
.epc_band_e { background-color:#fcaa65; }
.epc_band_f { background-color:#ef8023; color:#fff; }
.epc_band_g { background-color:#e9153b; color:#fff; }

/* Rating pills preserved visually */
.epc_rating_a, .epc_rating_b, .epc_rating_c,
.epc_rating_d, .epc_rating_e, .epc_rating_f, .epc_rating_g {
  display: inline-block;
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
  padding: 2px 8px 2px 10px;
  color: #fff;
}
.epc_rating_a { background:#008054; }
.epc_rating_b { background:#19b459; }
.epc_rating_c { background:#8dce46; color:#000; }
.epc_rating_d { background:#ffd500; color:#000; }
.epc_rating_e { background:#fcaa65; color:#000; }
.epc_rating_f { background:#ef8023; }
.epc_rating_g { background:#e9153b; }

/* =========================
   IMAGE GALLERY (JS-driven)
   ========================= */
.property_images {
  width: 100%;
  margin-top: 2rem;
}

.image-gallery {
  position: relative;
  margin: auto;
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* Big image area */
.image-gallery .big-image {
  position: relative;
  width: 100%;
  height: 480px; /* desktop height */
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-gallery .big-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover; /* or 'contain' if you prefer no cropping */
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

.image-gallery .big-image img.fade-out {
  opacity: 0;
}

/* Prev/Next buttons */
.image-gallery .button {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  text-align: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  text-decoration: none;
  user-select: none;
  transition: background .2s ease, transform .2s ease;
  cursor: pointer;
}
.image-gallery .button:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-1px);
}
.image-gallery .prev { 
  left: 12px;
  top: 50%;
}
.image-gallery .next { 
  right: 12px;
  top: 50%;
}

@media (max-width: 768px) {
  .image-gallery .prev { 
    left: 0px;
  }
  .image-gallery .next { 
    right: 0px;
  }
}

/* Thumbnails row */
.image-gallery .thumbs {
  margin-top: 1rem;
  overflow-x: auto;
}
.image-gallery .thumbs ul {
  display: flex;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.image-gallery .thumbs li {
  flex: 0 0 auto;
}
.image-gallery .thumbs li img {
  width: 110px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.image-gallery .thumbs li img:hover {
  transform: scale(1.04);
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}

/* “View all pictures” link under gallery */
.property_images + p a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}
.property_images + p a:hover {
  color: var(--primary-purple);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-gallery .big-image {
    height: 300px;
  }
  .image-gallery .thumbs li img {
    width: 90px;
    height: 60px;
  }
}


/* Utilities kept */
.clearboth { clear: both; }
.redtxt { color: #ff0000; }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px) {
  .property_holder {
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .property_holder {
    flex-direction: column;
  }
  .property_details,
  .property_description,
  .property_epc,
  .map {
    flex: 1 1 100%;
    min-width: 0;
  }
  .map { height: 300px; }
  .image-gallery .big-image { height: 300px; }
  .image-gallery .thumbs li img {
    width: 90px;
    height: 60px;
  }
}
.property_searchdisplay {
  scroll-margin-top: 120px;
}
@media (max-width: 768px) {
  .property_searchdisplay {
   scroll-margin-top: 80px;
  }
}

/* =============================
   CONTACT US PAGE STYLES
   ============================= */
.contact-section {
  background: #f9f9fb;
  padding: 4rem 1rem;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.contact-info {
  color: #333;
}

.contact-info h2 {
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.contact-info h3 {
  color: var(--primary-blue);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--primary-blue);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
  color: var(--primary-purple);
}

.contact-info .divider {
  height: 2px;
  width: 100%;
  background: var(--primary-purple);
  margin: 0.5rem 0 1rem;
}

/* MAP */
.contact-map {
  flex: 1 1 400px;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    padding: 1.5rem;
  }

  .contact-map {
    width: 100%;
    height: 300px;
    margin-top: 1.5rem;
  }

  .contact-info {
    width: 100%;
  }
}

/* =========================
   MORTGAGE CALCULATOR
   ========================= */
.mortgage-section {
  background: #f9f9fb;
  padding: 3rem 1rem;
}

.mortgage-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  position: relative;
  overflow: visible; /* ✅ allow full table expansion */
}

.mortgage-intro p {
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.mortgage-calculator h1 {
  color: var(--primary-purple);
}

.mortgage-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.mortgage-form label {
  display: block;
  font-weight: 600;
  margin-bottom: .25rem;
  color: var(--primary-purple);
}

.mortgage-form input {
  width: 100%;
  padding: .6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fafafa;
  transition: border .2s ease, box-shadow .2s ease;
}

.mortgage-form input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(127,0,255,0.15);
  outline: none;
}

.mortgage-form button {
  grid-column: 1 / -1;
  margin-top: 1rem;
  background: var(--primary-purple);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .75rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease;
}

.mortgage-form button:hover {
  background: var(--primary-blue);
}

.mortgage-results {
  margin-top: 2rem;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.mortgage-results h3 {
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

.mortgage-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mortgage-results li {
  margin-bottom: .5rem;
  font-size: 1rem;
}

/* ✅ Table & Breakdown Section */
.mortgage-breakdown {
  margin-top: 2rem;
  position: relative;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.mortgage-breakdown.fade-in {
  opacity: 1;
}

.table-responsive {
  overflow-x: auto;
  overflow-y: visible !important;
  border-radius: 8px;
  position: relative;
  max-height: none !important;
  height: auto !important;
}

.style_tables {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.style_tables th, .style_tables td {
  border: 1px solid #ddd;
  padding: 0.6rem 0.8rem;
  text-align: right;
}

.style_tables th {
  background-color: var(--primary-purple);
  color: #fff;
  text-align: center;
}

.style_tables tr:nth-child(even) {
  background-color: #f9f9f9;
}

.year-summary {
  background: #f3f3ff;
  font-weight: 600;
  color: #333;
}

.year-summary td {
  text-align: left;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

/* ✅ Toggle button */
.toggle-breakdown-btn {
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 1rem;
}

.toggle-breakdown-btn:hover {
  background-color: var(--primary-purple);
}

/* ✅ Hidden state - only hides visually, doesn’t cap height */
.hidden {
  display: none !important;
  opacity: 0;
  height: auto;
  max-height: none;
  overflow: visible;
}

/* Optional fade keyframes for smoother entrance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mortgage-breakdown .table-responsive {
  max-height: 70vh;     /* panel scroll height */
  overflow-y: auto;     /* scroll inside the panel */
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.mortgage-breakdown .style_tables {
  border-collapse: separate;
  border-spacing: 0;
}

.mortgage-breakdown .style_tables thead th {
  position: sticky;
  top: 0;               /* stick to top of the panel */
  z-index: 2;
  background: var(--primary-purple);
  color: #fff;
}
