/* Ray White national-site review direction.
   Based on the current raywhite.com page system: warm paper, flat stone and
   white surfaces, fine grey rules, unshadowed cards and restrained yellow.
   The homepage-style frosted treatment is retained only over hero imagery. */

:root[data-brand-variant='corporate'],
:root[data-brand-variant='corporate'][data-theme='dark'] {
  --yellow: #ffe512;
  --yellow-d: #f4d900;
  --black: #595959;
  --grey-900: #494949;
  --grey-800: #595959;
  --grey-700: #6b6762;
  --grey-600: #959595;
  --grey-500: #b1b1b1;
  --accent-yellow: #ffe512;
  --accent-yellow-hover: #f4d900;
  --bg-page: #faf9f2;
  --bg-section-alt: #efeee3;
  --bg-card: transparent;
  --bg-card-raised: #ffffff;
  --bg-input: #ffffff;
  --bg-toggle-group: transparent;
  --bg-coach: #efeee3;
  --bg-glass: rgb(250 249 242 / 94%);
  --bg-glass-strong: #ffffff;
  --surface-tint: #efeee3;
  --surface-highlight: #ffffff;
  --surface-glow: rgb(255 229 18 / 18%);
  --text-primary: #595959;
  --text-secondary: #595959;
  --text-muted: #6b6762;
  --text-faint: #959595;
  --text-accent: #595959;
  --text-on-yellow: #595959;
  --border-subtle: rgb(89 89 89 / 18%);
  --border-medium: #959595;
  --border-strong: #595959;
  --border-yellow: #ffe512;
  --border-yellow-strong: #ffe512;
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-modal: none;
  --focus-ring: #595959;
  --map-bg: #efeee3;
  --map-polygon-stroke: #ffffff;
  --tooltip-bg: #ffffff;
  --tooltip-border: #959595;
  --nav-bg: #faf9f2;
  --nav-border: rgb(89 89 89 / 18%);
  --overlay-bg: rgb(73 73 73 / 72%);
  --legend-bg: #ffffff;
  --growth-negative: #6b6762;
  --growth-floor: #efeee3;
  --growth-low: #d9ddcb;
  --growth-mid: #b1b1b1;
  --growth-high: #6b6762;
  --growth-peak: #595959;
}

:root[data-brand-variant='corporate'] body {
  color: var(--text-primary);
  background: #faf9f2;
}

/* The national site has no dark presentation. Keep this review deterministic. */
:root[data-brand-variant='corporate'] [data-rwsc-theme-toggle] {
  display: none;
}

/* Navigation: transparent over the photo, flat paper once scrolled. */
:root[data-brand-variant='corporate'] .site-nav:not(.is-scrolled) {
  background: transparent;
}

:root[data-brand-variant='corporate'] .site-nav.is-scrolled {
  border-color: var(--nav-border);
  background: #faf9f2;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-brand-variant='corporate'] .site-nav.is-scrolled :is(
    .nav-brand-text .office,
    .nav-brand-text .centenary
  ) {
  color: #595959;
  text-shadow: none;
}

:root[data-brand-variant='corporate'] .site-nav .nav-cta {
  color: #595959;
  border-color: #ffe512;
  border-radius: 999px;
  background: #ffe512;
  box-shadow: none;
}

:root[data-brand-variant='corporate'] .nav-menu-link {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* The homepage is the one place Ray White uses a frosted panel over imagery. */
:root[data-brand-variant='corporate'] .hero::after {
  background: rgb(20 20 20 / 14%);
}

:root[data-brand-variant='corporate'] .hero-photo-overlay {
  background: rgb(20 20 20 / 30%);
}

:root[data-brand-variant='corporate'] .hero-journey-panel {
  border-color: rgb(255 255 255 / 34%);
  background: rgb(35 31 29 / 48%);
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(0.82);
  -webkit-backdrop-filter: blur(24px) saturate(0.82);
}

:root[data-brand-variant='corporate'] .hero-sidebar {
  border-color: rgb(255 255 255 / 28%);
  background: rgb(35 31 29 / 58%);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-brand-variant='corporate'] .hero-live-dot {
  box-shadow: none;
}

/* Flat page rhythm: paper, stone, white. */
:root[data-brand-variant='corporate'] :is(
    .campaign-quick-actions,
    .grid-section,
    .worthish-section,
    .contacts-section,
    .property-showcase-section
  ) {
  background: #faf9f2;
}

:root[data-brand-variant='corporate'] :is(
    .partner-strip,
    .map-section,
    .rea-press-aside,
    .booking-section
  ) {
  background: #efeee3;
}

:root[data-brand-variant='corporate'] .grid-section::before,
:root[data-brand-variant='corporate'] .property-showcase-section::before {
  display: none;
}

:root[data-brand-variant='corporate'] .campaign-quick-actions-links a {
  border-radius: 999px;
  box-shadow: none;
}

:root[data-brand-variant='corporate'] .campaign-quick-action-primary {
  color: #595959;
  background: #ffe512;
}

:root[data-brand-variant='corporate'] .campaign-quick-action-secondary {
  color: #595959;
  border: 1px solid #595959;
  background: transparent;
}

/* Image chapter: a solid paper panel, not liquid glass. */
:root[data-brand-variant='corporate'] .hbs-overlay {
  background: rgb(20 20 20 / 10%);
}

:root[data-brand-variant='corporate'] .hbs-keyline {
  background: #ffe512;
}

:root[data-brand-variant='corporate'] .hbs-content {
  color: #595959;
  border-radius: 0;
  background: #faf9f2;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-brand-variant='corporate'] :is(
    .hbs-chapter,
    .hbs-headline,
    .hbs-sub,
    .hbs-source,
    .hbs-source a
  ) {
  color: #595959;
}

:root[data-brand-variant='corporate'] .hbs-kicker {
  color: #595959;
}

:root[data-brand-variant='corporate'] .hbs-cta {
  color: #595959;
  border-radius: 999px;
  background: #ffe512;
  box-shadow: none;
}

:root[data-brand-variant='corporate'] .interlude-overlay {
  background: rgb(20 20 20 / 34%);
}

/* National-style information cards: transparent, thin rule, no elevation. */
:root[data-brand-variant='corporate'] :is(
    .suburb-tile,
    .ps-card,
    .rea-press-card,
    .worthish-card,
    .booking-form,
    .contact-card,
    .property-showcase-card,
    .form-success,
    .modal-panel
  ) {
  border: 1px solid #959595 !important;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-brand-variant='corporate'] .choropleth-legend {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-brand-variant='corporate'] :is(
    .suburb-tile,
    .ps-card,
    .rea-press-card,
    .contact-card,
    .property-showcase-card
  ):is(:hover, :focus-visible) {
  border-color: #595959 !important;
  background: transparent;
  box-shadow: none;
  transform: none;
}

:root[data-brand-variant='corporate'] .suburb-grid .suburb-tile:first-child {
  color: #595959;
  border-color: #959595 !important;
  background: #efeee3;
  box-shadow: none;
}

:root[data-brand-variant='corporate'] .prize-5x-badge .big-num {
  color: #ffe512;
  background: none;
  -webkit-text-fill-color: #ffe512;
}

:root[data-brand-variant='corporate'] .entry-pill {
  box-shadow: none;
}

:root[data-brand-variant='corporate'] .suburb-grid .suburb-tile:first-child :is(
    .tile-name,
    .tile-meta-value,
    .tile-growth
  ) {
  color: #595959;
}

:root[data-brand-variant='corporate'] .suburb-grid .suburb-tile:first-child :is(
    .tile-postcode,
    .tile-growth-label,
    .tile-meta-label
  ) {
  color: #6b6762;
}

:root[data-brand-variant='corporate'] .suburb-grid .suburb-tile:first-child .tile-meta {
  border-top-color: rgb(89 89 89 / 22%);
}

:root[data-brand-variant='corporate'] :is(
    .grid-editorial em,
    .map-editorial em,
    .ps-prize,
    .rea-rank-badge,
    .rea-press-quote strong,
    .worthish-accent,
    .worthish-beds-highlight,
    .entry-label-badge,
    .ig-entry-earned,
    .choro-reset-btn,
    .suburb-tile:not(:first-child) .tile-growth.positive
  ) {
  color: #595959 !important;
  text-decoration: none;
}

/* Flat atlas and controls. */
:root[data-brand-variant='corporate'] .map-container {
  border: 1px solid #959595;
  border-radius: 0;
  background: #efeee3;
  box-shadow: none;
}

:root[data-brand-variant='corporate'] #leaflet-map {
  border-radius: 0;
}

:root[data-brand-variant='corporate'] :is(
    .view-toggle-group,
    .map-toggle-group,
    .labels-toggle-group,
    .show-context-btn,
    .map-info-btn,
    .ssw-btn
  ) {
  border-color: #959595;
  background: #faf9f2;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Calculator and booking: solid panels and standard inputs. */
:root[data-brand-variant='corporate'] .worthish-card {
  background: #ffffff;
}

:root[data-brand-variant='corporate'] :is(
    .worthish-result,
    .form-group-pair,
    .entry-label-badge,
    .entry-counter,
    .booking-prize-banner
  ) {
  border-color: rgb(89 89 89 / 22%);
  background: #efeee3;
  box-shadow: none;
}

:root[data-brand-variant='corporate'] :is(
    .worthish-select,
    .worthish-radio-pill,
    .form-group input,
    .form-group select,
    .cs-trigger
  ) {
  border-color: #959595;
  background: #ffffff;
  box-shadow: none;
}

:root[data-brand-variant='corporate'] :is(
    .worthish-cta,
    .btn-submit
  ) {
  color: #595959;
  border-radius: 999px;
  background: #ffe512;
  box-shadow: none;
}

:root[data-brand-variant='corporate'] :is(
    .worthish-cta,
    .btn-submit
  ):hover {
  background: #f4d900;
  box-shadow: none;
}

/* Live properties follow the same editorial card system. */
:root[data-brand-variant='corporate'] .property-showcase-section {
  color: #595959;
  border-color: rgb(89 89 89 / 18%);
}

:root[data-brand-variant='corporate'] :is(
    .property-showcase-header h2,
    .property-showcase-header h2 em,
    .property-showcase-copy h3,
    .property-showcase-price,
    .property-showcase-eyebrow,
    .property-showcase-meta
  ) {
  color: #595959;
  text-decoration: none;
}

:root[data-brand-variant='corporate'] .property-showcase-header h2 em {
  font-style: normal;
}

:root[data-brand-variant='corporate'] .property-showcase-eyebrow {
  width: auto;
  padding: 0;
  background: transparent;
}

:root[data-brand-variant='corporate'] :is(
    .property-showcase-intro p,
    .property-showcase-copy h3 span,
    .property-showcase-footer,
    .property-showcase-note
  ) {
  color: #6b6762;
}

:root[data-brand-variant='corporate'] .property-showcase-intro > a {
  color: #595959;
  border-color: #595959;
}

:root[data-brand-variant='corporate'] .property-showcase-media {
  background: #efeee3;
}

:root[data-brand-variant='corporate'] .property-showcase-media::after {
  background: none;
}

:root[data-brand-variant='corporate'] .property-status {
  color: #595959;
  box-shadow: none;
}

:root[data-brand-variant='corporate'] .property-status--rent {
  background: #efeee3;
}

:root[data-brand-variant='corporate'] .property-showcase-footer {
  border-color: rgb(89 89 89 / 18%);
}

/* One flat charcoal bridge mirrors the national selling-page feature panel. */
:root[data-brand-variant='corporate'] .loop-band {
  background: #494949;
}

:root[data-brand-variant='corporate'] .loop-ig-link {
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-brand-variant='corporate'] .site-footer {
  border-top: 1px solid rgb(89 89 89 / 18%);
  background: #faf9f2;
  box-shadow: none;
}

:root[data-brand-variant='corporate'] .contact-office-link:hover,
:root[data-brand-variant='corporate'] .contact-office-link:focus-visible {
  color: #595959;
  text-decoration-color: #ffe512;
}

@supports not (backdrop-filter: blur(1px)) {
  :root[data-brand-variant='corporate'] .hero-journey-panel {
    background: rgb(35 31 29 / 88%);
  }
}
