/* ==========================================================================
   Mana Projects - additions on top of the template (style.css)
   Theme: dark grey + white (--fontPrimary #2E3033 from style.css, charcoal #1E1F21, mid grey #6B6E72,
   light grey #F4F4F5, borders #DCDDDF).
   ========================================================================== */

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Header call button ---------- */
.headerLink.mp-header-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fontPrimary);
  font-weight: 600;
}

@media (min-width: 1025px) {
  .headerLink.mp-header-call {
    border: 1px solid var(--fontPrimary);
    border-radius: 999px;
    padding: 7px 16px;
  }
  .headerLink.mp-header-call:hover {
    background: var(--fontPrimary);
    color: #fff;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .headerNav { gap: 18px; }
  .headerLink { font-size: 15px; }
}

/* ---------- Banner: full-width slider ---------- */
.bannerSectionMain.mp-banner {
  display: block;
  padding-bottom: 0;
}

.mp-banner-track {
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 5; /* desktop images 1920 x 800 */
  max-height: calc(100vh - 80px);
  min-height: 320px;
  overflow: hidden;
  background: var(--bgColorSecondary);
}

.mp-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.mp-banner-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.mp-banner-slide picture,
.mp-banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.mp-banner-slide img {
  object-fit: cover;
  object-position: center;
}

.mp-banner {
  position: relative;
}

.mp-banner-nav {
  position: absolute;
  top: calc(50% + 40px);
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease;
}

.mp-banner-nav:hover { background: rgba(30, 31, 33, 0.85); border-color: rgba(255, 255, 255, 0.85); }
.mp-banner-prev { left: 24px; }
.mp-banner-next { right: 72px; } /* clear of the side "Brochure" tab */

.mp-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mp-banner-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.mp-banner-dot.is-active {
  width: 28px;
  background: #fff;
}

@media (max-width: 768px) {
  .mp-banner-nav { display: none; }
  .mp-banner-dots { bottom: 12px; }
}

@media (max-width: 600px) {
  .mp-banner-track {
    aspect-ratio: 4 / 5; /* mobile images 800 x 1000 */
    max-height: calc(100svh - 150px);
    min-height: 0;
  }
}

/* ---------- Projects By Mana ---------- */
.mp-projects {
  background: var(--bgColorPrimary);
  padding: 20px 6% 50px;
}

.mp-projects-container {
  max-width: 1320px;
  margin: 0 auto;
}

.mp-projects .overviewTitle { margin-bottom: 10px; }

.mp-projects-intro {
  text-align: center;
  color: #6B6E72;
  font-size: 15px;
  margin: 0 auto 30px;
  max-width: 640px;
  line-height: 1.6;
}

.mp-project-tabs,
.mp-projects-progress { display: none; }

.mp-projects-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.mp-project {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #DCDDDF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(30, 31, 33, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mp-project:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(30, 31, 33, 0.16);
}

.mp-project-label {
  background: linear-gradient(135deg, #1E1F21 0%, #3A3D41 100%);
  color: #fff;
  text-align: center;
  padding: 14px 16px 12px;
}

.mp-project-label h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.mp-project-label span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.mp-project-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bgColorSecondary);
}

.mp-project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mp-project:hover .mp-project-media img { transform: scale(1.05); }

.mp-project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.mp-project-overview {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4A4C50;
}

.mp-project-location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fontSecondary);
}

.mp-project-location i {
  color: #6B6E72;
  font-size: 17px;
  line-height: 1.2;
}

.mp-price-card {
  margin-top: auto;
  background: var(--bgColorSecondary);
  border: 1px solid #DCDDDF;
  border-radius: 10px;
  padding: 6px 16px 16px;
  position: relative;
  overflow: hidden;
}

.mp-price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fontPrimary);
}

.mp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #E4E5E7;
  font-size: 14px;
}

.mp-price-row span { color: #6B6E72; font-weight: 500; white-space: nowrap; }
.mp-price-row strong { color: var(--fontSecondary); font-weight: 600; text-align: right; }
.mp-price-row strong.mp-price-highlight { color: #1E1F21; font-size: 16px; font-weight: 700; }

.mp-price-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 18px;
  border: 1px solid #1E1F21;
  border-radius: 8px;
  background: #2E3033;
  color: var(--buttonTextColor);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mp-price-btn:hover {
  transform: translateY(-2px);
  background: #1E1F21;
  box-shadow: 0 8px 22px rgba(30, 31, 33, 0.28);
}

/* Tablet + mobile: tabs + one swipeable card at a time (next card peeks in) */
@media (max-width: 1024px) {
  .mp-projects { padding: 15px 0 36px; }
  .mp-projects .overviewTitle { padding: 0 16px; }
  .mp-projects-intro { padding: 0 20px; margin-bottom: 18px; font-size: 14px; }

  /* Chip bar: scrolls sideways when the chips don't fit; centred when they do */
  .mp-project-tabs {
    display: flex;
    gap: 8px;
    padding: 2px 16px 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
  }
  .mp-project-tabs::-webkit-scrollbar { display: none; }
  .mp-project-tab:first-child { margin-left: auto; }
  .mp-project-tab:last-child { margin-right: auto; }

  .mp-project-tab {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #C9CBCE;
    background: #fff;
    color: #2E3033;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
  }
  .mp-project-tab.is-active {
    background: #2E3033;
    border-color: #2E3033;
    color: #fff;
    box-shadow: 0 6px 16px rgba(30, 31, 33, 0.25);
  }

  .mp-projects-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 16px 18px;
    scroll-padding: 0 16px;
  }
  .mp-projects-track::-webkit-scrollbar { display: none; }

  .mp-project {
    flex: 0 0 min(86%, 440px);
    scroll-snap-align: start;
  }
  .mp-project:hover { transform: none; }

  .mp-projects-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .mp-projects-counter {
    font-size: 13px;
    letter-spacing: 1px;
    color: #6B6E72;
    font-variant-numeric: tabular-nums;
    min-width: 54px;
    text-align: right;
  }
  .mp-projects-counter strong { color: #1E1F21; font-weight: 700; }
  .mp-projects-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
  }
  .mp-projects-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #C9CBCE;
    transition: width 0.3s ease, background 0.3s ease;
  }
  .mp-projects-dots span.is-active {
    width: 24px;
    background: #2E3033;
  }
}

@media (max-width: 480px) {
  .mp-project-tabs { gap: 7px; padding: 2px 14px 14px; }
  .mp-project-tab { font-size: 12.5px; padding: 8px 13px; }
  .mp-project { flex-basis: 88%; }
  .mp-project-label { padding: 12px 14px 10px; }
  .mp-project-label h3 { font-size: 17px; }
  .mp-project-body { padding: 14px 15px 16px; }
  .mp-project-overview { font-size: 14px; line-height: 1.6; }
  .mp-price-card { padding: 4px 13px 13px; }
  .mp-price-row { padding: 9px 0; font-size: 13.5px; }
  .mp-price-row strong.mp-price-highlight { font-size: 15px; }
  .mp-price-btn { padding: 13px 16px; }
}

/* ---------- Gallery polish ---------- */
.galleryCarousel { border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); }
.galleryImageContainer { border-radius: 12px; overflow: hidden; }

@media (max-width: 768px) {
  .gallerySection .galleryContainer { padding: 0 6px; }
  .galleryCarousel { border-radius: 12px; margin-bottom: 28px; }
  .galleryImageContainer { height: auto; aspect-ratio: 4 / 3; }
}

/* ---------- Location polish ---------- */
.map-image-container {
  border-radius: 14px;
  border: 1px solid #DCDDDF;
  box-shadow: 0 12px 32px rgba(30, 31, 33, 0.1);
}

.map-dropdown {
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .mapSection { padding-left: 14px; padding-right: 14px; }
  .map-image-container { height: 240px; }
  .connectivity-item { font-size: 14px; }
}

/* ---------- WhatsApp (desktop float) + mobile action bar ---------- */
.mp-wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease;
}

.mp-wa-float:hover { transform: scale(1.08); }
.mp-wa-float svg { width: 30px; height: 30px; }

.mp-mobile-bar { display: none; }

@media (max-width: 768px) {
  .mp-wa-float,
  .sidedownloadBtn { display: none; }

  .mp-mobile-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mp-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 56px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }

  .mp-bar-btn i { font-size: 19px; }
  .mp-bar-btn svg { width: 19px; height: 19px; }
  .mp-bar-call { background: #fff; color: var(--fontSecondary); }
  .mp-bar-wa { background: #25d366; color: #fff; }
  .mp-bar-enquire { background: #1E1F21; color: #fff; }

  .footerContainer { padding-bottom: 90px; }
}

/* ---------- Enquiry pop-up: long titles (e.g. "Get Price Details - Forest Province - Phase-2") wrap ---------- */
.quotePopup .quoteTitle {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
  font-size: 24px;
  padding: 0 4px;
}

@media (max-width: 480px) {
  .quotePopup .quoteTitle { font-size: 20px; }
}

/* ---------- Highlights (general, builder-level) ---------- */
.mp-highlights {
  background: var(--bgColorSecondary);
  padding: 30px 6% 56px;
}

.mp-highlights-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.mp-highlights .highlightsTitle { margin-bottom: 10px; }

.mp-highlights-intro {
  color: #6B6E72;
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 32px;
}

.mp-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  text-align: left;
  margin-top: 30px;
}

.mp-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #DCDDDF;
  border-radius: 14px;
  padding: 16px 20px 16px 16px;
  box-shadow: 0 8px 24px rgba(30, 31, 33, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mp-highlight:hover {
  transform: translateY(-4px);
  border-color: #B9BBBF;
  box-shadow: 0 16px 36px rgba(30, 31, 33, 0.12);
}

.mp-highlight-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E1F21 0%, #3A3D41 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(30, 31, 33, 0.2);
}

.mp-highlight h3 {
  margin: 2px 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  color: #1E1F21;
  line-height: 1.3;
}

.mp-highlight p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  color: #2E3033;
}

.mp-highlights .overviewBrochureButton { margin-top: 34px; }

@media (max-width: 768px) {
  .mp-highlights-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .mp-highlights { padding: 18px 14px 40px; }
  .mp-highlights-intro { font-size: 14px; margin-bottom: 20px; }
  .mp-highlights-grid { gap: 10px; margin-top: 20px; }
  .mp-highlight {
    gap: 12px;
    padding: 12px 14px 12px 12px;
    border-radius: 12px;
  }
  .mp-highlight-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    font-size: 19px;
  }
  .mp-highlight p { font-size: 14px; line-height: 1.5; }
  .mp-highlights .overviewBrochureButton { margin-top: 24px; }
}

/* ---------- Mobile number field with a fixed +91 country code ---------- */
.mp-phone-field {
  position: relative;
  margin: 0 0 12px;
}

.quotePopup .mp-phone-field .quoteInput {
  margin: 0;
  padding-left: 72px;
}

.mp-phone-prefix {
  position: absolute;
  left: 1px;
  top: 1px;
  bottom: 1px;
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #2E3033;
  background: #F4F4F5;
  border-right: 1px solid #DCDDDF;
  border-radius: 4px 0 0 4px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .quotePopup .mp-phone-field .quoteInput { padding-left: 66px; }
  .mp-phone-prefix { width: 52px; font-size: 14px; }
}

/* ---------- Content doc additions ---------- */
/* Overview (MANA Skanda - The Right Life) */
.mp-overview {
  background: var(--bgColorPrimary);
  padding: 34px 6% 10px;
}

.mp-overview-container {
  max-width: 1100px;
  margin: 0 auto;
}

.mp-overview .overviewTitle { margin-bottom: 14px; }
.mp-overview .aboutSectionDescription { padding: 0; }

@media (max-width: 768px) {
  .mp-overview { padding: 24px 16px 4px; }
}

/* One-line subtitle under a section title */
.mp-section-sub {
  text-align: center;
  color: #6B6E72;
  font-size: 15px;
  line-height: 1.6;
  margin: -6px auto 24px;
  padding: 0 16px;
  max-width: 640px;
}

@media (max-width: 600px) {
  .mp-section-sub { font-size: 14px; margin-bottom: 18px; }
}

/* Project cards: long overview is shortened on tablet / mobile with Read More */
.mp-overview-toggle { display: none; }

@media (max-width: 1024px) {
  .mp-project-overview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    margin-bottom: 4px;
  }

  .mp-project.is-expanded .mp-project-overview {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .mp-overview-toggle {
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 2px 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #1E1F21;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
}

/* Connectivity: one list of distances from Mana Skanda */
.mp-connectivity-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
  background: var(--buttonBodyColor);
  color: var(--buttonTextColor);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.mp-connectivity-head i { font-size: 18px; }
.mp-connectivity-head .mp-connectivity-ext { margin-left: auto; font-size: 16px; opacity: 0.8; }
.mp-connectivity-head:hover span { text-decoration: underline; text-underline-offset: 3px; }
.mp-connectivity .connectivity-item { padding: 11px 22px; }

.mp-directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  padding: 11px 26px;
  border: 1px solid #1E1F21;
  border-radius: 8px;
  background: #2E3033;
  color: var(--buttonTextColor);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mp-directions-btn:hover {
  transform: translateY(-2px);
  background: #1E1F21;
  box-shadow: 0 8px 22px rgba(30, 31, 33, 0.28);
}

@media (max-width: 768px) {
  .mp-connectivity-head { padding: 13px 16px; font-size: 15px; }
  .mp-connectivity .connectivity-item { padding: 10px 16px; }
  .mp-directions-btn { align-self: center; }
}

/* Desktop: map grows to the height of the distance list */
@media (min-width: 1025px) {
  .mapSection .map-content { align-items: stretch; }
  .mapSection .map-left { display: flex; }
  .mapSection .map-image-container { height: auto; min-height: 450px; }
}
