/*
Theme Name: Dream Sun Spain Astra Child
Theme URI: https://dreamsunspain.com/
Description: Native Astra and Spectra real-estate website.
Author: Dream Sun Spain
Template: astra
Version: 1.6.2
Text Domain: dreamsun-astra-child
*/

/* Shared aliases follow the editable Astra global palette. */
:root {
	--dreamsun-navy: var(--ast-global-color-2);
	--dreamsun-teal: var(--ast-global-color-0);
	--dreamsun-sand: var(--ast-global-color-5);
	--dreamsun-ink: var(--ast-global-color-2);
	--dreamsun-gold: var(--ast-global-color-0);
	--dreamsun-gold-deep: var(--ast-global-color-1);
	--dreamsun-paper: var(--ast-global-color-4);
	--dreamsun-charcoal: var(--ast-global-color-6);
}
.dreamsun-section { padding-block: clamp(3rem, 7vw, 6rem); }
.dreamsun-section--sand { background: var(--dreamsun-sand); }
.dreamsun-eyebrow { color: var(--dreamsun-gold-deep); font-weight: 500; }
.dreamsun-button { display: inline-flex; align-items: center; gap: .4rem; background: var(--ast-global-color-2); border-radius: 0; color: var(--ast-global-color-4); font-weight: 500; padding: .85rem 1.5rem; text-decoration: none; transition: background-color .15s ease; }
.dreamsun-button:hover, .dreamsun-button:focus-visible { background: var(--ast-global-color-1); color: var(--ast-global-color-4); }
.wp-block-button.dreamsun-button { background: transparent; padding: 0; }
.dreamsun-hero:not(.ds-hero) { background: var(--dreamsun-charcoal); color: var(--ast-global-color-4); padding: clamp(4rem, 10vw, 8rem) max(1.5rem, calc((100vw - 1160px) / 2)); }
.dreamsun-hero:not(.ds-hero) h1 { color: inherit; }
.dreamsun-copy { max-width: 760px; margin-inline: auto; }
.dreamsun-callout { background: var(--dreamsun-sand); padding: clamp(2rem, 6vw, 5rem); text-align: center; }
.dreamsun-form input:not([type="checkbox"]), .dreamsun-form textarea { border: 1px solid var(--ast-global-color-7); border-radius: 0; padding: .75rem; width: 100%; }
.dreamsun-site-footer { background: var(--dreamsun-navy); color: var(--ast-global-color-4); padding: 2rem 0; }
.dreamsun-site-footer a { color: inherit; }

/* Page spacing, colours and grids are authored in Spectra, not reconstructed here. */
.ds-home :where(p, figure) { margin-block: 0; }
.ds-home :where(.wp-block-uagb-container, .uagb-container-inner-blocks-wrap) { min-width: 0; }
.ds-home .wp-block-image img { display: block; width: 100%; }
.ds-home :where(h1, h2) { text-wrap: balance; }
.ds-home .wp-block-button__link { text-decoration: none; }

/* The scroll-frame compositor is the only layout Spectra cannot provide natively. */
.ds-hero { height: 170svh; margin: 0; position: relative; }
.ds-hero .ds-hero__stage { height: 100svh; position: sticky; top: 0; overflow: hidden; isolation: isolate; }
.ds-hero__stage > .uagb-container-inner-blocks-wrap { position: static !important; }
/* Spectra applies a high-specificity relative position to every direct child. */
.ds-hero .ds-hero__video { height: 100% !important; inset: 0; margin: 0; position: absolute !important; width: 100% !important; z-index: -2; }
.ds-hero .ds-hero__video video { display: block; height: 100% !important; object-fit: cover; width: 100%; }
.ds-hero__stage::after { background: rgb(0 0 0 / .44); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: -1; }
.ds-hero__content { position: relative; width: 100%; }
.ds-hero__content > p { font-size: .875rem; }
.ds-hero__content > p a { text-underline-offset: .4em; }
.ds-hero .dreamsun-property-search { background: var(--ast-global-color-4); color: var(--ast-global-color-2); max-width: 1020px; width: 100%; }
.ds-hero .dreamsun-property-search label { border-right: 1px solid var(--ast-global-color-7); margin: 18px 0; padding: 0 22px; }
.ds-hero .dreamsun-property-search .dreamsun-button { align-self: stretch; min-height: 94px; padding-inline: 28px; }
.ds-hero .dreamsun-property-search :is(input,select) { background: transparent; border: 0; border-radius: 0; box-shadow: none; color: var(--ast-global-color-2); font-family: inherit; font-size: 1rem; min-height: 44px; padding: 0; }
.ds-hero .dreamsun-property-search :where(input,select):focus-visible { outline: 2px solid var(--ast-global-color-1); outline-offset: 2px; }
@media (max-width: 976px) {
	.ds-hero .dreamsun-property-search label { padding-inline: 16px; }
	.ds-hero .dreamsun-property-search .dreamsun-button { padding-inline: 20px; }
}
@media (max-width: 767px) {
	.ds-hero { height: auto; }
	.ds-hero .ds-hero__stage { height: auto; min-height: calc(100svh - 72px); position: relative; }
	.ds-hero .dreamsun-property-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ds-hero .dreamsun-property-search label { border-bottom: 1px solid var(--ast-global-color-7); margin: 0; padding: 12px 16px; }
	.ds-hero .dreamsun-property-search label:nth-child(2) { border-right: 0; }
	.ds-hero .dreamsun-property-search .dreamsun-button { min-height: 78px; padding: 12px; white-space: normal; }
	.ds-hero .dreamsun-property-search label > span { font-size: .65rem; margin-bottom: .15rem; }
}
@media (prefers-reduced-motion: reduce) {
	.ds-hero { height: auto; }
	.ds-hero .ds-hero__stage { position: relative; }
	.dreamsun-button { transition: none; }
}
