/*
 * UI refresh - Godrej MSR City (BARCA)
 * Loaded after intern.css. Phone = up to 799px, desktop = 800px and up (same split as intern.css).
 */

:root {
  --rf-blue: #2992D0;
  --rf-blue-dark: #1b6fa3;
  --rf-ink: #14212e;
  --rf-muted: #5b6b7a;
  --rf-line: #e2ebf3;
  --rf-soft: #eef6fc;
  --rf-green: #13854a;
}

/* ================= Banner: hero card ================= */
.banner {
  position: relative;
}
.hero-card {
  text-align: center;
}
.hc-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hc-tag {
  display: inline-block;
  background: var(--rf-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.hc-title {
  margin: 10px 0 0;
  line-height: 1.15;
  text-transform: none;
}
.hc-title span {
  display: block;
}
.hc-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rf-blue);
}
.hc-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-top: 4px;
}
.hc-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 4px;
}
.hc-loc {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
}
.hc-loc i {
  color: var(--rf-blue);
  margin-right: 3px;
}
.hc-facts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.hc-facts li {
  font-size: 12px;
  line-height: 1.3;
  padding: 7px 6px;
  border-radius: 8px;
}
.hc-facts li b {
  font-weight: 700;
}
.hc-facts .hc-wide {
  grid-column: 1 / -1;
}
.hc-price {
  width: 100%;
  margin-top: 12px;
  padding: 12px 10px;
  border-radius: 12px;
}
.hc-price-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.hc-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 12px;
  margin-top: 4px;
}
.hc-old {
  font-size: 17px;
  font-weight: 600;
}
.hc-old del {
  text-decoration-line: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #ff5c5c;
}
.hc-new {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.3px;
}
.hc-new sup {
  font-size: 0.45em;
  top: -0.9em;
}
.hc-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #16a34a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  animation: rfPulse 1.8s ease-in-out infinite;
}
.hc-save i {
  font-size: 11px;
}
.hc-btn {
  margin-top: 12px;
  width: 100%;
  background: var(--rf-blue);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  padding: 10px 16px;
  border-radius: 10px;
  transition: background-color .2s ease, transform .2s ease;
}
.hc-btn:hover,
.hc-btn:focus-visible {
  background: var(--rf-blue-dark);
  color: #fff;
  transform: translateY(-1px);
}
@keyframes rfPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Phone: white card under the banner image */
@media screen and (max-width: 799px) {
  .hero-card {
    padding: 12px 14px 4px;
  }
  .hc-inner {
    background: #fff;
    border: 1px solid var(--rf-line);
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(20, 33, 46, 0.08);
    padding: 16px 14px;
    max-width: 420px;
    margin: 0 auto;
  }
  .hc-title {
    color: var(--rf-ink);
  }
  .hc-sub {
    color: var(--rf-muted);
  }
  .hc-loc {
    color: #33414f;
  }
  .hc-facts li {
    background: var(--rf-soft);
    color: var(--rf-ink);
  }
  .hc-facts li b {
    color: var(--rf-blue-dark);
  }
  .hc-price {
    background: linear-gradient(135deg, #0f3550 0%, #17608f 100%);
    color: #fff;
  }
  .hc-price-label {
    color: #d6e9f6;
  }
  .hc-old {
    color: #e3eef7;
  }
  .hc-new {
    color: #fff;
  }
}

/* Desktop: dark glass panel over the left of the banner image */
@media screen and (min-width: 800px) {
  .hero-card {
    position: absolute;
    top: 50%;
    left: clamp(14px, 2vw, 36px);
    transform: translateY(-50%);
    width: clamp(290px, 25vw, 380px);
    max-height: calc(100% - 24px);
    z-index: 10;
  }
  .hc-inner {
    background: rgba(9, 22, 36, 0.74);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    padding: clamp(14px, 1.4vw, 22px) clamp(14px, 1.3vw, 20px);
    color: #fff;
  }
  .hc-title {
    color: #fff;
  }
  .hc-kicker {
    color: #7cc8f5;
  }
  .hc-name {
    font-size: clamp(22px, 2vw, 30px);
  }
  .hc-sub {
    color: #d5e2ec;
  }
  .hc-loc {
    color: #e6eef4;
  }
  .hc-facts li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e9f1f7;
  }
  .hc-facts li b {
    color: #fff;
  }
  .hc-price {
    background: #fff;
    color: var(--rf-ink);
  }
  .hc-price-label {
    color: var(--rf-muted);
  }
  .hc-old {
    color: #7a8794;
  }
  .hc-new {
    color: var(--rf-blue);
    font-size: clamp(28px, 2.5vw, 38px);
  }
}
/* Short laptop screens: tighten the card so it fits inside the banner */
@media screen and (min-width: 800px) and (max-height: 700px) {
  .hc-facts { margin-top: 8px; gap: 4px; }
  .hc-facts li { padding: 4px 6px; font-size: 11px; }
  .hc-price { margin-top: 8px; padding: 8px; }
  .hc-new { font-size: 28px; }
  .hc-btn { margin-top: 8px; padding: 8px 14px; }
  .hc-name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-save { animation: none; }
}

/* ================= Price cards: clearer old / new price ================= */
#pricing .price-old {
  font-size: 15px;
  font-weight: 500;
  color: #6b7785;
}
/* main price stays still */
main #pricing .blink-price {
  animation: none !important;
  opacity: 1 !important;
}
/* "Save ..." label: same pill as the banner badge, lighter green, blinking */
main #pricing .price-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  justify-self: center;
  width: auto;
  margin: 6px auto 10px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #3fbf72;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  animation: rfSaveBlink 1.2s ease-in-out infinite;
}
main #pricing .price-save::before {
  content: "\f02b"; /* Font Awesome tag icon, same as the banner badge */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
}
@media screen and (min-width: 800px) {
  main #pricing .price-save {
    font-size: 14px;
    padding: 5px 14px;
  }
}
/* Blink by colour, not by fading: the pill and its white text stay solid and readable */
@keyframes rfSaveBlink {
  0%, 100% {
    background-color: #3fbf72;
    box-shadow: 0 0 0 0 rgba(63, 191, 114, 0);
  }
  50% {
    background-color: #239a55;
    box-shadow: 0 0 0 4px rgba(63, 191, 114, 0.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  main #pricing .price-save { animation: none; }
}

/* ================= Enquiry popup ================= */
#enqPopup .modal-header {
  padding: 16px 18px 0;
}
#enqPopup .modal-title {
  font-size: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.4px;
}
#enqPopup .modal-title::before {
  bottom: -7px;
  height: 3px;
  width: 40px;
}
#enqPopup .enq-form-layout {
  display: block;
}
#enqPopup .enq-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 18px 4px;
}
#enqPopup .enq-form .form-control {
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 10px;
}
#enqPopup .enq-form .iti {
  width: 100%;
}
#enqPopup .enq-form .consent .form-check-label {
  font-size: 11px;
  line-height: 1.4;
  color: #5b6b7a;
}
#enqPopup .enq-form .btn-wrapper {
  margin-top: 2px;
}
#enqPopup .enq-form .btn-wrapper .btn {
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
}
/* "We Promise" strip (replaces "Get information on availabilities") + brochure strip */
#enqPopup .enq-popup-pj-highlights {
  margin: 12px 18px 18px;
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  background: var(--rf-soft);
  padding: 0 10px 10px;
}
#enqPopup .enq-popup-pj-highlights h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 14px;
  border-radius: 0 0 8px 8px;
  margin-bottom: 8px;
}
#enqPopup .enq-promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
#enqPopup .enq-promise-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--rf-ink);
  text-transform: none;
}
#enqPopup .enq-promise-list li i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--rf-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(41, 146, 208, 0.18);
}
#enqPopup .enq-promise-list li b {
  color: var(--rf-blue-dark);
}
#enqPopup #enq-popup-pj-highlights-brochure .row {
  padding: 2px 0 0 !important;
  font-size: 13px;
}
@media screen and (min-width: 800px) {
  #enqPopup .modal-dialog {
    width: 500px;
    max-width: 94%;
  }
  #enqPopup .modal-content {
    border-radius: 16px;
    overflow: hidden;
  }
}
@media screen and (max-width: 799px) {
  #enqPopup .modal-dialog {
    margin: 0.75rem;
  }
  #enqPopup .modal-content {
    border-radius: 14px;
  }
  #enqPopup .modal-header {
    padding: 14px 14px 0;
  }
  #enqPopup .modal-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  #enqPopup .enq-form {
    gap: 8px;
    padding: 4px 14px 2px;
  }
  #enqPopup .enq-form .form-control {
    padding: 9px 12px;
  }
  #enqPopup .enq-form .consent .form-check-label {
    font-size: 10.5px;
  }
  #enqPopup .enq-popup-pj-highlights {
    margin: 10px 14px 14px;
  }
  #enqPopup .enq-promise-list li {
    font-size: 11.5px;
  }
}

/* ================= Gallery: sliding carousel ================= */
#gallery .slider-container {
  position: relative;
}
#gallery .gallery-img img {
  height: 240px;
  border-radius: 14px;
}
@media screen and (min-width: 800px) {
  #gallery .gallery-img img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}
#gallery .gal-dots,
#amenities .ami-dots {
  position: static;
  margin-top: 14px;
  line-height: 0;
}
#gallery .swiper-pagination-bullet,
#amenities .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #b8c7d3;
  opacity: 1;
  transition: width .25s ease, background-color .25s ease;
}
#gallery .swiper-pagination-bullet-active,
#amenities .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 6px;
  background: var(--rf-blue);
}
#gallery .gal-arrow {
  position: absolute;
  top: calc(50% - 18px);
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--rf-blue);
  background: rgba(255, 255, 255, 0.95);
  color: var(--rf-blue);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s ease, color .25s ease;
}
#gallery .gal-arrow::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
#gallery .gal-prev {
  left: 10px;
}
#gallery .gal-prev::before {
  transform: translateX(2px) rotate(-135deg);
}
#gallery .gal-next {
  right: 10px;
}
#gallery .gal-next::before {
  transform: translateX(-2px) rotate(45deg);
}
#gallery .gal-arrow:hover,
#gallery .gal-arrow:focus-visible {
  background: var(--rf-blue);
  color: #fff;
  outline: none;
}
@media screen and (max-width: 799px) {
  #gallery .gal-arrow {
    width: 38px;
    height: 38px;
  }
  #gallery .gal-arrow::before {
    width: 9px;
    height: 9px;
  }
}

/* ================= Connectivity ================= */
.conn-grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.conn-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 3px 10px rgba(20, 33, 46, 0.04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.conn-item:hover {
  box-shadow: 0 8px 20px rgba(20, 33, 46, 0.09);
  transform: translateY(-2px);
}
.conn-ico {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rf-soft);
  color: var(--rf-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.conn-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--rf-ink);
  line-height: 1.3;
  align-self: end;
}
.conn-dist {
  font-size: 13px;
  font-weight: 700;
  color: var(--rf-blue);
  align-self: start;
  margin-top: 2px;
}
@media screen and (max-width: 799px) {
  .conn-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }
  .conn-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 4px;
    padding: 10px;
    text-align: left;
  }
  .conn-ico {
    grid-row: auto;
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .conn-name {
    font-size: 12.5px;
    align-self: start;
  }
  .conn-dist {
    font-size: 12px;
    margin-top: 0;
  }
}

/* ================= Read more (phones) ================= */
.rm-text.rm-clamped {
  overflow: hidden;
  position: relative;
}
.rm-text.rm-clamped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.9em;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--rm-fade, #fff));
  pointer-events: none;
}
.rm-toggle {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 2px 0;
  margin: 2px 0 6px;
  color: var(--rf-blue);
  font-weight: 700;
  font-size: 14px;
}
.rm-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.rm-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}

/* ================= Swipe rows with dots (phones) ================= */
.swipe-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
.swipe-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #b8c7d3;
  transition: width .25s ease, background-color .25s ease;
}
.swipe-dots button.is-active {
  width: 22px;
  background: var(--rf-blue);
}
@media screen and (min-width: 800px) {
  .swipe-dots {
    display: none;
  }
}

@media screen and (max-width: 799px) {
  /* no on-page form on phones (the popup and the bottom bar cover it) */
  sidebar .section-heading,
  sidebar .enq-form {
    display: none !important;
  }

  /* Pricing cards: side-by-side swipe row */
  #pricing .price-slider-s-block > .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px !important;
    margin: 0 -12px;
    padding: 6px 12px 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start !important;
  }
  #pricing .price-slider-s-block > .row::-webkit-scrollbar {
    display: none;
  }
  #pricing .price-slider-s-block > .row > .price-block {
    flex: 0 0 78%;
    max-width: 78%;
    width: auto;
    margin: 0;
    padding: 14px 10px 26px;
    scroll-snap-align: start;
  }
  #pricing .price-block h4 {
    font-size: 19px;
    margin: 0;
  }
  #pricing .price-block h5 {
    font-size: 14px;
    margin: 0;
  }
  #pricing .price-block h6 {
    font-size: 20px;
    margin: 0;
  }
  main #pricing .price-save {
    margin: 4px auto 6px;
  }

  /* Unit / Master plan: side-by-side swipe row */
  #sitefloorplan .row.g-5 {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0 -12px;
    padding: 0 12px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 12px;
    scrollbar-width: none;
    justify-content: flex-start !important;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
  }
  #sitefloorplan .row.g-5::-webkit-scrollbar {
    display: none;
  }
  #sitefloorplan .row.g-5 > .col {
    flex: 0 0 84%;
    max-width: 84%;
    padding: 0;
    margin: 0;
    scroll-snap-align: start;
  }
  #sitefloorplan .plan-block .section-heading {
    font-size: 17px;
  }
  #sitefloorplan .plan-block .bd-img {
    margin-bottom: 10px !important;
  }
  #sitefloorplan .plan-block .btn {
    margin-top: 4px !important;
  }

  /* Amenities: two side by side per slide, swipe for more */
  #amenities .amenities-slider ul.glide__slides {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #amenities .amenities-slider li .amenities-block-wrapper {
    flex-direction: row;
    gap: 10px;
  }
  #amenities .amenities-slider li .amenities-block-wrapper > a {
    flex: 1 1 0;
    min-width: 0;
  }
  #amenities .amenities-slider .gallery-img img {
    height: 150px;
    border-radius: 12px;
  }
  #amenities .amenities-block-wrapper a .amenity-name {
    bottom: 8px;
    font-size: 12px;
    padding: 3px 12px 3px 8px;
    max-width: calc(100% - 8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Schedule a Site Visit: same section, tighter form */
  #site-visit .row > .col.pt-5 {
    padding-top: 14px !important;
  }
  #site-visit .enq-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--rf-line);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(20, 33, 46, 0.07);
    padding: 14px;
  }
  #site-visit .enq-form .form-control {
    font-size: 16px;
    padding: 9px 12px;
    border-radius: 10px;
  }
  #site-visit .enq-form .iti {
    width: 100%;
  }
  #site-visit .enq-form .consent .form-check-label {
    font-size: 10.5px;
    line-height: 1.4;
    color: #5b6b7a;
  }
  #site-visit .enq-form .btn-wrapper {
    margin-top: 2px;
  }
  #site-visit .enq-form .btn-wrapper .btn {
    width: 100%;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
  }
}
