/* =====================================================================
   Investment Options — Compact View styles
   ---------------------------------------------------------------------
   Loaded by both:
     • investment-options.html         — `body.investment-options-detailed`:
                                       view-toggle pills + hero-style listing images
     • investment-options-compact.html — `body.investment-options-compact`:
                                       compact grid layout + image treatments

   Why a separate file:
     The compact view is an additive feature. Deleting it requires only:
       1. Delete  investment-options-compact.html
       2. Delete  css/investment-options-compact.css   (this file)
       3. Remove the matching <link> tag from investment-options.html
       4. Remove the .listing-view-toggle row from investment-options.html
   ===================================================================== */

/* Area strip: empty state (detailed + compact investment options pages) */
.investment-area-strip .residential-area-pills-empty {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 100%;
          flex: 1 0 100%;
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  text-align: center;
}

.investment-area-strip .residential-area-pills-empty__text {
  color: rgba(var(--theme-color-black-rgb), 0.5);
  font-size: 14px;
  line-height: 1.45;
}

/* ---------------------------------------------------------------------
   Detailed listing view — image column (investment-options.html only)
   Replaces gray letterboxed “contain” look with a framed cover crop.
   --------------------------------------------------------------------- */
body.investment-options-detailed
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .image-block
  .listing-image {
  border-radius: 18px;
  overflow: hidden;
  -webkit-box-shadow: 0 24px 56px rgba(var(--theme-color-black-rgb), 0.09),
    0 0 0 1px rgba(var(--theme-color-black-rgb), 0.06);
          box-shadow: 0 24px 56px rgba(var(--theme-color-black-rgb), 0.09),
    0 0 0 1px rgba(var(--theme-color-black-rgb), 0.06);
}

body.investment-options-detailed
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .image-block
  .listing-image::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  -webkit-box-shadow: inset 0 0 0 1px rgba(var(--theme-color-white-rgb), 0.12);
          box-shadow: inset 0 0 0 1px rgba(var(--theme-color-white-rgb), 0.12);
}

body.investment-options-detailed
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .image-block
  .listing-image
  .inner-box {
  display: block;
  min-height: 0 !important;
  max-height: none;
  aspect-ratio: 16 / 10;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#eceae6),
    to(#ddd9d3)
  );
  background: linear-gradient(165deg, #eceae6 0%, #ddd9d3 100%);
}

body.investment-options-detailed
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .image-block
  .listing-image
  .inner-box::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(transparent),
    color-stop(55%, transparent),
    to(rgba(var(--theme-color-black-rgb), 0.22))
  );
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 55%,
    rgba(var(--theme-color-black-rgb), 0.22) 100%
  );
}

body.investment-options-detailed
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .image-block
  .listing-image
  .inner-box
  img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  z-index: 0;
  -webkit-transform: scale(1.001);
          transform: scale(1.001);
  -webkit-transition: -webkit-transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition: -webkit-transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

body.investment-options-detailed
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .image-block
  .listing-image
  .img-text-block {
  z-index: 2;
  bottom: 16px;
  left: 16px;
  right: 16px;
  border-radius: 14px;
}

@media (min-width: 992px) {
  body.investment-options-detailed
    .investment-catalog-section
    .investment-listing-feature
    .inner-block
    .image-block
    .listing-image
    .inner-box {
    aspect-ratio: 5 / 4;
    max-height: min(520px, 50vh);
  }
}

@media (hover: hover) and (pointer: fine) {
  body.investment-options-detailed
    .investment-catalog-section
    .investment-listing-feature
    .inner-block
    .image-block
    .listing-image:hover
    .inner-box
    img {
    -webkit-transform: scale(1.04);
            transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.investment-options-detailed
    .investment-catalog-section
    .investment-listing-feature
    .inner-block
    .image-block
    .listing-image
    .inner-box
    img {
    -webkit-transition: none !important;
            transition: none !important;
  }

  body.investment-options-detailed
    .investment-catalog-section
    .investment-listing-feature
    .inner-block
    .image-block
    .listing-image:hover
    .inner-box
    img {
    -webkit-transform: none !important;
            transform: none !important;
  }
}

/* ---------------------------------------------------------------------
   1. View-toggle pills (rendered on BOTH pages)
   --------------------------------------------------------------------- */
.listing-view-toggle.property-filter-row {
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  width: 100%;
  gap: 10px;
}

.listing-view-toggle .listing-view-toggle__link.property-filter-pill {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--theme-color2);
  background: var(--theme-color-white);
  border: 1px solid var(--theme-color-gray);
  border-radius: 999px;
  -webkit-transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.listing-view-toggle .listing-view-toggle__link.property-filter-pill i {
  font-size: 13px;
  line-height: 1;
}

.listing-view-toggle .listing-view-toggle__link.property-filter-pill:hover {
  border-color: rgba(var(--theme-color1-rgb), 0.6);
  -webkit-box-shadow: 0 4px 14px rgba(var(--theme-color-black-rgb), 0.06);
          box-shadow: 0 4px 14px rgba(var(--theme-color-black-rgb), 0.06);
}

.listing-view-toggle .listing-view-toggle__link.property-filter-pill.is-active {
  background: var(--theme-color1);
  color: var(--theme-color1-text-color, #fff);
  border-color: var(--theme-color1);
  -webkit-box-shadow: 0 6px 18px rgba(var(--theme-color1-rgb), 0.25);
          box-shadow: 0 6px 18px rgba(var(--theme-color1-rgb), 0.25);
}

@media (max-width: 575.98px) {
  .listing-view-toggle.property-filter-row {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

/* Place the toggle as a new top row inside the existing 3-column toolbar
   grid (defined in style.css). Pushes category/search/possession to row 2
   and the count to row 3 instead of colliding at row 1. */
@media (min-width: 992px) {
  .residential-listing-filters {
    -ms-grid-rows: auto auto auto;
        grid-template-rows: auto auto auto;
  }
  .residential-listing-filters .property-filter-row--view {
    -ms-grid-column: 1;
    -ms-grid-column-span: 3;
        grid-column: 1 / -1;
    -ms-grid-row: 1;
        grid-row: 1;
    justify-self: end;
  }
  .residential-listing-filters .property-filter-row--category {
    -ms-grid-row: 2;
        grid-row: 2;
  }
  .residential-listing-filters .property-filter-row--search {
    -ms-grid-row: 2;
        grid-row: 2;
  }
  .residential-listing-filters .property-filter-row--possession {
    -ms-grid-row: 2;
        grid-row: 2;
  }
  .residential-listing-filters .residential-listing-count {
    -ms-grid-row: 3;
        grid-row: 3;
  }
}

/* ---------------------------------------------------------------------
   2. Compact layout (ONLY on investment-options-compact.html)
   --------------------------------------------------------------------- */

/* WOW.js uses window scroll; ScrollSmoother scrolls #smooth-content — cards
   can stay visibility:hidden forever. Force listing rows visible; we use
   Intersection Observer for image motion instead. */
body.investment-options-compact
  .residential-listing-card-wrap
  .inner-block.wow {
  visibility: visible !important;
  -webkit-animation: none !important;
          animation: none !important;
  -webkit-animation-name: none !important;
          animation-name: none !important;
}

/* Scroll-in (Intersection Observer adds .is-compact-listing-visible) */
body.investment-options-compact.compact-listing-motion
  .investment-catalog-section
  .listing-image
  .inner-box {
  opacity: 0;
  -webkit-transform: translateY(28px);
          transform: translateY(28px);
  -webkit-transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.investment-options-compact.compact-listing-motion
  .investment-catalog-section
  .listing-image
  .inner-box.is-compact-listing-visible {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

/* Status badge (injected on compact page; Status row removed from list) */
body.investment-options-compact
  .investment-catalog-section
  .listing-image {
  position: relative;
}

body.investment-options-compact
  .investment-catalog-section
  .listing-image
  .listing-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  max-width: min(240px, calc(100% - 24px));
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--headings-color, #1a1a1a);
  background: rgba(255, 255, 255, 0.96);
  -webkit-box-shadow: 0 4px 14px rgba(var(--theme-color-black-rgb), 0.12);
          box-shadow: 0 4px 14px rgba(var(--theme-color-black-rgb), 0.12);
  border: 1px solid rgba(var(--theme-color1-rgb), 0.35);
  pointer-events: none;
}

body.investment-options-compact
  .investment-catalog-section
  .listing-image
  .listing-status-badge__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Toolbar: keep Under Construction + Ready on one horizontal row */
body.investment-options-compact .property-filter-row--possession {
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  max-width: 100%;
}

body.investment-options-compact
  .property-filter-row--possession
  .property-filter-pill {
  white-space: nowrap;
  -webkit-box-flex: 0;
      -ms-flex: 0 1 auto;
          flex: 0 1 auto;
  min-width: 0;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 13px;
}

@media (max-width: 575.98px) {
  body.investment-options-compact
    .property-filter-row--possession
    .property-filter-pill {
    font-size: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Three cards per row from lg up, one per row below */
body.investment-options-compact .residential-listing-grid > .residential-listing-card-wrap {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 100%;
          flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  body.investment-options-compact .residential-listing-grid > .residential-listing-card-wrap {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 33.333333%;
            flex: 0 0 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;
  }
}

/* Neutralise the side-by-side / alternating layout — stack image on top,
   content below for every card (overrides .is-image-right too). */
body.investment-options-compact
  .investment-catalog-section
  .residential-listing-card-wrap
  .investment-listing-feature
  .inner-block,
body.investment-options-compact
  .investment-catalog-section
  .residential-listing-card-wrap.is-image-right
  .investment-listing-feature
  .inner-block {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column !important;
  -ms-grid-columns: none !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  /* Equal-height Bootstrap columns + height:100% inflated the image stack via flex-grow */
  height: auto !important;
  min-height: 0;
  margin-bottom: 0;
}

body.investment-options-compact
  .investment-catalog-section
  .residential-listing-card-wrap
  .investment-listing-feature
  .inner-block
  > .image-block,
body.investment-options-compact
  .investment-catalog-section
  .residential-listing-card-wrap
  .investment-listing-feature
  .inner-block
  > .content-block {
  grid-column: auto !important;
  -ms-grid-column: auto !important;
  width: 100% !important;
  margin-left: 0 !important;
}

body.investment-options-compact
  .investment-catalog-section
  .residential-listing-card-wrap
  .investment-listing-feature
  .inner-block
  > .image-block {
  /* Do not stretch with equal-height cards — avoids empty band under the photo */
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  min-height: 0;
  margin-bottom: 0 !important;
  overflow: hidden;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  max-height: none;
  -webkit-box-ordinal-group: 1;
      -ms-flex-order: 0;
          order: 0 !important;
}

body.investment-options-compact
  .investment-catalog-section
  .residential-listing-card-wrap
  .investment-listing-feature
  .inner-block
  > .content-block {
  -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
          order: 1 !important;
}

/* Image frame: consistent aspect ratio, cover crop (no letterboxing) */
body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .image-block
  .listing-image {
  /* Theme uses flex:1 1 auto — must not grow or the band below the img shows the frame bg */
  -webkit-box-flex: 0 !important;
      -ms-flex: none !important;
          flex: none !important;
  border-radius: 16px 16px 0 0;
  -webkit-box-shadow: inset 0 0 0 1px rgba(var(--theme-color-black-rgb), 0.06);
          box-shadow: inset 0 0 0 1px rgba(var(--theme-color-black-rgb), 0.06);
}

body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .image-block
  .listing-image
  .inner-box {
  /* Kill theme min-height:380px + flex:1 1 auto — both create empty space under cover imgs */
  -webkit-box-flex: 0 !important;
      -ms-flex: none !important;
          flex: none !important;
  display: block;
  min-height: 0 !important;
  max-height: none;
  aspect-ratio: 16 / 10;
  border-radius: 16px 16px 0 0;
  /* Softer frame than flat gray; reads cleaner behind cover crops */
  background: -webkit-gradient(linear, left top, left bottom, from(#f0eeeb), to(#e8e5e0));
  background: linear-gradient(180deg, #f0eeeb 0%, #e8e5e0 100%);
  position: relative;
}

body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .image-block
  .listing-image
  .inner-box
  img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  -webkit-transform: scale(1.001);
          transform: scale(1.001);
  -webkit-transition: -webkit-transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition: -webkit-transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

body.investment-options-compact
  .investment-catalog-section
  .listing-image {
  -webkit-transition: -webkit-box-shadow 0.45s ease, box-shadow 0.45s ease;
  transition: -webkit-box-shadow 0.45s ease, box-shadow 0.45s ease;
  transition: box-shadow 0.45s ease;
}

@media (max-width: 575.98px) {
  body.investment-options-compact
    .investment-catalog-section
    .investment-listing-feature
    .inner-block
    .image-block
    .listing-image
    .inner-box {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.investment-options-compact.compact-listing-motion
    .investment-catalog-section
    .listing-image
    .inner-box {
    opacity: 1 !important;
    -webkit-transform: none !important;
            transform: none !important;
    -webkit-transition: none !important;
            transition: none !important;
  }

  body.investment-options-compact
    .investment-catalog-section
    .listing-image,
  body.investment-options-compact
    .investment-catalog-section
    .listing-image
    .inner-box
    img {
    -webkit-transition: none !important;
    transition: none !important;
  }

  body.investment-options-compact
    .investment-catalog-section
    .listing-image:hover {
    -webkit-box-shadow: none;
            box-shadow: none;
  }

  body.investment-options-compact
    .investment-catalog-section
    .listing-image:hover
    .inner-box
    img {
    -webkit-transform: none !important;
            transform: none !important;
  }
}

/* Hover zoom: only for devices that support real hover (not touch-only) */
@media (hover: hover) and (pointer: fine) {
  body.investment-options-compact
    .investment-catalog-section
    .listing-image:hover
    .inner-box
    img,
  body.investment-options-compact
    .investment-catalog-section
    .listing-image:focus-within
    .inner-box
    img {
    -webkit-transform: scale(1.07);
            transform: scale(1.07);
  }

  body.investment-options-compact
    .investment-catalog-section
    .listing-image:hover,
  body.investment-options-compact
    .investment-catalog-section
    .listing-image:focus-within {
    -webkit-box-shadow: 0 20px 48px rgba(var(--theme-color-black-rgb), 0.12);
            box-shadow: 0 20px 48px rgba(var(--theme-color-black-rgb), 0.12);
  }
}

/* Address now lives as the first row of .features-list (prepended via the
   inline script in investment-options-compact.html). The chip overlay on
   the image is hidden in compact view. */
body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .image-block
  .img-text-block {
  display: none !important;
}

/* Allow long addresses (e.g. "Hebatpur-Thaltej Road") to wrap onto a
   second line — overrides the default `white-space: nowrap` on .value. */
body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  .features-list
  .list-item.compact-address-item
  .value {
  white-space: normal;
  word-break: break-word;
}

/* Content panel — tight, no left accent bar, square top corners */
body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block {
  border-radius: 0 0 16px 16px;
  padding: 20px 22px 24px;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block::before {
  display: none;
}

body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  .subtitle {
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  .title {
  font-size: clamp(20px, 1.5vw, 24px);
  margin-bottom: 14px;
  line-height: 1.2;
}

/* Hide the long marketing description in compact */
body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  > .text {
  display: none;
}

/* Tighter spec rows */
body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  .features-list {
  margin-bottom: 18px;
  border-radius: 10px;
}

body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  .features-list
  .list-item {
  padding: 9px 12px;
  -ms-grid-columns: 32px minmax(0, auto) 1fr;
  grid-template-columns: 32px minmax(0, auto) 1fr;
  -webkit-column-gap: 10px;
     -moz-column-gap: 10px;
          column-gap: 10px;
}

body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  .features-list
  .icon {
  width: 32px;
  height: 32px;
}

body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  .features-list
  .icon
  i {
  font-size: 13px;
}

body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  .features-list
  .ftr-title {
  font-size: 12px;
}

body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  .features-list
  .value {
  font-size: 13px;
}

/* CTA pinned to bottom of card body so all CTAs align across the row */
body.investment-options-compact
  .investment-catalog-section
  .investment-listing-feature
  .inner-block
  .content-block
  .btn-style-one {
  margin-top: auto;
  padding: 10px 22px;
  font-size: 13px;
}
