/* Layout bugs that also exist on the staging site, fixed here. Each rule applies only at the screen widths where
   staging breaks; other widths render as staging does. */

/* Home hero: from 992px to just above 1200px the block grew wider than the window (headline cut off below ~1150px) */
@media screen and (min-width: 992px) and (max-width: 1279px) {
  .padding-global.home-hero { width: 100%; }
}

/* Home map: invisible popups stuck out past the right edge and made the whole page scroll sideways
   (js/fixes.js keeps the open popup inside the window) */
.home_properties-map { overflow-x: clip; }

/* Lease & Manage "why" cards: third column ran off small laptop / landscape tablet screens (the headings do not wrap,
   so the cards need less padding and a smaller heading to fit) */
@media screen and (min-width: 992px) and (max-width: 1100px) {
  .lease--block_wrapper-why { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lease--heading-why { font-size: 1.625rem; }
}

/* Property pages on portrait tablets: the large description heading and long area figures were cut off */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .prop-dets--right_bottom_text-info h2 { font-size: 3rem; }
  .prop-dets--left-text_wrapper-info { flex-wrap: wrap; column-gap: 0.75rem; }
}

/* Property gallery on large phones and portrait tablets: the photos were drawn over the "Exterior / Interior" tabs,
   which could not be seen or tapped */
@media screen and (min-width: 480px) and (max-width: 991px) {
  /* the tab row was also placed across the photo row, so it got no height of its own (!important beats Webflow's
     per-element #w-node rule) */
  .property-gallery-tabs > .property-gallery-tabs-menu { grid-row: 1 / 2 !important; }
}

/* Home client testimonial on portrait tablets: the text card was pushed half out of its box, so the quote was cut off
   behind the photo, and the "previous" arrow was hidden */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .testimonial-info-card { transform: none; }
  .splide.tml-content { overflow: visible; }
}

/* Home on phones: the services slider dots sat under the photo shading (could not be tapped) and the project tag sat
   under its video */
@media screen and (max-width: 767px) {
  #sync-sliders .splide__pagination { z-index: 100; } /* the photo track sits at z-index 99 */
  .map-card-label.is-assets { z-index: 2; } /* "IT Park" tag on the project video */
}

/* Closing "call to action" block on large phones: it kept a fixed 640px width */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .cta-left { min-width: 0; }
}

/* Blog posts on large phones: stack the sidebar, as staging already does below 480px */
@media screen and (min-width: 480px) and (max-width: 599px) {
  .blog-post_main { display: flex; flex-flow: column; width: 100%; }
  .blog-post_main-right { grid-column-gap: 2.5rem; grid-row-gap: 2.5rem; border-top: 0.063rem solid #02024833; padding-left: 0; }
  .blog-post_main-richtext { border-right-style: none; padding-right: 0; }
}

/* Small phones: long words in large headings spilled out of the screen */
@media screen and (max-width: 374px) {
  .discover--heading-sections.text-color-white { font-size: 1.875rem; }
  .heading-style-h1 { font-size: 2rem; }
}

/* Very small phones */
@media screen and (max-width: 359px) {
  .develop--grid_block_wrapper-discover { grid-template-columns: minmax(0, 1fr); }
  .heading-style-h4.dev { font-size: 1.25rem; }
  .lease--heading-why { font-size: 1.5rem; }
}

/* Home client testimonials, requested change: every card is as tall as the tallest one, with the client's name and
   industry held at the bottom (staging sizes each card to its own quote) */
#homeTmlContent .home-testimonial-card { display: flex; flex-direction: column; height: 100%; }
#homeTmlContent .testimonial-info-card { flex: 1 0 auto; }
#homeTmlContent .testimonial-client-wrap { margin-top: auto; }

/* Home ESG panels (desktop), requested change: smooth opening. Webflow animates the panel widths from "rem" to "%",
   and the text inside re-wraps on every frame (the heading jumps from four lines to two). Here the text keeps its final
   width and is simply uncovered, while the panels trade space evenly. js/fixes.js marks the open panel (.is-open). */
@media screen and (min-width: 992px) {
  .home-metrics-wrap { container-type: inline-size; }
  /* !important beats the inline width Webflow's script still writes on click */
  .home-metrics-wrap > .layout351_accordion { width: auto !important; flex: 0 1 5rem; }
  .home-metrics-wrap > .layout351_accordion.is-open,
  .home-metrics-wrap:not(.esg-ready) > .layout351_accordion.active { flex-grow: 100; }
  .home-metrics-wrap .layout351_column { flex: 0 0 5rem; }
  /* final text width: the whole row less the five 5rem tabs */
  .home-metrics-wrap .layout351_column-content { flex: 0 0 auto; width: calc(100cqw - 25rem) !important; opacity: 0; }
  .home-metrics-wrap > .layout351_accordion.is-open .layout351_column-content,
  .home-metrics-wrap:not(.esg-ready) > .layout351_accordion.active .layout351_column-content { opacity: 1; }

  .home-metrics-wrap.esg-ready > .layout351_accordion { transition: flex-grow 0.65s cubic-bezier(0.65, 0, 0.35, 1); }
  .home-metrics-wrap.esg-ready .layout351_column-content { transition: opacity 0.25s ease; }
  .home-metrics-wrap.esg-ready > .layout351_accordion.is-open .layout351_column-content { transition: opacity 0.45s ease 0.2s; }
}
/* narrowest desktop: the longest panel text ran 14px past the bottom */
@media screen and (min-width: 992px) and (max-width: 1023px) {
  .home-metrics-wrap .metrics-content-wap { padding-top: 3rem; padding-bottom: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-metrics-wrap.esg-ready > .layout351_accordion,
  .home-metrics-wrap.esg-ready .layout351_column-content { transition: none !important; }
}

/* Property hero: progressive blur behind the title block, so the text stays readable over the busy video/photo.
   Three stacked backdrop-blur layers (light -> strong towards the bottom edge), each fading in with a mask, plus a
   soft navy tint on the strongest one. Pure decoration: sits under the text, ignores the mouse. The layers run down to
   the hero's bottom edge (--hero-pad mirrors the section's bottom padding at each Webflow breakpoint). */
.prop-dets--section-hero { --hero-pad: 6.25rem; }
@media screen and (max-width: 991px) { .prop-dets--section-hero { --hero-pad: 2rem; } }
@media screen and (max-width: 479px) { .prop-dets--section-hero { --hero-pad: 3.75rem; } }
.prop-dets--section-hero::after,
.prop-dets--main_wrapper-hero::before,
.prop-dets--main_wrapper-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
.prop-dets--section-hero::after { /* light, tallest layer; section is the stacking parent, wrapper (z-index 1) stays above */
  z-index: 0;
  bottom: 0;
  height: 22rem;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 100%);
}
.prop-dets--main_wrapper-hero::before { /* medium */
  z-index: -1;
  top: -9rem;
  bottom: calc(-1 * var(--hero-pad));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 50%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 50%, #000 100%);
}
.prop-dets--main_wrapper-hero::after { /* strong + tint */
  z-index: -1;
  top: -4.5rem;
  bottom: calc(-1 * var(--hero-pad));
  background: linear-gradient(to bottom, rgba(2, 2, 72, 0) 0%, rgba(2, 2, 72, 0.32) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 60%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 60%, #000 100%);
}

/* Home "Current Assets / Upcoming Assets" tab menu on phones, requested change: it stays pinned just under the navbar
   while the property cards scroll (--nav-h is the navbar's live height, set in js/fixes.js). The gap that sat below it
   became padding so the white backing also covers it. */
@media screen and (max-width: 767px) {
  .project-tabs-menu {
    position: sticky;
    top: var(--nav-h, 77px);
    z-index: 500; /* above the cards, below the navbar (1000) */
    background-color: #fff;
    margin-bottom: 0;
    padding-bottom: 1.25rem;
  }
}

/* Property pages on phones, requested change: the key figures ("4,00,000 Sq ft  Total Leasable Area") stayed at 40px for
   the number (Webflow's phone size only reaches the units), so the unit wrapped onto two lines and the label was
   squeezed. Number 28px, unit 20px, kept on one line; the label may wrap on its right if the screen is very narrow. */
@media screen and (max-width: 479px) {
  .prop-detail-stat,
  .prop-detail-stat.counterup.units-number { font-size: 1.75rem; }
  .prop-detail-flex-wrap { flex-wrap: nowrap; white-space: nowrap; flex: 0 0 auto; }
  .prop-detail-flex-wrap > .prop-detail-stat:not(:first-child) { font-size: 1.25rem; }
  .prop-dets--left-text_wrapper-info { column-gap: 0.75rem; }
  .prop-dets--left-text_wrapper-info > .prop-dets--text_nums_small-info { min-width: 0; text-align: right; }
}

/* Develop page, "expertise" carousel on phones (the .hide-in-desktop swiper), requested change: pagination dots recoloured
   (navy for the current one, soft navy for the rest, instead of grey) and moved to the left, with previous / next arrows
   on the right. Webflow hides these two arrows on phones, so they are switched back on here. */
@media screen and (max-width: 767px) {
  .discover--swiper-offers.hide-in-desktop .discover--pagination-offers.expertise {
    justify-content: flex-start;
    width: auto;
    height: 2.5rem;
    margin-top: 1rem;
  }
  .discover--swiper-offers.hide-in-desktop .discover--pagination-offers.expertise .swiper-pagination-bullet { background: rgba(37, 37, 66, 0.25); }
  .discover--swiper-offers.hide-in-desktop .discover--pagination-offers.expertise .swiper-pagination-bullet-active { background: #252542; }

  .discover--swiper-offers.hide-in-desktop .discover--prev_button-offers,
  .discover--swiper-offers.hide-in-desktop .discover--next_button-offers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background-color: #fff;
    border: 1px solid rgba(37, 37, 66, 0.25);
    bottom: 0;
    top: auto;
    left: auto;
  }
  .discover--swiper-offers.hide-in-desktop .discover--next_button-offers { right: 0; }
  .discover--swiper-offers.hide-in-desktop .discover--prev_button-offers { right: 3.25rem; }
  .discover--swiper-offers.hide-in-desktop .discover--prev_button-offers .hide-mobile-landscape,
  .discover--swiper-offers.hide-in-desktop .discover--next_button-offers .hide-mobile-landscape { display: flex !important; } /* the arrow icon sits in a wrapper the page hides with !important */
}

/* Develop page, "Leading the way in Developing Premier Assets" carousel on phones, requested change (same layout as the one
   above): dots on the left with the brand beige for the current one, previous / next arrows on the right as white
   circles. Webflow hides the arrows on phones. */
@media screen and (max-width: 767px) {
  .discover--swiper-offers:not(.hide-in-desktop) .discover--pagination-offers {
    justify-content: flex-start;
    width: auto;
    height: 2.5rem;
    margin-top: 1.5rem;
  }
  .discover--swiper-offers:not(.hide-in-desktop) .discover--pagination-offers .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.25); }
  .discover--swiper-offers:not(.hide-in-desktop) .discover--pagination-offers .swiper-pagination-bullet-active { background: #efbd7b; }

  .discover--swiper-offers:not(.hide-in-desktop) .discover--prev_button-offers,
  .discover--swiper-offers:not(.hide-in-desktop) .discover--next_button-offers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    bottom: 0;
    top: auto;
    left: auto;
  }
  .discover--swiper-offers:not(.hide-in-desktop) .discover--next_button-offers { right: 0; }
  .discover--swiper-offers:not(.hide-in-desktop) .discover--prev_button-offers { right: 3.25rem; }
}

/* Develop carousels on phones, follow-up: Swiper also fades inactive dots with its own opacity (0.2), which stacked on the
   transparent colours above and made them vanish: keep the dots fully opaque and use solid-enough colours. The arrow icons
   are centred inside their circles (icon wrapper as a flex box, no inline-baseline gap). */
@media screen and (max-width: 767px) {
  .discover--swiper-offers.hide-in-desktop .discover--pagination-offers.expertise .swiper-pagination-bullet { opacity: 1; background: rgba(37, 37, 66, 0.3); }
  .discover--swiper-offers.hide-in-desktop .discover--pagination-offers.expertise .swiper-pagination-bullet-active { opacity: 1; background: #252542; }
  .discover--swiper-offers:not(.hide-in-desktop) .discover--pagination-offers .swiper-pagination-bullet { opacity: 1; background: rgba(255, 255, 255, 0.4); }
  .discover--swiper-offers:not(.hide-in-desktop) .discover--pagination-offers .swiper-pagination-bullet-active { opacity: 1; background: #efbd7b; }

  .discover--swiper-offers .discover--prev_button-offers > div,
  .discover--swiper-offers .discover--next_button-offers > div { display: flex !important; align-items: center; justify-content: center; line-height: 0; }
  .discover--swiper-offers .discover--prev_button-offers svg,
  .discover--swiper-offers .discover--next_button-offers svg { display: block; }
}

/* Lease & Manage, "management" carousel on phones, requested change (same layout as the dark Develop carousel): dots on the
   left with the brand beige for the current one, previous / next arrows on the right as white circles. Webflow hides the
   arrows on phones and gives them a navy background (the icon is navy too), so the circle is turned white. */
@media screen and (max-width: 767px) {
  .lease--swiper-management .discover--pagination-offers {
    justify-content: flex-start;
    width: auto;
    height: 2.5rem;
    margin-top: 1.5rem;
  }
  .lease--swiper-management .discover--pagination-offers .swiper-pagination-bullet { opacity: 1; background: rgba(255, 255, 255, 0.4); }
  .lease--swiper-management .discover--pagination-offers .swiper-pagination-bullet-active { opacity: 1; background: #efbd7b; }

  .lease--swiper-management .discover--prev_button-offers.lease-managment,
  .lease--swiper-management .discover--next_button-offers.lease-managment {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background-color: #fff;
    bottom: 0;
    top: auto;
    left: auto;
  }
  .lease--swiper-management .discover--next_button-offers.lease-managment { right: 0; }
  .lease--swiper-management .discover--prev_button-offers.lease-managment { right: 3.25rem; }
  .lease--swiper-management .discover--prev_button-offers > div,
  .lease--swiper-management .discover--next_button-offers > div { display: flex !important; align-items: center; justify-content: center; line-height: 0; }
  .lease--swiper-management .discover--prev_button-offers svg,
  .lease--swiper-management .discover--next_button-offers svg { display: block; }
}

/* Lease & Manage "Our Clientele" logo marquee, requested change: smoother. The ticker library moved every logo block by a
   fraction of a pixel from JavaScript on each frame (no GPU layer, and a small jump back to zero at the end of each loop).
   The motion is now a CSS animation, which runs on the GPU and loops exactly one block + gap, at the same speed
   (--ticker-time = the library's ticker-speed, --ticker-gap = its gap; both set in js/fixes.js). Pauses under the mouse,
   as the library did. The library still builds the copies of the logo row; its own inline movement is simply overridden. */
.cc-ticker > * {
  animation: cc-ticker-run var(--ticker-time, 32s) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
@keyframes cc-ticker-run {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100% - var(--ticker-gap, 12px)), 0, 0); }
}
@media (hover: hover) {
  .cc-ticker[ticker-pause="true"]:hover > * { animation-play-state: paused; }
}

/* Same page, phones: less space between the "Our Clientele" heading and the logos */
@media screen and (max-width: 767px) {
  .lease--marquee_container-clients { padding-top: 1.5rem; }
}

/* Impact page slider on phones, requested change: pagination dots on the left (current one in the brand beige, the rest soft
   white), previous / next arrows on the right as white circles, in one row under the card. Webflow switches the arrows off on
   phones; js/fixes.js keeps them on for this slider. */
@media screen and (max-width: 767px) {
  #impactSliders .sliders-arrow-grid {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 2.5rem;
    margin-top: 1rem;
  }
  #impactSliders .sliders-arrow-grid > :not(.splide__arrows) { display: none; }
  #impactSliders .splide__arrows.impact-slider { display: flex; column-gap: 0.75rem; }
  #impactSliders .splide__arrow.impact {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    transform: none;
    background-color: #fff;
  }
  #impactSliders .splide__arrow.impact > div { display: flex; align-items: center; justify-content: center; line-height: 0; }
  #impactSliders .splide__arrow.impact svg { display: block; }
  #impactSliders .splide__pagination {
    left: 0;
    right: auto;
    bottom: 0;
    height: 2.5rem;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
  }
  #impactSliders .splide__pagination__page { opacity: 1; background: rgba(255, 255, 255, 0.4); }
  #impactSliders .splide__pagination__page.is-active { background: #efbd7b; }
}

/* About Us key figures ("30+ years", "1M sq ft", "8+ years") on small laptop / landscape-tablet windows, requested change: the
   figures stayed at 60px while the column they sit in shrinks with the window, so "1M sq ft" wrapped onto two lines and ran
   into its label. From 992px up the figure and label now scale with the window (full size again from about 1300px), the
   figure never breaks across lines and the label wraps instead of overlapping. Phones/tablets keep Webflow's own sizes. */
@media screen and (min-width: 992px) {
  .home-maps-metrics-card { column-gap: 1rem; font-size: clamp(1rem, 1.85vw, 1.5rem); }
  .home-maps-metrics-card .metric-value { font-size: clamp(2.25rem, 4.6vw, 3.75rem); white-space: nowrap; flex: none; }
  .home-maps-metrics-card > :not(.metric-value) { min-width: 0; text-align: right; }
}
