/* Child Theme - Custom CSS File for Buyers to Modify */

/* Hide the header-banner property search form on single-property pages only.
   The form lives in the shared "Header Hotel Inner Pages" template (Elementor
   element 679f927), so it is scoped to .single-property to leave the booking
   page and other inner pages untouched. */
.single-property .elementor-element-679f927 {
	display: none !important;
}

/* Hide only the "Discover Your Home Away From Home" title (Elementor heading
   widget 65e9541) on the property detail and booking detail pages. The heading
   widget only — NOT its container d9bc331, which provides the header band's
   background/height. Scoped by body class so other inner pages keep the title. */
.single-property .elementor-element-65e9541,
.bedzy-booking-page .elementor-element-65e9541 {
	display: none !important;
}

/* Fallback background for the "ultra" property cards (Featured / Latest
   additions carousels). The card image is applied as an inline
   background-image on .rhea-ultra-property-card-three, and the property title
   is rendered in white on top of it. When a property has no featured image,
   there is no background and the white title becomes invisible, so the card
   looks blank. This solid fallback colour sits UNDER the background-image, so
   cards WITH an image are unaffected (the image paints over it), while
   image-less properties still show a coloured card with a readable title. */
.rhea-ultra-property-card-three {
	background-color: #2c3e50;
}

/* ------------------------------------------------------------------
   Footer bottom bar (Elementor section ca46555) — layout polish.

   Structure: a 50/50 row. Left column (90ddadf) stacks three heading
   widgets — the agency/RNAVT line, the copyright line (d376d34) and
   "Made with by Logrise". Right column (0ff69aa) holds the social
   icons. Out of the box the text sits hard-left and the icons hard-
   right, the two are misaligned vertically, and the three lines are
   cramped with no hierarchy. This keeps the left/right split (per the
   chosen direction) but adds a divider above the bar, vertically
   centres the two sides against each other, relaxes the line spacing,
   and lightly emphasises the copyright. Presentation only. */

/* Divider + breathing room separating the bar from the row above. */
.elementor-element-ca46555 {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	margin-top: 8px;
	padding-top: 22px;
}

/* Vertically centre the legal text block against the social icons, and
   anchor the bar so the icons can be pinned right while the text centres
   across the FULL width. */
.elementor-element-ca46555 > .e-con-inner {
	align-items: center !important;
	position: relative;
}

/* Left column: span the full bar width and centre the three legal lines,
   so the text sits in the true centre of the footer (not just the left
   half of the old 50/50 split). */
.elementor-element-90ddadf {
	width: 100% !important;
	text-align: center;
}
.elementor-element-90ddadf .elementor-heading-title {
	text-align: center !important;
}

/* Left column: relax spacing between the three lines, calm the colour,
   keep the type readable. !important guards against Elementor's own
   per-widget typography CSS, which has equal specificity. */
.elementor-element-90ddadf .elementor-widget-heading:not(:last-child) {
	margin-bottom: 7px;
}
.elementor-element-90ddadf .elementor-heading-title {
	font-size: 14px !important;
	line-height: 1.55 !important;
	color: #6b7280 !important;
}

/* Give the copyright line (middle heading d376d34) a touch more weight. */
.elementor-element-d376d34 .elementor-heading-title {
	color: #374151 !important;
	font-weight: 600 !important;
}

/* Right column: pin the icons to the right edge, vertically centred and
   out of flow, so they don't push the centred text off-centre. */
.elementor-element-0ff69aa {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: auto !important;
}
.elementor-element-0ff69aa .elementor-widget-container {
	display: flex;
	justify-content: flex-end;
}

/* Small screens: return the icons to normal flow, centred below the text. */
@media (max-width: 767px) {
	.elementor-element-ca46555 > .e-con-inner {
		flex-direction: column;
		text-align: center;
		gap: 14px;
	}
	.elementor-element-0ff69aa {
		position: static;
		transform: none;
		width: 100% !important;
	}
	.elementor-element-0ff69aa .elementor-widget-container {
		justify-content: center;
	}
}

/* Booking-form container (Elementor sticky column b7b6629) on the property
   detail page — present it as a clean, self-contained card: soft border,
   rounded corners, white surface, inner padding so the fields aren't cramped
   against the edge, and a gentle shadow to lift it off the page. */
.elementor-element-b7b6629 {
	border: 1px solid rgba(0, 0, 0, 0.10);
	border-radius: 14px;
	background: #fff;
	padding: 28px 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ------------------------------------------------------------------
   Search-form "processing" state (see js/child-custom.js).

   On submit the form gets .bedzy-searching. The search button then shows
   a spinner in place of its label and stops responding to further clicks,
   and the whole form dims slightly + shows a wait cursor, so the user gets
   clear feedback that the (slow) availability search is running and does
   not spam the Search button. */

/* Button: keep its size, swap the label for a centred spinner, block clicks. */
.rhea_search_form.bedzy-searching .rhea_search_form_button {
	position: relative;
	pointer-events: none;
	cursor: progress;
}

/* Hide the label but keep it occupying space so the button doesn't collapse. */
.rhea_search_form.bedzy-searching .rhea_search_form_button > span {
	visibility: hidden;
}

/* Spinning ring centred over the button. currentColor picks up the button
   text colour, so it stays visible whatever the button background is. */
.rhea_search_form.bedzy-searching .rhea_search_form_button::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: bedzy-search-spin 0.6s linear infinite;
}

/* Dim the fields and show a wait cursor while the search runs. */
.rhea_search_form.bedzy-searching {
	cursor: progress;
}
.rhea_search_form.bedzy-searching .rhea_top_search_fields,
.rhea_search_form.bedzy-searching .rhea_advanced_expander {
	opacity: 0.6;
	pointer-events: none;
}

@keyframes bedzy-search-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Home category cards (Villas / Apartments / Houses): move "Houses" to the middle.
   DOM order is Villas, Apartments, Houses; reorder to Villas, Houses, Apartments. */
.elementor-element-3ad6b84 > .e-con-inner > .elementor-element-5d21337 {
	order: 1; /* Villas */
}
.elementor-element-3ad6b84 > .e-con-inner > .elementor-element-5ff68e3 {
	order: 2; /* Houses */
}
.elementor-element-3ad6b84 > .e-con-inner > .elementor-element-bf36c64 {
	order: 3; /* Apartments */
}

/* Beds24 CRM policy sections (child theme).
   Rendered on the single property page (both cancellation + general policy,
   beneath the booking area) and in the Quick Details lightbox (cancellation
   only). See bedzy_property_policy_section() in functions.php. */
.bedzy-policies {
	margin-top: 32px;
}
.bedzy-policy + .bedzy-policy {
	margin-top: 24px;
}
.bedzy-policy__body {
	line-height: 1.7;
	word-break: break-word;
}
.card-additional-info .bedzy-policy {
	margin-top: 24px;
	/* Breathing room so the policy text does not butt against the popup edge. */
	padding-bottom: 24px;
}
/* Full-page policies section spacing (appended after Property Rules). */
.property-bedzy-policies {
	margin-top: 32px;
}

/* Always show the RealHomes "Single Property Video" Elementor widget,
   overriding the property template's per-device "Hide On" toggles
   (elementor-hidden-desktop/laptop/tablet/mobile). Targets the widget type
   class, not the per-widget id, so it survives template rebuilds. */
.elementor-widget-rhea-ultra-single-property-video {
	display: block !important;
}

/* Stop the "Ultra Properties" carousel/grid widget from shrink-wrapping.

   The home page's "Latest additions" and "Featured properties" widgets sit in
   Elementor containers whose .e-con-inner is a column flexbox with
   align-items:center. That centring makes the widget a shrink-to-fit flex item
   instead of stretching to the container width, so its width is driven by its
   content rather than the 1205px container. With several properties the
   content is wide and it happens to look right; with one property it collapses
   to the card's min-content width (~120px), Owl Carousel then measures that
   and sizes each slide to ~99px, and the card renders as a narrow strip with
   the title wrapping one letter per line.

   align-self:stretch opts this widget out of the parent's align-items:center
   so it fills the container's width on the cross axis; width:100% covers the
   same case for any non-flex ancestor. Owl reads the corrected width when it
   initialises, so slides get their proper share (e.g. ~388px at 3-up). A
   properties list is always meant to span its container, so this is safe for
   every instance of the widget — and it also stops the grid/list layouts of
   the same widget collapsing in a centred container.

   Paired with bedzy_disable_carousel_loop_when_sparse() in functions.php,
   which stops Owl cloning the lone property to pad the infinite loop. */
.elementor .elementor-widget-rhea-ultra-properties-widget-1 {
	width: 100%;
	align-self: stretch;
}

/* Centre the properties carousel when there are too few cards to fill the row.

   Owl lays the slides out inside .owl-stage, whose width is (slides x slot
   width). With a single property that is one ~415px slot inside a 1224px
   container, so the card sits hard left with a wide empty gap beside it. Auto
   side margins centre the stage within .owl-stage-outer, lining the card up
   with the section heading above it.

   This is self-limiting: as soon as the properties fill or overflow the row,
   the stage is at least as wide as its container, there is no free space for
   the auto margins to distribute, and they resolve to 0 — so a full carousel
   stays left-aligned and pages normally. Owl positions the stage with
   translate3d on top of this layout position, so dragging and paging are
   unaffected. */
.elementor .elementor-widget-rhea-ultra-properties-widget-1 .owl-stage {
	margin-left: auto;
	margin-right: auto;
}
