/* Project sections share the page gutters and retain the existing imagery. */
#spec-sec, #lay-sec, #gal-sec { padding: 80px 0; margin: 0; }
#spec-sec .game-section, #lay-sec .tab-container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
#spec-sec h2, #lay-sec h2, #gal-sec h2 { margin: 0 0 36px; text-align: center; }
#spec-sec .custom-carousel { margin-top: 0; }
#spec-sec .owl-stage { margin: 0; gap: 0; }
#spec-sec .game-section .item {
  width: 100%; height: 420px; margin: 0; border-radius: 12px;
  cursor: default; box-shadow: none;
}
#spec-sec .game-section .item::after {
  background: linear-gradient(180deg, transparent 15%, rgba(10, 18, 32, .65) 48%, #0a1220 100%);
}
#spec-sec .game-section .item-desc {
  width: 100%; min-height: 210px; padding: 24px; transform: none;
}
#spec-sec .item-desc h3 { min-height: 2.6em; margin: 0 0 10px; font-size: 23px; line-height: 1.3; }
#spec-sec .game-section .item-desc p {
  margin: 0; opacity: 1; transform: none; font-size: 15px; line-height: 1.65;
}
#spec-sec .game-section .owl-theme.custom-carousel .owl-dots { margin-top: 24px; }
#spec-sec .owl-dot span { background: #d9dce1; }
#spec-sec .owl-dot.active span { background: #c5814e; }
#spec-sec button:focus-visible { outline: 2px solid #c5814e !important; outline-offset: 4px; }

/* Keep the complete plan visible, with the full-size drawing available on click. */
#lay-sec .tab__list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 28px; }
#lay-sec .tab__item {
  flex: none; margin: 0; padding: 12px 4px; border: 0; border-radius: 0;
  background: none; font: inherit; font-size: 16px; line-height: 1.4; letter-spacing: 0;
  color: rgba(255, 255, 255, .75); -webkit-text-fill-color: currentColor;
}
#lay-sec .tab__item.is--active { color: #fff; }
#lay-sec .tab__content { padding: 24px; border-radius: 12px; }
#lay-sec .tab__content-item { height: auto; }
#lay-sec .tab__content-item[hidden] { display: none; }
#lay-sec .tab__content-item > a:first-child { display: block; width: 100%; cursor: zoom-in; }
#lay-sec .tab__content-item img {
  display: block; width: 100%; height: 580px; margin: auto; object-fit: contain; border-radius: 0;
}
#lay-sec .layout-hint { margin: 16px 0 0; color: #dce0e8; font-size: 14px; line-height: 1.5; text-align: center; }
#lay-sec .layout-alternate { display: block; width: fit-content; margin: 16px auto 0; color: #112348; font-size: 14px; text-decoration: underline; }
#lay-sec :is(a, button):focus-visible, #gal-sec :is(a, button):focus-visible {
  outline: 2px solid #c5814e; outline-offset: 4px;
}

/* Three square gallery cards on desktop, two on tablet, one on small screens. */
#gal-sec { background: #f5f5f5; }
#gal-sec .project-section-container { width: calc(100% - 64px); max-width: 1340px; margin: auto; }
#gal-sec .project-gallery-heading { position: relative; }
#gal-sec .gallery-autoplay {
  display: block; margin: -20px auto 28px; padding: 6px 12px;
  border: 0; background: transparent; color: #5c6067; font: inherit; font-size: 13px;
  text-decoration: underline; text-underline-offset: 4px;
}
#gal-sec .swiper-full { position: relative; width: 100%; height: auto; padding: 0; margin: 0; overflow: hidden; }
#gal-sec .swiper-slide { height: auto; }
#gal-sec .swiper-slide a { display: block; width: 100%; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
#gal-sec .swiper-full .swiper-slide img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
}
#gal-sec .swiper-full :is(.swiper-button-next, .swiper-button-prev) {
  display: flex; top: 50%; width: 40px; height: 40px; margin-top: -20px;
  border: 1px solid rgba(17, 35, 72, .1); color: #112348; background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px); border-radius: 50%;
}
#gal-sec .swiper-button-prev { left: 12px; }
#gal-sec .swiper-button-next { right: 12px; }
#gal-sec .swiper-full :is(.swiper-button-next, .swiper-button-prev)::after { font-size: 15px; }

/* The same map heading and full-width embed treatment used on Contact. */
.project-location { background: #fff; }
.project-location .contact-map-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 24px; border-top: 1px solid #d7d7d7; border-bottom: 1px solid #d7d7d7;
}
.project-location .contact-map-heading p {
  display: flex; align-items: center; gap: 12px; margin: 0;
  color: #17191d; font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase;
}
.project-location .contact-location-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #20ba8f; }
.project-location .contact-map-heading a { flex: none; color: #393a3c; font-size: 14px; }
.project-location iframe { display: block; width: 100%; height: 500px; border: 0; }
.project-rera { padding: 80px 0px; background: #f7f7f7; text-align: center; color: #111; font-family: "Montserrat", sans-serif; }
.project-rera h2 { margin: 0 0 20px; color: #000; font: 600 30px/1.25 "Montserrat", sans-serif; letter-spacing: 0; }
.project-rera p { margin: 0; color: #111; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.project-rera a { color: inherit; text-decoration: none; }
.project-rera a:hover { text-decoration: underline; }
.project-location *, .project-rera * { -webkit-text-fill-color: currentColor; }

@media (max-width: 991px) {
  #spec-sec, #lay-sec, #gal-sec { padding: 60px 0; }
  #spec-sec .game-section .item { height: 400px; }
  #lay-sec .tab__content-item img { height: 500px; }
  #gal-sec .project-section-container { width: calc(100% - 48px); }
}
@media (max-width: 575px) {
  #spec-sec, #lay-sec, #gal-sec { padding: 48px 0; }
  #spec-sec .game-section, #lay-sec .tab-container { padding: 0 16px; }
  #spec-sec h2, #lay-sec h2, #gal-sec h2 { font-size: 36px; line-height: 1.2; margin-bottom: 28px; }
  #spec-sec .item-desc h3 { font-size: 22px; }
  #spec-sec .game-section .item-desc { padding: 22px; }
  #lay-sec .tab__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  #lay-sec .tab__item { font-size: 14px; padding: 10px 2px; }
  #lay-sec .tab__content { padding: 12px; }
  #lay-sec .tab__content-item img { height: auto; max-height: 500px; aspect-ratio: 3 / 4; }
  #gal-sec .project-section-container { width: calc(100% - 32px); }
  #gal-sec .gallery-autoplay { margin-top: -12px; }
  #gal-sec .swiper-full { padding-bottom: 56px; }
  #gal-sec .swiper-full :is(.swiper-button-next, .swiper-button-prev) { top: auto; bottom: 0; margin-top: 0; }
  #gal-sec .swiper-full .swiper-button-prev { left: calc(50% - 48px); }
  #gal-sec .swiper-full .swiper-button-next { right: calc(50% - 48px); }
  .project-location .contact-map-heading { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; }
  .project-location .contact-map-heading p { font-size: 12px; }
  .project-location iframe { height: 380px; }
  .project-rera { padding: 28px 16px; }
  .project-rera h2 { font-size: 26px; }
  .project-rera p { font-size: 13px; }
}

/* Longer residential specifications remain fully visible and align at the top. */
.project-detail-page #spec-sec .owl-item { display: flex; }
.project-detail-page #spec-sec .game-section .item { height: auto; min-height: 480px; align-items: stretch; }
.project-detail-page #spec-sec .game-section .item-desc { padding-top: 180px; }
.project-detail-page .project-rera { padding-left: 24px; padding-right: 24px; }
@media (max-width: 575px) {
  .project-detail-page #spec-sec .game-section .item-desc { padding-top: 150px; }
  .project-detail-page .project-rera { padding-left: 16px; padding-right: 16px; }
}
