/* =========================================================================
   One Global Capital — Residential listings: WordPress-only additions.
   ogc-listings.css is copied unchanged from the reviewed mock-up; this file
   only fits it into the live site's Elementor + Hello Elementor setup.
   ========================================================================= */

/* Height of the site's own header (measured on the live site: 74 px, 61 px up to 1024 px wide).
   The hero fills the rest of the first screen, and jump links stop below the header. */
:root { --ogc-header-h: 74px; }
@media (max-width: 1024px) { :root { --ogc-header-h: 61px; } }

/* In-page jumps ("View apartments", "Enquire") are instant on our pages, as measured on the
   reference site and reviewed in the mock-up. Elementor makes every page scroll smoothly. */
html:has(.rl, .ogc-market) { scroll-behavior: auto; }

/* Our one Elementor container per page: full width, no padding, no gaps
   (the site kit adds 20 px between widgets and caps containers at 1340 px). */
.e-con.ogc-rl-page {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
  --widgets-spacing: 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px;
  --kit-widget-spacing: 0px;
  --container-max-width: 100%; --content-width: 100%;
  max-width: 100%;
}
.ogc-rl-page > .elementor-element { width: 100%; margin: 0; }

/* Unit pages are not Elementor pages: keep Hello's narrow ".site-main" width off them. */
.ogc-rl-unit-main { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }

/* Theme rule that outweighs a single class (found by test_parity.py):
   - [type=button]:not(:disabled) { cursor: pointer } (0,2,0) over the gallery's zoom cursor. */
.rl .rl-gallery__slide:not(:disabled) { cursor: zoom-in; }
/* - button:hover / :focus { color: #fff } (0,2,0): the photo buttons keep the page text colour */
.rl .rl-thumb:is(:hover, :focus), .rl .rl-gallery__slide:is(:hover, :focus) { color: inherit; }
/* Elementor: ".elementor .elementor-widget:not(…):not(…) figure { margin: 0 }" (0,4,1) */
.ogc-market .ogc-mcard .ogc-mcard__media.ogc-mcard__media.ogc-mcard__media { margin: 0 0 10px; }

/* Enquiry form: the spam-trap field people never see. */
.rl-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* If Elementor is ever switched off, our three pages show their plain copy inside the theme's
   ordinary page: keep it full width and leave out the theme's page title. */
body:is(.ogc-rl-residential, .ogc-rl-arc, .ogc-rl-green-square):not(.elementor-page) .site-main { max-width: none; margin: 0; padding: 0; }
body:is(.ogc-rl-residential, .ogc-rl-arc, .ogc-rl-green-square):not(.elementor-page) .page-header { display: none; }
