.cgre-recent-carousel { min-width: 0; width: 100%; container-type: inline-size; }
.cgre-recent-carousel .cgre-carousel-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.cgre-recent-carousel .cgre-carousel-controls[hidden] { display: none; }
.cgre-recent-carousel .cgre-carousel-controls button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #cddcda; border-radius: 6px; background: #fff; color: #12634f; cursor: pointer; }
.cgre-recent-carousel .cgre-carousel-controls button:hover:not(:disabled) { background: #12634f; color: #fff; }
.cgre-recent-carousel .cgre-carousel-controls button:disabled { opacity: .4; cursor: default; }
.cgre-recent-carousel :focus-visible { outline: 2px solid #12634f; outline-offset: 3px; }
.cgre-recent-carousel .cgre-property-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 0 18px; margin: 0; scrollbar-width: thin; scrollbar-color: #12634f #edf3f2; }
.cgre-recent-carousel .cgre-property-card { min-width: 0; width: auto; max-width: none; scroll-snap-align: start; overflow-wrap: anywhere; }
.cgre-recent-carousel .cgre-property-card.cgre-reveal-ready { opacity: 1; transform: none; }
.cgre-recent-carousel .cgre-property-card.cgre-reveal-ready .cgre-property-thumb img { filter: none; }
@container (min-width: 600px) { .cgre-recent-carousel .cgre-property-grid { grid-auto-columns: calc((100% - 20px) / 2); } }
@container (min-width: 960px) { .cgre-recent-carousel .cgre-property-grid { grid-auto-columns: calc((100% - 40px) / 3); } }

@media (max-width: 767px) {
  /* Both Elementor wrappers can reserve height independently of the carousel. */
  .elementor-widget-shortcode:not(.elementor-element-edit-mode):has(> .elementor-shortcode > .cgre-recent-carousel),
  .elementor-widget-shortcode:not(.elementor-element-edit-mode) > .elementor-shortcode:has(> .cgre-recent-carousel) {
    display: contents;
  }
}
