:root {
  --primary-font: 'Alexandria', sans-serif;
  --montira-brown: #9e6433;
  --base-color: #c57738;
  --nav-height: 82px;
}
* { box-sizing: border-box; }
body { font-family: var(--primary-font); overflow-x: hidden; }

/* Navbar (transparent by default) */
.navbar-custom {
  height: var(--nav-height);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

/* Solid style when scrolled */
.navbar-scrolled {
  background: rgba(0, 0, 0, 0.5);      /* change to #1a1a1a for solid */
  backdrop-filter: blur(6px);          /* optional glass-blur */
  box-shadow: 0 2px 6px rgba(0,0,0,);/* subtle drop-shadow */
}

/* Brand + links stay readable */
.navbar-brand img { height: 56px; margin-left: -66px; }
.navbar-nav .nav-link {
  text-transform: none !important;
  color: #fff !important;
  font-weight: 500;
}

/* ====== FIX: Keep li in one line + logo to left ====== */
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  margin-left: 0;   /* remove any left margin */
  padding-left: 0;  /* ensure no padding pushes it in */
}

.navbar-nav {
  flex-wrap: nowrap !important; /* prevent wrapping */
  white-space: nowrap;          /* keep inline */
  gap: 0.5rem !important; /* tighten Bootstrap gap */
  padding-left: 40px;
}

/* =================  Mobile navbar dropdown  ================= */
@media (max-width: 991.98px) {          /* Bootstrap lg breakpoint */
  .navbar-custom .navbar-collapse {
    position: absolute;                 /* overlay on banner   */
    top: var(--nav-height);             /* starts below navbar */
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);     /* dark semi-transparent bg */
    padding: 1rem 1.25rem;
  }

  .navbar-custom .nav-link {
    color: #fff !important;             /* good contrast      */
  }
}

/* 1. Base link styling (edit colours to suit) */
.navbar .nav-link{
  padding: 0.6rem;
  font-size: 0.95rem;
}

/* 2. The underline */
.navbar .nav-link::after{
  content: '';
  position: absolute;
  left: 50%;                   /* start from the centre â€¦ */
  transform: translateX(-50%); /* â€¦ and truly centre it  */
  bottom: -4px;                /* distance below text    */
  width: 0;                    /* collapsed by default   */
  height: 2px;
  transition: width .35s ease; /* smooth grow/shrink      */
}

/* 3. Show the line on hover OR when active */
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after{
  width: 48px;                 /* pick any length you like */
}

/* ----------------- Mobile / tablet logo overrides (add at end of your CSS) ----------------- */

/* For tablets & mobile (Bootstrap lg breakpoint and below) */
@media (max-width: 991.98px) {
  .navbar-brand img {
    display: block;                   /* avoid baseline glitches */
    width: auto;                      /* preserve aspect ratio */
    max-width: 160px;                 /* never grow too wide on smaller screens */
    height: clamp(36px, 6.2vw, 46px); /* scales between 36px and 46px */
    margin-left: 0;                   /* remove negative offset on small viewports */
    padding-right: 0.5rem;
    object-fit: contain;
  }

  /* keep the nav layout intact while giving the logo breathing room */
  .navbar .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    overflow: visible; /* ensure logo isn't clipped by the container */
  }
}

/* Extra small phones: make the logo a bit smaller so it never overflows */
@media (max-width: 575.98px) {
  .navbar-brand img {
    max-width: 140px;
    height: clamp(32px, 8.5vw, 40px); /* smaller floor for tiny screens */
  }
}

/* Very small / legacy phones — safe fallback */
@media (max-width: 360px) {
  .navbar-brand img {
    height: 32px;
    max-width: 120px;
  }
}

/* Hide / show the two icons based on Bootstrap's .collapsed state */
.navbar-toggler .toggler-icon-close { display: none; }
.navbar-toggler:not(.collapsed) .toggler-icon-open  { display: none; }
.navbar-toggler:not(.collapsed) .toggler-icon-close { display: inline-block; }

/* Keep icons white for dark / transparent bg */
.toggler-icon-open,
.toggler-icon-close {
  color: #fff;
}

/* Hero */
.hero-caption{position:relative;z-index:5;text-align:center;color:#fff;padding-top:var(--nav-height);}
.hero-caption h1{font-size:clamp(1.8rem,4vw+0.5rem,3.2rem);font-weight:800;line-height:1.25;}
.hero-caption .subline{font-size:.9rem;letter-spacing:1.2px;text-transform:uppercase;}
.btn-cta{background:var(--montira-brown);border:none;padding:.6rem 2.2rem;font-weight:600;font-size:.9rem; margin-top: -165px;}
.price-tag{position:absolute;right:4%;bottom:10%;z-index:4;font-weight:700;font-size:1.25rem;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6);}

@media (max-width:767.98px){
  .navbar-brand img{height:46px}
  .price-tag{font-size:1rem;right:6%;bottom:12%}
}

.carousel-item {
  height: 100vh;
  position: relative;
}

.carousel-item img {
  object-fit: cover;
  height: 100vh;
  width: 100%;
}

.why-section {
  position: relative;
  background: #fff; /* keep white background */
  text-align: center;
  width: 100%;
}

.why-section .content {
  max-width: 900px;
  margin: 0 auto;
}

.why-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.why-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.why-section .hill-bg {
  background: url("images/why.jpg") no-repeat center bottom;
  background-size: cover;   /* makes it stretch full width */
  height: 250px;            /* adjust height to match Figma */
  width: 100%;              /* ensures it spans the full screen */
}

.project-overview {
  background: url('images/project-overview.jpg') no-repeat center bottom;
  background-size: cover;
  padding: 60px 20px 80px;
  color: #000; /* keep text readable */
  position: relative;
}

/* Move entire icons + text upward */
.project-overview .features-grid {
  margin-top: -70px;   /* adjust this until all content sits in white area */
}

/* Push the icon rows upward into the white area */
.project-overview .row {
  margin-top: 40px;   /* adjust this value as needed */
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1d7c57;
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: .5rem;
  margin-bottom: 1rem;
  color: #1d7c57;
}

.section-description {
  max-width: 800px;
  margin: 0 auto;
  color: #444;
  font-size: 1rem;
}

.project-overview i {
  display: block;
  color: #1d7c57;
}

.border-end {
  border-right: 3px solid #31766e;
}

.row .col-md-3:last-child,
.row .col-md-4:last-child {
  border-right: none !important;
}

.masterplan-section {
  background: #fff; /* white background like in wireframe */
  padding: 80px 0;
}

.masterplan-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; /* spacing between image & text */
  flex-wrap: wrap;
}

.masterplan-image img {
  max-width: 100%;
  height: auto;
  max-height: 500px; /* controls height, adjust as needed */
  object-fit: contain; /* makes sure it fits inside */
}

.masterplan-text {
  max-width: 500px;
  text-align: left;
}

.masterplan-text h2 {
  font-size: 2rem;
  color: #00695c;
  margin-bottom: 10px;
  font-weight: 700;
}

.masterplan-text h4 {
  font-size: 1.2rem;
  color: #009688;
  margin-bottom: 20px;
  align-items: flex-end;
}

.masterplan-text p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.config-section {
  background-color: #2e756d;
  color: #fff;
  padding: 60px 20px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.config-section h2,
.config-section h4,
.config-section p {
  margin: 0 auto 15px auto;
  text-align: center;
}

.config-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.config-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 auto 30px auto;
  background: #fff;
  color: #000;
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed; /* Prevents table from overflowing */
}

.config-table th,
.config-table td {
  padding: 12px;
  text-align: center;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  word-wrap: break-word;
}

.config-table th {
  background-color: #f9f9f9;
  font-weight: bold;
}

.enquiry-btn {
  background: #fff;
  color: #2e756d;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.enquiry-btn:hover {
  background: #ddd;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .config-section {
    padding: 40px 15px;
  }

  .config-table th,
  .config-table td {
    padding: 3px;
    font-size: 0.85rem;
  }

  .enquiry-btn {
    width: 100%;
    max-width: 300px;
  }
}

.clubhouse-section {
  position: relative;
  width: 100%;
  min-height: 100vh; /* full screen height */
  display: flex;
  align-items: center;     /* vertically center content */
  justify-content: flex-end; /* push content to right side */

  background: url('images/yoga.jpg') no-repeat center center;
  background-size: cover;  /* âœ… fills width, no white gaps */
  padding: 0 5%;           /* spacing from left/right edges */
}

.clubhouse-content {
  max-width: 500px;  /* keeps content nicely contained */
  color: #AEFBFF;
  text-align: left;
}

.clubhouse-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.clubhouse-content h4 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.clubhouse-content p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Mobile view */
@media (max-width: 768px) {
  .clubhouse-section {
    justify-content: center;
    text-align: center;
    padding: 0;
    position: relative;
    background-size: cover;
    background-position: center top;
    overflow: hidden;
    /* responsive hero height */
    min-height: 70vh;
    height: auto;
  }

  .clubhouse-content {
    position: absolute;
    left: 58%;
    top: 20%;                        /* move content a bit higher */
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 640px;
    padding: 0 12px;
    background: transparent;
    text-align: center;
    z-index: 2;
    color: #AEFBFF;
  }

  .clubhouse-content .section-title {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
    margin-bottom: 0.4rem;
    line-height: 1.2;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6);
  }

  .clubhouse-content .section-subtitle,
  .clubhouse-content h4 {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    margin-bottom: 0.7rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  }

  .clubhouse-content .section-copy,
  .clubhouse-content p {
    font-size: clamp(0.85rem, 3.2vw, 0.95rem);
    line-height: 1.45;
    margin: 0 auto;
    max-width: 90%;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  /* very small phones (<360px) */
  @media (max-width: 360px) {
    .clubhouse-content {
      top: 42%; /* push a bit higher on tiny screens */
      width: 95%;
      padding: 0 8px;
    }
    .clubhouse-content .section-title { font-size: 1.25rem; }
    .clubhouse-content .section-subtitle { font-size: 0.85rem; }
    .clubhouse-content .section-copy { font-size: 0.85rem; line-height: 1.4; }
  }
}

.fitness-zone {
  position: relative;
  background: url("images/fitness.jpg") no-repeat center center/cover;
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 10%;
  font-family: 'Poppins', sans-serif;
}

.fitness-content {
  max-width: 600px;
  padding: 30px;
  border-radius: 12px;
}

.fitness-content h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #AEFBFF; /* aqua shade like prototype */
  margin-bottom: 15px;
}

.fitness-content h5 {
  font-size: 2rem;
  font-weight: bold;
  color: #AEFBFF;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .fitness-zone {
    padding: 40px 20px;
    min-height: 60vh;
  }

  .fitness-content {
    padding: 20px;
    text-align: center;
  }

  .fitness-content h2 {
    font-size: 2rem;
  }
  .fitness-content h5 {
    font-size: 1.1rem;
  }
}

/* Global reset for the page to avoid gutters */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden; /* prevents horizontal scroll from overflow */
}

/* make sure all elements use border-box */
*, *::before, *::after { box-sizing: inherit; }

/* Ensure the hero takes full-width of viewport (removes white gutters) */
.theme-hero {
  width: 100%;           /* full viewport width */
  position: relative;
  left: 0;
  right: 0;
  margin-left: 0;     /* neutralize any centered container gutters */
  margin-right: 0;
  background: #fff;
  overflow: hidden;
  display:block;
}

/* wrapper: center the content but allow full-bleed image */
.theme-hero__wrap {
  width: 100%;
  max-width: 100%; /* content constraint for desktop */
  margin: 0 auto;
  position: relative;
  padding: 0;         /* remove extra padding that created white space */
}

/* Image: always fit the viewport width, no horizontal overflow */
.theme-hero__img {
  width: 100vw;
  max-width: 100vw;
  height: auto;
  display: block;
  object-fit: cover;    /* cover keeps it visually pleasant while filling width */
  object-position: center top;
  -webkit-user-drag: none;
}

/* Desktop overlay remains same as before (absolute) */
.theme-hero__content {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  max-width: 1000px;
  text-align: center;
  z-index: 2;
  padding: 0.6rem 1rem;
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
  color: #083a35;
  border-radius: 6px;
}

/* Mobile: stacked card and clean edges */
@media (max-width: 768px) {
  .theme-hero {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: 0;
    right: 0;
  }

  /* Put content in normal flow and reduce width to avoid edge-clipping */
  .theme-hero__content {
    position: relative;
    transform: none;
    left: 0;
    top: 0;
    width: 100%;     /* small horizontal breathing room */
    margin: 2rem 0 1rem;    /* slight overlap with image (modern card look) */
    text-align: left;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255,255,255,0.96);
    padding: 1rem;
    z-index: 3;
  }

  /* Smaller titles and spacing for mobile */
  .theme-hero__title { font-size: 1.15rem; margin-bottom: .45rem; }
  .theme-hero__desc { font-size: 0.92rem; line-height: 1.45; color: #18443e; }
  .theme-hero__sub { font-size: 1rem; margin-top: .7rem; }

  /* Keep wrapper padding minimal on mobile so edges are clean */
  .theme-hero__wrap { padding: 0; }

  /* WhatsApp / floating badge: don't overlap the card */
  .whatsapp-fab, .floating-whatsapp { /* replace with your actual class */
    right: 12px !important;
    bottom: 84px !important; /* lift above card CTA area */
  }
}

/* Very small phones — slightly tighter */
@media (max-width: 420px) {
  .theme-hero__content {
    margin: -1rem 0 0.8rem;
    width: 100%;
    padding: 0.9rem;
    border-radius: 0;
  }
  .theme-hero__title { font-size: 1.02rem; }
  .theme-hero__desc { font-size: 0.85rem; }
}

/* If you have a global container class like .container or .site-wrapper that adds side padding,
   force the hero to ignore it so there are no side gutters on this section. */
.container .theme-hero,
.site-wrapper .theme-hero,
.theme-hero.container,
.theme-hero.site-wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

.mediterranean-section {
  width: 100%;
  height: auto; /* full screen height */
  background: url("images/bg.jpg") no-repeat center top;
  background-size: contain;   /* fill full width/height */
  background-color: #fff;   /* fallback */
  background-attachment: scroll;
  min-height: 100vh;
  aspect-ratio: auto;
}

/* On smaller screens keep the entire image visible */
@media (max-width: 768px) {
  .mediterranean-section {
    height: auto;              /* let it adjust naturally */
    aspect-ratio: 9 / 16;      /* maintain tall ratio (optional) */
    background-size: contain;  /* show full image without cropping */
    background-position: top center;
  }
}

.full-img {
  width: 100%;
  height: auto;   /* keeps full proportion */
  display: block;
}

.landscaping-section {
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
}

.landscaping-text {
  background: #2f7c72;   /* green background */
  color: #fff;
  padding: 60px 20px;
}

.landscaping-text h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
}

.landscaping-text .sub-heading {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 15px;
}

.landscaping-text .description {
  font-size: 16px;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto 30px;
}

.enquiry-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: #2f7c72;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.enquiry-btn:hover {
  background: #e5e5e5;
}

.landscaping-bg {
  background-size: cover;
  width: 100%;
  height: 400px;   /* adjust based on your design */
}

/* Mobile responsive */
@media (max-width: 768px) {
  .landscaping-text {
    padding: 40px 15px;
  }
  
  .landscaping-text h2 {
    font-size: 26px;
    margin-top: 50px;
  }

  .landscaping-bg {
    height: 250px;
  }
}

.location-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.location-bg {
  background: url('images/artist.jpg') no-repeat center center;
  background-size: cover;   /* makes it fit without white gaps */
  width: 100%;
  height: 500px;            /* adjust height as per design */
  position: relative;
}

.location-connectivity {
  background: #2f7c72;  /* green background */
  text-align: center;
  padding: 70px 20px;
  color: #fff;
}

.location-connectivity h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.location-connectivity .sub-heading {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
}

.location-connectivity .description {
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 50px;
}

.location-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.location-card {
  padding: 10px;
  width: 300px;
  position: relative;
}

.location-card img {
  width: 100%;
  height: auto;
  display: block;
}

.location-card h4 {
  font-size: 16px;
  color: #333;
  margin-top: 12px;
  line-height: 1.5;
}

/* Tilt effect */
.tilt-left {
  transform: rotate(-4deg);
}
.tilt-right {
  transform: rotate(4deg);
}

/* Responsive */
@media (max-width: 768px) {
  .location-items {
    flex-direction: column;
    align-items: center;
  }

  .location-card {
    transform: rotate(0deg) !important;
    width: 90%;
    margin-bottom: 35px;
  }

  .location-card h4 {
    font-size: 15px;
  }
}

.investment-section {
  background: #eaf3f1;   /* light background */
  padding: 80px 20px;
}

.investment-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.investment-image {
  width: 40%;
  max-width: 400px;
}

.investment-image img {
  width: 100%;
}

.tilt-left {
  transform: rotate(-4deg);
}

.investment-content {
  width: 55%;
  color: #2f7c72;
}

.investment-content h2 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 15px;
}

.investment-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #227c65;
}

.investment-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .investment-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .investment-image, .investment-content {
    width: 100%;
  }

  .investment-image {
    margin-bottom: 30px;
    transform: rotate(0deg); /* straighten for mobile */
  }

  .investment-content h2 {
    font-size: 24px;
  }

  .investment-content h3 {
    font-size: 18px;
  }
}

.trust-legacy {
  background: #fff;
  text-align: center;
  padding: 80px 20px;
}

.trust-legacy h2 {
  font-size: 32px;
  font-weight: bold;
  color: #227c65;
  margin-bottom: 15px;
}

.trust-legacy .sub-heading {
  font-size: 20px;
  font-weight: 500;
  color: #227c65;
  margin-bottom: 20px;
}

.trust-legacy .description {
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #444;
}

.trust-legacy .enquiry-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #2f7c72;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.trust-legacy .enquiry-btn:hover {
  background: #25635a;
}

/* Responsive */
@media (max-width: 768px) {
  .trust-legacy {
    padding: 50px 15px;
  }

  .trust-legacy h2 {
    font-size: 26px;
  }

  .trust-legacy .sub-heading {
    font-size: 18px;
  }

  .trust-legacy .description {
    font-size: 15px;
  }
}

.partner {
  font-size: 12px;
  margin-bottom: 10px;
}

.partner img.houzbay-logo {
  max-height: 25px;
  margin-left: 10px;
  vertical-align: middle;
}

.footer-section {
  background-color: #f9f9f9;
  font-size: 0.92rem;
  color: #333;
}

.footer-logo {
  width: 70px;
}

.footer-links li {
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-links li:hover {
  color: #b3622e;
}

.footer-social img {
  width: 24px;
  margin-left: 10px;
  /* filter: grayscale(100%); */
  transition: filter 0.3s;
}

.footer-social img:hover {
  filter: none;
}

.footer-partner {
  height: 40px;
}

.btn-burnt {
  background-color: #b3622e;
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 0.9rem;
}

.btn-burnt:hover {
  background-color: #924d20;
}

.footer-form {
  gap: 10px;
  flex-wrap: nowrap;
}

.footer-input {
  padding: 6px 12px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  /* border-radius: 4px; */
  width: 150px;
  max-width: 100%;
}

.footer-btn {
  background-color: #b3622e;
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 0.9rem;
  /* border-radius: 4px; */
  white-space: nowrap;
  transition: background 0.2s;
}

.footer-btn:hover {
  background-color: #924d20;
}

.modal-content {
  background-image: url('images/form-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 65vh; /* for desktops */
}

.modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.modal-content * {
  position: relative;
  z-index: 1;
}

.modal-header,
.modal-body,
.modal-footer {
  background: transparent;
}

.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: calc(100dvh - 200px);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-content {
    height: auto;
    max-height: 90dvh;
  }

  .modal-body {
    max-height: calc(90dvh - 140px);
  }
}

@media (max-height: 600px) {
  .modal-content {
    max-height: 84dvh;
  }

  .modal-body {
    max-height: calc(84dvh - 140px);
  }
}

@media (max-width: 767.98px) {
  .modal-dialog {
    margin: 1rem auto;
  }

  .modal-content {
    height: auto !important;
    max-height: 92vh !important;
    display: flex;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }

  .modal-header,
  .modal-footer {
    flex-shrink: 0 !important;
    padding: 1rem 1.25rem;
  }

  .modal-body {
    overflow-y: auto !important;
    padding: 0 1.25rem;
    max-height: calc(92vh - 140px) !important;
  }

  .modal-footer button {
    margin-top: 0.75rem;
    width: 100%;
  }
}

.parks-section {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  color: #1b4d3e;
}

.section-subtitle {
  font-size: 18px;
  color: #227c65;
  margin: 10px 0;
}

.section-description {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto 60px;
  color: #444;
  line-height: 1.6;
}

/* Wrapper */
.parks-wrapper {
  position: relative;
}

/* SVG Dotted Path */
.dotted-path {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

/* Park Item */
.park-item {
  width: 280px;
  margin: 80px 0;
  position: relative;
  z-index: 1;
}

.park-item img {
  width: 100%;
  border: 6px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transform: rotate(-4deg);
}

.park-item.right img {
  transform: rotate(4deg);
}

.park-item h4 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #00695c;
}

.park-item p {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  margin-top: 5px;
}

/* Alternate positioning */
.park-item.left {
  text-align: left;
  margin-left: 10%;
}
.park-item.right {
  text-align: right;
  margin-left: auto;
  margin-right: 10%;
}

/* Responsive */
@media (max-width: 768px) {
  .park-item {
    margin: 40px auto;
    text-align: center !important;
    width: 90%;
  }

  .park-item img {
    transform: rotate(0deg);
  }

  .dotted-path {
    display: none;
  }
}

html .njs-sticky-side.image_button_cover.placement-right {
    right: 0;
}

html .njs-sticky-side.image_button_cover {
    position: fixed;
    top: 40%;
    box-shadow: none;
    z-index: 99999;
    transition: transform .3s cubic-bezier(0,0,0,1);
    -webkit-transition: -webkit-transform .3s cubic-bezier(0,0,0,1);
}

html .njs-sticky-side.image_button_cover.placement-right.now-show a {
    transform: translate3d(4px,0,0) rotate(-90deg);
    -webkit-transform: translate3d(4px,0,0) rotate(-90deg);
}

html .njs-sticky-side.image_button_cover.placement-right a {
    border-radius: 3px 3px 0 0;
    transform: translate3d(200%,0,0) rotate(-90deg);
    -webkit-transform: translate3d(200%,0,0) rotate(-90deg);
    transform-origin: 100% 100%;
    -webkit-transform-origin: 100% 100%;
}

html .njs-sticky-side.image_button_cover a {
    padding: 6px 15px 12px;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    position: relative;
    transition: transform .3s;
    -webkit-transition: -webkit-transform .3s;
	background-color: #25635a; 
	color: white;	
  font-weight: 100; 
  top: -50px; 
  font-family: 'Arial';
  text-decoration: none;
}

html .njs-sticky-side.image_button_cover a:hover {
	background-color: white;
	color: black;
	border: 2px solid #acacac;
}

/* Existing styles remain the same... */

@media only screen and (max-width: 767px) {
    html .njs-sticky-side.image_button_cover {
        display: none !important;
    }
}

.btn-cta {
  background: #25635a; /* use your defined variable */
  border: none;
  padding: 0.6rem 2.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
}

.button-container {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	display: flex;
	z-index: 1000;
}

.cta-button {
	flex: 1;
	padding: 10px 0;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	color: white;
	transition: background-color 0.3s ease;
}

.enquire {
	background-color: #25635a;
}

.call {
	background-color: #058e7a;
}

.mobile-section {
	display: none;
}

@media screen and (max-width: 767px) {
	.mobile-section {
		display: flex;
	}
}

.float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:70px;
	right:12px;
	background-color:#25d366;
	color:#FFF;
	border-radius:50px;
	text-align:center;
  font-size:30px;
	box-shadow: 2px 2px 3px #999;
  z-index:100;
}

.my-float{
	margin-top:16px;
}

/* keep overall section background consistent */
.mediterranean-theme-section {
  overflow: visible;
}

/* wrapper constrains the visual width (so it visually matches the laptop canvas) */
.theme-wrapper {
  width: 100vw;          /* span full viewport width */
  max-width: 100%;
  margin-left: calc(-50vw + 50%); /* center a full-bleed element inside a centered layout */
  padding: 0;            /* remove side padding so image touches edges */
  box-sizing: border-box;
}

/* image wrap now allows image to fully expand horizontally */
.theme-image-wrap {
  position: relative;
  width: 100%;
  display: block;
  overflow: visible;
}


/* image no longer limited by max-width; fills full width of wrapper */
.theme-image-full {
  display: block;
  width: 100%;
  max-width: none;         /* allow full-bleed */
  height: auto;
  object-fit: cover;       /* can use contain if you want full image visible with letterboxing */
  max-height: 720px;       /* keep a reasonable max height - tweak as needed */
}

/* center overlay text above the image; limit overlay width for readability */
.theme-overlay {
  position: absolute;
  top: 12%;                /* nudge vertical position as needed */
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 90%); /* overlay remains readable on large screens */
  max-width: 1100px;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

/* Title, tag and lead styling (on-image) */
.theme-title {
  margin: 0 0 12px;
  font-size: 44px;        /* adjust to match pixels in wireframe */
  line-height: 1.02;
  font-weight: 800;
  color: #e8fbf8;
  text-shadow: 0 8px 20px rgba(0,0,0,0.32);
}

.theme-tag {
  display:inline-block;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  pointer-events: none;
  text-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.theme-lead {
  margin: 0 auto;
  color: rgba(230,251,248,0.95);
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
  text-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Caption below image should align to page content width (not full-bleed) */
.theme-caption {
  background: #f2f7f6;
  border-top: 3px solid rgba(47,124,114,0.06);
  padding: 34px 20px 56px;
  text-align: center;
  box-sizing: border-box;
  /* restrict caption width so copy remains centered under the image */
  max-width: 1120px;
  margin: 0 auto; /* center the caption block even though image is full-bleed */
}

.caption-text {
  margin: 0 auto;
  max-width: 920px;
  color: #33413f;
  font-size: 15px;
  line-height: 1.6;
}

/* responsive adjustments */
@media (max-width: 1100px) {
  .theme-overlay { top: 14%; width: 90%; }
  .theme-image-full { max-height: 560px; }
}

@media (max-width: 768px) {
  .theme-wrapper { margin-left: 0; width: 100%; } /* on small screens keep normal flow */
  .theme-image-full { object-fit: contain; max-height: 360px; }
  .theme-overlay { top: 18%; width: 92%; }
  .theme-caption { padding: 22px 16px 36px; }
}

/* ---------- Gallery grid ---------- */
.gallery-section { padding: 48px 16px; text-align: center; background: #fff; }
.g-title { font-size: 1.5rem; margin: 0 0 6px; color: #157568; font-weight:800; }
.g-sub { margin: 0 0 22px; color:#444; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Single column under 700px, 2 cols under 992 */
@media (max-width: 991.98px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  padding-bottom: 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display:block;
}
.gallery-item figcaption {
  margin-top:10px;
  font-size: .9rem;
  color:#116653;
  font-weight:700;
  padding: 0 8px 12px;
  text-align:center;
}
.gallery-item:focus,
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0,0,0,0.14); outline: none; }

/* ---------- Lightbox styles ---------- */
.glightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  font-family: inherit;
}
.glightbox[aria-hidden="false"] { display:flex !important; align-items: center; justify-content: center; }

.glightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  transition: opacity .28s ease;
}

.glightbox__panel {
  width: min(1400px, 98%) !important;
  max-height: calc(100vh - 40px) !important;
  z-index: 99999 !important; /* ensure it's above everything */
}

/* close button */
.glightbox__close {
  position: absolute;
  top: -6px;
  right: -6px;
  background: rgba(255,255,255,0.95);
  color: #111;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 3110;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* viewer row */
.glightbox__view {
  display:flex;
  align-items:center;
  gap: 14px;
  width: 100%;
}

/* nav arrows */
.glightbox__nav {
  background: rgba(255,255,255,0.95);
  border: none;
  padding: 10px 14px;
  font-size: 1.25rem;
  border-radius: 8px;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.glightbox__nav:active { transform: scale(.98); }

/* image frame */
.glightbox__frame {
  padding: 28px !important;
  min-height: 360px !important;
  max-height: calc(100vh - 160px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
}

.glightbox__img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  border-radius: 8px !important;
}

/* caption & counter */
.glightbox__meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:10px;
  gap: 12px;
}
.glightbox__caption { color:#fff; font-weight:600; }
.glightbox__counter { color:rgba(255,255,255,0.8); font-size:.95rem; }

/* thumbnails */
.glightbox__thumbs {
  margin-top: 12px;
  display:flex;
  gap: 10px;
  overflow-x:auto;
  padding: 8px 12px;
  border-radius: 8px;
  scroll-behavior: smooth;
}
.glightbox__thumbs img {
  height: 56px;
  width: 90px;
  object-fit: cover;
  border-radius:6px;
  cursor:pointer;
  opacity: .85;
  border: 2px solid transparent;
}
.glightbox__thumbs img.active { opacity: 1; border-color: #157568; }

/* responsive tweaks */
@media (max-width: 700px) {
  .glightbox__panel { width: 96%; max-height: 92vh; }
  .glightbox__frame { padding: 12px; border-radius: 8px; max-height: calc(100vh - 220px); }
  .gallery-item img { height: 180px; }
  .glightbox__thumbs img { height: 48px; width: 72px; }
  .glightbox__nav { padding: 8px 10px; font-size: 1rem; }
}

/*ensure navs & close are clickable and above image */
.glightbox__nav,
.glightbox__close {
  z-index: 100000 !important;
}






