/*
Theme Name: Wizzie Child Theme
Theme URI: https://webwizards.com.au
Description: Web Wizards child theme for Divi 5. Site: Caravans WA.
Author: Web Wizards
Author URI: https://webwizards.com.au
Template: Divi
Version: 2.1.0
Text Domain: wizzi-child
*/

/* Our CSS rules (see CLAUDE.md "Styling"):
   - Divi first. Only what Divi's own options cannot do lives here: the dynamic
     components (stock filters, cards, gallery, finance estimate), Gravity Forms,
     the blob shape, hover/motion effects and a few small layout fixes.
   - Target our own classes only (cwa-*), never Divi's generated classes.
   - Every selector is wrapped in :where() and ends in :not(.cwa-z) (a class that is
     never used). That gives every rule exactly one class of specificity (0,1,0): enough
     to beat Divi's element reset (a, div, span...), always lower than the selectors Divi
     generates for Visual Builder settings, so anything set in the builder wins. No !important.
   - Colours and sizes use the Design Variables (var(--gcid-cwa-*) / var(--gvid-cwa-*)),
     with the design value as a fallback for pages that do not print that variable.
*/

/* =========================================================================
   Fonts: self-hosted Barlow + Barlow Condensed (SIL Open Font Licence), subset WOFF2.
   Barlow 400 and Barlow Condensed 700/800 are inlined in <head> by includes/fonts.php.
   ========================================================================= */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-medium.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-bold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlowcondensed-semibold.woff2') format('woff2'); }

/* Local shorthands for the Design Variables (fallback = design value). */
:root
{
	--cwa-blue: var(--gcid-cwa-blue, #16478C);
	--cwa-green: var(--gcid-cwa-green, #6CBD45);
	--cwa-navy: var(--gcid-cwa-navy, #0C2A54);
	--cwa-grey: var(--gcid-cwa-grey, #555656);
	--cwa-text: var(--gcid-cwa-text, #26292B);
	--cwa-tint: var(--gcid-cwa-tint, #F1F5FB);
	--cwa-photo-tint: var(--gcid-cwa-photo-tint, #E4ECF7);
	--cwa-border: var(--gcid-cwa-border, #DDE3EC);
	--cwa-field-border: var(--gcid-cwa-field-border, #A9B4C4);
	--cwa-on-dark: var(--gcid-cwa-on-dark, #DCE6F5);
	--cwa-star: var(--gcid-cwa-star, #FBBC04);
	--cwa-heading: var(--gvid-cwa-font-heading, 'Barlow Condensed'), 'Barlow Condensed', sans-serif;
	--cwa-body: var(--gvid-cwa-font-body, 'Barlow'), 'Barlow', system-ui, sans-serif;
	--cwa-radius-button: var(--gvid-cwa-radius-button, 10px);
	--cwa-radius-card: var(--gvid-cwa-radius-card, 18px);
	--cwa-radius-panel: var(--gvid-cwa-radius-panel, 22px);
	--cwa-blob: 46% 54% 42% 58% / 52% 44% 56% 48%;
	--cwa-ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================================
   Base typography: headings carry no padding of their own (spacing comes from
   the layout's gaps, as in the design). Divi's base sets 10 px on h1-h6.
   ========================================================================= */
:where(h1, h2, h3, h4, h5, h6):not(.cwa-z) { padding-bottom: 0; }

/* =========================================================================
   Base fixes inside our components
   ========================================================================= */
:where(.cwa-component, .cwa-component p, .cwa-pills, .cwa-strip, .cwa-checklist-wrap):not(.cwa-z) { margin: 0; }
:where(.cwa-steps-list, .cwa-timeline):not(.cwa-z) { list-style: none; margin: 0; padding: 0; }
/* Our lists inside Text modules: no Divi bullets or list padding. */
/* :not(ul.cwa-z) = one class + one element, to match Divi's list padding rule (.et-l--footer ul). */
:where(.cwa-pills, .cwa-footer-links, .cwa-checklist, .cwa-highlights__list, .cwa-steps-list, .cwa-timeline):not(ul.cwa-z) { padding: 0; margin: 0; }
:where(.cwa-pills li, .cwa-footer-links li, .cwa-checklist li, .cwa-highlights__list li, .cwa-steps-list li):not(.cwa-z) { list-style: none; }
/* Review cards are blockquotes: no Divi quote border or indent. */
:where(blockquote.cwa-review):not(.cwa-z) { border-left-width: 0; padding-left: 28px; margin: 0; }
:where(.cwa-placeholder):not(.cwa-z) { background: #FFF6CC; color: #5C4800; padding: 0 4px; border-radius: 4px; font-weight: 600; }
:where(.cwa-arrow-link):not(.cwa-z) { font-weight: 700; display: inline-block; padding: 12px 0; text-decoration: none; }
:where(.cwa-arrow-link:hover):not(.cwa-z) { text-decoration: underline; text-underline-offset: 4px; }

/* Lift on hover: cards, tiles, reviews (transform + shadow only, no layout shift). */
:where(.cwa-lift):not(.cwa-z) { transition: transform .25s var(--cwa-ease), box-shadow .25s var(--cwa-ease); }
:where(.cwa-lift:hover, .cwa-lift:focus-within):not(.cwa-z) { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(12, 42, 84, .18); }

/* =========================================================================
   Header and footer
   ========================================================================= */
/* Top bar: "Open six days" on the home page, hours elsewhere (as designed). */
:where(.cwa-topbar__inner):not(.cwa-z) { display: inline; }
:where(.cwa-topbar__home):not(.cwa-z) { display: none; }
:where(.home .cwa-topbar__home):not(.cwa-z) { display: inline; }
:where(.home .cwa-topbar__inner):not(.cwa-z) { display: none; }

:where(.cwa-header):not(.cwa-z) { position: relative; }
:where(.cwa-logo img):not(.cwa-z) { width: 100%; height: auto; }
/* Main menu: 4 px green underline on hover and on the current page. */
/* Divi pads each item 11 px a side; 1 px link margins make the design's 24 px gap (28 px on home). */
:where(.cwa-nav .et-menu > li > a):not(.cwa-z) { margin: 0 1px; }
:where(.cwa-nav .et-menu > li > a):not(.cwa-z) { padding: 12px 0 8px; border-bottom: 4px solid transparent; transition: border-color .2s ease, color .2s ease; }
:where(.cwa-nav .et-menu > li > a:hover):not(.cwa-z) { opacity: 1; border-bottom-color: var(--cwa-green); }
:where(.cwa-nav .et-menu > li.current-menu-item > a, .cwa-nav .et-menu > li.current-page-ancestor > a):not(.cwa-z) { border-bottom-color: var(--cwa-green); }
:where(.home .cwa-nav .et-menu > li > a):not(.cwa-z) { margin: 0 3px; }
:where(.cwa-header-phone):not(.cwa-z) { white-space: nowrap; }

:where(.cwa-footer-links):not(.cwa-z) { list-style: none; margin: 0; padding: 0; }
:where(.cwa-footer-links a):not(.cwa-z) { display: block; padding: 6px 0; text-decoration: none; font-size: 16px; line-height: 1.5; }
:where(.cwa-footer-links a:hover, .cwa-footer-visit a:hover):not(.cwa-z) { text-decoration: underline; }
:where(.cwa-footer-visit p):not(.cwa-z) { padding-bottom: 8px; font-size: 16px; line-height: 1.5; }
:where(.cwa-footer-phone):not(.cwa-z) { display: inline-block; padding: 6px 0; }

/* Phones: sticky call / enquire bar (Divi shows the section on phones only). */
:where(.cwa-mobilebar):not(.cwa-z) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; border-top: 1px solid var(--cwa-border); box-shadow: 0 -6px 20px rgba(12, 42, 84, .15); }
:where(.cwa-mobilebar__inner):not(.cwa-z) { width: 100%; }
/* Each button sits in a wrapper (the flex item): both halves share the bar equally. */
:where(.cwa-mobilebar__inner > *):not(.cwa-z) { flex: 1 1 0; min-width: 0; }
:where(.cwa-mobilebar__call, .cwa-mobilebar__enquire):not(.cwa-z) { display: block; width: 100%; text-align: center; }
/* Full-width buttons (module width 100%): Divi's base rule ".et_pb_module.et_pb_button:not(.et_block_module)"
   caps buttons at max-content and outranks the module's own max-width setting, so lift the cap
   for buttons we marked full-width only (repeated class = enough specificity, no !important). */
.cwa-btn-block.cwa-btn-block.cwa-btn-block:not(.cwa-z) { max-width: 100%; }

/* =========================================================================
   Banners, breadcrumbs, images
   ========================================================================= */
:where(.cwa-breadcrumb):not(.cwa-z) { font-size: 15px; }
:where(.cwa-breadcrumb a):not(.cwa-z) { padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
:where(.cwa-breadcrumb [aria-current]):not(.cwa-z) { font-weight: 700; }
:where(.cwa-breadcrumb--light, .cwa-breadcrumb--light a):not(.cwa-z) { color: var(--cwa-on-dark); }
:where(.cwa-breadcrumb--navy, .cwa-breadcrumb--navy a):not(.cwa-z) { color: var(--cwa-navy); }
:where(.cwa-breadcrumb--dark):not(.cwa-z) { color: var(--cwa-grey); }
:where(.cwa-breadcrumb--dark a):not(.cwa-z) { color: var(--cwa-blue); }

/* The logo-badge "blob" shape (a clip shape Divi cannot draw). */
:where(.cwa-blob img):not(.cwa-z) { display: block; width: calc(100% - 22px); height: 380px; object-fit: cover; object-position: 60% 40%; border-radius: var(--cwa-blob); }
:where(.cwa-blob--shadow img):not(.cwa-z) { box-shadow: 20px 20px 0 0 var(--cwa-green); }
:where(.cwa-blob-bg):not(.cwa-z) { border-radius: var(--cwa-blob); }
:where(.cwa-blob-van__img img):not(.cwa-z) { display: block; width: 100%; height: auto; }

:where(.cwa-photo img):not(.cwa-z) { display: block; width: 100%; object-fit: cover; border-radius: var(--cwa-radius-card); }
:where(.cwa-photo--420 img):not(.cwa-z) { height: 420px; }
:where(.cwa-photo--440 img):not(.cwa-z) { height: 440px; }

/* Home hero: yard photo in the blob on a green blob, video on click. */
:where(.cwa-hero-blob):not(.cwa-z) { border-radius: var(--cwa-blob); }
:where(.cwa-hero-media):not(.cwa-z) { position: relative; height: 440px; margin: -22px 22px 0 -4px; }
:where(.cwa-hero-media__img, .cwa-hero-media .cwa-video__media):not(.cwa-z) { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; border-radius: var(--cwa-blob); background: var(--cwa-navy); }
:where(.cwa-hero-media__label):not(.cwa-z) { position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); background: var(--cwa-navy); color: #FFFFFF; font-weight: 700; font-size: 15px; padding: 7px 16px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
:where(.cwa-video.is-playing .cwa-video__play, .cwa-video.is-playing .cwa-hero-media__label):not(.cwa-z) { display: none; }

/* Play buttons */
:where(.cwa-video__play):not(.cwa-z) { width: 96px; height: 96px; border-radius: 50%; border: 5px solid #FFFFFF; background: var(--cwa-green); display: flex; align-items: center; justify-content: center; padding: 0 0 0 8px; cursor: pointer; transition: transform .25s var(--cwa-ease), box-shadow .25s var(--cwa-ease); }
:where(.cwa-video__play:not([disabled]):hover, .cwa-video__play:focus-visible):not(.cwa-z) { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(108, 189, 69, .35); }
:where(.cwa-video__play[disabled]):not(.cwa-z) { cursor: default; }
:where(.cwa-video__play--hero):not(.cwa-z) { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(12, 42, 84, .45); }
:where(.cwa-video__play--hero:hover, .cwa-video__play--hero:focus-visible):not(.cwa-z) { transform: translate(-50%, -50%) scale(1.06); }
:where(.cwa-video__play svg):not(.cwa-z) { width: 44px; height: 44px; }

/* Explainer video slot (placeholder until filmed). */
:where(.cwa-video--slot):not(.cwa-z) { border-radius: var(--cwa-radius-card); background: var(--cwa-navy); aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
:where(.cwa-video__label):not(.cwa-z) { color: #FFFFFF; font-weight: 700; font-size: 20px; }
:where(.cwa-video__note):not(.cwa-z) { color: var(--cwa-on-dark); font-size: 14px; font-weight: 700; }

/* =========================================================================
   Small pieces: pills, brand strips, steps, checklist, FAQ, reviews
   ========================================================================= */
:where(.cwa-pills):not(ul.cwa-z) { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
:where(.cwa-pills li):not(.cwa-z) { padding: 9px 16px; border-radius: 999px; font-weight: 600; line-height: 1.5; }
:where(.cwa-pills--tint li):not(.cwa-z) { background: var(--cwa-tint); }
:where(.cwa-pills--white li):not(.cwa-z) { background: #FFFFFF; color: var(--cwa-navy); font-weight: 700; font-size: 16px; }
:where(.cwa-pills--glass li):not(.cwa-z) { background: rgba(255, 255, 255, .14); color: #FFFFFF; font-weight: 700; padding: 10px 18px; }

:where(.cwa-strip):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }
:where(.cwa-agents .cwa-strip):not(.cwa-z) { gap: 10px 36px; }
:where(.cwa-strip__label):not(.cwa-z) { font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--cwa-grey); text-transform: uppercase; letter-spacing: .1em; }
:where(.cwa-strip__name):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 28px; font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); line-height: 1.5; }

:where(.cwa-checklist):not(.cwa-z) { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
:where(.cwa-checklist li):not(.cwa-z) { flex: 1 1 260px; background: var(--cwa-blue); color: #FFFFFF; border-radius: 12px; padding: 14px 18px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
:where(.cwa-checklist svg):not(.cwa-z) { flex: 0 0 auto; }

:where(.cwa-faq):not(.cwa-z) { border-top: 1px solid var(--cwa-border); }
:where(.cwa-faq details):not(.cwa-z) { border-bottom: 1px solid var(--cwa-border); padding: 20px 0; }
:where(.cwa-faq summary):not(.cwa-z) { font-size: 21px; font-weight: 700; color: var(--cwa-blue); cursor: pointer; line-height: 1.5; }
:where(.cwa-faq summary:hover):not(.cwa-z) { color: var(--cwa-navy); }
:where(.cwa-faq p):not(.cwa-z) { margin: 12px 0 0; color: var(--cwa-grey); max-width: 800px; padding: 0; }
:where(.cwa-faq details[open] p):not(.cwa-z) { animation: cwa-fade-down .3s var(--cwa-ease); }

:where(.cwa-review__head):not(.cwa-z) { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
:where(.cwa-reviews .cwa-review__head):not(.cwa-z) { margin-bottom: 16px; }
:where(.cwa-avatar):not(.cwa-z) { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; font-family: var(--cwa-heading); font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: var(--cwa-navy); }
:where(.cwa-avatar--green):not(.cwa-z) { background: var(--cwa-green); }
:where(.cwa-avatar--star):not(.cwa-z) { background: var(--cwa-star); }
:where(.cwa-avatar--red):not(.cwa-z) { background: #D9453B; color: #FFFFFF; }
:where(.cwa-review__who):not(.cwa-z) { display: flex; flex-direction: column; line-height: 1.5; }
:where(.cwa-review__name):not(.cwa-z) { font-weight: 700; color: var(--cwa-text); }
:where(.cwa-review__src):not(.cwa-z) { font-size: 14px; color: var(--cwa-grey); }
:where(.cwa-stars):not(.cwa-z) { display: flex; gap: 3px; }
:where(.cwa-review):not(.cwa-z) { margin: 0; quotes: none; }
:where(.cwa-review-count):not(.cwa-z) { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
:where(.cwa-review-count__num):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 96px; font-weight: 800; line-height: .9; color: var(--cwa-star); }
:where(.cwa-review-count__label):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #FFFFFF; }

:where(.cwa-list):not(.cwa-z) { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
:where(.cwa-partner .cwa-list li):not(.cwa-z) { padding: 0; }
:where(.cwa-cil-logo img):not(.cwa-z) { width: 130px; height: 130px; object-fit: contain; }

/* =========================================================================
   Home search and Used caravans filters (dynamic components)
   ========================================================================= */
:where(.cwa-field):not(.cwa-z) { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
:where(.cwa-field label, .cwa-sort label):not(.cwa-z) { font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--cwa-navy); }
:where(.cwa-field select, .cwa-sort select):not(.cwa-z)
{
	height: 50px; padding: 0 40px 0 14px; font: inherit; color: var(--cwa-text); background-color: #FFFFFF;
	border: 1px solid var(--cwa-field-border); border-radius: var(--cwa-radius-button); width: 100%;
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316478C' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; cursor: pointer;
}
:where(.cwa-field select:focus-visible, .cwa-sort select:focus-visible):not(.cwa-z) { outline: 3px solid var(--cwa-navy); outline-offset: 2px; }

:where(.cwa-search):not(.cwa-z) { display: flex; flex-direction: column; gap: 18px; }
:where(.cwa-search__fields):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
:where(.cwa-search__fields .cwa-field):not(.cwa-z) { flex: 1 1 190px; }
:where(.cwa-search__fields select):not(.cwa-z) { height: 52px; }
:where(.cwa-search__submit, .cwa-filters__submit):not(.cwa-z)
{
	flex: 0 0 auto; height: 52px; padding: 0 30px; border: 0; border-radius: var(--cwa-radius-button); cursor: pointer;
	background: var(--cwa-navy); color: #FFFFFF; font-family: var(--cwa-heading); font-size: 21px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .04em; transition: background-color .2s ease, transform .2s ease;
}
:where(.cwa-search__submit:hover, .cwa-filters__submit:hover):not(.cwa-z) { background: var(--cwa-blue); }
:where(.cwa-search__popular):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--cwa-navy); }
:where(.cwa-search__label):not(.cwa-z) { font-weight: 700; margin-right: 4px; }
:where(.cwa-pill):not(.cwa-z) { text-decoration: none; background: #FFFFFF; color: var(--cwa-navy); font-weight: 700; padding: 11px 18px; border-radius: 999px; line-height: 1.5; transition: background-color .2s ease, color .2s ease; }
:where(.cwa-pill:hover):not(.cwa-z) { background: var(--cwa-navy); color: #FFFFFF; }
:where(.cwa-pill--blue):not(.cwa-z) { background: var(--cwa-blue); color: #FFFFFF; }

:where(.cwa-filters):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; color: var(--cwa-navy); }
:where(.cwa-field--make):not(.cwa-z) { flex: 1 1 180px; }
:where(.cwa-field--type):not(.cwa-z) { flex: 1 1 160px; }
:where(.cwa-field--price):not(.cwa-z) { flex: 1 1 130px; }
:where(.cwa-check):not(.cwa-z) { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; height: 50px; font-weight: 700; cursor: pointer; }
:where(.cwa-check input):not(.cwa-z) { width: 22px; height: 22px; accent-color: var(--cwa-navy); }
:where(.cwa-filters__submit):not(.cwa-z) { height: 50px; padding: 0 28px; }

:where(.cwa-stock-head):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
:where(.cwa-stock-head__count):not(.cwa-z) { font-weight: 700; }
:where(.cwa-sort):not(.cwa-z) { display: flex; align-items: center; gap: 14px; }
:where(.cwa-sort label):not(.cwa-z) { color: var(--cwa-grey); }
:where(.cwa-sort select):not(.cwa-z) { height: 44px; width: auto; }

:where(.cwa-stock-more):not(.cwa-z) { text-align: center; }
:where(.cwa-stock__more):not(.cwa-z) { display: inline-block; text-decoration: none; background: var(--cwa-blue); color: #FFFFFF; font-family: var(--cwa-heading); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; line-height: 1.5; padding: 16px 30px; border-radius: var(--cwa-radius-button); transition: background-color .2s ease, color .2s ease; }
:where(.cwa-stock__more:hover):not(.cwa-z) { background: var(--cwa-navy); color: #FFFFFF; }
:where(.cwa-stock__more[aria-busy="true"]):not(.cwa-z) { opacity: .6; pointer-events: none; }
:where(.cwa-stock-empty):not(.cwa-z) { background: var(--cwa-tint); border-radius: var(--cwa-radius-card); padding: 28px; text-align: left; }
:where(.cwa-stock-empty__title):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 30px; font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); }

/* =========================================================================
   Caravan cards (Divi Loop Builder groups)
   ========================================================================= */
:where(.cwa-card):not(.cwa-z) { height: 100%; }
:where(.cwa-card__media):not(.cwa-z) { position: relative; }
:where(.cwa-card__photo):not(.cwa-z) { display: block; height: 190px; background: var(--cwa-photo-tint); overflow: hidden; }
:where(.cwa-card__media--tall .cwa-card__photo):not(.cwa-z) { height: 200px; }
:where(.cwa-card__img):not(.cwa-z) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--cwa-ease); }
:where(.cwa-card:hover .cwa-card__img):not(.cwa-z) { transform: scale(1.04); }
:where(.cwa-card__nophoto):not(.cwa-z) { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--cwa-grey); }
:where(.cwa-tag):not(.cwa-z) { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--cwa-green); color: var(--cwa-navy); font-family: var(--cwa-heading); font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 6px; line-height: 1.4; }
:where(.cwa-tag--sold):not(.cwa-z) { background: var(--cwa-navy); color: #FFFFFF; }
:where(.cwa-card__title a):not(.cwa-z) { text-decoration: none; }
:where(.cwa-card__title a:hover):not(.cwa-z) { text-decoration: underline; text-underline-offset: 3px; }
:where(.cwa-card__actions-wrap):not(.cwa-z) { margin-top: auto; padding-top: 14px; }
:where(.cwa-card__actions):not(.cwa-z) { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
:where(.cwa-btn-sm):not(.cwa-z) { flex: 1 1 0; text-decoration: none; text-align: center; font-weight: 700; padding: 13px 10px; border-radius: var(--cwa-radius-button); line-height: 1.5; transition: background-color .2s ease, color .2s ease; }
:where(.cwa-btn-sm--primary):not(.cwa-z) { background: var(--cwa-blue); color: #FFFFFF; }
:where(.cwa-btn-sm--primary:hover):not(.cwa-z) { background: var(--cwa-navy); color: #FFFFFF; }
:where(.cwa-btn-sm--outline):not(.cwa-z) { color: var(--cwa-blue); border: 2px solid var(--cwa-blue); padding: 11px 10px; }
:where(.cwa-btn-sm--outline:hover):not(.cwa-z) { background: var(--cwa-blue); color: #FFFFFF; }
:where(.cwa-btn-sm--full):not(.cwa-z) { flex-basis: 100%; padding: 13px 16px; }
:where(.cwa-card__sold):not(.cwa-z) { flex: 1 1 0; font-weight: 700; color: var(--cwa-grey); font-size: 15px; }
:where(.cwa-card__finance p:empty):not(.cwa-z) { display: none; }

/* Home buy / sell tiles: van cut-out contained in the coloured area. */
:where(.cwa-tile-card__van img):not(.cwa-z) { display: block; max-width: 100%; max-height: 272px; width: auto; margin: 0 auto; object-fit: contain; }

/* =========================================================================
   Single listing
   ========================================================================= */
:where(.cwa-gallery):not(.cwa-z) { display: flex; flex-direction: column; gap: 12px; }
:where(.cwa-gallery__stage):not(.cwa-z) { position: relative; }
:where(.cwa-gallery__stage .cwa-tag):not(.cwa-z) { top: 18px; left: 18px; font-size: 18px; padding: 5px 14px; }
:where(.cwa-gallery__main):not(.cwa-z) { display: block; width: 100%; height: 520px; padding: 0; border: 0; border-radius: var(--cwa-radius-card); overflow: hidden; background: var(--cwa-photo-tint); cursor: zoom-in; }
:where(.cwa-gallery__img):not(.cwa-z) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--cwa-ease); }
:where(.cwa-gallery__main:hover .cwa-gallery__img):not(.cwa-z) { transform: scale(1.02); }
:where(.cwa-gallery--empty .cwa-gallery__main):not(.cwa-z) { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--cwa-grey); position: relative; cursor: default; }
:where(.cwa-gallery__thumbs):not(.cwa-z) { display: flex; gap: 12px; }
:where(.cwa-gallery__thumb):not(.cwa-z) { position: relative; flex: 1 1 0; min-width: 0; height: 96px; padding: 0; border: 0; border-radius: var(--cwa-radius-button); overflow: hidden; background: var(--cwa-photo-tint); cursor: pointer; outline-offset: 2px; }
:where(.cwa-gallery__thumb img):not(.cwa-z) { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
:where(.cwa-gallery__thumb:hover img):not(.cwa-z) { opacity: .85; }
:where(.cwa-gallery__thumb[aria-current="true"]):not(.cwa-z) { box-shadow: 0 0 0 3px var(--cwa-green); }
:where(.cwa-gallery__thumb--more span):not(.cwa-z) { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(12, 42, 84, .62); color: #FFFFFF; font-size: 15px; font-weight: 700; }

:where(.cwa-cil):not(.cwa-z) { display: flex; align-items: center; gap: 16px; text-decoration: none; border: 1px solid var(--cwa-border); border-radius: 14px; padding: 14px 16px; color: var(--cwa-text); background: #FFFFFF; transition: border-color .2s ease, box-shadow .2s ease; }
:where(.cwa-cil:hover):not(.cwa-z) { border-color: var(--cwa-blue); box-shadow: 0 8px 20px rgba(12, 42, 84, .12); }
:where(.cwa-cil img):not(.cwa-z) { flex: 0 0 auto; width: 96px; height: 96px; object-fit: contain; }
:where(.cwa-cil__sub):not(.cwa-z) { color: var(--cwa-grey); }

:where(.cwa-price):not(.cwa-z) { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
:where(.cwa-price__amount):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 72px; font-weight: 800; color: var(--cwa-blue); line-height: .9; }
:where(.cwa-price__note):not(.cwa-z) { font-weight: 700; color: var(--cwa-grey); }

:where(.cwa-keyspecs):not(.cwa-z) { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
:where(.cwa-keyspecs__item):not(.cwa-z) { flex: 1 1 130px; min-width: 0; background: var(--cwa-tint); border-radius: 12px; padding: 12px 14px; }
:where(.cwa-keyspecs dt):not(.cwa-z) { display: block; font-size: 14px; font-weight: 600; color: var(--cwa-grey); }
:where(.cwa-keyspecs dd):not(.cwa-z) { margin: 0; font-size: 19px; font-weight: 700; }

:where(.cwa-btn-block):not(.cwa-z) { display: block; width: 100%; text-align: center; }

:where(.cwa-finance):not(.cwa-z) { border: 2px solid var(--cwa-green); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
:where(.cwa-finance__top):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
:where(.cwa-finance__title):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 24px; font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); line-height: 1; }
:where(.cwa-finance__toggle, .cwa-finance__terms):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:where(.cwa-finance button):not(.cwa-z) { border: 2px solid var(--cwa-blue); border-radius: 999px; padding: 8px 16px; min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; background: #FFFFFF; color: var(--cwa-blue); transition: background-color .2s ease, color .2s ease; }
:where(.cwa-finance button[aria-pressed="true"]):not(.cwa-z) { background: var(--cwa-blue); color: #FFFFFF; }
:where(.cwa-finance__figure):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
:where(.cwa-finance__amount):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 60px; font-weight: 800; color: var(--cwa-blue); line-height: .9; }
:where(.cwa-finance__per):not(.cwa-z) { font-size: 19px; font-weight: 700; }
:where(.cwa-finance__label):not(.cwa-z) { font-size: 15px; font-weight: 700; color: var(--cwa-grey); margin-right: 4px; }
:where(.cwa-finance__note):not(.cwa-z) { margin: 0; font-size: 14px; color: var(--cwa-grey); }
:where(.cwa-finance__quote):not(.cwa-z) { text-decoration: none; text-align: center; background: var(--cwa-blue); color: #FFFFFF; font-weight: 700; padding: 14px 16px; border-radius: var(--cwa-radius-button); transition: background-color .2s ease; }
:where(.cwa-finance__quote:hover):not(.cwa-z) { background: var(--cwa-navy); color: #FFFFFF; }

:where(.cwa-highlights):not(.cwa-z) { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
:where(.cwa-highlights__label):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 26px; font-weight: 800; text-transform: uppercase; color: var(--cwa-green); }
:where(.cwa-highlights__list):not(.cwa-z) { display: contents; list-style: none; margin: 0; padding: 0; }
:where(.cwa-highlights__list li):not(.cwa-z) { list-style: none; font-family: var(--cwa-heading); font-size: 26px; font-weight: 700; text-transform: uppercase; color: #FFFFFF; padding: 0; }
:where(.cwa-highlights-band:has(.cwa-component:empty)):not(.cwa-z) { display: none; }

:where(.cwa-spec-table):not(.cwa-z) { margin: 0; border-top: 1px solid var(--cwa-border); }
:where(.cwa-spec-table div):not(.cwa-z) { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--cwa-border); }
:where(.cwa-spec-table dt):not(.cwa-z) { color: var(--cwa-grey); }
:where(.cwa-spec-table dd):not(.cwa-z) { margin: 0; font-weight: 700; text-align: right; }

:where(.cwa-features):not(.cwa-z) { display: flex; flex-wrap: wrap; gap: 16px; }
:where(.cwa-features__card):not(.cwa-z) { flex: 1 1 280px; min-width: 0; border: 1px solid var(--cwa-border); border-radius: var(--cwa-radius-card); padding: 24px; }
:where(.cwa-features__title):not(.cwa-z) { margin: 0 0 10px; font-family: var(--cwa-heading); font-size: 26px; font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); }
:where(.cwa-features__card ul):not(.cwa-z) { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--cwa-text); }
:where(.cwa-features__card li):not(.cwa-z) { padding: 0; }
:where(.cwa-features__more):not(.cwa-z) { margin-top: 16px; }
:where(.cwa-features__more summary):not(.cwa-z) { font-weight: 700; color: var(--cwa-blue); padding: 12px 0; cursor: pointer; list-style: none; }
:where(.cwa-features__more summary::-webkit-details-marker):not(.cwa-z) { display: none; }
:where(.cwa-features__more[open] summary):not(.cwa-z) { margin-bottom: 12px; }
:where(.cwa-form-title):not(.cwa-z) { margin: 0; padding: 0; font-family: var(--cwa-heading); font-size: var(--gvid-cwa-card-title, 34px); font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); line-height: 1; }
:where(.cwa-form-sub):not(.cwa-z) { margin: 16px 0 0; color: var(--cwa-grey); }

/* Lightbox */
:where(.cwa-noscroll):not(.cwa-z) { overflow: hidden; }
:where(.cwa-lightbox):not(.cwa-z) { position: fixed; inset: 0; z-index: 100000; background: rgba(6, 18, 38, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: cwa-fade .2s ease; }
:where(.cwa-lightbox__figure):not(.cwa-z) { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; }
:where(.cwa-lightbox__figure img):not(.cwa-z) { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
:where(.cwa-lightbox__count):not(.cwa-z) { color: #FFFFFF; font-weight: 700; }
:where(.cwa-lightbox button):not(.cwa-z) { background: rgba(255, 255, 255, .12); color: #FFFFFF; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 34px; line-height: 1; cursor: pointer; justify-self: center; }
:where(.cwa-lightbox button:hover, .cwa-lightbox button:focus-visible):not(.cwa-z) { background: var(--cwa-green); color: var(--cwa-navy); }
:where(.cwa-lightbox__close):not(.cwa-z) { position: absolute; top: 16px; right: 16px; }
:where(.cwa-lightbox__prev):not(.cwa-z) { grid-column: 1; }
:where(.cwa-lightbox__next):not(.cwa-z) { grid-column: 3; }

/* =========================================================================
   Contact page
   ========================================================================= */
:where(.cwa-hours):not(.cwa-z) { margin: 0; border-top: 1px solid var(--cwa-border); }
:where(.cwa-hours div):not(.cwa-z) { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--cwa-border); }
:where(.cwa-hours dd):not(.cwa-z) { margin: 0; font-weight: 700; }
:where(.cwa-strong-link):not(.cwa-z) { font-weight: 700; }
:where(.cwa-bigphone):not(.cwa-z) { text-decoration: none; white-space: nowrap; transition: opacity .2s ease; }
:where(.cwa-bigphone:hover):not(.cwa-z) { opacity: .85; }

:where(.cwa-map):not(.cwa-z) { position: relative; height: 420px; border-radius: var(--cwa-radius-card); background: var(--cwa-photo-tint); overflow: hidden; }
:where(.cwa-map__load):not(.cwa-z) { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 24px; font: inherit; font-weight: 700; color: var(--cwa-grey); cursor: pointer; text-align: center; }
:where(.cwa-map__load:hover .cwa-map__title):not(.cwa-z) { color: var(--cwa-blue); text-decoration: underline; }
:where(.cwa-map__frame):not(.cwa-z) { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
:where(.cwa-map.is-loaded .cwa-map__load):not(.cwa-z) { display: none; }

/* =========================================================================
   Gravity Forms (Divi cannot style GF fields). Orbital theme via its CSS
   variables, so nothing fights the plugin.
   ========================================================================= */
.cwa-gform :where(.gform-theme--orbital, .gform_wrapper):not(.cwa-z)
{
	--gf-font-family-base: var(--cwa-body);
	--gf-color-primary: var(--cwa-navy);
	--gf-color-in-ctrl: #FFFFFF;
	--gf-color-in-ctrl-contrast: var(--cwa-text);
	--gf-color-in-ctrl-dark: var(--cwa-text);
	--gf-color-out-ctrl-dark: var(--cwa-text);
	--gf-color-danger: #B3261E;
	--gf-radius: 10px;
	--gf-ctrl-size: 50px;
	--gf-ctrl-radius: 10px;
	--gf-ctrl-font-size: 17px;
	--gf-ctrl-padding-x: 14px;
	--gf-ctrl-bg-color: #FFFFFF;
	--gf-ctrl-border-color: var(--cwa-field-border);
	--gf-ctrl-border-width: 1px;
	--gf-ctrl-border-color-focus: var(--cwa-blue);
	--gf-ctrl-shadow: none;
	--gf-ctrl-accent-color: var(--cwa-navy);
	--gf-ctrl-label-color-primary: var(--cwa-text);
	--gf-ctrl-label-font-size-primary: 15px;
	--gf-ctrl-label-font-weight-primary: 700;
	--gf-ctrl-desc-color: var(--cwa-grey);
	--gf-ctrl-desc-font-size: 15px;
	--gf-ctrl-btn-size: 54px;
	--gf-ctrl-btn-radius: 10px;
	--gf-ctrl-btn-padding-x: 30px;
	--gf-ctrl-btn-font-family: var(--cwa-heading);
	--gf-ctrl-btn-font-size: 22px;
	--gf-ctrl-btn-font-weight: 800;
	--gf-ctrl-btn-text-transform: uppercase;
	--gf-ctrl-btn-letter-spacing: .04em;
	--gf-ctrl-btn-bg-color-primary: var(--cwa-green);
	--gf-ctrl-btn-bg-color-hover-primary: var(--cwa-navy);
	--gf-ctrl-btn-color-primary: var(--cwa-navy);
	--gf-ctrl-file-zone-border-style: dashed;
	--gf-ctrl-file-zone-radius: 12px;
	--gf-ctrl-file-zone-padding-y: 16px;
	--gf-ctrl-file-zone-padding-x: 18px;
	--gf-ctrl-file-zone-color: var(--cwa-grey);
	--gf-ctrl-file-zone-icon-color: var(--cwa-blue);
	--gf-form-gap-y: 14px;
	--gf-form-gap-x: 14px;
	--gf-field-row-gap: 14px;
	--gf-label-space-primary: 6px;
}
:where(.cwa-gform--btn-navy .gform-theme--orbital, .cwa-gform--btn-navy .gform_wrapper):not(.cwa-z) { --gf-ctrl-btn-bg-color-primary: var(--cwa-navy); --gf-ctrl-btn-color-primary: #FFFFFF; --gf-ctrl-btn-bg-color-hover-primary: var(--cwa-blue); }

/* Gravity Forms internals (not Divi Visual Builder settings): selectors are .cwa-gform :where(...) so they
   beat GF's own reset (.gform-theme--framework :where(...) { revert }), which loads after this file.
   The heading above each form is a Divi Heading module; GF's own title is not shown. */
.cwa-gform :where(.gform_heading):not(.cwa-z) { display: none; }
.cwa-gform :where(.gform_footer):not(.cwa-z) { margin-top: 16px; padding: 0; }
.cwa-gform :where(.gform_footer .gform_button):not(.cwa-z) { width: 100%; flex: 1 1 100%; justify-content: center; }
/* Required fields are marked by "(optional)" on the others, as designed; the GF marker stays for screen readers. */
.cwa-gform :where(.gfield_required):not(.cwa-z) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cwa-gform :where(.gfield_label, .gform-field-label):not(.cwa-z) { line-height: 1.5; }
/* Compact photo drop zone (design: icon, text and button in one row). */
.cwa-gform :where(.gform_fileupload_multifile .gform_drop_area):not(.cwa-z)
{
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; text-align: left;
	background: var(--cwa-tint); border: 2px dashed var(--cwa-field-border); border-radius: 12px; padding: 16px 18px;
}
.cwa-gform :where(.gform_drop_area .gform_drop_instructions):not(.cwa-z) { margin: 0; font-size: 15px; color: var(--cwa-grey); }
.cwa-gform :where(.gform_drop_area::before):not(.cwa-z) { font-size: 30px; margin: 0; color: var(--cwa-blue); }
.cwa-gform :where(.gform_drop_area .gform_button_select_files):not(.cwa-z) { background: #FFFFFF; color: var(--cwa-blue); border: 2px solid var(--cwa-blue); font-family: var(--cwa-body); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 6px 14px; border-radius: 8px; min-height: 0; }
.cwa-gform :where(.gform_drop_area .gform_button_select_files:hover):not(.cwa-z) { background: var(--cwa-blue); color: #FFFFFF; }
.cwa-gform :where(.gform_fileupload_rules):not(.cwa-z) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cwa-gform :where(.gfield_description):not(.cwa-z) { padding-top: 6px; font-size: 15px; }
/* Message boxes: 3 rows as designed (4 on the Contact page). */
body .cwa-gform .gfield :where(textarea):not(.cwa-z) { block-size: 103px; min-block-size: 103px; resize: vertical; }
body .cwa-gform .cwa-form--contact .gfield :where(textarea):not(.cwa-z) { block-size: 128px; }
.cwa-gform :where(.ginput_container_consent):not(.cwa-z) { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
:where(.cwa-form-confirmation):not(.cwa-z) { margin: 0; padding: 18px 20px; background: var(--cwa-tint); border-left: 6px solid var(--cwa-green); border-radius: 12px; font-size: 19px; font-weight: 600; color: var(--cwa-text); }
:where(.cwa-form-error):not(.cwa-z) { font-size: 17px; }

/* =========================================================================
   Motion: gentle reveals for our own components (Divi animates modules),
   and a calm page for anyone who prefers reduced motion.
   ========================================================================= */
@keyframes cwa-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cwa-fade-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

:where(.cwa-js-reveal .cwa-reveal):not(.cwa-z) { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--cwa-ease), transform .6s var(--cwa-ease); }
:where(.cwa-js-reveal .cwa-reveal.is-visible):not(.cwa-z) { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce)
{
	:where(.cwa-lift, .cwa-card__img, .cwa-gallery__img, .cwa-video__play):not(.cwa-z) { transition: none; }
	:where(.cwa-lift:hover, .cwa-lift:focus-within):not(.cwa-z) { transform: none; }
	:where(.cwa-card:hover .cwa-card__img, .cwa-gallery__main:hover .cwa-gallery__img):not(.cwa-z) { transform: none; }
	:where(.cwa-js-reveal .cwa-reveal):not(.cwa-z) { opacity: 1; transform: none; }
}

/* =========================================================================
   Responsive (Divi breakpoints: tablet <= 980 px, phone <= 767 px)
   ========================================================================= */
@media (max-width: 980px)
{
	:where(.cwa-hero-media):not(.cwa-z) { height: 360px; }
	:where(.cwa-gallery__main):not(.cwa-z) { height: 420px; }
	:where(.cwa-price__amount):not(.cwa-z) { font-size: 60px; }
}

@media (max-width: 767px)
{
	:where(body):not(.cwa-z) { padding-bottom: 76px; }
	:where(.cwa-hero-media):not(.cwa-z) { height: 280px; margin: -16px 16px 0 -4px; }
	:where(.cwa-blob img):not(.cwa-z) { height: 280px; width: calc(100% - 16px); }
	:where(.cwa-blob--shadow img):not(.cwa-z) { box-shadow: 14px 14px 0 0 var(--cwa-green); }
	:where(.cwa-photo--420 img, .cwa-photo--440 img):not(.cwa-z) { height: 280px; }
	:where(.cwa-gallery__main):not(.cwa-z) { height: 280px; }
	:where(.cwa-gallery__thumb):not(.cwa-z) { height: 64px; }
	:where(.cwa-strip__name):not(.cwa-z) { font-size: 24px; }
	:where(.cwa-review-count__num):not(.cwa-z) { font-size: 72px; }
	:where(.cwa-search__submit, .cwa-filters__submit):not(.cwa-z) { width: 100%; }
	:where(.cwa-price__amount):not(.cwa-z) { font-size: 52px; }
	:where(.cwa-finance__amount):not(.cwa-z) { font-size: 48px; }
	:where(.cwa-lightbox):not(.cwa-z) { grid-template-columns: 44px 1fr 44px; }
	:where(.cwa-lightbox button):not(.cwa-z) { width: 40px; height: 40px; font-size: 26px; }
}