
/* ==========================================================================
   START:
   ========================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter/inter-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DM_Serif_Display/dm-serif-display-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DM_Serif_Display/dm-serif-display-latin-italic.woff2") format("woff2");
}
/* ==========================================================================
   END: Fonts
   ========================================================================== */

/* ==========================================================================
   START: 
   ========================================================================== */
a.button.border, a.button {
    background: var(--dh-primary);
}
.nice-select .option:hover,
.parallax-searchs .form-group .btn {
    background: var(--dh-primary) !important;
}
#navigation.style-1 .current {
    color: var(--dh-primary);
}
#navigation.style-1 ul li:hover {
    background: var(--dh-primary);
}
.navigation ul li a:hover {
	color: var(--dh-primary);
}
.go-up {
	background: var(--dh-primary);
}
.plan a.btn {
	background: var(--dh-primary);
}
.leaflet-div-icon, .map-marker {
	background-color: var(--dh-primary);
	border: 5px solid var(--dh-primary);
}
.leaflet-div-icon:before, .map-marker:before {
	border-top-color: var(--dh-primary);
}
/* ==========================================================================
   END: 
   ========================================================================== */

/* ==========================================================================
   START: 
   ========================================================================== */
.dh-dots {
  margin: 20px auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.dh-dots li {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 3px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  box-shadow: inset 0 0 0 2px var(--dh-primary);
  font-size: 0;
  line-height: 0;
  color: var(--dh-primary);
  cursor: pointer;
  transition: all 0.3s;
}

.dh-dots li.is-active {
  box-shadow: inset 0 0 0 6px var(--dh-primary);
}

.dh-dots li::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: var(--dh-primary);
  opacity: 0;
  transition: all 0.3s;
}

.dh-dots li.is-active::after {
  opacity: 1;
}

.dh-dots button {
  width: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: none;
  background: transparent;
  font: inherit;
  line-height: normal;
  color: inherit;
  cursor: pointer;
}
/* ==========================================================================
   END: 
   ========================================================================== */

/* ==========================================================================
   START: 
   ========================================================================== */

:root {
  
  --dh-primary: #134B3E;        
  --dh-sand: #E9DFCE;           
  --dh-bg: #F6F4EE;             
  --dh-accent: #A8803F;         

  
  --dh-primary-rgb: 19, 75, 62;
  --dh-sand-rgb: 233, 223, 206;
  --dh-bg-rgb: 246, 244, 238;
  --dh-accent-rgb: 168, 128, 63;

  --dh-body-bg: #fff;
  --dh-cream-bg: var(--dh-bg);
  --dh-cream-dot: rgba(19, 75, 62, 0.12);
  --dh-cream-dots: radial-gradient(var(--dh-cream-dot) 1px, transparent 1px);
  --dh-cream-dots-size: 18px 18px;

  --dh-font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --dh-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--dh-font-body);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--dh-font-heading);
  letter-spacing: -0.01em;
}

html {
  font-synthesis: none;
}

a { color: var(--dh-primary); }
a:hover { color: var(--dh-accent); }

::selection {
  background: var(--dh-sand);
  color: var(--dh-primary);
}

/* --------------------------------------------------------------------------
    logo
   -------------------------------------------------------------------------- */
.dh-wordmark {
  display: inline-block;
  font-family: var(--dh-font-heading);
  font-size: clamp(22px, calc(20.592px + 0.376vw), 26px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.dh-wordmark span {
  color: var(--dh-sand);
  font-weight: 500;
  font-style: italic;
}

.dh-wordmark:hover,
.dh-wordmark:focus {
  color: #fff;
  text-decoration: none;
}

.dh-wordmark--dark,
#header.cloned.sticky .dh-wordmark {
  color: var(--dh-primary);
}

.dh-wordmark--dark span,
#header.cloned.sticky .dh-wordmark span {
  color: var(--dh-accent);
}

/* --------------------------------------------------------------------------
   Scroll-to-top button: round
   -------------------------------------------------------------------------- */
.go-up {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--dh-accent);
  border-radius: 50%;
  background: #fff;
  color: var(--dh-accent);
  line-height: 48px;
  text-align: center;
  box-shadow: none;
}

.go-up i {
  line-height: 48px;
  font-size: clamp(18.5px, calc(17.268px + 0.329vw), 22px);
}

.go-up:hover,
.go-up:focus {
  background: var(--dh-accent);
  color: #fff;
}

@media (max-width: 991px) {
  .go-up {
    right: 16px !important;
    bottom: 95px !important;
    width: 46px;
    height: 46px;
    line-height: 42px;
  }

  .go-up i {
    line-height: 42px;
    font-size: clamp(17px, calc(15.944px + 0.282vw), 20px);
  }

}

@media (max-width: 991px) {
  .cs_footer_bottom {
    padding-bottom: 35px !important;
  }
}

.dh-hl {
  color: var(--dh-accent);
}

:root {
  --dh-toggle-day-bg: #FFBF71;
  --dh-toggle-day-sun: #fff;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --dh-body-bg: var(--dh-d-page);
  --dh-cream-bg: var(--dh-d-alt);
  --dh-cream-dot: var(--dh-d-dots);

  
  --dh-d-page: #133f34;          
  /* --dh-d-page: #406059;                     */
  --dh-d-alt: #0D352D;           
  /* --dh-d-alt: #535347;                       */
  --dh-d-dots: rgba(233, 223, 206, 0.1);
  --dh-d-benefits: #626A5C;      
  --dh-d-surface: rgba(255, 255, 255, 0.07);   
  --dh-d-surface-2: rgba(255, 255, 255, 0.12); 
  --dh-d-popover: #36514B;       
  --dh-d-glass: rgba(50, 74, 68, 0.92);
  --dh-d-glass-rgb: 50, 74, 68;
  --dh-d-header-glass: rgba(19, 63, 52, 0.55);  
  --dh-d-header-blur: blur(10px) saturate(140%);
  --dh-d-brand: #134B3E;         
  --dh-d-brand-rgb: 19, 75, 62;
  --dh-d-glass-bar: rgba(255, 255, 255, 0.07);  
  --dh-d-glass-line: rgba(255, 255, 255, 0.14); 
  --dh-d-glass-btn: rgba(255, 255, 255, 0.12);  
  
  --dh-d-vs-label: rgba(255, 255, 255, 0.03);   
  --dh-d-vs-agent: rgba(255, 255, 255, 0.09);   
  --dh-d-vs-agent-head: rgba(255, 255, 255, 0.13);
  /* PREMIUM card: moving border */
  --dh-d-pk-border-a: var(--dh-accent);           
  --dh-d-pk-border-b: #E9DFCE;                    
  --dh-d-pk-border-speed: 6s;
  --dh-d-pk-outline: rgba(255, 255, 255, 0.22);   
  
  --dh-d-cmp-bg: var(--dh-d-page);
  --dh-d-cmp-line: rgba(255, 255, 255, 0.1);
  --dh-d-cmp-self-head: #5E5537;                   
  --dh-d-cmp-premium-head: #1E6553;                
  --dh-d-cmp-premium: #1A5547;                     
  --dh-d-cmp-group: #3A4632;                       
  --dh-d-cmp-hover: #184A3E;
  --dh-d-cmp-premium-hover: #1E5F4F;
  --dh-d-footer: #134B3E;        
  --dh-d-border: rgba(255, 255, 255, 0.16);

  /* text */
  --dh-d-heading: #F4EEE2;       
  --dh-d-text: #BCC6C0;          
  --dh-d-muted: #98A59F;

  
  --dh-primary: #1E6553;        
  --dh-accent: #C9A25E;
  --dh-accent-rgb: 201, 162, 94;
  --dh-primary-rgb: 0, 0, 0;     

 
  --dh-toggle-night-bg: #134B3E;
  --dh-toggle-moon: #EFE7D8;
}

/* ==========================================================================
   END: 
   ========================================================================== */

/* ==========================================================================
   START: 
   ========================================================================== */

#header .dh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#header .dh-header::before,
#header .dh-header::after {
  display: none; 
}

.dh-header__logo,
.dh-header__actions {
  flex: 1 1 0;
  display: flex;
  align-items: center;
}

.dh-header__actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 24px;
}

.dh-header__logo #logo {
  margin: 0;
}

/* Centered navigation */
#header .dh-header__nav {
  float: none;
  flex: 0 0 auto;
  margin: 0 !important;
}

#header .dh-header__nav ul#responsive {
  display: flex;
  align-items: center;
  margin: 0;
}

#header .dh-nav-pill {
  position: relative;
  gap: 4px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

#header .dh-nav-pill > li {
  float: none;
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 999px;
  background: transparent !important;
}

#header .dh-nav-pill > li > a {
  display: block;
  padding: 9px 20px;
  line-height: 24px;
  border-radius: 999px;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 500;
  text-transform: none; /* keep "How It Works" casing */
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.25s ease;
}

#header .dh-nav-pill > li > a:hover,
#header .dh-nav-pill > li.is-active > a,
#header .dh-nav-pill > li.is-hovered > a {
  color: #fff !important;
}

#header .dh-nav-pill > li.is-active > a {
  font-weight: 600;
}

/* No dropdown arrows on the main links */
#header .dh-nav-pill > li > a::after {
  content: none !important;
}

#header .dh-nav-pill > li.dh-nav-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  padding: 0;
  pointer-events: none;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%),
    rgba(var(--dh-primary-rgb), 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 18px rgba(var(--dh-primary-rgb), 0.28);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  opacity: 0;
  transition:
    left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}

#header .dh-nav-pill > li.dh-nav-indicator.is-visible {
  opacity: 1;
}


#header .dh-header__nav .dh-mobile-only {
  display: none;
}

.dh-lang {
  position: relative;
}

.dh-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  cursor: pointer;
}

.dh-lang__toggle strong {
  font-weight: 600;
}

.dh-lang__caret {
  width: 7px;
  height: 7px;
  margin-left: 2px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.dh-flag {
  display: inline-flex;
  line-height: 0;
}

.dh-flag svg {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.dh-lang__menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 170px;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 999;
  background: #fff;
  border: 1px solid var(--dh-sand);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(var(--dh-primary-rgb), 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

/* Invisible bridge so the menu stays open while moving the mouse into it */
.dh-lang__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.dh-lang:hover .dh-lang__menu,
.dh-lang:focus-within .dh-lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dh-lang:hover .dh-lang__caret,
.dh-lang:focus-within .dh-lang__caret {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.dh-lang__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--dh-primary);
  font-family: var(--dh-font-body);
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  text-decoration: none;
}

.dh-lang__menu a:hover,
.dh-lang__menu a.is-current {
  background: var(--dh-bg);
  color: var(--dh-primary);
}

.dh-lang__menu a.is-current {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. Login button
   -------------------------------------------------------------------------- */
#header .dh-header__cta {
  position: static;
  top: auto;
  width: auto;
  float: none;
  padding: 0;
  margin: 0;
}

#header .dh-header__cta a.dh-btn-login {
  position: relative;     
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;              
  height: 46px;
  min-width: 128px;
  margin: 0 !important;
  padding: 0 24px !important;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
}

#header .dh-btn-login__text {
  display: inline-block;
  line-height: 1;
}

#header .dh-btn-login__icon {
  flex: none;
  display: block;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Sticky header 
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  #header .dh-header__logo #logo {
    position: static;
    width: auto;
    margin: 0;
    text-align: left;
  }

  #header .dh-header__nav #responsive {
    display: flex;
  }

  #header .dh-header .dh-menu-trigger {
    display: none !important;
  }

  #header .dh-header__cta {
    border-top: 0;
  }

  #header .dh-header__cta a.button.border.dh-btn-login {
    float: none;
    background-color: var(--dh-primary);
    color: #fff;
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  #header .dh-nav-pill > li > a {
    padding-left: 12px;
    padding-right: 12px;
    font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  }
  .dh-header__actions {
    gap: 16px;
  }
}

@media (max-width: 1279px) {
  #header .dh-header__nav {
    display: none;
  }

  #header .dh-header .dh-menu-trigger {
    display: inline-block !important;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .dh-header__actions {
    gap: 14px;
  }

  #header .dh-header__cta {
    display: none; 
  }
}


#header .dh-lang__menu li a,
#header .dh-lang__menu li a:hover,
#header .dh-lang__menu li a:focus,
#header.cloned .dh-lang__menu li a {
  color: var(--dh-primary) !important;
}

#header .dh-header__cta a.dh-btn-login,
#header .dh-header__cta a.dh-btn-login:hover,
#header .dh-header__cta a.dh-btn-login:focus {
  border-radius: 999px !important;
  box-shadow: none !important;
}

#header .dh-nav-pill > li.dh-nav-indicator,
#header.cloned .dh-nav-pill > li.dh-nav-indicator {
  display: none !important;
}

@media (min-width: 1280px) {
  .dh-header-light #header:not(.cloned) .dh-nav-pill,
  #header .dh-nav-pill {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

#header .dh-nav-pill > li > a {
  position: relative;
}

#header .dh-nav-pill > li > a::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 6px;
  left: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

#header .dh-nav-pill > li.is-active > a::before,
#header .dh-nav-pill > li > a:hover::before {
  transform: scaleX(1);
}


#header:not(.cloned) .dh-nav-pill > li.is-active > a,
#header:not(.cloned) .dh-nav-pill > li.is-hovered > a {
  color: #fff;
}


#header .dh-header__logo #logo img {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: 34px;
  margin: 0 !important;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 1279px) {
  #header .dh-header {
    gap: 12px;
  }

  #header .dh-header__logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  #header .dh-header__logo #logo,
  #header .dh-header__logo #logo a {
    display: block;
    min-width: 0;
    max-width: 100%;
  }

  #header .dh-header__logo #logo img {
    height: auto;
    max-height: 32px;
  }

  #header .dh-header__actions {
    flex: 0 0 auto;
    gap: 14px;
  }
}

@media (max-width: 400px) {
  #header .dh-header__actions {
    gap: 10px;
  }

  #header .dh-header__logo #logo img {
    max-height: 24px;
  }

  #header .dh-lang__toggle {
    gap: 6px;
  }

  #header .dh-menu-trigger .hamburger {
    width: 42px;
    height: 42px;
  }
}


@media (min-width: 1200px) {
  #header .dh-nav-pill > li > a {
    padding-left: 14px;
    padding-right: 14px;
  }

  #header .dh-nav-pill > li > a::before {
    right: 14px;
    left: 14px;
  }
}

#header .dh-header__cta a.dh-btn-login {
  min-width: 0;
  height: 44px;
  padding: 0 20px !important;
  gap: 8px;
}

#header .dh-header__actions {
  gap: 18px;
}


#header .dh-search-btn {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(var(--dh-primary-rgb), 0.1);
  border-radius: 50%;
  background: transparent;
  color: var(--dh-primary);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

#header .dh-search-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none !important;
  stroke: currentColor;
  transition: transform 0.35s ease;
}

#header .dh-search-btn svg * {
  fill: none !important;
}

#header .dh-search-btn:hover,
#header .dh-search-btn:focus-visible {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff;
}

#header .dh-search-btn:hover svg {
  transform: rotate(-12deg) scale(1.05);
}

#header .dh-search-btn .dh-advanced-count {
  position: absolute;
  top: -4px;
  right: -4px;
  margin: 0;
}

@media (max-width: 400px) {
  #header .dh-search-btn {
    width: 40px;
    height: 40px;
  }
}

.dh-header-dark #header:not(.cloned) {
  background: transparent !important;
}

.dh-header-dark #header:not(.cloned) #logo img {
  filter: brightness(0) invert(1);
}

.dh-header-dark #header:not(.cloned) .dh-nav-pill > li > a,
.dh-header-dark #header:not(.cloned) .dh-nav-pill > li.is-active > a,
.dh-header-dark #header:not(.cloned) .dh-lang__toggle,
.dh-header-dark #header:not(.cloned) .dh-search-btn {
  color: #fff !important;
}

.dh-header-dark #header:not(.cloned) .dh-search-btn {
  border-color: rgba(255, 255, 255, 0.28);
}

.dh-header-dark #header:not(.cloned) .dh-search-btn:hover {
  border-color: #fff;
  background: #fff;
  color: var(--dh-primary) !important;
}

.dh-header-dark #header:not(.cloned) .dh-header__cta a.dh-btn-login {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--dh-primary) !important;
}

.dh-header-dark #header:not(.cloned) .dh-menu-trigger .hamburger {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.dh-header-dark #header:not(.cloned) .dh-menu-trigger .hamburger-inner,
.dh-header-dark #header:not(.cloned) .dh-menu-trigger .hamburger-inner::before,
.dh-header-dark #header:not(.cloned) .dh-menu-trigger .hamburger-inner::after {
  background-color: #fff !important;
}

@media (min-width: 1280px) and (max-width: 1439px) {
  #header .dh-header {
    gap: 10px;
  }

  #header .dh-header__logo {
    flex: 0 0 auto;
  }

  #header .dh-header__logo #logo img {
    height: 30px;
    max-width: none;
  }

  #header .dh-header__actions {
    flex: 0 0 auto;
    gap: 20px;
  }

  #header .dh-nav-pill > li > a {
    padding-right: 10px;
    padding-left: 10px;
    font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  }

  #header .dh-nav-pill > li > a::before {
    right: 10px;
    left: 10px;
  }

  #header .dh-header__cta a.dh-btn-login {
    height: 42px;
    padding: 0 14px !important;
  }

  #header .dh-btn-login__icon {
    /* display: none; */
  }

  #header .dh-search-btn {
    width: 40px;
    height: 40px;
  }
}


#header-container {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 99999;
}

#header-container #header {
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

body.dh-header-scrolled #header-container #header {
  background-color: rgba(var(--dh-bg-rgb), 0.78) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(var(--dh-primary-rgb), 0.08);
  box-shadow: 0 8px 30px rgba(var(--dh-primary-rgb), 0.08);
}

body.dh-header-scrolled #header-container #header #logo img {
  filter: none;
}

body.dh-header-scrolled #header-container #header .dh-nav-pill > li > a,
body.dh-header-scrolled #header-container #header .dh-nav-pill > li.is-active > a,
body.dh-header-scrolled #header-container #header .dh-nav-pill > li.is-hovered > a,
body.dh-header-scrolled #header-container #header .dh-nav-pill > li > a:hover,
body.dh-header-scrolled #header-container #header .dh-lang__toggle,
body.dh-header-scrolled #header-container #header .dh-search-btn {
  color: var(--dh-primary) !important;
}

body.dh-header-scrolled #header-container #header .dh-search-btn {
  border-color: var(--dh-sand);
}

body.dh-header-scrolled #header-container #header .dh-search-btn:hover,
body.dh-header-scrolled #header-container #header .dh-search-btn:focus-visible {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff !important;
}

body.dh-header-scrolled #header-container #header .dh-header__cta a.dh-btn-login {
  background: var(--dh-primary) !important;
  border-color: var(--dh-primary) !important;
  color: #fff !important;
}

body.dh-header-scrolled #header-container #header .dh-menu-trigger .hamburger {
  border-color: var(--dh-sand);
  background: #fff;
}

body.dh-header-scrolled #header-container #header .dh-menu-trigger .hamburger-inner,
body.dh-header-scrolled #header-container #header .dh-menu-trigger .hamburger-inner::before,
body.dh-header-scrolled #header-container #header .dh-menu-trigger .hamburger-inner::after {
  background-color: var(--dh-primary) !important;
}

@media (prefers-reduced-motion: reduce) {
  #header-container #header {
    transition: none;
  }
}


.offcanvas {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 100100;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  visibility: hidden;
  background-clip: padding-box;
  outline: 0;
  transition: transform 0.5s cubic-bezier(0.22, 0.75, 0.2, 1), visibility 0.5s;
}

.offcanvas-end {
  right: 0;
  width: min(400px, 88vw);
  transform: translateX(100%);
}

.offcanvas.show {
  visibility: visible;
  transform: none;
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100090;
  background: rgba(10, 30, 24, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.offcanvas-backdrop.show {
  opacity: 1;
}

body.dh-offcanvas-open {
  overflow: hidden;
}

.dh-offcanvas {
  background: var(--dh-bg, #F6F4EE);
  /* border-left: 1px solid var(--dh-sand, #E9DFCE); */
  box-shadow: -30px 0 60px rgba(var(--dh-primary-rgb), 0.18);
  font-family: var(--dh-font-body);
}

.dh-offcanvas .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--dh-sand);
}

.dh-offcanvas__logo {
  display: block;
  min-width: 0;
}

.dh-offcanvas__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 30px;
  object-fit: contain;
}

.dh-offcanvas__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--dh-sand);
  border-radius: 50%;
  background: #fff;
  color: var(--dh-primary);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s ease;
}

.dh-offcanvas__close:hover,
.dh-offcanvas__close:focus-visible {
  background: var(--dh-primary);
  color: #fff;
  transform: rotate(90deg);
}

.dh-offcanvas .offcanvas-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 26px 22px 28px;
  overflow-y: auto;
}

/* links */
.dh-offcanvas__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dh-offcanvas__nav li + li {
  margin-top: 6px;
}

.dh-offcanvas__nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 4px;
  font-family: var(--dh-font-heading);
  font-size: clamp(20.5px, calc(19.268px + 0.329vw), 24px);
  line-height: 1.2;
  color: var(--dh-primary);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.35s ease;
}

.dh-offcanvas__nav a:hover,
.dh-offcanvas__nav a:focus-visible {
  padding-left: 10px;
  color: var(--dh-accent);
  text-decoration: none;
}

/* current page: gold text with a short gold bar */
.dh-offcanvas__nav li.is-active a {
  padding-left: 16px;
  color: var(--dh-accent);
}

.dh-offcanvas__nav li.is-active a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--dh-accent);
  transform: translateY(-50%);
}

.dh-offcanvas__nav li,
.dh-offcanvas__foot {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 0.75, 0.2, 1);
}

.dh-offcanvas.show .dh-offcanvas__nav li,
.dh-offcanvas.show .dh-offcanvas__foot {
  opacity: 1;
  transform: none;
}

.dh-offcanvas.show .dh-offcanvas__nav li {
  transition-delay: calc(0.08s + var(--i, 0) * 0.05s);
}

.dh-offcanvas.show .dh-offcanvas__foot {
  transition-delay: 0.45s;
}

.dh-offcanvas__foot {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--dh-sand);
}

.dh-offcanvas .dh-offcanvas__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 999px;
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  font-weight: 600;
  text-decoration: none;
}

/* the drawer is for small screens only */
@media (min-width: 1280px) {
  .dh-offcanvas,
  .offcanvas-backdrop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offcanvas,
  .offcanvas-backdrop,
  .dh-offcanvas__nav li,
  .dh-offcanvas__foot {
    transition: none;
  }
}

.dh-menu-trigger {
  display: none;
  position: relative;
}

.dh-menu-trigger .hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--dh-sand);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  margin: 0 !important;
  top: 0 !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dh-menu-trigger .hamburger:hover,
.dh-menu-trigger .hamburger:focus-visible {
  border-color: var(--dh-primary);
}

.dh-menu-trigger .hamburger-box {
  width: 20px;
  height: 14px;
}

.dh-menu-trigger .hamburger-inner,
.dh-menu-trigger .hamburger-inner::before,
.dh-menu-trigger .hamburger-inner::after {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--dh-primary) !important;
}

@media (max-width: 1279px) {
  #header .dh-header .dh-menu-trigger {
    display: inline-flex !important;
    margin: 0;
  }
}

.dh-menu-trigger .hamburger-box {
  position: relative;
  display: inline-block;
}

.dh-menu-trigger .hamburger--collapse .hamburger-inner {
  top: auto;
  bottom: 0;
  margin-top: 0;
}

.dh-menu-trigger .hamburger--collapse .hamburger-inner::before {
  top: -6px;
}

.dh-menu-trigger .hamburger--collapse .hamburger-inner::after {
  top: -12px;
  bottom: auto;
}

@media (max-width: 1279px) {
  #header .dh-header .dh-header__cta {
    display: none !important;
  }
}

@media (max-width: 599px) {
  #header .dh-header .dh-lang {
    display: none !important;
  }
}

@media (min-width: 600px) {
  .dh-offcanvas .dh-offcanvas__lang {
    display: none;
  }
}

.dh-offcanvas__logo img {
  height: clamp(22px, 6.5vw, 30px);
}

.dh-offcanvas .dh-offcanvas__close {
  flex: 0 0 44px;
  min-width: 44px;
}

.dh-offcanvas__lang {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.dh-offcanvas__lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
  background: #fff;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 600;
  color: var(--dh-primary);
  text-decoration: none;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.dh-offcanvas__lang a:hover {
  border-color: var(--dh-accent);
  color: var(--dh-primary);
  text-decoration: none;
}

.dh-offcanvas__lang a.is-current {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff;
}

.dh-offcanvas__lang .dh-flag svg {
  display: block;
  border-radius: 2px;
}

/* Login: full width on phones, compact and left aligned from 600px */
@media (min-width: 600px) {
  .dh-offcanvas .dh-offcanvas__btn {
    display: inline-flex;
    width: auto;
    min-width: 160px;
    padding: 0 32px;
  }
}

@media (max-width: 380px) {
  .dh-offcanvas .offcanvas-header {
    padding: 16px 16px;
  }

  .dh-offcanvas .offcanvas-body {
    padding: 20px 16px 24px;
  }
}


.cs_footer .cs_mb_17 { margin-bottom: 17px; }
.cs_footer .cs_mb_37 { margin-bottom: 37px; }
.cs_footer .cs_fs_20 { font-size: clamp(17px, calc(15.944px + 0.282vw), 20px); line-height: 1.25em; }
.cs_footer .cs_semibold { font-weight: 600; }
.cs_footer .cs_white_color { color: #fff; }
.cs_footer .cs_gray_color { color: var(--dh-sand); }
.cs_footer .cs_radius_100 { border-radius: 50%; }
.cs_footer .cs_mp_0 { list-style: none; margin: 0; padding: 0; }
.cs_footer .cs_center { display: flex; align-items: center; justify-content: center; }
.cs_footer .cs_gap_y_30 { row-gap: 30px; }

@media screen and (max-width: 991px) {
  .cs_footer .cs_mb_lg_20 { margin-bottom: 20px; }
}

.cs_footer.cs_style_1 {
  background-color: var(--dh-primary);
  background-image: url("../assets/img/footer-bg-directhomes.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.6;
  color: var(--dh-sand);
  /* border-top-left-radius: 40px;
  border-top-right-radius: 40px; */
}

.cs_footer.cs_style_1 h3,
.cs_footer.cs_style_1 .cs_footer_widget_title,
.cs_footer.cs_style_1 .cs_newsletter_heading {
  font-family: var(--dh-font-heading);
  color: #fff;
  text-transform: none;
}

.cs_footer.cs_style_1 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cs_footer.cs_style_1 p {
  color: inherit;
  line-height: 1.6;
}

.cs_footer.cs_style_1 .cs_footer_main {
  padding: 80px 0 100px;
}

/* --------------------------------------------------------------------------
   3. Logo 
   -------------------------------------------------------------------------- */
.cs_footer.cs_style_1 .cs_text_widget {
  max-width: 400px;
}

.cs_footer.cs_style_1 .cs_logo {
  margin-bottom: 20px;
}

.cs_footer.cs_style_1 .cs_logo img {
  width: auto;
  height: 40px;
  filter: brightness(0) invert(1);
}

.cs_newsletter_form.cs_style_1::before {
  content: "";
  width: 100%;
  height: 1px;
  background-color: var(--dh-sand);
  opacity: 0.3;
  position: absolute;
  left: 0;
  bottom: 0;
}

.cs_newsletter_form.cs_style_1 input {
  width: 100%;
  height: auto;
  padding: 0 30px 15px 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--dh-sand);
  background-color: transparent;
  font-family: var(--dh-font-body);
}

.cs_newsletter_form.cs_style_1 input::placeholder {
  color: var(--dh-sand);
  opacity: 0.8;
}

.cs_newsletter_form.cs_style_1 .cs_send_icon {
  top: 0;
  right: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.cs_newsletter_form.cs_style_1 .cs_send_icon:hover {
  color: var(--dh-accent);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   4. Menu columns
   -------------------------------------------------------------------------- */
.cs_footer.cs_style_1 .cs_footer_menu li:not(:last-child) {
  margin-bottom: 8px;
}

.cs_footer.cs_style_1 .cs_footer_menu a {
  padding-left: 20px;
  position: relative;
  display: inline-block;
}

/* Chevron drawn with CSS (no icon font needed) */
.cs_footer.cs_style_1 .cs_footer_menu a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.cs_footer.cs_style_1 .cs_footer_menu a:hover,
.cs_footer.cs_style_1 .cs_contact_list a:hover,
.cs_footer.cs_style_1 .cs_footer_bottom .cs_social_links a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   5. Contact column
   -------------------------------------------------------------------------- */
.cs_footer.cs_style_1 .cs_contact_widget {
  padding-left: 40px;
}

.cs_footer.cs_style_1 .cs_contact_list li {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cs_footer.cs_style_1 .cs_contact_list li:not(:last-child) {
  margin-bottom: 25px;
}

.cs_footer.cs_style_1 .cs_contact_list .cs_contact_icon {
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid var(--dh-accent);
  color: var(--dh-accent);
}

/* --------------------------------------------------------------------------
   6. Bottom bar
   -------------------------------------------------------------------------- */
/* copyright: centred, light line above it (same in light and dark mode) */
.cs_footer.cs_style_1 .cs_footer_bottom {
  padding: 35px 0 28px;
  border-top: 1px solid #99999926;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px 30px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .cs_footer.cs_style_1 .cs_contact_widget {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .cs_footer.cs_style_1 .cs_footer_main {
    padding: 50px 0 60px;
  }
}
@media (min-width: 600px) and (max-width: 991px) {
  .cs_footer.cs_style_1 .cs_footer_main {
    padding: 80px 0 60px;
  }
}
@media (max-width: 991px) {
  /* .cs_footer.cs_style_1 .cs_footer_main {
    padding: 80px 0 60px;
  } */
  .cs_footer.cs_style_1 .cs_logo {
    margin-bottom: 20px;
  }
  .cs_footer.cs_style_1 .cs_text_widget {
    max-width: 100%;
  }
  .cs_footer.cs_style_1 .cs_contact_list li:not(:last-child) {
    margin-bottom: 15px;
  }
  .cs_footer.cs_style_1 .cs_footer_bottom {
    padding: 20px 0 22px;
  }
}

/* Text logo in the footer (beats the generic ".cs_footer a { color: inherit }") */
.cs_footer.cs_style_1 .dh-wordmark {
  color: #fff;
  font-size: clamp(25.5px, calc(23.915px + 0.423vw), 30px);
}

.cs_footer.cs_style_1 .dh-wordmark span {
  color: var(--dh-accent); /* gold "Homes", same as the header logo */
}

/* Social links: round icon buttons (replaces the text links + currency) */

/* Short description under the logo */
.cs_footer.cs_style_1 .dh-footer-about {
  /* max-width: 340px; */
  margin: 0 0 36px;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.7;
  color: var(--dh-sand);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   8. Small screens
   -------------------------------------------------------------------------- */
/* social icons in white */

/* 600–991px: "Popular cities" and "Quick links" side by side */
@media (min-width: 600px) and (max-width: 991px) {
  .cs_footer.cs_style_1 .dh-footer-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* keep the bottom bar clear of the "back to top" button (bottom right) */
@media (max-width: 991px) {
  .cs_footer.cs_style_1 .cs_footer_bottom {
    /* padding-right: 72px; */
  }
}

/* contact icons (mail, phone) in white */
.cs_footer.cs_style_1 .cs_contact_list .cs_contact_icon {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

/* ==========================================================================
   END: Footer
   ========================================================================== */

/* ==========================================================================
   START: Preloader
   ========================================================================== */


/* colours as variables, dark mode changes them in css/main.css */
#preloader.dh-preloader {
  --dh-pl-bg: var(--dh-bg);
  --dh-pl-line: var(--dh-primary);
  --dh-pl-ground: var(--dh-sand);
  --dh-pl-smoke: rgba(var(--dh-primary-rgb), 0.18);
  --dh-pl-track: rgba(var(--dh-primary-rgb), 0.12);
  --dh-pl-word: var(--dh-primary);

  position: fixed;
  inset: 0;
  z-index: 100200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dh-pl-bg);
}

.dh-preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   House drawing (one 2.8s cycle, all parts share the same timeline)
   -------------------------------------------------------------------------- */
.dh-preloader__house {
  display: block;
  width: 120px;
  height: 100px;
  overflow: visible;
  animation: dh-house-cycle 2.8s ease-in-out infinite;
}

.dh-ph {
  fill: none;
  stroke: var(--dh-pl-line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.dh-ph--ground  { stroke: var(--dh-pl-ground); stroke-width: 3; animation: dh-draw-ground 2.8s ease-out infinite; }
.dh-ph--walls   { animation: dh-draw-walls 2.8s ease-in-out infinite; }
.dh-ph--roof    { stroke: var(--dh-accent); stroke-width: 3.6; animation: dh-draw-roof 2.8s ease-in-out infinite; }
.dh-ph--chimney { animation: dh-draw-chimney 2.8s ease-in-out infinite; }
.dh-ph--door    { animation: dh-draw-door 2.8s ease-in-out infinite; }
.dh-ph--win     { stroke-width: 2.6; animation: dh-draw-win 2.8s ease-in-out infinite, dh-light-win 2.8s ease-in-out infinite; }

/* chimney smoke */
.dh-ph-smoke {
  fill: var(--dh-pl-smoke);
  opacity: 0;
  animation: dh-smoke 2.8s ease-out infinite;
}

.dh-ph-smoke--2 {
  animation-delay: 0.25s;
}

@keyframes dh-draw-ground  { 0% { stroke-dashoffset: 1; } 14%, 100% { stroke-dashoffset: 0; } }
@keyframes dh-draw-walls   { 0%, 6% { stroke-dashoffset: 1; } 30%, 100% { stroke-dashoffset: 0; } }
@keyframes dh-draw-roof    { 0%, 24% { stroke-dashoffset: 1; } 46%, 100% { stroke-dashoffset: 0; } }
@keyframes dh-draw-chimney { 0%, 40% { stroke-dashoffset: 1; } 52%, 100% { stroke-dashoffset: 0; } }
@keyframes dh-draw-door    { 0%, 44% { stroke-dashoffset: 1; } 58%, 100% { stroke-dashoffset: 0; } }
@keyframes dh-draw-win     { 0%, 52% { stroke-dashoffset: 1; } 64%, 100% { stroke-dashoffset: 0; } }

/* windows: lights go on */
@keyframes dh-light-win {
  0%, 64% { fill: rgba(var(--dh-accent-rgb), 0); }
  72%, 100% { fill: rgba(var(--dh-accent-rgb), 0.85); }
}

@keyframes dh-smoke {
  0%, 60% { opacity: 0; transform: translateY(6px); }
  72%     { opacity: 1; }
  92%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* whole drawing fades out at the end of a cycle, then redraws */
@keyframes dh-house-cycle {
  0%, 86% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Wordmark + thin progress line
   -------------------------------------------------------------------------- */
.dh-preloader .dh-wordmark {
  margin-top: 4px;
  font-size: clamp(24px, calc(22.592px + 0.376vw), 28px);
  color: var(--dh-pl-word);
}

.dh-preloader__bar {
  position: relative;
  display: block;
  overflow: hidden;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: var(--dh-pl-track);
}

.dh-preloader__bar span {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: var(--dh-accent);
  animation: dh-preloader-bar 1.4s ease-in-out infinite;
}

@keyframes dh-preloader-bar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* No motion: show the finished house */
@media (prefers-reduced-motion: reduce) {
  .dh-preloader__house,
  .dh-ph,
  .dh-ph-smoke,
  .dh-preloader__bar span {
    animation: none;
  }

  .dh-ph {
    stroke-dashoffset: 0;
  }

  .dh-ph--win {
    fill: rgba(var(--dh-accent-rgb), 0.85);
  }
}

/* ==========================================================================
   END: Preloader
   ========================================================================== */

/* ==========================================================================
   START: Hero search bar and advanced search modal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Search bar
   -------------------------------------------------------------------------- */
.dh-advanced-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--dh-sand);
  border-radius: 10px;
  background: #fff;
  color: var(--dh-primary);
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dh-advanced-btn:hover,
.dh-advanced-btn:focus {
  border-color: var(--dh-primary);
  background: var(--dh-bg);
  outline: none;
}

.dh-advanced-btn svg circle {
  fill: #fff;
}

/* Small badge with the number of active filters */
.dh-advanced-count:empty {
  display: none;
}

.dh-advanced-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--dh-accent);
  color: #fff;
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

/* Search Now button */

/* Responsive */

/* --------------------------------------------------------------------------
   2. Advanced Search modal (Bootstrap 4 modal)
   -------------------------------------------------------------------------- */
.dh-filter-modal .modal-content {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(var(--dh-primary-rgb), 0.25);
  font-family: var(--dh-font-body);
  overflow: hidden;
}

/* Bootstrap's ".modal-dialog-scrollable" expects header/body/footer to be
   direct flex children of .modal-content. Our <form> sits in between, so it
   has to pass the flex layout on – otherwise the modal grows instead of
   scrolling and the footer gets cut off. */
.dh-filter-modal .modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 3.5rem);
}

.dh-filter-modal .modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.dh-filter-modal .modal-header,
.dh-filter-modal .modal-footer {
  flex-shrink: 0;
}

.dh-filter-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Slim scrollbar inside the modal body */
.dh-filter-modal .modal-body::-webkit-scrollbar {
  width: 8px;
}

.dh-filter-modal .modal-body::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(var(--dh-primary-rgb), 0.25);
}

@media (max-width: 575px) {
  .dh-filter-modal .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
  }
}

.dh-filter-modal .modal-header {
  align-items: flex-start;
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--dh-sand);
}

.dh-filter-modal .modal-title {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(22px, calc(20.592px + 0.376vw), 26px);
  font-weight: 600;
  color: var(--dh-primary);
  text-transform: none;
}

.dh-filter-modal__sub {
  margin: 4px 0 0;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: #666;
}

.dh-filter-modal .dh-filter-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--dh-sand);
  border-radius: 50%;
  color: var(--dh-primary);
  opacity: 1;
  text-shadow: none;
  transition: background-color 0.2s ease;
}

.dh-filter-modal .dh-filter-modal__close:hover {
  background: var(--dh-bg);
  opacity: 1;
}

.dh-filter-modal .modal-body {
  padding: 24px 32px 8px;
}

.dh-filter-group {
  min-width: 0;
  margin: 0 0 26px;
  padding-top: 0;
  border: 0;
}

.dh-filter-label {
  display: block;
  width: auto;
  margin-bottom: 12px;
  font-family: var(--dh-font-heading);
  font-size: clamp(16px, calc(15.296px + 0.188vw), 18px);
  font-weight: 600;
  color: var(--dh-primary);
}

/* Checkboxes (Bootstrap custom-checkbox, recolored) */
.dh-check.custom-control {
  min-height: 22px;
  margin-bottom: 12px;
  padding-left: 32px;
}

/* hide the native box */
.dh-check .custom-control-input {
  position: absolute;
  left: 0;
  z-index: -1;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
}

.dh-check .custom-control-label {
  display: inline-block;
  margin: 0;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 22px;
  color: #333;
  cursor: pointer;
}

.dh-check .custom-control-label::before {
  position: absolute;
  top: 1px;
  left: -32px;
  width: 20px;
  height: 20px;
}

.dh-check .custom-control-label::before {
  border: 1.5px solid #bfb8a8;
  border-radius: 5px;
  background: #fff;
}

.dh-check .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--dh-primary);
  background-color: var(--dh-primary);
}

/* Own white tick (drawn with borders, no icon font / image needed) */
.dh-check .custom-control-label {
  position: relative;
}

.dh-check .custom-control-label::after {
  content: "";
  position: absolute !important;
  display: block;
  top: 4px !important;
  left: -25px !important;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  background: none !important;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.dh-check .custom-control-input:checked ~ .custom-control-label::after {
  opacity: 1;
}

.dh-check .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 3px rgba(var(--dh-primary-rgb), 0.18);
}

.dh-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

/* Min – Max fields */
.dh-range {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.dh-range__field {
  flex: 1 1 0;
}

.dh-range__field label {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  color: #666;
}

.dh-range__field .form-control {
  height: 48px;
  border: 1px solid var(--dh-sand);
  border-radius: 10px;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: var(--dh-primary);
}

.dh-range__field .form-control:focus {
  border-color: var(--dh-primary);
  box-shadow: 0 0 0 3px rgba(var(--dh-primary-rgb), 0.12);
}

.dh-filter-modal .modal-footer {
  justify-content: space-between;
  padding: 16px 32px 24px;
  border-top: 1px solid var(--dh-sand);
}

.dh-btn-text {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dh-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.dh-btn-primary {
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background: var(--dh-primary);
  color: #fff;
  font-weight: 600;
}

.dh-btn-primary:hover,
.dh-btn-primary:focus {
  background: var(--dh-primary);
  color: #fff;
  opacity: 0.9;
}

.dh-filter-modal.modal {
  z-index: 100050;
}

.modal-backdrop {
  z-index: 100040;
}

/* Modal backdrop in a light brand green */
.modal-backdrop.show {
  background-color: var(--dh-primary);
  opacity: 0.28;
}

@media (max-width: 575px) {
  .dh-filter-modal .modal-header,
  .dh-filter-modal .modal-body,
  .dh-filter-modal .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .dh-check-grid {
    grid-template-columns: 1fr;
  }
}

/* Text under the hero heading */

/* --------------------------------------------------------------------------
   Hero overlay – all screen sizes
   Extra black layer on the photo for better text readability.
   Change --dh-hero-overlay to make it lighter or darker.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Hero size + position – only on screens up to 1600px wide
   - full screen height (100vh), grows only if the content needs more room
   - content centred vertically, inner container keeps its normal width
   - the top padding keeps the content clear of the transparent header

   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Search modal: keyword and type on top (components/search-modal.php)
   -------------------------------------------------------------------------- */
.dh-filter-main {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* keyword + type 50 / 50 in one row */
  gap: 16px 12px;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--dh-sand);
}

.dh-filter-main__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dh-filter-main__field label {
  margin: 0;
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.dh-filter-main .form-control {
  height: 50px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 48px;
  border: 1px solid var(--dh-sand);
  border-radius: 12px;
  background-color: #fff;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #333;
  box-shadow: none;
}

.dh-filter-main .form-control:focus {
  border-color: var(--dh-primary);
  box-shadow: 0 0 0 3px rgba(var(--dh-primary-rgb), 0.1);
}

.dh-filter-main__field--keyword .form-control {
  padding-left: 44px;
}

.dh-filter-main__icon svg {
  display: block;
  fill: none;
}

.dh-filter-main__control {
  position: relative;
}

.dh-filter-main__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--dh-accent);
  pointer-events: none;
}

.dh-filter-modal .modal-footer .dh-btn svg {
  margin-right: 6px;
}

@media (max-width: 479px) {
  .dh-filter-main {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Filter modal: gold (secondary) for checked, hover and focus states
   -------------------------------------------------------------------------- */
.dh-filter-modal {
  accent-color: var(--dh-accent);
}

.dh-check .custom-control-label:hover::before {
  border-color: var(--dh-accent);
}

.dh-check .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
}

.dh-check .custom-control-input:focus ~ .custom-control-label::before {
  border-color: var(--dh-accent);
  box-shadow: 0 0 0 3px rgba(var(--dh-accent-rgb), 0.2);
}

.dh-filter-modal .form-control:hover {
  border-color: rgba(var(--dh-accent-rgb), 0.6);
}

.dh-filter-modal .form-control:focus,
.dh-filter-main .form-control:focus,
.dh-range__field .form-control:focus {
  border-color: var(--dh-accent);
  box-shadow: 0 0 0 3px rgba(var(--dh-accent-rgb), 0.15);
  outline: 0;
}

/* dropdown list: selected / hovered option in gold */
.dh-filter-modal select option:checked,
.dh-filter-modal select option:hover,
.dh-filter-modal select option:focus {
  background: var(--dh-accent) linear-gradient(var(--dh-accent), var(--dh-accent));
  color: #fff;
}

/* --------------------------------------------------------------------------
   Filter modal – small screen fixes
   -------------------------------------------------------------------------- */
/* close button keeps its size */
.dh-filter-modal .dh-filter-modal__close {
  flex: 0 0 38px;
  min-width: 38px;
  min-height: 38px;
}

/* nice-select dropdown as wide as its field */
.dh-filter-modal .nice-select {
  width: 100%;
  float: none;
}

.dh-filter-modal .nice-select .list {
  right: 0;
  left: 0;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  border-radius: 12px;
}

/* "Clear all" and "Show properties" on one line, compact button */
.dh-filter-modal .modal-footer {
  flex-wrap: nowrap;
  gap: 16px;
}

.dh-filter-modal .modal-footer > * {
  margin: 0;
}

.dh-filter-modal .modal-footer .dh-btn {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 20px;
  white-space: nowrap;
}

/* small screens: rooms / bathrooms side by side instead of one per line */
@media (max-width: 767px) {
  .dh-filter-modal fieldset.dh-filter-group > .dh-check.custom-control {
    display: inline-flex;
    margin-right: 22px;
  }

  .dh-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
}

@media (max-width: 399px) {
  .dh-check-grid {
    grid-template-columns: 1fr;
  }

  .dh-filter-modal .modal-footer .dh-btn {
    padding: 0 16px;
    font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  }
}

/* ==========================================================================
   END: Hero search bar and advanced search modal
   ========================================================================== */

/* ==========================================================================
   START: Featured properties slider
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Section
   -------------------------------------------------------------------------- */


.dh-featured__slide {
  padding: 12px 15px 20px;
}

/* Equal-height cards in both card sliders (Featured + Popular) */
.dh-card-slider .swiper-wrapper {
  display: flex !important;
}

.dh-card-slider .swiper-slide {
  height: auto !important;
  float: none;
}

.dh-card-slider .dh-featured__slide {
  height: 100%;
}

.dh-card-slider .dh-featured__slide {
  padding: 12px 15px 20px;
}

.dh-prop-card {
  --dh-card-title-lh: 1.3;
  --dh-card-title-size: 20px;
  --dh-card-desc-lh: 1.6;
  --dh-card-desc-size: 14px;

  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--dh-sand);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(var(--dh-primary-rgb), 0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.dh-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(var(--dh-primary-rgb), 0.14);
}

/* --------------------------------------------------------------------------
   1. Image + 2nd image on hover (smooth cross-fade, no jump)
   -------------------------------------------------------------------------- */
.dh-prop-card__media {
  position: relative;
  flex: 0 0 auto;
  /* height: 250px; */
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--dh-bg);
}

.dh-prop-card__img {
  position: absolute;
  inset: 0;
  display: block;
}

.dh-prop-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.dh-prop-card__photo--hover {
  opacity: 0;
}

.dh-prop-card:hover .dh-prop-card__photo {
  transform: scale(1.05);
}

.dh-prop-card:hover .dh-prop-card__photo--hover {
  opacity: 1;
}

/* soft gradient at the bottom so the round buttons stay visible */
.dh-prop-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.32) 100%);
  pointer-events: none;
}

/* Tags */
.dh-prop-card__tag {
  position: absolute;
  top: 16px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--dh-font-body);
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.dh-prop-card__tag--featured {
  left: 16px;
  background: var(--dh-primary);
}

.dh-prop-card__tag--status {
  right: 16px;
  background: rgba(30, 30, 30, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Share + Favourite on the image */
.dh-prop-card__media-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.dh-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  /* dark glass: looks the same on bright and dark photos */
  background: rgba(20, 20, 20, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.dh-prop-card .dh-icon-btn i,
.dh-prop-card .dh-icon-btn i:hover {
  color: inherit !important;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  line-height: 1;
}

.dh-icon-btn:hover,
.dh-icon-btn:focus-visible {
  background: #fff;
  color: var(--dh-primary);
  outline: none;
}

/* Share + heart are inline SVGs (no icon font needed) */
.dh-icon-btn .dh-icon-svg {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

/* Saved: heart is filled */
.dh-icon-btn.dh-action--fav.is-active .dh-icon-heart {
  fill: currentColor;
}

.dh-icon-btn.dh-action--fav.is-active {
  background: #fff;
  color: #c0392b;
}

/* --------------------------------------------------------------------------
   2. Content
   -------------------------------------------------------------------------- */
.dh-prop-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px 22px 18px;
}

/* Title: max 2 lines (no empty space reserved under a 1-line title) */
.dh-prop-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
  font-family: var(--dh-font-heading);
  font-size: var(--dh-card-title-size);
  font-weight: 600;
  line-height: var(--dh-card-title-lh);
  text-transform: none;
}

.dh-prop-card__title a {
  color: var(--dh-primary);
}

.dh-prop-card__title a:hover {
  color: var(--dh-primary);
  text-decoration: none;
}

.dh-prop-card__address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: auto 0 0;  /* pushes location, facts and price to the bottom */
  padding: 14px 0;   /* space above and below the location */
  overflow: hidden;
  font-family: var(--dh-font-body);
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  line-height: 1.5;
  color: #666;
  white-space: nowrap;
}

.dh-prop-card__address span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-prop-card__address i {
  margin-top: 3px;
  color: var(--dh-accent);
}

/* Description: max 3 lines (no empty space reserved – any extra height in a
   taller neighbour card goes above the price row only) */
.dh-prop-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-family: var(--dh-font-body);
  font-size: var(--dh-card-desc-size);
  line-height: var(--dh-card-desc-lh);
  color: #555;
}

.dh-prop-card__facts {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.dh-prop-card__facts li {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  font-family: var(--dh-font-body);
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: #555;
  white-space: nowrap;
}

.dh-prop-card__facts i {
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: var(--dh-primary);
}

/* Location + facts + price are one bottom group: margin-top:auto on the
   location pushes all three down, so they line up in every card of a row */
.dh-prop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--dh-sand);
}

.dh-prop-card__price {
  font-family: var(--dh-font-heading);
  font-size: clamp(17px, calc(15.944px + 0.282vw), 20px);
  font-weight: 600;
  color: var(--dh-primary);
  white-space: nowrap;
}

/* "View details" – plain text, underlined while the card is hovered */
.dh-prop-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--dh-font-body);
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-primary);
  white-space: nowrap;
  text-decoration: none;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.dh-prop-card__more svg {
  transition: transform 0.25s ease;
}

.dh-prop-card:hover .dh-prop-card__more,
.dh-prop-card__more:focus-visible {
  color: var(--dh-primary);
  text-decoration: underline;
}

.dh-prop-card:hover .dh-prop-card__more svg {
  transform: translateX(3px);
}

/* Small "Link copied / Saved" message */
.dh-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 100100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--dh-primary);
  color: #fff;
  font-family: var(--dh-font-body);
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  box-shadow: 0 10px 30px rgba(var(--dh-primary-rgb), 0.3);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.dh-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   3. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
  .dh-prop-card {
    --dh-card-title-size: 19px;
  }

  .dh-prop-card__media {
    height: 220px;
  }

  .dh-prop-card__facts {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dh-prop-card,
  .dh-prop-card__photo {
    transition: none;
  }
}

/* ==========================================================================
   END: Property cards
   ========================================================================== */

/* ==========================================================================
   START: Discover section
   ========================================================================== */

body .dh-discover .sec-title.discover h2,
body .dh-discover .sec-title.discover h2 span {
  color: var(--dh-primary);
}

body .dh-discover .sec-title.discover p {
  color: #666;
}

/* 2. Slider spacing (arrows now live in the section header)
      Same negative gutter as Featured so the first card lines up with the heading */
.dh-discover .container-fluid {
  max-width: 1560px;
}

body .dh-discover .dh-discover__slider {
  margin: 0 -15px;
}

.dh-discover .dh-discover__slider {
  padding-top: 0;
  padding-bottom: 20px;
}

/* 4. Dots in brand green */
body .dh-discover .dh-dots {
  display: flex !important;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

body .dh-discover .dh-dots li,
body .dh-discover .dh-dots li.is-active {
  width: auto;
  height: auto;
  margin: 0;
  box-shadow: none;
  line-height: 1;
}

body .dh-discover .dh-dots li::after {
  display: none;
}

body .dh-discover .dh-dots button {
  display: block;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid var(--dh-primary);
  border-radius: 50%;
  background: transparent;
  font-size: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

body .dh-discover .dh-dots .is-active button {
  background: var(--dh-primary);
  transform: scale(1.1);
}

/* ==========================================================================
   END: Discover section
   ========================================================================== */

/* ==========================================================================
   START: Shared sections
   ========================================================================== */

/* Section headings */
body .dh-sec-head .sec-title.sec-title h2 {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(30px, calc(20px + 2vw), 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--dh-primary);
  text-transform: none;
}

/* Last word in the 2nd brand color (gold, like "Homes" in the logo) */
body .dh-sec-head .sec-title.sec-title h2 .dh-hl {
  position: static;
  font-weight: inherit;
  color: var(--dh-accent);
}

body .dh-sec-head .sec-title.sec-title h2 .dh-hl::before,
body .dh-sec-head .sec-title.sec-title h2 .dh-hl::after {
  content: none;
}

body .dh-sec-head .sec-title.sec-title p {
  max-width: 680px;  /* about 2 lines on desktop */
  margin: 12px 0 0;
  font-family: var(--dh-font-body);
  font-size: clamp(15px, calc(14px + 0.2vw), 17px);
  line-height: 1.6;
  color: #666;
  text-align: left;
}

/* --------------------------------------------------------------------------
   2. Heading row: text left, arrows / CTA right
   -------------------------------------------------------------------------- */
.dh-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(28px, 2vw + 16px, 48px);
}

body .dh-sec-head .sec-title.sec-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}

/* Slider arrows */
.dh-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--dh-sand);
  border-radius: 50%;
  background: #fff;
  color: var(--dh-primary);
  box-shadow: 0 6px 20px rgba(var(--dh-primary-rgb), 0.10);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.dh-arrow:hover,
.dh-arrow:focus-visible {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff;
  outline: none;
}

/* Swiper marks the end arrows as disabled (only without loop) */
.dh-arrow.swiper-button-disabled,
.dh-arrow[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* CTA button */

/* Hover = gold fill from the mouse position: css/main.css */

/* --------------------------------------------------------------------------
   3. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .dh-sec-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dh-arrow {
    width: 46px;
    height: 46px;
  }
}

/* ==========================================================================
   END: Shared sections
   ========================================================================== */

/* ==========================================================================
   START: Why choose us
   ========================================================================== */


.dh-why__grid {
  row-gap: 30px;
}

@media (max-width: 500px) {
 .dh-why__grid {
  row-gap: 18px;
} 
}

.dh-why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 34px 26px 30px;
  border: 1px solid var(--dh-sand);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.dh-why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--dh-accent-rgb), 0.45);
  box-shadow: 0 18px 40px rgba(var(--dh-primary-rgb), 0.10);
}

/* Recoloured SVG icon */
.dh-why-card__icon {
  display: block;
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  background-color: var(--dh-accent);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform 0.35s ease;
}

.dh-why-card:hover .dh-why-card__icon {
  transform: scale(1.06);
}

.dh-why-card__title {
  margin: 0 0 12px;
  font-family: var(--dh-font-heading);
  font-size: clamp(18px, calc(16.944px + 0.282vw), 21px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dh-primary);
  text-transform: none;
}

.dh-why-card__text {
  margin: 0;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.65;
  color: #666;
}

@media (prefers-reduced-motion: reduce) {
  .dh-why-card,
  .dh-why-card__icon {
    transition: none;
  }
}

/* ==========================================================================
   END: Why choose us
   ========================================================================== */

/* ==========================================================================
   START: Pricing cards
   ========================================================================== */


section.dh-pricing {
  padding: 4.6rem 0;
}

.dh-pricing__row {
  row-gap: 30px;
  padding-top: 16px; /* room for the "Bestseller" badge */
}

/* Card */
.dh-pricing .dh-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 36px 36px 36px;
  border: 1px solid var(--dh-sand);
  border-radius: 20px;
  background: #fff;
  color: var(--dh-primary);
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.dh-pricing .dh-plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(var(--dh-primary-rgb), 0.18);
}

/* Filled state: PREMIUM always, SELF/PROFI on hover */
.dh-pricing .dh-plan--featured,
.dh-pricing .dh-plan:hover {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff;
}

.dh-plan__badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--dh-accent);
  color: #fff;
  font-family: var(--dh-font-body);
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

/* Head */
.dh-plan__name {
  margin: 0 0 6px;
  font-family: var(--dh-font-heading);
  font-size: clamp(26px, calc(20px + 0.6vw), 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: inherit;
  text-transform: none;
}

.dh-plan__tagline {
  margin: 0 0 22px;
  font-family: var(--dh-font-heading);
  font-size: clamp(16px, calc(15.296px + 0.188vw), 18px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--dh-accent);
}

.dh-plan__price {
  margin: 0 0 6px;
  font-family: var(--dh-font-heading);
  font-size: clamp(32px, calc(24px + 0.9vw), 42px);
  font-weight: 600;
  line-height: 1.1;
  color: inherit;
}

.dh-plan__price small {
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 400;
  opacity: 0.75;
}

.dh-plan__note {
  margin: 0 0 24px;
  font-family: var(--dh-font-body);
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-accent);
}

.dh-plan hr {
  margin: 0 0 24px;
  border: 0;
  border-top: 1px solid var(--dh-sand);
  transition: border-color 0.35s ease;
}

.dh-plan--featured hr,
.dh-plan:hover hr {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* Feature list */
.dh-plan__list {
  margin: 0 0 32px;
  padding: 0;
}

.dh-plan__list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 32px;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.45;
  color: inherit;
}

.dh-plan__list li:last-child {
  margin-bottom: 0;
}

.dh-plan__list .dh-plan__lead {
  font-weight: 700;
}

.dh-plan__list .cs_feature_icon {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  color: var(--dh-accent);
}

/* Button (plain text, colour change only) */
.dh-pricing .dh-plan__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-top: auto;
  padding: 0 20px;
  overflow: hidden;
  border: 1.5px solid var(--dh-primary);
  border-radius: 999px;
  background: var(--dh-primary);
  color: #fff;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.dh-pricing .dh-plan--featured .dh-plan__btn,
.dh-pricing .dh-plan:hover .dh-plan__btn {
  border-color: #fff;
  background: #fff;
  color: var(--dh-primary);
}

.dh-pricing .dh-plan__btn:hover,
.dh-pricing .dh-plan__btn:focus-visible {
  text-decoration: none;
}

@media (max-width: 1399px) {
  .dh-pricing .dh-plan {
    padding: 32px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dh-pricing .dh-plan {
    transition: none;
  }
}

/* Desktop: middle card is a little taller than the other two */
@media (min-width: 992px) {
  .dh-pricing__row {
    align-items: center;
    padding-top: 34px;
    padding-bottom: 18px;
  }

  .dh-pricing .dh-plan {
    height: auto;
    min-height: 100%;
  }

  .dh-pricing .dh-plan.dh-plan--featured {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* Button hover: gold fill from the mouse (css/main.css).
   Needed here because the filled-card rules above are more specific. */
.dh-pricing .dh-plan .dh-plan__btn.dh-btn:hover,
.dh-pricing .dh-plan .dh-plan__btn.dh-btn:focus-visible {
  border-color: var(--dh-accent);
  color: #fff;
}

/* ==========================================================================
   END: Pricing cards
   ========================================================================== */

/* ==========================================================================
   START: Testimonials
   ========================================================================== */


body section.testimonials.dh-testimonials {
  padding: 4.6rem 0;
}

/* Equal-height cards inside the slider */
.dh-testi-slider .swiper-wrapper {
  display: flex;
}

.dh-testi-slider .swiper-slide {
  display: flex;
  height: auto;
  padding: 10px 0 24px;
}

.dh-testi {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px 26px 30px;
  border: 1px solid var(--dh-sand);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(var(--dh-primary-rgb), 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dh-testi:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(var(--dh-primary-rgb), 0.12);
}

.dh-testi__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* keep the avatar small inside the slider */
.dh-testi-slider .swiper-slide img.dh-testi__avatar {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 2px solid var(--dh-sand);
  border-radius: 50%;
  object-fit: cover;
}

.dh-testi__who {
  flex: 1 1 auto;
  min-width: 0;
}

.dh-testi__name {
  margin: 0 0 2px;
  font-family: var(--dh-font-heading);
  font-size: clamp(16px, calc(15.296px + 0.188vw), 18px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dh-primary);
  text-transform: none;
}

.dh-testi__place {
  margin: 0;
  font-family: var(--dh-font-body);
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  line-height: 1.4;
  color: #777;
}

.dh-testi__quote {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--dh-accent);
  opacity: 0.85;
}

.dh-testi__text {
  margin: 0;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.7;
  color: #555;
}

@media (max-width: 575px) {
  .dh-testi {
    padding: 24px 22px 26px;
  }
}

/* --------------------------------------------------------------------------
   -------------------------------------------------------------------------- */
.dh-stars {
  display: flex;
  gap: 3px;
  color: var(--dh-accent);
}

.dh-testi__text {
  margin-bottom: 20px;
}

.dh-testi__stars {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--dh-sand);
}

/* The slider clips at its edge; with sub-pixel widths the first card's left
   border was cut off. Give the clip area 4px extra on both sides
   (padding + equal negative margin keeps the cards on the same line). */
.dh-testi-slider {
  margin-right: -4px;
  margin-left: -4px;
  padding-right: 4px;
  padding-left: 4px;
}

/* ==========================================================================
   END: Testimonials
   ========================================================================== */

/* ==========================================================================
   START: FAQ
   ========================================================================== */


section.dh-faq {
  padding: 4.6rem 0 3.6rem;
  overflow: hidden; /* the illustration sticks out to the left */
}

.dh-faq .cs_gap_y_40 {
  row-gap: 40px;
}

.dh-faq .dh-sec-head {
  margin-bottom: 0;
}

/* Illustration */
.dh-faq__img {
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  margin-left: -120px;
}

.dh-faq__img img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
}

/* Accordion (Bootstrap 4 collapse – markup: .accordion > .dh-faq__item) */
.dh-faq__item {
  border-bottom: 1px solid var(--dh-sand);
}

.dh-faq__q {
  margin: 0;
}

.dh-faq__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

/* No black box after a mouse click – keep a ring for keyboard users only */
.dh-faq__toggle:focus {
  outline: none;
  box-shadow: none;
}

.dh-faq__toggle:focus-visible .dh-faq__icon {
  box-shadow: 0 0 0 3px rgba(var(--dh-accent-rgb), 0.35);
}

.dh-faq__title {
  font-family: var(--dh-font-heading);
  font-size: clamp(18px, calc(16px + 0.35vw), 22px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--dh-primary);
  transition: color 0.25s ease;
}

.dh-faq__toggle:hover .dh-faq__title {
  color: var(--dh-accent);
}

/* Round +/− icon */
.dh-faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--dh-sand);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.dh-faq__icon::before,
.dh-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--dh-primary);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* "+" made of two bars */
.dh-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* open: the "+" turns 45° into a cross "×" on a green circle */
.dh-faq__toggle:not(.collapsed) .dh-faq__icon {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  transform: rotate(45deg);
}

.dh-faq__toggle:not(.collapsed) .dh-faq__icon::before,
.dh-faq__toggle:not(.collapsed) .dh-faq__icon::after {
  background: #fff;
}

.dh-faq__a {
  padding: 0 56px 24px 0;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.7;
  color: #555;
}

/* Smoother open/close than Bootstrap's default 0.35s ease */
.dh-faq__list .collapsing {
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 991px) {
  .dh-faq__img {
    display: none;
  }

  .dh-faq__a {
    padding-right: 0;
  }
}

/* ==========================================================================
   END: FAQ
   ========================================================================== */

/* ==========================================================================
   START: Modals (video)
   ========================================================================== */



.modal {
  z-index: 100050 !important;
}

.modal-backdrop {
  z-index: 100040 !important;
}

/* --------------------------------------------------------------------------
   2. Video modal
   -------------------------------------------------------------------------- */

/* Darker backdrop for the video */

/* ==========================================================================
   END: Modals (video)
   ========================================================================== */

/* ==========================================================================
   START: Buttons
   ========================================================================== */


.dh-btn {
  --dh-btn-fill: var(--dh-accent);      /* hover fill colour      */
  --dh-btn-fill-text: #fff;             /* text colour on hover   */
  --dh-btn-fx-size: 400px;              /* set by JS from the size */

  position: relative;
  isolation: isolate;                   /* circle stays behind the text */
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.3s ease;
}

/* The growing circle */
.dh-btn__fx {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: var(--dh-btn-fill);
  transform: translate(-50%, -50%);
  transition: width 0.45s ease-in-out, height 0.45s ease-in-out;
  pointer-events: none;
}

.dh-btn:hover .dh-btn__fx,
.dh-btn:focus-visible .dh-btn__fx {
  width: var(--dh-btn-fx-size);
  height: var(--dh-btn-fx-size);
}

/* Primary: green background, white text */
.dh-btn.dh-btn--primary {
  border-color: var(--dh-primary);
  background-color: var(--dh-primary);
  color: #fff;
}

/* Outline: transparent with green border + text */
.dh-btn.dh-btn--outline {
  border-color: var(--dh-primary);
  background-color: transparent;
  color: var(--dh-primary);
}

/* Hover (both): gold circle fills the button, text turns white.
   The background itself stays the same – only the circle changes it,
   so it can shrink back to the point where the mouse leaves. */
.dh-btn.dh-btn--primary:hover,
.dh-btn.dh-btn--primary:focus-visible,
.dh-btn.dh-btn--outline:hover,
.dh-btn.dh-btn--outline:focus-visible {
  border-color: var(--dh-btn-fill);
  color: var(--dh-btn-fill-text);
  text-decoration: none;
  opacity: 1;
}

.dh-btn.dh-btn--primary:hover {
  background-color: var(--dh-primary);
}

.dh-btn.dh-btn--outline:hover {
  background-color: transparent;
}

.dh-btn:hover svg,
.dh-btn:hover span:not(.dh-btn__fx) {
  color: inherit !important;
}

@media (prefers-reduced-motion: reduce) {
  .dh-btn__fx {
    transition: none;
  }
}

/* No underline on any button, in any state */
.dh-btn,
.dh-btn:hover,
.dh-btn:focus,
.dh-btn:focus-visible,
.dh-btn:active,
.dh-btn span,
.dh-btn:hover span {
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   Button shape: slightly rounded corners, not pills.
   Change --dh-btn-radius to adjust every text button on the site.
   Round icon buttons (search, arrows, share, favourite) stay round.
   -------------------------------------------------------------------------- */
:root {
  --dh-btn-radius: 6px;
}

.dh-btn,
.dh-btn.dh-btn--primary,
.dh-btn.dh-btn--outline,
a.dh-btn,
button.dh-btn,
.h2-btn,
.dh-btn-outline,
.dh-btn-primary,
.dh-plan__btn,
.cs_pricing_btn,
.btn-yellow.dh-btn,
.dh-advanced-btn:not(.dh-search-btn),
#header .dh-header__cta a.dh-btn-login,
#header .dh-header__cta a.dh-btn-login:hover,
#header .dh-header__cta a.dh-btn-login:focus,
.dh-offcanvas .dh-offcanvas__btn,
.dh-filter-modal .modal-footer .dh-btn {
  border-radius: var(--dh-btn-radius) !important;
}

/* the hover fill circle is clipped by the button, so it follows the shape */
.dh-btn {
  overflow: hidden;
}

/* ==========================================================================
   END: Buttons
   ========================================================================== */

/* ==========================================================================
   START: Layout: containers, page surfaces, cream section
   ========================================================================== */


:root {
  --dh-container: 1560px;                          /* content width */
  --dh-gutter: clamp(16px, 4vw, 64px);              /* left/right space: 16px mobile → 64px desktop */
  --dh-section-y: clamp(56px, 4vw + 24px, 96px);    /* top/bottom space */
}

/* --------------------------------------------------------------------------
   1. Same left/right space (x axis) for all sections + footer
   -------------------------------------------------------------------------- */
body section.rec-pro > .container-fluid,
body footer.cs_footer > .container {
  width: 100%;
  max-width: var(--dh-container);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--dh-gutter);
  padding-left: var(--dh-gutter);
}

/* --------------------------------------------------------------------------
   2. Same top/bottom space (y axis) for every section between hero and footer
      (doubled class = wins over the per-section files without !important)
   -------------------------------------------------------------------------- */
body section.rec-pro.rec-pro {
  padding-top: var(--dh-section-y);
  padding-bottom: var(--dh-section-y);
}

/* Remove extra space at the bottom of the sliders, so the visible gap
   under each section matches the others */
body .dh-card-slider,
body .dh-discover .dh-discover__slider {
  padding-bottom: 12px;
}

body .dh-featured .dh-dots,
body .dh-discover .dh-dots {
  margin-top: 20px;
}
@media (max-width: 400px) {
  body .dh-featured .dh-dots,
  body .dh-discover .dh-dots {
    margin-top: 0px;
  }
  
}

body .dh-testi-slider .swiper-slide {
  padding-bottom: 12px;
}

body .dh-pricing__row {
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   3. Header (normal + sticky) – same width and left/right space as the
      sections, so logo and Login line up with the content below
   -------------------------------------------------------------------------- */
body #header .container.dh-header {
  width: 100%;
  max-width: var(--dh-container);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--dh-gutter);
  padding-left: var(--dh-gutter);
}

/* 993–1199px: the full desktop menu needs the room – slightly smaller side space */
@media (min-width: 993px) and (max-width: 1199px) {
  body #header .container.dh-header {
    padding-right: 24px;
    padding-left: 24px;
  }
}

/* --------------------------------------------------------------------------
   Page surfaces: body colour + one cream section class
   (values in css/main.css, dark mode only changes the values)
   -------------------------------------------------------------------------- */
body {
  background-color: var(--dh-body-bg);
}

body .dh-section-cream {
  background-color: var(--dh-cream-bg);
  background-image: var(--dh-cream-dots);
  background-size: var(--dh-cream-dots-size);
}

/* ==========================================================================
   END: 
   ========================================================================== */

/* ==========================================================================
   START: Image hover effect
   ========================================================================== */

/* zero specificity: never overrides a component's own position/overflow */
:where(.dh-img-hover) {
  position: relative;
  overflow: hidden;
}

.dh-img-hover {
  isolation: isolate; /* the sweep stays inside this box, tags/badges stay on top */
}

/* the light band (rotated -45deg, grows from the centre) */
.dh-img-hover:not(.dh-img-hover--alt)::after,
.dh-img-hover--alt::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 200%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}

.dh-img-hover:not(.dh-img-hover--alt):hover::after,
.dh-img-hover-group:hover .dh-img-hover:not(.dh-img-hover--alt)::after,
.dh-img-hover--alt:hover::before,
.dh-img-hover-group:hover .dh-img-hover--alt::before {
  height: 250%;
  background-color: transparent;
  transition: height 0.6s linear, background-color 0.6s linear;
}

/* soft zoom of the photo
   :where() = zero specificity, so a component's own photo transition
   (e.g. the 2-photo fade in property cards) is never overwritten */
:where(.dh-img-hover) img {
  transition: transform 1s ease;
}

:where(.dh-img-hover:hover, .dh-img-hover-group:hover .dh-img-hover) img {
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .dh-img-hover:not(.dh-img-hover--alt)::after,
  .dh-img-hover--alt::before {
    display: none;
  }

  :where(.dh-img-hover) img {
    transition: none;
  }
}

/* ==========================================================================
   END: Image hover effect
   ========================================================================== */

/* ==========================================================================
   START: Glass property card (ocard)
   ========================================================================== */
/* ==========================================================================
   Direct Homes – Dark property card
   Markup: components/property-card.php → dh_property_card_overlay()
   Photo on top, fading into a dark content panel. The classic card
   (dh_property_card, css/main.css) stays as it is.
   ========================================================================== */
.dh-ocard {
  --dh-ocard-bg: #16231e;

  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--dh-ocard-bg);
  color: #fff;
  box-shadow: 0 18px 40px rgba(var(--dh-primary-rgb), 0.14);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}

.dh-ocard:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(var(--dh-primary-rgb), 0.22);
}

/* ---- photo ---- */
.dh-ocard__media {
  position: relative;
  flex: 0 0 auto;
  height: 265px;
}

.dh-ocard__img {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.dh-ocard__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* smooth fade from the photo into the dark panel */
.dh-ocard__media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 55%;
  background: linear-gradient(180deg,
    rgba(22, 35, 30, 0) 0%,
    rgba(22, 35, 30, 0.45) 45%,
    rgba(22, 35, 30, 0.85) 75%,
    var(--dh-ocard-bg) 100%);
  pointer-events: none;
}

/* labels: Featured left, status right (same places as the classic card) */
/* label row: Featured left, status right */
.dh-ocard__tags {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.dh-ocard__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: clamp(11.5px, calc(11.148px + 0.094vw), 12.5px);
  font-weight: 600;
  color: #fff;
}

.dh-ocard__tag--featured {
  border-color: #fff;
  background: #fff;
  color: var(--dh-primary);
}

.dh-ocard__tag--featured svg {
  color: var(--dh-accent);
}

.dh-ocard__tag--status {
  margin-left: auto;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(22, 35, 30, 0.55);   /* readable on light photos too */
}

/* share + favourite on the photo, bottom right */
.dh-ocard__actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.dh-ocard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button:focus-visible{

}

.dh-ocard__icon svg {
  fill: none;
}

.dh-ocard__icon:hover,
.dh-ocard__icon:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--dh-primary);
}

.dh-ocard__icon.dh-action--fav.is-active {
  border-color: var(--dh-accent);
  background: var(--dh-accent);
  color: #fff;
}

.dh-ocard__icon.dh-action--fav.is-active svg {
  fill: currentColor;
}

/* ---- content ---- */
.dh-ocard__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 8px 22px 22px;
}

.dh-ocard__title {
  margin: 0 0 8px;
  font-family: var(--dh-font-heading);
  font-size: clamp(18px, calc(16.944px + 0.282vw), 21px);
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

.dh-ocard__title a,
.dh-ocard__title a:hover {
  color: #fff;
  text-decoration: none;
}

.dh-ocard__desc {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.dh-ocard__address {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: clamp(12.5px, calc(12.148px + 0.094vw), 13.5px);
  color: rgba(255, 255, 255, 0.78);
}

.dh-ocard__address svg {
  flex: 0 0 auto;
  color: #D9B77A;
}

.dh-ocard__address span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* rooms | baths | living area */
.dh-ocard__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.dh-ocard__facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
  text-align: center;
}

.dh-ocard__facts li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.dh-ocard__facts li:first-child {
  align-items: flex-start;
  padding-left: 0;
  text-align: left;
}

.dh-ocard__facts b i {
  margin-right: 7px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: #D9B77A;   /* gold icons, like the classic card */
}

.dh-ocard__facts b {
  font-size: clamp(14.5px, calc(14.148px + 0.094vw), 15.5px);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
}

.dh-ocard__facts span {
  font-size: clamp(11.5px, calc(11.148px + 0.094vw), 12.5px);
  color: rgba(255, 255, 255, 0.62);
}

/* price + link */
.dh-ocard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dh-ocard__facts + .dh-ocard__footer {
  margin-top: 16px;
}

.dh-ocard__price {
  font-family: var(--dh-font-heading);
  font-size: clamp(18.5px, calc(17.268px + 0.329vw), 22px);
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}

.dh-ocard__more {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  font-size: clamp(12.5px, calc(12.148px + 0.094vw), 13.5px);
  font-weight: 600;
  color: #D9B77A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dh-ocard__more:hover,
.dh-ocard__more:focus-visible {
  color: #fff;
  text-decoration: none;
}

.dh-ocard__more svg {
  transition: transform 0.3s ease;
}

.dh-ocard__more:hover svg {
  transform: translateX(3px);
}

/* slider spacing; equal card height inside the slider */
.dh-ocard-slider .swiper-wrapper {
  display: flex;
}

.dh-ocard-slider .swiper-slide {
  height: auto;
}

.dh-ocard-slider .dh-featured__slide {
  height: 100%;
  padding: 14px 10px 26px;
}

/* 3.5 cards from 1200px: three full cards, half of the next one peeks in.
   Swiper sizes the slides from the slider's inner width, so a right padding
   of 1/7 of the width leaves room for exactly half a card. */

@media (prefers-reduced-motion: reduce) {
  .dh-ocard,
  .dh-ocard__more svg {
    transition: none;
  }
}

/* ==========================================================================
   END: Glass property card (ocard)
   ========================================================================== */

/* ==========================================================================
   START: Wide property card (wcard)
   ========================================================================== */
/* ==========================================================================
   Direct Homes – Wide property card
   Markup: components/property-card-wide.php → dh_property_card_wide()
   White card (same colours as the classic card, css/main.css):
   photo left with the labels, details right.
   Below 640px the photo moves on top.
   ========================================================================== */
.dh-wcard {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  /* border: 1px solid var(--dh-sand); */
  border-radius: 14px;
  background: #fff;
  color: #666;
  box-shadow: 0 6px 18px rgba(var(--dh-primary-rgb), 0.07);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}

.dh-wcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(var(--dh-primary-rgb), 0.14);
}

/* ---- photo ---- */
.dh-wcard__media {
  position: relative;
  flex: 0 0 46%;
  max-width: 46%;
  background: var(--dh-bg);
}

.dh-wcard__img {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.dh-wcard__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* light shade at the top and bottom so the labels and icons stay readable */
.dh-wcard__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 68%,
    rgba(0, 0, 0, 0.32) 100%);
  pointer-events: none;
}

/* labels: Featured + status, top left */
.dh-wcard__tags {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.dh-wcard__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(22, 35, 30, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: clamp(11.5px, calc(11.148px + 0.094vw), 12.5px);
  font-weight: 600;
  color: #fff;
}

.dh-wcard__tag--featured {
  border-color: #fff;
  background: #fff;
  color: var(--dh-primary);
}

.dh-wcard__tag--featured svg {
  color: var(--dh-accent);
}

/* share + favourite, bottom left on the photo */
.dh-wcard__actions {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.dh-wcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.dh-wcard__icon:hover,
.dh-wcard__icon:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--dh-primary);
}

.dh-wcard__icon.dh-action--fav.is-active {
  border-color: var(--dh-accent);
  background: var(--dh-accent);
  color: #fff;
}

.dh-wcard__icon.dh-action--fav.is-active svg {
  fill: currentColor;
}

/* ---- details ---- */
.dh-wcard__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 26px 28px 24px;
}

.dh-wcard__address {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: clamp(12.5px, calc(12.148px + 0.094vw), 13.5px);
  color: #555;
}

.dh-wcard__address svg {
  flex: 0 0 auto;
  color: var(--dh-accent);
}

.dh-wcard__address span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-wcard__title {
  margin: 0 0 8px;
  font-family: var(--dh-font-heading);
  font-size: clamp(19.5px, calc(18.268px + 0.329vw), 23px);
  font-weight: 400;
  line-height: 1.25;
  text-transform: none;
}

.dh-wcard__title a {
  color: var(--dh-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dh-wcard__title a:hover {
  color: var(--dh-accent);
  text-decoration: none;
}

/* description: 2 lines under the title */
.dh-wcard__desc {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: clamp(13.5px, calc(13.148px + 0.094vw), 14.5px);
  line-height: 1.6;
  color: #666;
}

/* rooms | baths | living area */
.dh-wcard__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--dh-sand);
  border-bottom: 1px solid var(--dh-sand);
  list-style: none;
}

.dh-wcard__facts li {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
}

.dh-wcard__facts li:first-child {
  padding-left: 0;
}

.dh-wcard__facts li + li {
  border-left: 1px solid var(--dh-sand);
}

.dh-wcard__facts b {
  font-size: clamp(14.5px, calc(14.148px + 0.094vw), 15.5px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dh-primary);
  white-space: nowrap;
}

.dh-wcard__facts b i {
  margin-right: 7px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: var(--dh-accent);
}

.dh-wcard__facts span {
  font-size: clamp(11.5px, calc(11.148px + 0.094vw), 12.5px);
  color: #777;
}

/* price + link */
.dh-wcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.dh-wcard__price {
  font-family: var(--dh-font-heading);
  font-size: clamp(20.5px, calc(19.268px + 0.329vw), 24px);
  line-height: 1.1;
  color: var(--dh-primary);
  white-space: nowrap;
}

.dh-wcard__more {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dh-wcard__more:hover,
.dh-wcard__more:focus-visible {
  color: var(--dh-accent);
  text-decoration: none;
}

.dh-wcard__more svg {
  transition: transform 0.3s ease;
}

.dh-wcard__more:hover svg {
  transform: translateX(3px);
}

/* the whole card opens the detail page: the title link stretches over the
   card; share + favourite stay clickable above it */
.dh-wcard {
  cursor: pointer;
}

.dh-wcard__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.dh-wcard__actions {
  z-index: 3;
}

/* hover: title and "View details" turn gold, the link gets an underline */
.dh-wcard__more {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.dh-wcard:hover .dh-wcard__title a,
.dh-wcard:focus-within .dh-wcard__title a {
  color: var(--dh-accent);
  text-decoration: none;
}

.dh-wcard:hover .dh-wcard__more,
.dh-wcard:focus-within .dh-wcard__more,
.dh-wcard__more:hover,
.dh-wcard__more:focus-visible {
  color: var(--dh-accent);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.dh-wcard:hover .dh-wcard__more svg {
  transform: translateX(3px);
}

.dh-wcard__title a:focus-visible {
  outline: none;
}

.dh-wcard:focus-within {
  box-shadow: 0 0 0 3px rgba(var(--dh-accent-rgb), 0.45), 0 22px 44px rgba(var(--dh-primary-rgb), 0.13);
}

/* slider: 2 cards from 992px, 1 card below */
.dh-wcard-slider .dh-featured__slide {
  padding: 14px 12px 26px;
}

/* 992–1199: two cards are narrower, so a slightly smaller text */
@media (min-width: 992px) and (max-width: 1199px) {
  .dh-wcard__media {
    flex-basis: 40%;
    max-width: 40%;
  }

  .dh-wcard__body {
    padding: 22px 20px 20px;
  }

  .dh-wcard__title {
    font-size: clamp(18px, calc(16.944px + 0.282vw), 21px);
  }

  .dh-wcard__desc {
    -webkit-line-clamp: 2;
  }

  .dh-wcard__facts li {
    padding: 0 6px;
  }

  .dh-wcard__facts b {
    font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  }

  .dh-wcard__facts b i {
    margin-right: 5px;
    font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  }

  .dh-wcard__price {
    font-size: clamp(17px, calc(16.296px + 0.188vw), 19px);
  }

  .dh-wcard__more {
    font-size: clamp(11.5px, calc(11.148px + 0.094vw), 12.5px);
  }

  .dh-wcard__footer {
    gap: 8px;
  }
}

/* phones: photo on top */
@media (max-width: 639px) {
  .dh-wcard {
    flex-direction: column;
    min-height: 0;
  }

  .dh-wcard__media {
    flex: 0 0 auto;
    max-width: none;
    aspect-ratio: 16/9;
  }

  .dh-wcard__actions {
    left: auto;
    right: 16px;
  }

  .dh-wcard__body {
    padding: 20px 20px 22px;
  }

  .dh-wcard__title,
  .dh-wcard__price {
    font-size: clamp(18px, calc(16.944px + 0.282vw), 21px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dh-wcard,
  .dh-wcard__more svg {
    transition: none;
  }
}

/* ==========================================================================
   END: Wide property card (wcard)
   ========================================================================== */

/* ==========================================================================
   START: Homepage: sections (body.dh-home2)
   ========================================================================== */
/* ==========================================================================
   Colours/fonts from
   css/main.css. All classes start with "h2-" so nothing here
   ========================================================================== */

:where([class*="dh-home2"]).dh-home2 {
  --h2-radius: 20px;
  --h2-radius-lg: 28px;
  --h2-sand-soft: #F1EADF;
}

/* --------------------------------------------------------------------------
   0. Shared building blocks
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]) .h2-container {
  width: 100%;
  max-width: var(--dh-container, 1560px);
  margin: 0 auto;
  padding: 0 var(--dh-gutter, 15px);
}

:where([class*="dh-home2"]) .h2-section {
  padding: var(--dh-section-y, 88px) 0;
}

/* cards that slide in from the side (AOS fade-left / fade-right) stay
   inside the section, so the page never scrolls sideways */
.h2-section {
  overflow-x: clip;
}

/* small spaced label above headings ("OUR PACKAGES") */

:where([class*="dh-home2"]) .h2-title {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(36px, calc(20px + 2vw), 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--dh-primary);
  margin-bottom: 25px;
}

:where([class*="dh-home2"]) .h2-title--xl {
  font-size: clamp(34px, calc(22px + 2.4vw), 56px);
}

:where([class*="dh-home2"]) .h2-title .dh-hl {
  color: var(--dh-accent);
}

/* Heading row: title left, text (+ link/arrows) right */
:where([class*="dh-home2"]) .h2-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 60px;
  align-items: end;
  margin-bottom: clamp(40px, 3vw, 52px);
}

@media (min-width: 992px) {
  :where([class*="dh-home2"]) .h2-head {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

:where([class*="dh-home2"]) .h2-head__text {
  /* max-width: 560px; */
  margin: 0;
  font-size: clamp(15px, calc(14px + 0.2vw), 17px);
  line-height: 1.65;
  color: #666;
}

:where([class*="dh-home2"]) .h2-arrows {
  display: flex;
  gap: 12px;
}

/* Buttons (hover fill comes from css/main.css) */
:where([class*="dh-home2"]) .h2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1.5px solid;
  border-radius: 999px;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

/* Outline button on the green card: white text/border */

/* Text link with arrow */

/* Round icon on a sand circle */
:where([class*="dh-home2"]) .h2-icon-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E9DFCE;
  color: var(--dh-primary);
}

/* Photo with one big curved corner */
:where([class*="dh-home2"]) .h2-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: clamp(36px, 4vw, 60px);
}

@media (min-width: 992px) {
  :where([class*="dh-home2"]) .h2-intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

:where([class*="dh-home2"]) .h2-intro__img {
  overflow: hidden;
  height: clamp(220px, 26vw, 315px);
  border-radius: 12px 12px 12px 160px;
}

:where([class*="dh-home2"]) .h2-intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   1. Light header on this page (same look as the sticky header)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   2. Hero
      .h2h         text left, photo right fading into the page colour,
                   "Your sale at a glance" card
      .h2h-search  search bar on the bottom edge of the hero
      .h2h-strip   sand feature strip under the search
   -------------------------------------------------------------------------- */

/* Header on this page: transparent, nav in a white glass pill */

/* Photo: right 64%, fades into the page colour on the left and top */

/* "Your sale at a glance" card */
:where([class*="dh-home2"]) .h2h__glance {
  align-self: start;
  justify-self: end;
  width: 330px;
  margin-top: 10px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(var(--dh-primary-rgb), 0.22);
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
}

:where([class*="dh-home2"]) .h2h__glance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

:where([class*="dh-home2"]) .h2h__glance-head p {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2h__glance-head span {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--dh-bg);
  font-size: clamp(10px, calc(9.648px + 0.094vw), 11px);
  font-weight: 600;
  color: var(--dh-accent);
}

:where([class*="dh-home2"]) .h2h__glance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: var(--dh-bg);
}

:where([class*="dh-home2"]) .h2h__glance-item img {
  width: 62px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

:where([class*="dh-home2"]) .h2h__glance-item strong {
  display: block;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  color: #333;
}

:where([class*="dh-home2"]) .h2h__glance-item small {
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  color: #888;
}

:where([class*="dh-home2"]) .h2h__glance-item i {
  margin-left: auto;
  font-style: normal;
  color: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2h__glance-tabs {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #eee;
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  color: #888;
}

:where([class*="dh-home2"]) .h2h__glance-tabs li {
  padding: 6px 2px;
}

:where([class*="dh-home2"]) .h2h__glance-tabs .is-active {
  border-bottom: 2px solid var(--dh-primary);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2h__glance-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-home2"]) .h2h__glance-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #444;
}

:where([class*="dh-home2"]) .h2h__glance-steps li > span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e6e6e6;
  color: #fff;
}

:where([class*="dh-home2"]) .h2h__glance-steps li > span.is-done {
  background: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2h__glance-steps svg {
  width: 12px;
  height: 12px;
}

:where([class*="dh-home2"]) .h2h__glance-steps em {
  margin-left: auto;
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  font-style: normal;
  color: #888;
}

:where([class*="dh-home2"]) .h2h__glance-steps i {
  position: relative;
  width: 96px;
  height: 4px;
  margin-left: auto;
  border-radius: 4px;
  background: #ececec;
}

:where([class*="dh-home2"]) .h2h__glance-steps i b {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2h__glance-steps i.is-muted b {
  background: #9aa7a3;
}

/* Search bar */

/* Feature strip */

/* ---- Tablet ---- */

/* ---- Tablet + mobile: text, then photo with the card, then search ---- */
@media (max-width: 991px) {

  :where([class*="dh-home2"]) .h2h__glance {
    position: relative;
    z-index: 2;
    order: 3;
    align-self: center;
    width: calc(100% - 28px);
    max-width: 380px;
    margin: -70px 0 0;
  }
}

/* ---- Mobile ---- */

/* --------------------------------------------------------------------------
   4. Two ways to sell – wide image cards
   -------------------------------------------------------------------------- */

/* soft fade from the card colour into the photo */

/* --------------------------------------------------------------------------
   5. Popular places – mosaic with one big tile
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   6. Property sliders (cards from css/main.css)
   -------------------------------------------------------------------------- */
body:where([class*="dh-home2"]).dh-home2 section.h2-props.dh-featured,
body:where([class*="dh-home2"]).dh-home2 section.h2-props.dh-discover {
  padding: var(--dh-section-y, 88px) 0;
}

:where([class*="dh-home2"]) .h2-props .dh-card-slider {
  margin: 0 -15px;
}

/* --------------------------------------------------------------------------
   7. Package cards + add-ons
   -------------------------------------------------------------------------- */

/* Add-on strip */

/* --------------------------------------------------------------------------
   8. SELF vs PREMIUM table
   -------------------------------------------------------------------------- */

/* Highlight banners */
:where([class*="dh-home2"]) .h2-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 26px;
  padding: 24px 30px;
  border-radius: var(--h2-radius);
  background: #F3E9DA;
}

:where([class*="dh-home2"]) .h2-banner__title {
  margin: 0 0 2px;
  font-family: var(--dh-font-heading);
  font-size: clamp(19px, calc(16px + 0.6vw), 26px);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2-banner__text {
  margin: 0;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #666;
}

:where([class*="dh-home2"]) .h2-banner--profi {
  background: #E9DFCE;
}

:where([class*="dh-home2"]) .h2-banner--profi .h2-btn {
  margin-left: auto;
}

:where([class*="dh-home2"]) .h2-banner__big {
  font-family: var(--dh-font-heading);
  font-size: clamp(40px, calc(28px + 1.6vw), 60px);
  font-weight: 600;
  line-height: 1;
  color: var(--dh-primary);
}

/* --------------------------------------------------------------------------
   9. PROFI service cards
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]) .h2-profi__grid {
  row-gap: 20px;
}
@media (max-width: 500px) {
  :where([class*="dh-home2"]) .h2-profi__grid {
    row-gap: 13px !important;
  }

  :where([class*="dh-home2"]) .h2-service {

  padding: 13px !important;

}

:where([class*="dh-home2"]) .h2-icon-badge {

  width: 55px !important;
  height: 55px !important;

}
  
}

:where([class*="dh-home2"]) .h2-service {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 24px 26px;
  border: 1px solid var(--dh-sand);
  border-radius: var(--h2-radius);
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

:where([class*="dh-home2"]) .h2-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(var(--dh-primary-rgb), 0.1);
}

:where([class*="dh-home2"]) .h2-service .h2-icon-badge {
  color: var(--dh-accent);
}

:where([class*="dh-home2"]) .h2-service__title {
  margin: 0 0 4px;
  font-family: var(--dh-font-heading);
  font-size: clamp(17px, calc(15.944px + 0.282vw), 20px);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2-service__text {
  margin: 0;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.55;
  color: #666;
}

/* --------------------------------------------------------------------------
   10. Testimonials + FAQ + blog
   -------------------------------------------------------------------------- */
body:where([class*="dh-home2"]).dh-home2 section.testimonials.dh-testimonials.h2-reviews {
  padding: var(--dh-section-y, 88px) 0;
}

body:where([class*="dh-home2"]).dh-home2 section.dh-faq.h2-faq {
  padding: var(--dh-section-y, 88px) 0;
}

:where([class*="dh-home2"]) .h2-faq .h2-head__text {
  margin-top: 16px;
}

:where([class*="dh-home2"]) .h2-faq__cta {
  margin: 24px 0 32px;
}

:where([class*="dh-home2"]) .h2-blog__row {
  row-gap: 30px;
}

/* --------------------------------------------------------------------------
   11. Contact band
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  :where([class*="dh-home2"]) .h2-path,
:where([class*="dh-home2"]) .h2-path__img img,
:where([class*="dh-home2"]) .h2-place img,
:where([class*="dh-home2"]) .h2-plan,
:where([class*="dh-home2"]) .h2-service,
:where([class*="dh-home2"]) .h2-post,
:where([class*="dh-home2"]) .h2-post__img img {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   12. Fixes
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]).dh-home2 .h2-title,
:where([class*="dh-home2"]).dh-home2 .h2-plan__name,
:where([class*="dh-home2"]).dh-home2 .h2-service__title,
:where([class*="dh-home2"]).dh-home2 .h2-post__title,
:where([class*="dh-home2"]).dh-home2 .h2-addons__title,
:where([class*="dh-home2"]).dh-home2 .h2-banner__title,
:where([class*="dh-home2"]).dh-home2 .h2-table thead th {
  text-transform: none;
}

/* Last city tile spans 2 columns so the mosaic has no gap on desktop */

/* the carousel runs to the right edge of the screen */

/* space on the right shows part of the next city ("peek") */

/* before the slider starts: simple row, no jump */

/* --------------------------------------------------------------------------
   Hero – fixes
   1. Cockpit card vertically centred next to the text
   2. Search bar: simple fields on one line
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  :where([class*="dh-home2"]) .h2h__glance {
    align-self: center;
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   Hero search bar: white card with soft ring, Advanced Search button
   -------------------------------------------------------------------------- */

/* select fields: the nice-select box itself carries the border */

/* Advanced Search: white button with sand border (css/main.css) */

/* --------------------------------------------------------------------------
   Hero – bigger Cockpit card on large screens
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
  :where([class*="dh-home2"]) .h2h__glance {
    width: 380px;
    padding: 24px;
    font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  }

  :where([class*="dh-home2"]) .h2h__glance-head p { font-size: clamp(16px, calc(15.296px + 0.188vw), 18px); }
  :where([class*="dh-home2"]) .h2h__glance-item img { width: 72px; height: 54px; }
  :where([class*="dh-home2"]) .h2h__glance-item strong { font-size: clamp(13px, calc(12.648px + 0.094vw), 14px); }
  :where([class*="dh-home2"]) .h2h__glance-tabs { font-size: clamp(12px, calc(11.648px + 0.094vw), 13px); }
  :where([class*="dh-home2"]) .h2h__glance-steps li { padding: 8px 0; }
  :where([class*="dh-home2"]) .h2h__glance-steps i { width: 110px; }
}

@media (min-width: 1700px) {
  :where([class*="dh-home2"]) .h2h__glance {
    width: 430px;
    padding: 28px;
    border-radius: 22px;
    font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  }

  :where([class*="dh-home2"]) .h2h__glance-head p { font-size: clamp(17px, calc(15.944px + 0.282vw), 20px); }
  :where([class*="dh-home2"]) .h2h__glance-item img { width: 84px; height: 62px; }
  :where([class*="dh-home2"]) .h2h__glance-item strong { font-size: clamp(14px, calc(13.648px + 0.094vw), 15px); }
  :where([class*="dh-home2"]) .h2h__glance-item small { font-size: clamp(12px, calc(11.648px + 0.094vw), 13px); }
  :where([class*="dh-home2"]) .h2h__glance-tabs { font-size: clamp(13px, calc(12.648px + 0.094vw), 14px); }
  :where([class*="dh-home2"]) .h2h__glance-steps li > span { width: 26px; height: 26px; }
  :where([class*="dh-home2"]) .h2h__glance-steps i { width: 130px; height: 5px; }
}

/* --------------------------------------------------------------------------
   Photo property cards
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]) .h2-props .dh-featured__slide {
  padding: 14px 12px 24px;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard {
  position: relative;
  height: 470px;
  overflow: hidden;
  border-radius: 22px;
  background: #ddd;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__img {
  position: absolute;
  inset: 0;
  display: block;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

/* soft dark top so the tags stay readable */
:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));
  pointer-events: none;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__tags {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__tags span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__tags .is-featured {
  background: var(--dh-accent);
  color: #fff;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__icon:hover,
:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__icon:focus-visible {
  background: #fff;
  color: var(--dh-primary);
  outline: none;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__icon.dh-action--fav.is-active {
  background: #fff;
  color: #c0392b;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__icon.dh-action--fav.is-active .dh-icon-heart {
  fill: currentColor;
}

/* Floating info panel */
:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__panel {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__city {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: clamp(12.5px, calc(12.148px + 0.094vw), 13.5px);
  color: #5f6b67;
  transition: color 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__city svg {
  flex: 0 0 auto;
  color: var(--dh-accent);
}

:where([class*="dh-home2"], [class*="dh-page-blog"]):is(.dh-home2, .dh-page-blog) .h2-pcard__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
  font-family: var(--dh-font-heading);
  font-size: clamp(17px, calc(16.296px + 0.188vw), 19px);
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__title a {
  color: var(--dh-primary);
  text-decoration: none;
  transition: color 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(12.5px, calc(12.148px + 0.094vw), 13.5px);
  color: #5f6b67;
  transition: color 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--dh-sand);
  transition: border-color 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__price {
  font-family: var(--dh-font-heading);
  font-size: clamp(18.5px, calc(17.268px + 0.329vw), 22px);
  font-weight: 600;
  white-space: nowrap;
  color: var(--dh-primary);
  transition: color 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__go {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dh-primary);
  color: #fff;
  transition: background-color 0.35s ease, transform 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__go:hover {
  color: #fff;
}

/* Hover: card lifts, panel turns green */
:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(var(--dh-primary-rgb), 0.25);
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__img img {
  transform: scale(1.06);
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__panel {
  background: var(--dh-primary);
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__title a,
:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__price {
  color: #fff;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__city,
:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__facts {
  color: #c9d6d1;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__city svg {
  color: #D9B77A;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__row {
  border-color: rgba(255, 255, 255, 0.2);
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__go {
  background: var(--dh-accent);
  transform: translateX(3px);
}

/* Popular section: sand background like the design */

/* "Looking for something specific?" strip */

@media (max-width: 575px) {
  :where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard {
    height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard,
:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__img img {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Property sections – heading + description left,
   arrows right, aligned to the bottom of the text
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]) .h2-head.h2-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

:where([class*="dh-home2"]) .h2-head--split .h2-head__main {
  max-width: 680px;
}

:where([class*="dh-home2"]) .h2-head--split .h2-title {
  margin-bottom: 14px;
}

:where([class*="dh-home2"]) .h2-head--split .h2-arrows {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  :where([class*="dh-home2"]) .h2-head.h2-head--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Photo property cards – taller, real glass panel, icons, 1-line clamps
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard {
  height: 540px;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__panel {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__panel {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(var(--dh-primary-rgb), 0.88);
}

/* Title + description: one line each */
:where([class*="dh-home2"], [class*="dh-page-blog"]):is(.dh-home2, .dh-page-blog) .h2-pcard__title {
  display: block;
  -webkit-line-clamp: unset;
  overflow: hidden;
  margin-bottom: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__desc {
  overflow: hidden;
  margin: 0 0 12px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #4f5a56;
  transition: color 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__desc {
  color: #d5e0dc;
}

/* Facts with icons */
:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__facts {
  gap: 6px 16px;
  flex-wrap: nowrap;
  overflow: hidden;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__facts li {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__facts svg {
  flex: 0 0 auto;
  color: var(--dh-primary);
  transition: color 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard:hover .h2-pcard__facts svg {
  color: #D9B77A;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__row {
  border-top-color: rgba(var(--dh-primary-rgb), 0.15);
}

@media (max-width: 575px) {
  :where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard {
    height: 480px;
  }
}

/* --------------------------------------------------------------------------
   Testimonials: light cards
   -------------------------------------------------------------------------- */

/* Narrower cards (4 per row on laptops): smaller facts so all three fit */
@media (max-width: 1599px) {
  :where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  :where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__facts {
    gap: 10px;
    font-size: clamp(11.5px, calc(11.148px + 0.094vw), 12.5px);
  }

  :where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__facts li {
    gap: 4px;
  }

  :where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-pcard__facts svg {
    width: 14px;
    height: 14px;
  }
}

/* --------------------------------------------------------------------------
   "The right way for your sale" cards – hover fixes
   - keep the text colours (the global a:hover turned everything gold)
   - zoom the photo inside its box, so no strip appears at its left edge
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Popular places – below 1700px exactly 4 cards (no half card at the end)
   -------------------------------------------------------------------------- */
/* removed: the carousel runs to the right screen edge again at all widths */

/* --------------------------------------------------------------------------
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]) .h2-props .dh-featured__slide {
  padding: 12px 15px 20px;
}

/* --------------------------------------------------------------------------
   Blog cards – photo with glass panel (same look as the photo property card)
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-bcard {
  height: 460px;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]):is(.dh-home2, .dh-page-blog) .h2-bcard__title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: clamp(17px, calc(15.944px + 0.282vw), 20px);
  line-height: 1.3;
  margin-bottom: 8px;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-bcard__text {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-bcard__more {
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-primary);
  transition: color 0.35s ease;
}

:where([class*="dh-home2"], [class*="dh-page-blog"]) .h2-bcard:hover .h2-bcard__more {
  color: #fff;
}

:where([class*="dh-home2"]) .h2-blog__row {
  row-gap: 30px;
}

/* Header on this page: active/hovered link stays green (underline style) */

/* --------------------------------------------------------------------------
   Space between big intro headings and their text (Packages, PROFI)
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]) .h2-intro__text .h2-title {
  margin-bottom: 18px;
}

:where([class*="dh-home2"]) .h2-packages .dh-pricing__row {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Hero Cockpit preview – working tabs (Listing / Inquiries / Viewings)
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]) .h2h__glance-head small {
  font-size: clamp(10px, calc(9.648px + 0.094vw), 11px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a948f;
}

:where([class*="dh-home2"]) .h2h__glance-tabs {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  padding: 0;
  border-bottom: 1px solid #eee;
}

:where([class*="dh-home2"]) .h2h__glance-tabs button {
  flex: 1 1 0;
  padding: 7px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  font-family: var(--dh-font-body);
  font-size: inherit;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

:where([class*="dh-home2"]) .h2h__glance-tabs button:hover {
  color: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2h__glance-tabs button.is-active {
  border-bottom-color: var(--dh-primary);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2h__glance-tabs button:focus {
  outline: none;
  box-shadow: none;
}

:where([class*="dh-home2"]) .h2h__glance-tabs button:focus-visible {
  outline: 2px solid var(--dh-accent);
  outline-offset: 2px;
}

:where([class*="dh-home2"]) .h2h__glance-panel {
  min-height: 150px;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: h2h-fade 0.3s ease;
}

:where([class*="dh-home2"]) .h2h__glance-panel[hidden] {
  display: none;
}

@keyframes h2h-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

:where([class*="dh-home2"]) .h2h__glance-steps em {
  padding: 1px 8px;
  border-radius: 999px;
  background: #EEF3F1;
  font-size: clamp(10px, calc(9.648px + 0.094vw), 11px);
  font-weight: 600;
  color: var(--dh-primary);
}

/* Inquiries + Viewings rows */
:where([class*="dh-home2"]) .h2h__glance-msgs li,
:where([class*="dh-home2"]) .h2h__glance-dates li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f1f1f1;
}

:where([class*="dh-home2"]) .h2h__glance-msgs li:last-child,
:where([class*="dh-home2"]) .h2h__glance-dates li:last-child {
  border-bottom: 0;
}

:where([class*="dh-home2"]) .h2h__glance-msgs li > b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dh-sand);
  font-size: clamp(10px, calc(9.648px + 0.094vw), 11px);
  color: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2h__glance-msgs div,
:where([class*="dh-home2"]) .h2h__glance-dates div {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.3;
}

:where([class*="dh-home2"]) .h2h__glance-msgs strong,
:where([class*="dh-home2"]) .h2h__glance-dates strong {
  display: block;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  color: #333;
}

:where([class*="dh-home2"]) .h2h__glance-msgs small,
:where([class*="dh-home2"]) .h2h__glance-dates small {
  display: block;
  overflow: hidden;
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #888;
}

:where([class*="dh-home2"]) .h2h__glance-msgs em,
:where([class*="dh-home2"]) .h2h__glance-dates em {
  flex: 0 0 auto;
  font-size: clamp(10px, calc(9.648px + 0.094vw), 11px);
  font-style: normal;
  color: #999;
}

:where([class*="dh-home2"]) .h2h__glance-day {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 38px;
  border-radius: 8px;
  background: var(--dh-bg);
  font-size: clamp(9px, calc(8.648px + 0.094vw), 10px);
  line-height: 1.1;
  text-transform: uppercase;
  color: #888;
}

:where([class*="dh-home2"]) .h2h__glance-day b {
  font-family: var(--dh-font-heading);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2h__glance-dates em.is-ok {
  font-weight: 600;
  color: var(--dh-primary);
}

/* --------------------------------------------------------------------------
   Popular places – 1300–1699px: 3 full cards + 0.7 of the next (3.7)
   padding = 0.7/3.7 of the visible width; JS shows 3 slides below 1700px
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Testimonial cards – more content (title, text, property)
   -------------------------------------------------------------------------- */

/* FAQ – a bit more space above the Contact us button */
:where([class*="dh-home2"]) .h2-faq .h2-faq__cta {
  margin-top: 36px;
}

@media (max-width:500px) {
  :where([class*="dh-home2"]) .h2-title {
  margin-bottom: 17px;
}
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__media,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__media {
    aspect-ratio: 16/11 !important;
    height: auto !important;
}

:where([class*="dh-page-blog"]) .cs_page_header.cs_style_1,
:where([class*="dh-page-properties"]).dh-page-properties .cs_page_header.cs_style_1,
:where([class*="dh-page-legal"]).dh-page-legal .cs_page_header.cs_style_1 {
    border-radius: 0 0 25px 25px !important;
}

:where([class*="dh-page-contact"]) .dh-ct__list {
    
    margin: 0 !important;
    
}

.cs_footer.cs_style_1 .cs_logo img{
  height: 32px !important;
}
:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .cs_page_header.cs_style_1 {
    border-radius: 0 0 25px 25px !important;
}

:where([class*="dh-home3"]).dh-home3 .h3-pk-split__text {
    padding-top: 0 !important;
}

}

/* Search bar: top half sits on the cream hero, bottom half on the white
   "paths" section – so the white starts right under the hero */

/* Packages + PROFI intro: no photo – heading (2 lines) left, CTA right,
   aligned to the bottom of the text (same as the other section heads) */
:where([class*="dh-home2"]) .h2-head--split.h2-intro .h2-head__main {
  max-width: 820px;
}

/* --------------------------------------------------------------------------
   -------------------------------------------------------------------------- */

/* Packages: less space between the heading and the package cards */
:where([class*="dh-home2"]) .h2-packages .h2-intro {
  margin-bottom: clamp(16px, 1.6vw, 28px);
}

:where([class*="dh-home2"]) .h2-packages .dh-pricing .dh-pricing__row {
  margin-top: 0;
  padding-top: 20px; /* room for the "Bestseller" badge */
}

/* Search bar: no white outer ring, only the soft drop shadow */

/* Packages + PROFI intro headings (2 lines): tighter line height */
:where([class*="dh-home2"]) .h2-intro .h2-title {
  line-height: 1.04;
}

/* Packages: a bit more space between the heading and the cards */
:where([class*="dh-home2"]) .h2-packages .h2-intro {
  margin-bottom: clamp(28px, 2.6vw, 44px);
}

/* ==========================================================================
   END: Homepage: sections (body.dh-home2)
   ========================================================================== */

/* ==========================================================================
   START: 
   ========================================================================== */


:where([class*="dh-home2"]).dh-home2 {
  --dh-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   1. Scroll reveal (hidden only when JS runs: html.dh-motion)
   -------------------------------------------------------------------------- */
html.dh-motion :where([class*="dh-home2"]) .dh-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity 0.9s var(--dh-ease) var(--d, 0s),
    transform 0.9s var(--dh-ease) var(--d, 0s),
    filter 0.9s var(--dh-ease) var(--d, 0s);
}

html.dh-motion :where([class*="dh-home2"]) .dh-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* buttons: arrow nudges forward */
:where([class*="dh-home2"]).dh-home2 .h2-btn svg,
:where([class*="dh-home2"]).dh-home2 .h2-path__circle svg {
  transition: transform 0.35s var(--dh-ease);
}

:where([class*="dh-home2"]).dh-home2 .h2-btn:hover svg,
:where([class*="dh-home2"]).dh-home2 .h2-btn:focus-visible svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   2. Hero – floating Cockpit card
   -------------------------------------------------------------------------- */

@keyframes dh-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

:where([class*="dh-home2"]).dh-home2 .h2h__glance {
  transition: box-shadow 0.4s ease;
}

:where([class*="dh-home2"]).dh-home2 .h2h__glance:hover {
  box-shadow: 0 40px 80px rgba(var(--dh-primary-rgb), 0.22);
}

/* hero leaves room for the benefits bar */

/* --------------------------------------------------------------------------
   3. Benefits bar – glass card over the bottom of the hero
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]) .h2-benefits {
  position: relative;
  z-index: 3;
  margin-top: -78px;
  /* top half on the hero, bottom half on the white packages section */
  background: linear-gradient(180deg, transparent 0, transparent 78px, var(--dh-body-bg) 78px);
}

:where([class*="dh-home2"]) .h2-benefits__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(var(--dh-sand-rgb), 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 70px rgba(var(--dh-primary-rgb), 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

:where([class*="dh-home2"]) .h2-benefits__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
}

:where([class*="dh-home2"]) .h2-benefits__item + .h2-benefits__item::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 1px;
  background: var(--dh-sand);
}

:where([class*="dh-home2"]) .h2-benefits__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dh-bg);
  color: var(--dh-primary);
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.5s var(--dh-ease);
}

:where([class*="dh-home2"]) .h2-benefits__icon svg {
  width: 24px;
  height: 24px;
}

/* hover: only the icon changes colour and tilts */
:where([class*="dh-home2"]) .h2-benefits__item:hover .h2-benefits__icon {
  background: var(--dh-accent);
  color: #fff;
  transform: rotate(-10deg);
}

:where([class*="dh-home2"]) .h2-benefits__title {
  margin: 4px 0 6px;
  font-family: var(--dh-font-heading);
  font-size: clamp(17px, calc(16.296px + 0.188vw), 19px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-home2"]) .h2-benefits__text {
  margin: 0;
  font-size: clamp(13.5px, calc(13.148px + 0.094vw), 14.5px);
  line-height: 1.55;
  color: #666;
}

@media (max-width: 1199px) {
  :where([class*="dh-home2"]) .h2-benefits__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :where([class*="dh-home2"]) .h2-benefits__item:nth-child(3)::before {
    display: none;
  }
}

@media (max-width: 575px) {
  :where([class*="dh-home2"]) .h2-benefits {
    margin-top: -40px;
    background: linear-gradient(180deg, transparent 0, transparent 40px, var(--dh-body-bg) 40px);
  }

  :where([class*="dh-home2"]) .h2-benefits__list {
    grid-template-columns: 1fr;
  }

  :where([class*="dh-home2"]) .h2-benefits__item + .h2-benefits__item::before {
    top: 0;
    right: 22px;
    bottom: auto;
    left: 22px;
    width: auto;
    height: 1px;
  }
}

/* packages follow the benefits bar directly */
:where([class*="dh-home2"]).dh-home2 .h2-packages {
  padding-top: clamp(48px, 5vw, 80px);
}

/* featured package: breathes softly (scale in / out). Uses the "scale"
   property, so the normal hover lift (transform) still works on top. */
:where([class*="dh-home2"]).dh-home2 .h2-packages .dh-plan--featured {
  animation: dh-breathe 3.6s ease-in-out 1.2s infinite;
}

@keyframes dh-breathe {
  0%, 100% { scale: 1; }
  50%      { scale: 1.035; }
}

/* --------------------------------------------------------------------------
   4. Not an agent – comparison table
      One white table card, full container width. Columns:
      label (icon) | traditional agent (muted) | Directhomes (green header,
      light green cells)
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]) .h2-vs__table {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dh-sand);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(var(--dh-primary-rgb), 0.08);
}

:where([class*="dh-home2"]) .h2-vs__row {
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: stretch;
}

:where([class*="dh-home2"]) .h2-vs__row > span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 30px;
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  line-height: 1.5;
  transition: background-color 0.3s ease;
}

:where([class*="dh-home2"]) .h2-vs__row + .h2-vs__row > span {
  border-top: 1px solid #EFE9DD;
}

/* label column */
:where([class*="dh-home2"]) .h2-vs__label {
  font-family: var(--dh-font-heading);
  font-size: clamp(17px, calc(15.944px + 0.282vw), 20px) !important;
  color: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2-vs__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--dh-bg);
  color: var(--dh-primary);
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.45s var(--dh-ease);
}

:where([class*="dh-home2"]) .h2-vs__icon svg {
  width: 20px;
  height: 20px;
}

/* traditional agent column */
:where([class*="dh-home2"]) .h2-vs__agent {
  background: #FCFBF8;
  color: #9a9a9a;
}

/* Directhomes column */
:where([class*="dh-home2"]) .h2-vs__us {
  background: #F1F6F4;
  color: var(--dh-primary);
  font-weight: 500;
}

/* header row */
:where([class*="dh-home2"]) .h2-vs__row--head > span {
  padding-top: 24px;
  padding-bottom: 24px;
}

:where([class*="dh-home2"]) .h2-vs__row--head .h2-vs__label--head,
:where([class*="dh-home2"]) .h2-vs__row--head .h2-vs__agent {
  font-family: var(--dh-font-body);
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px) !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a0a0a0;
}

:where([class*="dh-home2"]) .h2-vs__row--head .h2-vs__agent {
  background: #F7F4EE;
}

:where([class*="dh-home2"]) .h2-vs__row--head .h2-vs__us {
  background: var(--dh-primary);
}

:where([class*="dh-home2"]) .h2-vs__row--head .h2-vs__us .dh-wordmark {
  font-size: clamp(24px, calc(22.592px + 0.376vw), 28px);
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}

:where([class*="dh-home2"]) .h2-vs__row--head .h2-vs__us .dh-wordmark span {
  color: #fff;
}

/* marks */
:where([class*="dh-home2"]) .h2-vs__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.5s var(--dh-ease) var(--d, 0s);
}

:where([class*="dh-home2"]) .h2-vs__mark svg {
  width: 14px;
  height: 14px;
}

:where([class*="dh-home2"]) .h2-vs__mark--no {
  background: rgba(229, 72, 77, 0.12);
  color: #E5484D;
}

:where([class*="dh-home2"]) .h2-vs__mark--yes {
  background: var(--dh-primary);
  color: #fff;
}

/* row hover: the whole row lights up a little */
:where([class*="dh-home2"]) .h2-vs__row:not(.h2-vs__row--head):hover .h2-vs__label {
  background: #FBF9F5;
}

:where([class*="dh-home2"]) .h2-vs__row:not(.h2-vs__row--head):hover .h2-vs__agent {
  background: #F8F6F1;
}

:where([class*="dh-home2"]) .h2-vs__row:not(.h2-vs__row--head):hover .h2-vs__us {
  background: #E6EFEB;
}

:where([class*="dh-home2"]) .h2-vs__row:hover .h2-vs__icon {
  background: var(--dh-primary);
  color: #fff;
  transform: rotate(-6deg);
}

/* ticks pop in one after the other once the table is visible */
html.dh-motion :where([class*="dh-home2"]) .h2-vs__table.dh-reveal .h2-vs__mark--yes {
  transform: scale(0);
}

html.dh-motion :where([class*="dh-home2"]) .h2-vs__table.dh-reveal.is-visible .h2-vs__mark--yes {
  transform: scale(1);
}

@media (max-width: 991px) {
  :where([class*="dh-home2"]) .h2-vs__row {
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr) minmax(0, 1.2fr);
  }

  :where([class*="dh-home2"]) .h2-vs__row > span {
    padding: 18px 18px;
    font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  }

  :where([class*="dh-home2"]) .h2-vs__icon {
    width: 38px;
    height: 38px;
  }
}

/* phones: label on its own line, agent and Directhomes side by side below */
@media (max-width: 767px) {
  :where([class*="dh-home2"]) .h2-vs__row {
    grid-template-columns: 1fr 1fr;
  }

  :where([class*="dh-home2"]) .h2-vs__row--head .h2-vs__label--head {
    display: none;
  }

  :where([class*="dh-home2"]) .h2-vs__label {
    grid-column: 1 / -1;
    padding: 16px 16px 10px !important;
    font-size: clamp(16px, calc(15.296px + 0.188vw), 18px) !important;
  }

  :where([class*="dh-home2"]) .h2-vs__row + .h2-vs__row > .h2-vs__agent,
:where([class*="dh-home2"]) .h2-vs__row + .h2-vs__row > .h2-vs__us {
    border-top: 0;
  }

  :where([class*="dh-home2"]) .h2-vs__row > .h2-vs__agent,
:where([class*="dh-home2"]) .h2-vs__row > .h2-vs__us {
    align-items: flex-start;
    padding: 12px 14px 16px;
    font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  }

  :where([class*="dh-home2"]) .h2-vs__row--head > span {
    padding: 16px 14px !important;
  }

  :where([class*="dh-home2"]) .h2-vs__row--head .h2-vs__us .dh-wordmark {
    font-size: clamp(17px, calc(15.944px + 0.282vw), 20px);
  }

  :where([class*="dh-home2"]) .h2-vs__mark {
    width: 24px;
    height: 24px;
  }
}

/* --------------------------------------------------------------------------
   5. How it works – four step cards (same family as the "Why choose us" cards)
   -------------------------------------------------------------------------- */
:where([class*="dh-home2"]) .h2-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: none;
}

:where([class*="dh-home2"]) .h2-step {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 28px 32px;
  overflow: hidden;
  border: 1px solid var(--dh-sand);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.45s var(--dh-ease), box-shadow 0.45s var(--dh-ease), border-color 0.45s ease;
}

/* gold line grows along the top edge on hover */
:where([class*="dh-home2"]) .h2-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--dh-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--dh-ease);
}

:where([class*="dh-home2"]) .h2-step:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--dh-accent-rgb), 0.45);
  box-shadow: 0 24px 50px rgba(var(--dh-primary-rgb), 0.1);
}

:where([class*="dh-home2"]) .h2-step:hover::before {
  transform: scaleX(1);
}

:where([class*="dh-home2"]) .h2-step__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

:where([class*="dh-home2"]) .h2-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--dh-bg);
  color: var(--dh-primary);
  transition: background-color 0.45s ease, color 0.45s ease, transform 0.5s var(--dh-ease);
}

:where([class*="dh-home2"]) .h2-step__icon svg {
  width: 26px;
  height: 26px;
}

:where([class*="dh-home2"]) .h2-step:hover .h2-step__icon {
  background: var(--dh-primary);
  color: #fff;
  transform: rotate(-8deg) scale(1.06);
}

:where([class*="dh-home2"]) .h2-step__num {
  font-family: var(--dh-font-heading);
  font-size: clamp(34.5px, calc(30.451px + 1.08vw), 46px);
  line-height: 1;
  color: rgba(var(--dh-accent-rgb), 0.3);
  transition: color 0.45s ease, transform 0.5s var(--dh-ease);
}

:where([class*="dh-home2"]) .h2-step:hover .h2-step__num {
  color: var(--dh-accent);
  transform: translateY(-3px);
}

:where([class*="dh-home2"]) .h2-step__title {
  margin: 0 0 12px;
  font-family: var(--dh-font-heading);
  font-size: clamp(18.5px, calc(17.268px + 0.329vw), 22px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-home2"]) .h2-step__text {
  margin: 0;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.65;
  color: #666;
}

@media (max-width: 1199px) {
  :where([class*="dh-home2"]) .h2-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  :where([class*="dh-home2"]) .h2-steps__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   7. Small refinements on existing sections
   -------------------------------------------------------------------------- */
/* testimonial section: dotted background when it is a "dots" section */

/* PROFI service cards: icon reacts on hover */
:where([class*="dh-home2"]).dh-home2 .h2-service .h2-icon-badge {
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.5s var(--dh-ease);
}

:where([class*="dh-home2"]).dh-home2 .h2-service:hover .h2-icon-badge {
  background: var(--dh-accent);
  color: #fff;
  transform: rotate(-8deg) scale(1.06);
}

/* --------------------------------------------------------------------------
   8. Reduce motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.dh-motion :where([class*="dh-home2"]) .dh-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  html.dh-motion :where([class*="dh-home2"]) .dh-float.is-visible,
:where([class*="dh-home2"]).dh-home2 .h2-packages .dh-plan--featured {
    animation: none;
  }

  html.dh-motion :where([class*="dh-home2"]) .h2-vs__table.dh-reveal .h2-vs__mark--yes {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   9. Hero Cockpit card: clearly an example of the user's own Cockpit
   -------------------------------------------------------------------------- */

/* ==========================================================================
   END: 
   ========================================================================== */

/* ==========================================================================
   START: Homepage: hero (body.dh-home2)
   ========================================================================== */

:where([class*="dh-home2"]) .dh-hhero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100vh, 860px);
  padding: 150px 0 170px;
  overflow: hidden;
  background: var(--dh-primary);
  color: #fff;
  text-align: center;
}

:where([class*="dh-home2"]) .dh-hhero__bg {
  position: absolute;
  inset: 0;
}

:where([class*="dh-home2"]) .dh-hhero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%; /* calm sky behind the text, house below */
}

/* green shade: darker at the top (header) and bottom (benefits bar) */
:where([class*="dh-home2"]) .dh-hhero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 35, 28, 0.5) 0%, rgba(10, 35, 28, 0.26) 42%, rgba(10, 35, 28, 0.62) 100%),
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(10, 35, 28, 0.32) 0%, rgba(10, 35, 28, 0) 100%);
}

:where([class*="dh-home2"]) .dh-hhero__inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

:where([class*="dh-home2"]) .dh-hhero__title {
  margin: 0 0 24px;
  font-family: var(--dh-font-heading);
  font-size: clamp(46px, calc(18px + 5.2vw), 96px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: #fff;
  text-transform: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

:where([class*="dh-home2"]) .dh-hhero__title em {
  font-style: italic;
  color: #D9B77A;
}

:where([class*="dh-home2"]) .dh-hhero__lead {
  max-width: 660px;
  margin: 0 auto;
  font-size: clamp(16px, calc(14px + 0.3vw), 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

:where([class*="dh-home2"]) .dh-hhero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

/* gold and ghost buttons (light on the dark photo) */
:where([class*="dh-home2"]) .dh-hhero .dh-btn.dh-btn--gold {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
  color: #fff;
  --dh-btn-fill: var(--dh-primary);
}

:where([class*="dh-home2"]) .dh-hhero .dh-btn.dh-btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  --dh-btn-fill: #fff;
}

:where([class*="dh-home2"]) .dh-hhero .dh-btn.dh-btn--ghost:hover {
  border-color: #fff;
  color: var(--dh-primary);
}

/* hover: border takes the same colour as the fill */
:where([class*="dh-home2"]) .dh-hhero .dh-btn.dh-btn--gold:hover,
:where([class*="dh-home2"]) .dh-hhero .dh-btn.dh-btn--gold:focus-visible {
  border-color: var(--dh-primary);
  color: #fff;
}

/* header (absolute) sits on top of the photo */
:where([class*="dh-home2"]) .dh-hhero {
  z-index: 0;
}

/* the benefits bar sits on the bottom edge: no white half behind it here */
:where([class*="dh-home2"]).dh-home2 .dh-hhero + .h2-benefits,
:where([class*="dh-home2"]).dh-home2 .h2-benefits {
  margin-top: -82px;
}

@media (max-width: 991px) {
  :where([class*="dh-home2"]) .dh-hhero {
    min-height: 0;
    padding: 150px 0 130px;
  }
}

@media (max-width: 575px) {
  :where([class*="dh-home2"]) .dh-hhero {
    padding: 120px 0 80px;
  }

  :where([class*="dh-home2"]) .dh-hhero__actions .dh-btn {
    width: 100%;
    justify-content: center;
  }

  /* the benefits bar starts under the hero (no overlap on phones) */
  :where([class*="dh-home2"]).dh-home2 .dh-hhero + .h2-benefits,
:where([class*="dh-home2"]).dh-home2 .h2-benefits {
    margin-top: 0;
    padding-top: 24px;
    background: var(--dh-body-bg);
  }
}

/* ==========================================================================
   END: Homepage: hero (body.dh-home2)
   ========================================================================== */

/* ==========================================================================
   START: Homepage V3: packages, why, PROFI (body.dh-home3)
   ========================================================================== */
/* ==========================================================================
   Direct Homes – Homepage version 3 (index-3.php, body.dh-home3)
   Built on the version 2 styles (css/main.css), plus:
   1. Hero: "Makler." in the same brand gold as the rest of the page
   2. Why sell with us: cards left, Cockpit preview on a photo right
   3. Packages: SELF and PREMIUM side by side
   4. PROFI: intro with curved photo, 2.9 % bar
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
:where([class*="dh-home3"]).dh-home3 .dh-hhero__title em {
  color: var(--dh-accent);
}

/* benefits bar: each point sits in the middle of its column */
@media (min-width: 576px) {
  :where([class*="dh-home3"]).dh-home3 .h2-benefits__item {
    align-items: start;
    justify-content: center;
  }

  :where([class*="dh-home3"]).dh-home3 .h2-benefits__item > div {
    flex: 0 1 auto;
    max-width: 230px;
  }
}

/* --------------------------------------------------------------------------
   2. Why sell with us + Cockpit preview
   -------------------------------------------------------------------------- */
:where([class*="dh-home3"]).dh-home3 .h3-why__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: stretch;
}

@media (min-width: 992px) {
  :where([class*="dh-home3"]).dh-home3 .h3-why__layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
}

:where([class*="dh-home3"]).dh-home3 .h3-why__grid {
  margin-bottom: 0;
}

:where([class*="dh-home3"]).dh-home3 .h3-why__grid .dh-why-card {
  align-items: flex-start;
  padding: 28px 26px;
  text-align: left;
}

:where([class*="dh-home3"]).dh-home3 .h3-why__grid .dh-why-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

:where([class*="dh-home3"]).dh-home3 .h3-why__grid .dh-why-card__title {
  font-size: clamp(17px, calc(15.944px + 0.282vw), 20px);
}

/* photo with the Cockpit card on top */
:where([class*="dh-home3"]).dh-home3 .h3-cockpit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 40px 24px;
  overflow: hidden;
  border-radius: 20px;
}

:where([class*="dh-home3"]).dh-home3 .h3-cockpit__photo {
  position: absolute;
  inset: 0;
}

:where([class*="dh-home3"]).dh-home3 .h3-cockpit__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where([class*="dh-home3"]).dh-home3 .h3-cockpit__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 35, 28, 0.1) 0%, rgba(10, 35, 28, 0.35) 100%);
}

:where([class*="dh-home3"]).dh-home3 .h3-cockpit .h2h__glance {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 380px;
  margin: 0;
}

@media (max-width: 575px) {
  :where([class*="dh-home3"]).dh-home3 .h3-cockpit {
    min-height: 0;
    padding: 24px 14px;
  }
}

/* --------------------------------------------------------------------------
   3. Packages (SELF + PREMIUM), two versions
   -------------------------------------------------------------------------- */
/* no "breathing" scale on the PREMIUM card in both versions */
:where([class*="dh-home3"]).dh-home3 .h2-packages .dh-plan--featured,
:where([class*="dh-home3"]).dh-home3 .h2-packages .dh-plan {
  animation: none;
}

/* both versions: cards of equal height, button at the bottom */
@media (min-width: 768px) {
  :where([class*="dh-home3"]).dh-home3 .h2-packages .dh-pricing__row {
    align-items: stretch;
  }

  :where([class*="dh-home3"]).dh-home3 .h2-packages .dh-pricing .dh-plan,
:where([class*="dh-home3"]).dh-home3 .h2-packages .dh-pricing .dh-plan.dh-plan--featured {
    height: 100%;
    padding-top: 40px;
    padding-bottom: 36px;
  }
}

/* 3a. Version 1: text left, cards right */
:where([class*="dh-home3"]).dh-home3 .h3-pk-split__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1200px) {
  :where([class*="dh-home3"]).dh-home3 .h3-pk-split__layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 60px;
  }
}

:where([class*="dh-home3"]).dh-home3 .h3-pk-split__cards .dh-pricing__row {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* text starts at the top of the cards (cards have 18px room for the badge) */
:where([class*="dh-home3"]).dh-home3 .h3-pk-split__text {
  padding-top: 35px;
}

:where([class*="dh-home3"]).dh-home3 .h3-pk-split__text .h2-head__text {
  margin-top: 14px;
  margin-bottom: 30px;
}

/* 3b. Version 2: heading on top, two white outline cards, features in
   two columns */

/* --------------------------------------------------------------------------
   4. PROFI (same as version 1)
   -------------------------------------------------------------------------- */
:where([class*="dh-home3"]).dh-home3 .h2-intro__text .h2-btn {
  margin-top: 26px;
}

:where([class*="dh-home3"]).dh-home3 .h2-intro__img img {
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

:where([class*="dh-home3"]).dh-home3 .h2-intro__img:hover img {
  transform: scale(1.05);
}

:where([class*="dh-home3"]).dh-home3 .h2-profi .h2-btn,
:where([class*="dh-home3"]).dh-home3 .h2-banner__big {
  white-space: nowrap;
}

@media (max-width: 991px) {
  :where([class*="dh-home3"]).dh-home3 .h2-profi .h2-intro__img {
    display: none;
  }
}

@media (min-width: 670px) {
  :where([class*="dh-home3"]).dh-home3 .h2-banner--profi {
    flex-wrap: nowrap;
  }

  :where([class*="dh-home3"]).dh-home3 .h2-banner--profi > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  :where([class*="dh-home3"]).dh-home3 .h2-banner--profi .h2-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 669px) {
  :where([class*="dh-home3"]).dh-home3 .h2-banner--profi {
    flex-direction: column;
    align-items: flex-start;
  }

  :where([class*="dh-home3"]).dh-home3 .h2-banner--profi .h2-btn {
    align-self: center;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where([class*="dh-home3"]).dh-home3 .h2-intro__img img {
    transition: none;
  }
}

/* ==========================================================================
   END: Homepage V3: packages, why, PROFI (body.dh-home3)
   ========================================================================== */

/* ==========================================================================
   START: Homepage variant B (body.dh-home2b)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero: no search bar any more, the strip follows directly
   -------------------------------------------------------------------------- */
/* Fixed height (no 100vh): 720px, 780px from 1600px. Header room on top,
   open space around the content, text and Cockpit card centered. */

/* Cockpit card floats gently up and down */

@keyframes h2b-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

/* --------------------------------------------------------------------------
   2. Benefits strip
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   3. SELF / PREMIUM cards: gold line under the label
   -------------------------------------------------------------------------- */

/* 4. Add-on services: css/main.css */

/* --------------------------------------------------------------------------
   5. Services at a glance
   -------------------------------------------------------------------------- */

/* smooth animation: rows slide in one after the other, the ticks pop,
   the gift wiggles once (html.dh-motion = JS running) */

@keyframes h2b-gift {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-10deg) scale(1.08); }
  50%      { transform: rotate(8deg) scale(1.08); }
  75%      { transform: rotate(-4deg); }
}

/* --------------------------------------------------------------------------
   6. Intro with curved photo (Services + PROFI): button under the text,
      photo zooms a little on hover
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   7. Property cards on this page: both labels on the left, same dark glass,
      no star
   -------------------------------------------------------------------------- */

/* the photo stays the same on hover (no second photo) */

/* the whole card opens the detail page: the title link stretches over the
   card; share + favourite stay clickable above it */

/* Title underline: on hover it grows from the
   left; when the mouse leaves it slides out to the right (not back).
   Used on the property cards and the blog cards of this page. */

/* details in the site secondary colour (gold #A8803F) */

/* --------------------------------------------------------------------------
   9. Small screens
   -------------------------------------------------------------------------- */
/* PROFI: button labels never break */

/* PROFI: no photo below 992px */

/* PROFI 2.9 % bar: one line from 670px, centred button below 670px */

/* property cards: 2.5 cards between 992 and 1099px
   (JS shows 2, the padding leaves half of the next one: 0.5 / 2.5) */

/* property cards: 1.5 cards between 500 and 767px (0.5 / 1.5) */

/* "2.9 %" never breaks */

/* heading + button / arrows on one line from 576px (button on the right) */

/* FAQ intro below 992px: text left, "Contact us" on the right */

/* more space between the sections on tablets (was 56px) */

/* SELF / PREMIUM cards stacked (photo under the text): the photo fades in
   from the top instead of the left */

/* --------------------------------------------------------------------------
   10. SELF / PREMIUM cards: smoother fade from the card colour into the photo
       (more colour stops, so no visible edge)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   11. Property cards (Featured + Discover): photo in its own box on top,
       the details sit on a light frosted glass panel that overlaps the
       bottom of the photo and fades into it
   -------------------------------------------------------------------------- */

/* light shadow, a bit stronger on hover */

/* title: only the colour changes on hover, no underline */

/* no dark fade any more */

/* share + favourite move to the top right (the bottom is covered by the glass) */

/* the glass: blurred photo + white tint, starting soft above the text */

/* share + favourite readable on light photos */

/* --------------------------------------------------------------------------
   12. Property cards: "View details" green by default; on card hover the
       title and "View details" turn gold and the link gets an underline
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   13. Property cards: location above the title, no description, taller
       photo and a shorter details panel
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   14. Blog cards: photo on top with the reading time as a pill, title
       (2 lines), text (1 line), "Read article" button
   -------------------------------------------------------------------------- */

/* hover: title turns gold, no underline */

/* underline only on hover (text only, not the arrow) */

/* ==========================================================================
   END: Homepage variant B (body.dh-home2b)
   ========================================================================== */

/* ==========================================================================
   START: Packages page (body.dh-page-packages)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page header – photo with a light
      dark shade only, compact height
      (shared: Packages, About and How it works)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .cs_page_header.cs_style_1 {
  position: relative;
  width: 100%;
  padding: 170px 0 90px;
  background-position: center;
  background-size: cover;
  color: #fff;
}

/* soft shade so the white text stays readable (no green overlay) */
:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .cs_page_header.cs_style_1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .cs_page_header.cs_style_1 .container {
  position: relative;
  z-index: 1;
}

:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .cs_page_header_title {
  margin: 0 0 14px;
  font-family: var(--dh-font-heading);
  font-size: clamp(36px, calc(22px + 3vw), 60px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  text-transform: none;
}

:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .dh-breadcrumb {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
}

:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .dh-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #fff;
}

:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .dh-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

/* underline grows on hover */
:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .breadcrumb li a {
  color: #fff;
  background-repeat: no-repeat;
  background-image: linear-gradient(90deg, currentColor 0, currentColor 100%);
  background-position: 100% calc(100% - 0px);
  background-size: 0 1px;
  transition: background-size 0.4s cubic-bezier(0.49, 0.49, 0.08, 1);
}

:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .breadcrumb li a:hover,
:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .breadcrumb li a:focus {
  color: #fff;
  text-decoration: none;
  background-size: 100% 1px;
  background-position: 0 calc(100% - 0px);
}

@media (max-width: 991px) {
  :where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .cs_page_header.cs_style_1 {
    padding: 130px 0 60px;
  }
}

/* --------------------------------------------------------------------------
   2. Package cards (homepage cards) – VAT note
   -------------------------------------------------------------------------- */
:where([class*="dh-page-packages"]) .dh-pk-vat {
  margin: 30px 0 0;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: #777;
  text-align: center;
}

/* --------------------------------------------------------------------------
   3. Services at a glance – SELF vs PREMIUM table
   -------------------------------------------------------------------------- */
:where([class*="dh-page-packages"]) section.dh-compare {
  padding: 4.6rem 0;
}

:where([class*="dh-page-packages"]) .dh-compare__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--dh-sand);
  border-radius: 12px;
  background: #fff;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  color: var(--dh-primary);
  white-space: nowrap;
}

:where([class*="dh-page-packages"]) .dh-compare__badge svg {
  color: var(--dh-accent);
}

:where([class*="dh-page-packages"]) .dh-compare__wrap {
  max-width: 1100px;
  margin: 0 auto;
}

:where([class*="dh-page-packages"]) .dh-compare__table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--dh-sand);
  border-radius: 20px 20px 0 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  table-layout: fixed;
}

:where([class*="dh-page-packages"]) .dh-compare__table th,
:where([class*="dh-page-packages"]) .dh-compare__table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--dh-sand);
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  line-height: 1.4;
  vertical-align: middle;
}

/* columns: services | SELF | PREMIUM */
:where([class*="dh-page-packages"]) .dh-compare__table thead th:first-child {
  width: 50%;
}

:where([class*="dh-page-packages"]) .dh-compare__table tbody th {
  font-weight: 400;
  color: #444;
  text-align: left;
}

:where([class*="dh-page-packages"]) .dh-compare__table td {
  text-align: center;
  color: #555;
}

/* header row */
:where([class*="dh-page-packages"]) .dh-compare__table .dh-compare__corner {
  font-family: var(--dh-font-heading);
  font-size: clamp(22px, calc(16px + 0.9vw), 30px);
  font-weight: 400;
  color: var(--dh-primary);
  text-align: left;
}

:where([class*="dh-page-packages"]) .dh-compare__table .dh-compare__plan {
  font-family: var(--dh-font-heading);
  font-size: clamp(20px, calc(15px + 0.7vw), 26px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dh-primary);
  text-align: center;
  background: var(--dh-sand);
}

:where([class*="dh-page-packages"]) .dh-compare__plan small {
  display: block;
  margin-top: 4px;
  font-family: var(--dh-font-body);
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: #6b6b6b;
}

:where([class*="dh-page-packages"]) .dh-compare__table .dh-compare__plan--premium {
  background: var(--dh-primary);
  color: #fff;
}

:where([class*="dh-page-packages"]) .dh-compare__plan--premium small {
  color: #D9B77A;
}

/* group rows ("Included in both packages" …) */
:where([class*="dh-page-packages"]) .dh-compare__table .dh-compare__group th {
  padding-top: 12px;
  padding-bottom: 12px;
  background: #F4ECE0;
  font-family: var(--dh-font-heading);
  font-size: clamp(16px, calc(15.296px + 0.188vw), 18px);
  color: #8a6a35;
}

/* PREMIUM column tint */
:where([class*="dh-page-packages"]) .dh-compare__table td.is-premium {
  background: #EEF3F1;
}

:where([class*="dh-page-packages"]) .dh-compare__tick {
  display: inline-flex;
  color: var(--dh-primary);
}

:where([class*="dh-page-packages"]) .dh-compare__table .dh-compare__incl {
  font-weight: 700;
  color: var(--dh-primary);
}

/* row hover */
:where([class*="dh-page-packages"]) .dh-compare__table tbody tr:not(.dh-compare__group):hover th,
:where([class*="dh-page-packages"]) .dh-compare__table tbody tr:not(.dh-compare__group):hover td {
  background-color: #FBF8F2;
}

:where([class*="dh-page-packages"]) .dh-compare__table tbody tr:not(.dh-compare__group):hover td.is-premium {
  background-color: #E3ECE8;
}

/* summary box under the table */
:where([class*="dh-page-packages"]) .dh-compare__total {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 30px;
  border: 1px solid var(--dh-sand);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: #F4ECE0;
}

:where([class*="dh-page-packages"]) .dh-compare__gift {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--dh-accent);
}

:where([class*="dh-page-packages"]) .dh-compare__total-title {
  margin: 0 0 4px;
  font-family: var(--dh-font-heading);
  font-size: clamp(19px, calc(14px + 0.9vw), 28px);
  line-height: 1.25;
  color: var(--dh-primary);
}

:where([class*="dh-page-packages"]) .dh-compare__total-text {
  margin: 0;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #666;
}

@media (max-width: 767px) {
  :where([class*="dh-page-packages"]) .dh-compare__table th,
:where([class*="dh-page-packages"]) .dh-compare__table td {
    padding: 12px 10px;
    font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  }

  :where([class*="dh-page-packages"]) .dh-compare__table thead th:first-child {
    width: 42%;
  }

  :where([class*="dh-page-packages"]) .dh-compare__plan small {
    font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  }

  :where([class*="dh-page-packages"]) .dh-compare__table .dh-compare__group th {
    font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  }

  :where([class*="dh-page-packages"]) .dh-compare__total {
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }

  :where([class*="dh-page-packages"]) .dh-compare__gift svg {
    width: 30px;
    height: 30px;
  }
}

/* 320 to 375px: plan names and the corner title shrink so they stay on one line */
@media (max-width: 375px) {
  :where([class*="dh-page-packages"]) .dh-compare__table .dh-compare__corner {
    font-size: clamp(18px, calc(7.273vw - 5.273px), 22px);
  }

  :where([class*="dh-page-packages"]) .dh-compare__table .dh-compare__plan {
    padding-right: 6px;
    padding-left: 6px;
    font-size: clamp(15px, calc(9.091vw - 14.091px), 20px);
  }

  :where([class*="dh-page-packages"]) .dh-compare__plan small {
    font-size: clamp(10px, calc(1.818vw + 4.182px), 11px);
  }
}

/* --------------------------------------------------------------------------
   4. CTA
   -------------------------------------------------------------------------- */
:where([class*="dh-page-packages"]) .cs_cta.cs_style_1 {
  position: relative;
  padding: 100px 0;
  /* padding: 100px 0 140px; */
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

:where([class*="dh-page-packages"]) .cs_cta.cs_style_1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--dh-primary-rgb), 0.78);
}

:where([class*="dh-page-packages"]) .dh-pk-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

:where([class*="dh-page-packages"]) .cs_cta.cs_style_1 .cs_cta_title {
  margin: 0 0 34px;
  font-family: var(--dh-font-heading);
  font-size: clamp(32px, calc(20px + 2.4vw), 56px);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-transform: none;
}

:where([class*="dh-page-packages"]) .cs_cta.cs_style_1 .cs_cta_title span {
  position: relative;
  display: inline-block;
  margin: 0 6px;
  color: #D9B77A;
}

/* hand-drawn underline */
:where([class*="dh-page-packages"]) .cs_cta.cs_style_1 .cs_cta_title svg {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 14px;
  color: #D9B77A;
}

:where([class*="dh-page-packages"]) .dh-pk-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 30px;
  border: 1.5px solid var(--dh-primary);
  border-radius: 999px;
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

@media (max-width: 991px) {
  :where([class*="dh-page-packages"]) .cs_cta.cs_style_1 {
    padding: 80px 0;
    /* background-attachment: scroll; parallax kept on mobile too */
  }

  :where([class*="dh-page-packages"]) .cs_cta.cs_style_1 .cs_cta_title br {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5. Page updates
   -------------------------------------------------------------------------- */
/* page header: light black shade, rounded bottom corners */
:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .cs_page_header.cs_style_1 {
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

:where([class*="dh-page-packages"], [class*="dh-page-about"], [class*="dh-page-how"]) .cs_page_header.cs_style_1::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* packages: text left, SELF + PREMIUM cards right (same as the homepage) */
:where([class*="dh-page-packages"]) .dh-pk-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  :where([class*="dh-page-packages"]) .dh-pk-split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 60px;
  }
}

:where([class*="dh-page-packages"]) .dh-pk-split__text {
  padding-top: 35px;
}

@media (max-width:450px) {
  :where([class*="dh-page-packages"]) .dh-pk-split__text {
    padding-top: 0;
  }
  
}

:where([class*="dh-page-packages"]) .dh-pk-split__title {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(36px, calc(20px + 2.6vw), 60px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-packages"]) .dh-pk-split__lead {
  margin: 14px 0 30px;
  font-size: clamp(15px, calc(14.472px + 0.141vw), 16.5px);
  line-height: 1.7;
  color: #666;
}

:where([class*="dh-page-packages"]) .dh-pk-split__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1.5px solid;
  border-radius: var(--dh-btn-radius, 6px);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

:where([class*="dh-page-packages"]) .dh-pk-split .dh-pricing__row {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* cards of equal height, no scale animation */
@media (min-width: 768px) {
  :where([class*="dh-page-packages"]) .dh-pk-split .dh-pricing__row {
    align-items: stretch;
  }

  :where([class*="dh-page-packages"]) .dh-pk-pricing .dh-pk-split .dh-plan,
:where([class*="dh-page-packages"]) .dh-pk-pricing .dh-pk-split .dh-plan.dh-plan--featured {
    height: 100%;
    padding-top: 40px;
    padding-bottom: 36px;
  }
}

/* services at a glance: intro like the client sheet, title on two lines
   photo like the PROFI section on the homepage */
:where([class*="dh-page-packages"]) .dh-compare__intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto 50px;
}

@media (min-width: 992px) {
  :where([class*="dh-page-packages"]) .dh-compare__intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
  }
}

/* same heading style as "Choose your package" above */
:where([class*="dh-page-packages"]) .dh-compare__title {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(36px, calc(20px + 2.6vw), 60px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-packages"]) .dh-compare__title .dh-hl {
  font-weight: inherit;
  color: var(--dh-accent);
}

:where([class*="dh-page-packages"]) .dh-compare__lead {
  max-width: 560px;
  margin: 14px 0 22px;
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
  line-height: 1.7;
  color: #666;
}

/* same photo style as the PROFI section on the homepage */
:where([class*="dh-page-packages"]) .dh-compare__intro-img {
  overflow: hidden;
  height: clamp(220px, 26vw, 315px);
  border-radius: 12px 12px 12px 160px;
}

:where([class*="dh-page-packages"]) .dh-compare__intro-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

:where([class*="dh-page-packages"]) .dh-compare__intro-img:hover img {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  :where([class*="dh-page-packages"]) .dh-compare__intro-img {
    display: none;
  }
}

/* "Cancel monthly": a small note with an icon, not a button */
:where([class*="dh-page-packages"]) .dh-compare__intro .dh-compare__badge {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  color: var(--dh-primary);
  cursor: default;
}

/* comparison table a bit wider */
:where([class*="dh-page-packages"]) .dh-compare__wrap {
  max-width: 1280px;
}

/* call to action: soft black shade instead of green */
:where([class*="dh-page-packages"]) .cs_cta.cs_style_1::before {
  background: rgba(0, 0, 0, 0.5);
}

/* FAQ: heading and text on top, illustration at the bottom of the column */
@media (min-width: 992px) {
  :where([class*="dh-page-packages"]) .dh-pk-faq__side {
    display: flex;
    flex-direction: column;
  }

  :where([class*="dh-page-packages"]) .dh-pk-faq__side .dh-faq__img {
    margin-top: auto;
    padding-top: 40px;
  }
}

/* ==========================================================================
   END: Packages page (body.dh-page-packages)
   ========================================================================== */

/* ==========================================================================
   START: About / Mission page (body.dh-page-about)
   ========================================================================== */

/* --------------------------------------------------------------------------
   2. Small label above a heading
   -------------------------------------------------------------------------- */
:where([class*="dh-page-about"]) .ab-eyebrow {
  margin: 0 0 12px;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dh-accent);
}

/* --------------------------------------------------------------------------
   3. About us + Our story: photo with a small radius, text next to it
   -------------------------------------------------------------------------- */
:where([class*="dh-page-about"], [class*="dh-page-how"]):is(.dh-page-about, .dh-page-how) {
  --ab-photo-radius: 12px;
  --ab-tl-node: 64px;            /* timeline: round icon on the line   */
  --ab-tl-gap: 36px;             /* timeline: space between line and card */
  --ab-tl-line: var(--dh-sand);  /* timeline: line before scrolling    */
  --ab-tl-fill: var(--dh-accent);/* timeline: line after scrolling     */
  --ab-tl-ring: var(--dh-cream-bg);
  --ab-card-bg: #fff;
  --ab-card-border: var(--dh-sand);
}

:where([class*="dh-page-about"]) .ab-intro__row,
:where([class*="dh-page-about"]) .ab-story__row {
  row-gap: 40px;
}

:where([class*="dh-page-about"]) .ab-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--ab-photo-radius);
}

:where([class*="dh-page-about"]) .ab-photo img {
  display: block;
  width: 100%;
  height: clamp(320px, 38vw, 560px);
  object-fit: cover;
}

:where([class*="dh-page-about"]) .ab-photo--story img {
  height: clamp(300px, 36vw, 520px);
}

/* --------------------------------------------------------------------------
   4. Our story: three accordion items (who we are, what we do, mission)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-about"]) .ab-acc {
  margin-top: 26px;
  border-top: 1px solid var(--dh-sand);
}

:where([class*="dh-page-about"]) .ab-acc__item {
  border-bottom: 1px solid var(--dh-sand);
}

:where([class*="dh-page-about"]) .ab-acc__head {
  margin: 0;
}

:where([class*="dh-page-about"]) .ab-acc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--dh-primary);
  cursor: pointer;
}

:where([class*="dh-page-about"]) .ab-acc__title {
  font-family: var(--dh-font-heading);
  font-size: clamp(19px, calc(17.239px + 0.469vw), 24px);
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.3s ease;
}

:where([class*="dh-page-about"]) .ab-acc__toggle:hover .ab-acc__title,
:where([class*="dh-page-about"]) .ab-acc__toggle:focus-visible .ab-acc__title {
  color: var(--dh-accent);
}

:where([class*="dh-page-about"]) .ab-acc__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--dh-sand);
  border-radius: 50%;
  color: var(--dh-accent);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

:where([class*="dh-page-about"]) .ab-acc__toggle:not(.collapsed) .ab-acc__icon {
  transform: rotate(180deg);
  border-color: var(--dh-primary);
  background-color: var(--dh-primary);
  color: #fff;
}

:where([class*="dh-page-about"]) .ab-acc__body {
  margin: 0;
  padding: 0 50px 22px 0;
  font-size: clamp(15px, calc(14.648px + 0.094vw), 16px);
  line-height: 1.7;
  color: #666;
}

@media (max-width: 575px) {
  :where([class*="dh-page-about"]) .ab-acc__body {
    padding-right: 0;
  }
}

/* --------------------------------------------------------------------------
   4b. Everything you need to sell: timeline. Cards come in with AOS, the
       line fills while scrolling (js/main.js sets --ab-progress and
       .is-active on the steps the line has reached)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-timeline {
  position: relative;
  display: grid;
  gap: clamp(16px, 2.5vw, 18px);
  margin: clamp(10px, 2vw, 24px) 0 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-timeline__line {
  position: absolute;
  top: calc(var(--ab-tl-node) / 2);
  bottom: calc(var(--ab-tl-node) / 2);
  left: 50%;
  width: 2px;
  margin-left: -1px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ab-tl-line);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-timeline__fill {
  position: absolute;
  inset: 0;
  background: var(--ab-tl-fill);
  transform: scaleY(var(--ab-progress, 0));
  transform-origin: top center;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ab-tl-node) minmax(0, 1fr);
  column-gap: var(--ab-tl-gap);
  align-items: start;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step__node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  grid-row: 1;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  width: var(--ab-tl-node);
  height: var(--ab-tl-node);
  border: 1px solid var(--ab-card-border);
  border-radius: 50%;
  background: var(--ab-card-bg);
  color: var(--dh-accent);
  box-shadow: 0 0 0 4px var(--ab-tl-ring);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* icon pops in when its step scrolls into view (js/main.js adds .is-shown) */
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-timeline.is-ready .ab-step__node {
  opacity: 0;
  transform: scale(0.4);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-timeline.is-ready .ab-step.is-shown .ab-step__node {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
  transition-delay: var(--ab-tl-node-delay, 0.15s), var(--ab-tl-node-delay, 0.15s), 0s, 0s, 0s, 0s;   /* same start as the card (AOS delay) */
}

@media (prefers-reduced-motion: reduce) {
  :where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-timeline.is-ready .ab-step__node {
    opacity: 1;
    transform: none;
  }
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step.is-active .ab-step__node {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff;
  box-shadow: 0 0 0 3px var(--ab-tl-ring), 0 0 0 4px rgba(var(--dh-accent-rgb), 0.45), 0 10px 26px rgba(var(--dh-accent-rgb), 0.35);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step__card {
  position: relative;
  grid-row: 1;
  padding: clamp(22px, 2.4vw, 30px);
  /* border: 1px solid var(--ab-card-border); */
  border-radius: 16px;
  background: var(--ab-card-bg);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--left .ab-step__card {
  grid-column: 1;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--right .ab-step__card {
  grid-column: 3;
}

/* small arrow pointing to the line */
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step__card::before {
  content: "";
  position: absolute;
  top: calc(var(--ab-tl-node) / 2 - 7px);
  width: 14px;
  height: 14px;
  /* border: 1px solid var(--ab-card-border); */
  background: var(--ab-card-bg);
  transform: rotate(45deg);
  transition: border-color 0.4s ease;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--left .ab-step__card::before {
  right: -8px;
  border-bottom: 0;
  border-left: 0;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--right .ab-step__card::before {
  left: -8px;
  border-top: 0;
  border-right: 0;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step.is-active .ab-step__card,
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step.is-active .ab-step__card::before {
  border-color: transparent;
  /* border-color: rgba(var(--dh-accent-rgb), 0.55); */
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step.is-active .ab-step__card {
  box-shadow: 0 14px 34px rgba(var(--dh-primary-rgb), 0.08);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step__title {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(20px, calc(17.887px + 0.563vw), 26px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step__meta {
  margin: 6px 0 14px;
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dh-accent);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step__lead {
  margin: 0 0 6px;
  font-size: clamp(15px, calc(14.296px + 0.188vw), 17px);
  font-weight: 600;
  line-height: 1.55;
  color: #2b2b2b;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step__text {
  margin: 0;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.65;
  color: #666;
}

/* final step: colours turned around (green box in light mode, light box in dark mode) */
:where([class*="dh-page-about"], [class*="dh-page-how"]):is(.dh-page-about, .dh-page-how) {
  --ab-final-bg: var(--dh-primary);
  --ab-final-title: #fff;
  --ab-final-meta: #D9B77A;
  --ab-final-lead: #fff;
  --ab-final-text: rgba(255, 255, 255, 0.78);
  --ab-final-node-bg: var(--dh-primary);
  --ab-final-node-icon: #D9B77A;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final .ab-step__card,
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final .ab-step__card::before {
  border-color: var(--ab-final-bg);
  background: var(--ab-final-bg);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final .ab-step__title {
  color: var(--ab-final-title);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final .ab-step__meta {
  color: var(--ab-final-meta);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final .ab-step__lead {
  color: var(--ab-final-lead);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final .ab-step__text {
  color: var(--ab-final-text);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final .ab-step__node,
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final.is-active .ab-step__node {
  border-color: var(--ab-final-node-bg);
  background: var(--ab-final-node-bg);
  color: var(--ab-final-node-icon);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final.is-active .ab-step__card,
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final.is-active .ab-step__card::before {
  border-color: var(--ab-final-bg);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--final.is-active .ab-step__card {
  box-shadow: 0 18px 40px rgba(var(--dh-primary-rgb), 0.22);
}

/* small screens: line on the left, every card on the right */
@media (max-width: 767px) {
  :where([class*="dh-page-about"], [class*="dh-page-how"]):is(.dh-page-about, .dh-page-how) {
    --ab-tl-node: 52px;
    --ab-tl-gap: 20px;
  }

  :where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-timeline__line {
    left: calc(var(--ab-tl-node) / 2);
  }

  :where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step {
    grid-template-columns: var(--ab-tl-node) minmax(0, 1fr);
  }

  :where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step__node {
    grid-column: 1;
  }

  :where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step__node svg {
    width: 22px;
    height: 22px;
  }

  :where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--left .ab-step__card,
  :where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--right .ab-step__card {
    grid-column: 2;
  }

  :where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-step--left .ab-step__card::before {
    right: auto;
    left: -8px;
    border: 1px solid var(--ab-card-border);
    border-top: 0;
    border-right: 0;
  }
}

/* --------------------------------------------------------------------------
   5. Team
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   6. Call to action: fixed photo with a soft black shade
   -------------------------------------------------------------------------- */
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta {
  position: relative;
  padding: clamp(80px, 9vw, 130px) 0;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;   /* parallax, same as the packages page */
  text-align: center;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
  :where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta {
    /* background-attachment: scroll; parallax kept on mobile too */
  }
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta__title {
  margin: 0 0 16px;
  font-family: var(--dh-font-heading);
  font-size: clamp(34px, calc(20px + 2.4vw), 56px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  text-transform: none;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta__text {
  margin: 0 auto;
  max-width: 600px;
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta .dh-btn.dh-btn--gold {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
  color: #fff;
  --dh-btn-fill: var(--dh-primary);
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta .dh-btn.dh-btn--gold:hover,
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta .dh-btn.dh-btn--gold:focus-visible {
  border-color: var(--dh-primary);
  color: #fff;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta .dh-btn.dh-btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  --dh-btn-fill: #fff;
}

:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta .dh-btn.dh-btn--ghost:hover,
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta .dh-btn.dh-btn--ghost:focus-visible {
  border-color: #fff;
  color: var(--dh-primary);
}

@media (max-width: 575px) {
  :where([class*="dh-page-about"]) .ab-intro__btns .dh-btn,
:where([class*="dh-page-about"], [class*="dh-page-how"]) .ab-cta__btns .dh-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   END: About / Mission page (body.dh-page-about)
   ========================================================================== */

/* ==========================================================================
   START: Properties listing page (body.dh-page-properties)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page header
   -------------------------------------------------------------------------- */
:where([class*="dh-page-properties"]) .cs_page_header.cs_style_1 {
  position: relative;
  width: 100%;
  padding: 170px 0 90px;
  background-position: center;
  background-size: cover;
  color: #fff;
}

/* soft shade so the white text stays readable (no green overlay) */
:where([class*="dh-page-properties"]) .cs_page_header.cs_style_1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

:where([class*="dh-page-properties"]) .cs_page_header.cs_style_1 .container {
  position: relative;
  z-index: 1;
}

:where([class*="dh-page-properties"]) .cs_page_header_title {
  margin: 0 0 14px;
  font-family: var(--dh-font-heading);
  font-size: clamp(36px, calc(22px + 3vw), 60px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  text-transform: none;
}

:where([class*="dh-page-properties"]) .dh-breadcrumb {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
}

:where([class*="dh-page-properties"]) .dh-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #fff;
}

:where([class*="dh-page-properties"]) .dh-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

/* underline grows on hover */
:where([class*="dh-page-properties"]) .breadcrumb li a {
  color: #fff;
  background-repeat: no-repeat;
  background-image: linear-gradient(90deg, currentColor 0, currentColor 100%);
  background-position: 100% calc(100% - 0px);
  background-size: 0 1px;
  transition: background-size 0.4s cubic-bezier(0.49, 0.49, 0.08, 1);
}

:where([class*="dh-page-properties"]) .breadcrumb li a:hover,
:where([class*="dh-page-properties"]) .breadcrumb li a:focus {
  color: #fff;
  text-decoration: none;
  background-size: 100% 1px;
  background-position: 0 calc(100% - 0px);
}

@media (max-width: 991px) {
  :where([class*="dh-page-properties"]) .cs_page_header.cs_style_1 {
    padding: 130px 0 60px;
  }
}

:where([class*="dh-page-properties"]).dh-page-properties .cs_page_header.cs_style_1 {
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

:where([class*="dh-page-properties"]).dh-page-properties .cs_page_header.cs_style_1::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* --------------------------------------------------------------------------
   2. Layout
   -------------------------------------------------------------------------- */
:where([class*="dh-page-properties"]) .dh-pl {
  padding: clamp(56px, 6vw, 90px) 0 clamp(70px, 7vw, 110px);
}

:where([class*="dh-page-properties"]) .dh-pl__container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

:where([class*="dh-page-properties"]) .dh-pl__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

@media (min-width: 992px) {
  :where([class*="dh-page-properties"]) .dh-pl__layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
  }
}

@media (min-width: 1200px) {
  :where([class*="dh-page-properties"]) .dh-pl__layout {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   3. Filters
   -------------------------------------------------------------------------- */
:where([class*="dh-page-properties"]) .dh-pf {
  padding: 24px;
  border: 1px solid var(--dh-sand);
  border-radius: 16px;
  background: #fff;
}

@media (min-width: 992px) {
  :where([class*="dh-page-properties"]) .dh-pf {
    position: sticky;
    top: 110px;
  }
}

:where([class*="dh-page-properties"]) .dh-pf__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--dh-sand);
}

:where([class*="dh-page-properties"]) .dh-pf__title {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(18.5px, calc(17.268px + 0.329vw), 22px);
  line-height: 1.2;
  color: var(--dh-primary);
}

:where([class*="dh-page-properties"]) .dh-pf__close {
  display: none;
}

:where([class*="dh-page-properties"]) .dh-pf__search {
  position: relative;
  display: block;
  margin: 0 0 8px;
}

:where([class*="dh-page-properties"]) .dh-pf__search input,
:where([class*="dh-page-properties"]) .dh-pf-range input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
  background: #fff;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: var(--dh-primary);
  outline: none;
  transition: border-color 0.3s ease;
}

:where([class*="dh-page-properties"]) .dh-pf__search input:focus,
:where([class*="dh-page-properties"]) .dh-pf-range input:focus {
  border-color: var(--dh-primary);
}

:where([class*="dh-page-properties"]) .dh-pf__search svg {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--dh-accent);
  transform: translateY(-50%);
  pointer-events: none;
}

/* one group: label left, arrow right */
:where([class*="dh-page-properties"]) .dh-pf-group {
  border-bottom: 1px solid var(--dh-sand);
}

:where([class*="dh-page-properties"]) .dh-pf-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 17px 0;
  border: 0;
  background: none;
  font-family: var(--dh-font-body);
  font-size: clamp(14.5px, calc(14.148px + 0.094vw), 15.5px);
  font-weight: 600;
  color: var(--dh-primary);
  text-align: left;
  cursor: pointer;
}

:where([class*="dh-page-properties"]) .dh-pf-group__head:focus {
  outline: none;
}

:where([class*="dh-page-properties"]) .dh-pf-group__head:focus-visible {
  outline: 2px solid rgba(var(--dh-accent-rgb), 0.6);
  outline-offset: 2px;
}

:where([class*="dh-page-properties"]) .dh-pf-group__head svg {
  flex: 0 0 auto;
  color: var(--dh-accent);
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

:where([class*="dh-page-properties"]) .dh-pf-group__head.collapsed svg {
  transform: rotate(0deg);
}

:where([class*="dh-page-properties"]) .dh-pf-group__body {
  padding: 0 0 18px;
}

/* radio / checkbox rows */
:where([class*="dh-page-properties"]) .dh-pf-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 7px 0;
  font-size: clamp(13.5px, calc(13.148px + 0.094vw), 14.5px);
  color: #555;
  cursor: pointer;
}

:where([class*="dh-page-properties"]) .dh-pf-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

:where([class*="dh-page-properties"]) .dh-pf-opt span::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 12px;
  vertical-align: -4px;
  border: 1.5px solid #c9c2b5;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

:where([class*="dh-page-properties"]) .dh-pf-opt--check span::before {
  border-radius: 4px;
}

:where([class*="dh-page-properties"]) .dh-pf-opt input:checked + span {
  color: var(--dh-primary);
  font-weight: 600;
}

:where([class*="dh-page-properties"]) .dh-pf-opt input:checked + span::before {
  border-color: var(--dh-primary);
  background: var(--dh-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

:where([class*="dh-page-properties"]) .dh-pf-opt input:focus-visible + span::before {
  outline: 2px solid rgba(var(--dh-accent-rgb), 0.6);
  outline-offset: 2px;
}

/* checkbox lists (rooms, bathrooms, features): fixed height box, scrolls
   when there are more options */
:where([class*="dh-page-properties"]) .dh-pf-scroll {
  max-height: 196px;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--dh-sand) transparent;
}

:where([class*="dh-page-properties"]) .dh-pf-scroll::-webkit-scrollbar {
  width: 4px;
}

:where([class*="dh-page-properties"]) .dh-pf-scroll::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(--dh-sand);
}

/* property type, location: dropdown like in the filter modal */
:where([class*="dh-page-properties"]) .dh-pf .nice-select,
:where([class*="dh-page-properties"]) .dh-pf select.dh-pf-select {
  float: none;
  width: 100%;
  height: 48px;
  margin: 0;
  padding-left: 16px;
  border: 1px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
  background-color: #fff;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 46px;
  color: var(--dh-primary);
}

:where([class*="dh-page-properties"]) .dh-pf .nice-select:hover,
:where([class*="dh-page-properties"]) .dh-pf .nice-select.open,
:where([class*="dh-page-properties"]) .dh-pf .nice-select:focus {
  border-color: var(--dh-primary);
}

:where([class*="dh-page-properties"]) .dh-pf .nice-select:after,
:where([class*="dh-page-properties"]) .dh-pl__tools .nice-select:after {
  right: 16px;
  border-color: var(--dh-accent);
}

:where([class*="dh-page-properties"]) .dh-pf .nice-select.open {
  z-index: 20;
}

:where([class*="dh-page-properties"]) .dh-pf .nice-select .list {
  right: 0;
  left: 0;
  width: 100%;
  max-height: 260px;
  margin-top: 6px;
  overflow-y: auto;
  border: 1px solid var(--dh-sand);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(var(--dh-primary-rgb), 0.12);
}

/* the closed list is taken out of the layout, otherwise Bootstrap's collapse
   counts its height while opening the group (empty gap that jumps away) */
:where([class*="dh-page-properties"]) .dh-pf .nice-select .list {
  display: none;
}

:where([class*="dh-page-properties"]) .dh-pf .nice-select.open .list {
  display: block;
}

:where([class*="dh-page-properties"]) .dh-pf .nice-select .option {
  min-height: 40px;
  line-height: 40px;
}

:where([class*="dh-page-properties"]) .dh-pf .nice-select .option:first-child {
  font-weight: 600;
}

/* min / max fields */
:where([class*="dh-page-properties"]) .dh-pf-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

:where([class*="dh-page-properties"]) .dh-pf-range label {
  margin: 0;
}

:where([class*="dh-page-properties"]) .dh-pf-range span {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  color: #777;
}

:where([class*="dh-page-properties"]) .dh-pf-range input {
  padding-right: 12px;
}

/* search + clear */
:where([class*="dh-page-properties"]) .dh-pf__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

:where([class*="dh-page-properties"]) .dh-pf__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--dh-primary);
  border-radius: var(--dh-btn-radius, 6px);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
}

:where([class*="dh-page-properties"]) .dh-pf__clear {
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

:where([class*="dh-page-properties"]) .dh-pf__clear:hover {
  color: var(--dh-accent);
}

:where([class*="dh-page-properties"]) .dh-pf-backdrop {
  display: none;
}

/* below 992px: filters slide in from the left over the content */
@media (max-width: 991px) {
  :where([class*="dh-page-properties"]) .dh-pf {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100100;
    width: min(380px, 88vw);
    padding: 0 22px 24px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: 30px 0 60px rgba(var(--dh-primary-rgb), 0.18);
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform 0.45s cubic-bezier(0.22, 0.75, 0.2, 1), visibility 0.45s;
  }

  :where([class*="dh-page-properties"]) .dh-pf.is-open {
    visibility: visible;
    transform: none;
  }

  :where([class*="dh-page-properties"]) .dh-pf__top {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -22px 18px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--dh-sand);
    background: #fff;
  }

  :where([class*="dh-page-properties"]) .dh-pf__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--dh-sand);
    border-radius: 50%;
    background: #fff;
    color: var(--dh-primary);
    cursor: pointer;
  }

  :where([class*="dh-page-properties"]) .dh-pf-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100090;
    display: block;
    background: rgba(10, 30, 24, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
  }

  :where([class*="dh-page-properties"]) .dh-pf-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  body:where([class*="dh-page-properties"]).dh-pf-lock {
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   4. Toolbar
   -------------------------------------------------------------------------- */
:where([class*="dh-page-properties"]) .dh-pl__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

:where([class*="dh-page-properties"]) .dh-pl__count {
  margin: 0;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #666;
}

:where([class*="dh-page-properties"]) .dh-pl__count b {
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-page-properties"]) .dh-pl__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

:where([class*="dh-page-properties"]) .dh-pl__filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--dh-primary);
  border-radius: var(--dh-btn-radius, 6px);
  background: #fff;
  font-size: clamp(13.5px, calc(13.148px + 0.094vw), 14.5px);
  font-weight: 600;
  color: var(--dh-primary);
  cursor: pointer;
}

@media (max-width: 991px) {
  :where([class*="dh-page-properties"]) .dh-pl__filter-btn {
    display: inline-flex;
  }
}

:where([class*="dh-page-properties"]) .dh-pl__views {
  display: flex;
  gap: 8px;
}

:where([class*="dh-page-properties"]) .dh-pl__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
  background: #fff;
  color: #9a9488;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

:where([class*="dh-page-properties"]) .dh-pl__view:hover {
  border-color: var(--dh-primary);
  color: var(--dh-primary);
}

:where([class*="dh-page-properties"]) .dh-pl__view.is-active {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff;
}

/* sort: native select or the nice-select that js/searched.js builds */
:where([class*="dh-page-properties"]) .dh-pl__tools select.dh-pl__sort,
:where([class*="dh-page-properties"]) .dh-pl__tools .nice-select {
  float: none;
  min-width: 210px;
  margin: 0;
  height: 46px;
  border: 1px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
  background-color: #fff;
  font-size: clamp(13.5px, calc(13.148px + 0.094vw), 14.5px);
  line-height: 44px;
  color: var(--dh-primary);
}

:where([class*="dh-page-properties"]) .dh-pl__tools .nice-select .list {
  width: 100%;
}

@media (max-width: 575px) {
  :where([class*="dh-page-properties"]) .dh-pl__tools {
    width: 100%;
  }

  :where([class*="dh-page-properties"]) .dh-pl__tools .nice-select,
:where([class*="dh-page-properties"]) .dh-pl__tools select.dh-pl__sort {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */
:where([class*="dh-page-properties"]) .dh-pl__pane {
  display: none;
}

:where([class*="dh-page-properties"]) .dh-pl__pane.is-active {
  display: block;
}

:where([class*="dh-page-properties"]) .dh-pl__grid {
  row-gap: 30px;
}

:where([class*="dh-page-properties"]) .dh-pl__list {
  display: grid;
  gap: 26px;
}

:where([class*="dh-page-properties"]) .dh-pl__item.is-hidden {
  display: none !important;
}

:where([class*="dh-page-properties"]) .dh-pl__item.is-new {
  animation: dh-pl-in 0.5s ease both;
}

@keyframes dh-pl-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* grid card: the homepage glass card */
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__tag--featured {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(22, 35, 30, 0.55);
  color: #fff;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__tag--featured svg {
  display: none;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__tag--status {
  margin-left: 0;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard .dh-prop-card__photo--hover {
  display: none;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard {
  cursor: pointer;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__actions {
  z-index: 3;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__title a {
  display: inline;
  background-image: linear-gradient(to bottom, currentColor 0%, currentColor 98%);
  background-repeat: no-repeat;
  background-position: right 94%;
  background-size: 0 2px;
  text-decoration: none;
  transition: background-size 0.5s ease;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard:hover .dh-ocard__title a,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__title a:focus-visible {
  background-position: left 94%;
  background-size: 100% 2px;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__address svg,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__facts b i,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__more {
  color: var(--dh-accent);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__more:hover,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__more:focus-visible {
  color: #fff;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard:hover .dh-ocard__more svg {
  transform: translateX(3px);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__title a:focus-visible {
  outline: none;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard:focus-within {
  box-shadow: 0 0 0 3px rgba(var(--dh-accent-rgb), 0.55), 0 28px 56px rgba(var(--dh-primary-rgb), 0.22);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard {
  background: linear-gradient(180deg, #fff 0%, var(--dh-bg) 100%);
  color: var(--dh-primary);
  box-shadow: 0 6px 18px rgba(var(--dh-primary-rgb), 0.07);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard:hover {
  box-shadow: 0 16px 36px rgba(var(--dh-primary-rgb), 0.14);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__title a,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard:hover .dh-ocard__title a,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__title a:focus-visible {
  background-size: 0 2px;
  text-decoration: none;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__media::after {
  display: none;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__actions {
  top: 16px;
  bottom: auto;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__body {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  padding-top: 54px;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.45) 24px,
    rgba(255, 255, 255, 0.82) 44px,
    rgba(255, 255, 255, 0.85) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 44px);
  mask-image: linear-gradient(180deg, transparent 0, #000 44px);
  pointer-events: none;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__title a,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__title a:hover {
  color: var(--dh-primary);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__desc {
  color: #3f4a46;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__address {
  color: #3f4a46;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__facts li + li {
  border-left-color: rgba(var(--dh-primary-rgb), 0.18);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__facts b {
  color: var(--dh-primary);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__facts span {
  color: #55605c;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__footer {
  border-top-color: rgba(var(--dh-primary-rgb), 0.18);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__price {
  color: var(--dh-primary);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__more:hover,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__more:focus-visible {
  color: var(--dh-primary);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__icon {
  background: rgba(22, 35, 30, 0.35);
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__more {
  color: var(--dh-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__title a {
  transition: color 0.3s ease, background-size 0.5s ease;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard:hover .dh-ocard__title a,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard:focus-within .dh-ocard__title a,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard:hover .dh-ocard__more,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard:focus-within .dh-ocard__more,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__more:hover,
:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__more:focus-visible {
  color: var(--dh-accent);
  text-decoration-color: currentColor;
}

@media (min-width:500px) {
  :where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__media {
  height: 310px;
}
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__desc {
  display: none;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__address {
  order: -1;
  margin: 0 0 6px;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__title {
  margin-bottom: 14px;
}

:where([class*="dh-page-properties"]).dh-page-properties .dh-ocard__body {
  padding-top: 50px;
  padding-bottom: 20px;
}

/* --------------------------------------------------------------------------
   6. Load more / empty state
   -------------------------------------------------------------------------- */
:where([class*="dh-page-properties"]) .dh-pl__more {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

:where([class*="dh-page-properties"]) .dh-pl__more.is-done {
  display: none;
}

:where([class*="dh-page-properties"]) .dh-pl .h2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border: 1.5px solid;
  border-radius: var(--dh-btn-radius, 6px);
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

:where([class*="dh-page-properties"]) .dh-pl__empty {
  padding: 60px 24px;
  border: 1px dashed var(--dh-sand);
  border-radius: 16px;
  text-align: center;
}

:where([class*="dh-page-properties"]) .dh-pl__empty h3 {
  margin: 0 0 8px;
  font-family: var(--dh-font-heading);
  font-size: clamp(22px, calc(20.592px + 0.376vw), 26px);
  font-weight: 400;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-properties"]) .dh-pl__empty p {
  margin: 0 0 22px;
  color: #666;
}

@media (prefers-reduced-motion: reduce) {
  :where([class*="dh-page-properties"]) .dh-pf,
:where([class*="dh-page-properties"]) .dh-pf-backdrop,
:where([class*="dh-page-properties"]) .dh-pl__item.is-new {
    transition: none;
    animation: none;
  }
}

/* ==========================================================================
   END: Properties listing page (body.dh-page-properties)
   ========================================================================== */

/* ==========================================================================
   START: Property detail page (body.dh-page-property)
   ========================================================================== */

:where([class*="dh-page-property"]) .dh-pd__container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --------------------------------------------------------------------------
   1. Photo gallery
   -------------------------------------------------------------------------- */
:where([class*="dh-page-property"]) .dh-pd-gallery {
  position: relative;
  background: var(--dh-primary);
}

/* dark shade at the top so the white header stays readable */
:where([class*="dh-page-property"]) .dh-pd-gallery::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 180px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

:where([class*="dh-page-property"]) .dh-pd-gallery .swiper-container {
  overflow: hidden;
}

:where([class*="dh-page-property"]) .dh-pd-gallery__item {
  display: block;
  height: clamp(320px, 36vw, 520px);
}

:where([class*="dh-page-property"]) .dh-pd-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* round arrows with a small icon */
:where([class*="dh-page-property"]) .dh-pd-gallery .dh-pd-gallery__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  background-image: none;
  color: var(--dh-primary);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:where([class*="dh-page-property"]) .dh-pd-gallery .dh-pd-gallery__nav::after {
  display: none;
}

:where([class*="dh-page-property"]) .dh-pd-gallery .dh-pd-gallery__nav--prev {
  left: 24px;
}

:where([class*="dh-page-property"]) .dh-pd-gallery .dh-pd-gallery__nav--next {
  right: 24px;
}

:where([class*="dh-page-property"]) .dh-pd-gallery .dh-pd-gallery__nav:hover,
:where([class*="dh-page-property"]) .dh-pd-gallery .dh-pd-gallery__nav:focus-visible {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff;
}

:where([class*="dh-page-property"]) .dh-pd-gallery .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #fff;
  opacity: 0.6;
}

:where([class*="dh-page-property"]) .dh-pd-gallery .swiper-pagination-bullet-active {
  background: var(--dh-accent);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   2. Title, price, key facts
   -------------------------------------------------------------------------- */
:where([class*="dh-page-property"]) .dh-pd {
  padding: clamp(40px, 5vw, 64px) 0 clamp(60px, 7vw, 100px);
}

:where([class*="dh-page-property"]) .dh-pd__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}

:where([class*="dh-page-property"]) .dh-pd__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 14px;
}

:where([class*="dh-page-property"]) .dh-pd__topline .dh-pd__crumbs {
  min-width: 0;
  margin: 0;
}

:where([class*="dh-page-property"]) .dh-pd__status {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--dh-primary);
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 600;
  color: #fff;
}

:where([class*="dh-page-property"]) .dh-pd__title {
  margin: 0 0 10px;
  font-family: var(--dh-font-heading);
  font-size: clamp(32px, calc(18px + 2.2vw), 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-property"]) .dh-pd__address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  color: #666;
}

:where([class*="dh-page-property"]) .dh-pd__address svg {
  flex: 0 0 auto;
  color: var(--dh-accent);
}

:where([class*="dh-page-property"]) .dh-pd__price {
  text-align: right;
}

:where([class*="dh-page-property"]) .dh-pd__price strong {
  display: block;
  font-family: var(--dh-font-heading);
  font-size: clamp(30px, calc(18px + 1.8vw), 44px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--dh-primary);
}

:where([class*="dh-page-property"]) .dh-pd__price span {
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: #777;
}

@media (max-width: 767px) {
  :where([class*="dh-page-property"]) .dh-pd__price {
    text-align: left;
  }
}

:where([class*="dh-page-property"]) .dh-pd__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0 34px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--dh-sand);
  border-radius: 16px;
  list-style: none;
}

@media (min-width: 768px) {
  :where([class*="dh-page-property"]) .dh-pd__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

:where([class*="dh-page-property"]) .dh-pd__facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-right: 1px solid var(--dh-sand);
  /* border-bottom: 1px solid var(--dh-sand); */
}
:where([class*="dh-page-property"]) .dh-pd__facts li:last-child {
  border-right: none;
  /* border-bottom: 1px solid var(--dh-sand); */
}

:where([class*="dh-page-property"]) .dh-pd__fact-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dh-bg);
  color: var(--dh-accent);
}

:where([class*="dh-page-property"]) .dh-pd__facts strong {
  display: block;
  font-family: var(--dh-font-heading);
  font-size: clamp(18.5px, calc(17.268px + 0.329vw), 22px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--dh-primary);
}

:where([class*="dh-page-property"]) .dh-pd__facts small {
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  color: #777;
}

/* --------------------------------------------------------------------------
   3. Layout + content boxes
   -------------------------------------------------------------------------- */
:where([class*="dh-page-property"]) .dh-pd__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

@media (min-width: 992px) {
  :where([class*="dh-page-property"]) .dh-pd__layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 34px;
  }
}

:where([class*="dh-page-property"]) .dh-pd__main,
:where([class*="dh-page-property"]) .dh-pd__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* boxes never wider than the screen */
  gap: 26px;
  min-width: 0;
}

@media (min-width: 992px) {
  :where([class*="dh-page-property"]) .dh-pd__side {
    position: sticky;
    top: 110px;
  }
}

:where([class*="dh-page-property"]) .dh-pd-box {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--dh-sand);
  border-radius: 18px;
  background: #fff;
}

/* description, details and features share one box, divided by lines */
:where([class*="dh-page-property"]) .dh-pd-box--group .dh-pd-box__part + .dh-pd-box__part {
  margin-top: clamp(22px, 2.4vw, 30px);
  padding-top: clamp(22px, 2.4vw, 30px);
  border-top: 1px solid var(--dh-sand);
}

:where([class*="dh-page-property"]) .dh-pd-box__title {
  margin: 0 0 18px;
  font-family: var(--dh-font-heading);
  font-size: clamp(22px, calc(16px + 0.8vw), 28px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-property"]) .dh-pd-box__title--icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

:where([class*="dh-page-property"]) .dh-pd-box__title--icon svg {
  color: var(--dh-accent);
}

:where([class*="dh-page-property"]) .dh-pd-box p {
  margin: 0 0 14px;
  font-size: clamp(14.5px, calc(14.148px + 0.094vw), 15.5px);
  line-height: 1.75;
  color: #666;
}

:where([class*="dh-page-property"]) .dh-pd-box p:last-child {
  margin-bottom: 0;
}

:where([class*="dh-page-property"]) .dh-pd-box .dh-pd-box__text {
  margin-bottom: 18px;
}

:where([class*="dh-page-property"]) .dh-pd-box__text--pin {
  display: flex;
  gap: 8px;
}

:where([class*="dh-page-property"]) .dh-pd-box__text--pin svg {
  flex: 0 0 auto;
  margin-top: 5px;
  color: var(--dh-accent);
}

/* details: label + value pairs, 3 columns */
:where([class*="dh-page-property"]) .dh-pd-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0 24px;
  margin: 0;
}

:where([class*="dh-page-property"]) .dh-pd-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F0E9DC;
}

:where([class*="dh-page-property"]) .dh-pd-details dt {
  font-size: clamp(13.5px, calc(13.148px + 0.094vw), 14.5px);
  font-weight: 500;
  color: #777;
}

:where([class*="dh-page-property"]) .dh-pd-details dd {
  margin: 0;
  font-size: clamp(13.5px, calc(13.148px + 0.094vw), 14.5px);
  font-weight: 600;
  color: var(--dh-primary);
  text-align: right;
}

/* features */
:where([class*="dh-page-property"]) .dh-pd-amenities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-property"]) .dh-pd-amenities li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #444;
}

:where([class*="dh-page-property"]) .dh-pd-amenities__icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--dh-accent);
}

/* floor plan opens large on click */
:where([class*="dh-page-property"]) .dh-pd-plan-link {
  display: block;
  cursor: zoom-in;
}

:where([class*="dh-page-property"]) .dh-pd-gallery__item {
  cursor: zoom-in;
}

/* Fancybox in brand colours */
/* above the fixed header */
:where([class*="dh-page-property"]) .fancybox__container {
  z-index: 200000;
  --fancybox-bg: rgba(10, 30, 24, 0.94);
  --fancybox-accent-color: var(--dh-accent);
}

:where([class*="dh-page-property"]) .dh-pd-plan {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
}

/* video */
:where([class*="dh-page-property"]) .dh-pd-video {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

:where([class*="dh-page-property"]) .dh-pd-video img {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 380px);
  object-fit: cover;
}

:where([class*="dh-page-property"]) .dh-pd-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

:where([class*="dh-page-property"]) .dh-pd-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  color: var(--dh-primary);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

:where([class*="dh-page-property"]) .dh-pd-video__play svg {
  margin-left: 3px;
}

:where([class*="dh-page-property"]) .dh-pd-video__play:hover,
:where([class*="dh-page-property"]) .dh-pd-video__play:focus-visible {
  background: var(--dh-accent);
  color: #fff;
  box-shadow: 0 0 0 14px rgba(var(--dh-accent-rgb), 0.3);
}

/* map */
:where([class*="dh-page-property"]) .dh-pd-map {
  height: clamp(260px, 30vw, 380px);
  overflow: hidden;
  border-radius: 14px;
  z-index: 0;
}

:where([class*="dh-page-property"]) .dh-pd-map__marker span {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--dh-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: rotate(-45deg);
}

:where([class*="dh-page-property"]) .dh-pd-map__marker span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--dh-accent);
}

/* --------------------------------------------------------------------------
   4. Review form
   -------------------------------------------------------------------------- */
:where([class*="dh-page-property"]) .dh-pd-stars {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

:where([class*="dh-page-property"]) .dh-pd-stars legend {
  margin-bottom: 8px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-primary);
}

/* stars right to left: a star and the ones before it light up together */
:where([class*="dh-page-property"]) .dh-pd-stars__row {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

:where([class*="dh-page-property"]) .dh-pd-stars__row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

:where([class*="dh-page-property"]) .dh-pd-stars__row label {
  margin: 0;
  color: #D9D4C9;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

:where([class*="dh-page-property"]) .dh-pd-stars__row label:hover,
:where([class*="dh-page-property"]) .dh-pd-stars__row label:hover ~ label,
:where([class*="dh-page-property"]) .dh-pd-stars__row input:checked ~ label {
  color: #F5B301;
}

:where([class*="dh-page-property"]) .dh-pd-stars__row label:hover {
  transform: scale(1.12);
}

:where([class*="dh-page-property"]) .dh-pd-stars__row input:focus-visible + label {
  outline: 2px solid rgba(var(--dh-accent-rgb), 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

:where([class*="dh-page-property"]) .dh-pd-form,
:where([class*="dh-page-property"]) .dh-pd-tour__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 576px) {
  :where([class*="dh-page-property"]) .dh-pd-form,
:where([class*="dh-page-property"]) .dh-pd-tour__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :where([class*="dh-page-property"]) .dh-pd-form__full {
    grid-column: 1 / -1;
  }
}

:where([class*="dh-page-property"]) .dh-pd-form label,
:where([class*="dh-page-property"]) .dh-pd-tour__row label {
  display: block;
  margin: 0;
}

:where([class*="dh-page-property"]) .dh-pd-form label > span,
:where([class*="dh-page-property"]) .dh-pd-tour__row label > span,
:where([class*="dh-page-property"]) .dh-pd-count__label {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-page-property"]) .dh-pd-form input,
:where([class*="dh-page-property"]) .dh-pd-form textarea,
:where([class*="dh-page-property"]) .dh-pd-tour__row input[type="text"]#reservation-date,
:where([class*="dh-page-property"]) .dh-pd-tour__row input[type="text"]#reservation-time {
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
  background: #fff;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #333;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

:where([class*="dh-page-property"]) .dh-pd-form textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
}

:where([class*="dh-page-property"]) .dh-pd-tour__row input#reservation-date,
:where([class*="dh-page-property"]) .dh-pd-tour__row input#reservation-time {
  cursor: pointer;
}

:where([class*="dh-page-property"]) .dh-pd-form input:focus,
:where([class*="dh-page-property"]) .dh-pd-form textarea:focus,
:where([class*="dh-page-property"]) .dh-pd-tour__row input:focus {
  border-color: var(--dh-primary);
  box-shadow: 0 0 0 3px rgba(var(--dh-primary-rgb), 0.1);
}

:where([class*="dh-page-property"]) .dh-pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  margin-top: 22px;
  padding: 0 26px;
  border: 1.5px solid var(--dh-primary);
  border-radius: var(--dh-btn-radius, 6px);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

:where([class*="dh-page-property"]) .dh-pd-btn--full {
  width: 100%;
}

:where([class*="dh-page-property"]) .dh-pd-review__note:empty {
  display: none;
}

:where([class*="dh-page-property"]) .dh-pd-review .dh-pd-review__note {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--dh-primary);
}

/* date picker in brand colours (datedropper theme "dh") */
:where([class*="dh-page-property"]) div.datedropper.dh {
  width: 180px;
  border-radius: 12px;
}

:where([class*="dh-page-property"]) div.datedropper.dh .picker {
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(var(--dh-primary-rgb), 0.18);
}

:where([class*="dh-page-property"]) div.datedropper.dh .pick-l {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

:where([class*="dh-page-property"]) div.datedropper.dh:before,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-submit,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-lg-b .pick-sl:before,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-m,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-lg-h {
  background-color: var(--dh-primary);
}

:where([class*="dh-page-property"]) div.datedropper.dh .pick-y.pick-jump,
:where([class*="dh-page-property"]) div.datedropper.dh .pick li span,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-lg-b .pick-wke,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-btn {
  color: var(--dh-accent);
}

:where([class*="dh-page-property"]) div.datedropper.dh .picker,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-l {
  background-color: #fff;
}

:where([class*="dh-page-property"]) div.datedropper.dh .picker,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-arw,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-l {
  color: #4d4d4d;
}

:where([class*="dh-page-property"]) div.datedropper.dh .pick-m,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-m .pick-arw,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-lg-h,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-lg-b .pick-sl,
:where([class*="dh-page-property"]) div.datedropper.dh .pick-submit {
  color: #fff;
}

:where([class*="dh-page-property"]) div.datedropper.dh.picker-tiny:before,
:where([class*="dh-page-property"]) div.datedropper.dh.picker-tiny .pick-m {
  background-color: #fff;
}

:where([class*="dh-page-property"]) div.datedropper.dh.picker-tiny .pick-m,
:where([class*="dh-page-property"]) div.datedropper.dh.picker-tiny .pick-m .pick-arw {
  color: #4d4d4d;
}

/* --------------------------------------------------------------------------
   5. Sidebar
   -------------------------------------------------------------------------- */
:where([class*="dh-page-property"]) .dh-pd-tour .dh-pd-tour__row + .dh-pd-tour__row {
  margin-top: 18px;
}

:where([class*="dh-page-property"]) .dh-pd-count__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 6px;
  border: 1px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
}

:where([class*="dh-page-property"]) .dh-pd-count__box .btn-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dh-bg);
  color: var(--dh-primary);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:where([class*="dh-page-property"]) .dh-pd-count__box .btn-number:hover:not(:disabled) {
  background: var(--dh-primary);
  color: #fff;
}

:where([class*="dh-page-property"]) .dh-pd-count__box .btn-number:disabled {
  opacity: 0.45;
  cursor: default;
}

:where([class*="dh-page-property"]) .dh-pd-count__box input,
:where([class*="dh-page-property"]) .dh-pd-count__box input:focus {
  width: 40px;
  height: auto;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: none;
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  font-weight: 600;
  color: var(--dh-primary);
  text-align: center;
}

/* recently listed */
:where([class*="dh-page-property"]) .dh-pd-recent {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-property"]) .dh-pd-recent__link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

:where([class*="dh-page-property"]) .dh-pd-recent__img {
  flex: 0 0 96px;
  height: 74px;
  overflow: hidden;
  border-radius: 10px;
}

:where([class*="dh-page-property"]) .dh-pd-recent__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

:where([class*="dh-page-property"]) .dh-pd-recent__body {
  min-width: 0;
}

/* title on one line */
:where([class*="dh-page-property"]) .dh-pd-recent__body strong {
  display: block;
  overflow: hidden;
  font-family: var(--dh-font-heading);
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--dh-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

:where([class*="dh-page-property"]) .dh-pd-recent__body small {
  display: block;
  margin: 2px 0;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  color: #888;
}

:where([class*="dh-page-property"]) .dh-pd-recent__body em {
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-style: normal;
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-page-property"]) .dh-pd-recent__link:hover strong,
:where([class*="dh-page-property"]) .dh-pd-recent__link:focus-visible strong {
  color: var(--dh-accent);
}

:where([class*="dh-page-property"]) .dh-pd-recent__link:hover img {
  transform: scale(1.06);
}

/* popular locations */
:where([class*="dh-page-property"]) .dh-pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:where([class*="dh-page-property"]) .dh-pd-tags a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--dh-sand);
  border-radius: 999px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 500;
  color: var(--dh-primary);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:where([class*="dh-page-property"]) .dh-pd-tags a:hover,
:where([class*="dh-page-property"]) .dh-pd-tags a:focus-visible {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   6. Similar properties (cream with dots)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-property"]) .dh-pd-similar {
  padding: clamp(60px, 7vw, 100px) 0;
}

:where([class*="dh-page-property"]) .dh-pd-similar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

:where([class*="dh-page-property"]) .dh-pd-similar__title {
  margin: 0 0 10px;
  font-family: var(--dh-font-heading);
  font-size: clamp(32px, calc(18px + 2.2vw), 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-property"]) .dh-pd-similar__title .dh-hl {
  color: var(--dh-accent);
}

:where([class*="dh-page-property"]) .dh-pd-similar__head p {
  max-width: 640px;
  margin: 0;
  font-size: clamp(15px, calc(14.472px + 0.141vw), 16.5px);
  line-height: 1.7;
  color: #666;
}

:where([class*="dh-page-property"]) .dh-pd-similar__head .dh-pd-btn {
  margin-top: 0;
}

/* arrows on the left and right side of the cards, vertically centred
   (above the dots) */
:where([class*="dh-page-property"]) .dh-pd-similar__wrap {
  position: relative;
}

:where([class*="dh-page-property"]) .dh-pd-similar__wrap .dh-pd-similar__arrow {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 3;
  transform: translateY(-50%);
}

:where([class*="dh-page-property"]) .dh-pd-similar__arrow--prev {
  left: -24px;
}

:where([class*="dh-page-property"]) .dh-pd-similar__arrow--next {
  right: -24px;
}

@media (max-width: 1399px) {
  :where([class*="dh-page-property"]) .dh-pd-similar__arrow--prev {
    left: -8px;
  }

  :where([class*="dh-page-property"]) .dh-pd-similar__arrow--next {
    right: -8px;
  }
}

/* slider: cards of equal height, room for the shadow */
:where([class*="dh-page-property"]) .dh-pd-similar__slider {
  margin: 0 -12px;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slider {
  padding: 6px 0 26px;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slider .swiper-wrapper {
  display: flex;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slider .swiper-slide {
  height: auto;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slide {
  height: 100%;
  padding: 0 12px;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slide .dh-ocard {
  height: 100%;
}

/* before the slider starts: one row of three */
:where([class*="dh-page-property"]) .dh-pd-similar__slider:not(.is-ready) {
  display: flex;
  overflow: hidden;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slider:not(.is-ready) .dh-pd-similar__slide {
  flex: 0 0 33.333%;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slider + .dh-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slider + .dh-dots li {
  width: auto;
  height: auto;
  margin: 0;
  box-shadow: none;
  line-height: 1;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slider + .dh-dots li::after {
  display: none;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slider + .dh-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--dh-primary);
  border-radius: 50%;
  background: transparent;
  font-size: 0;
  cursor: pointer;
}

:where([class*="dh-page-property"]) .dh-pd-similar__slider + .dh-dots .is-active button {
  background: var(--dh-primary);
}

/* homepage glass card */
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__tag--featured {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(22, 35, 30, 0.55);
  color: #fff;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__tag--featured svg {
  display: none;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__tag--status {
  margin-left: 0;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard .dh-prop-card__photo--hover {
  display: none;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard {
  cursor: pointer;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__actions {
  z-index: 3;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__title a {
  display: inline;
  background-image: linear-gradient(to bottom, currentColor 0%, currentColor 98%);
  background-repeat: no-repeat;
  background-position: right 94%;
  background-size: 0 2px;
  text-decoration: none;
  transition: background-size 0.5s ease;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard:hover .dh-ocard__title a,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__title a:focus-visible {
  background-position: left 94%;
  background-size: 100% 2px;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__address svg,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__facts b i,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__more {
  color: var(--dh-accent);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__more:hover,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__more:focus-visible {
  color: #fff;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard:hover .dh-ocard__more svg {
  transform: translateX(3px);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__title a:focus-visible {
  outline: none;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard:focus-within {
  box-shadow: 0 0 0 3px rgba(var(--dh-accent-rgb), 0.55), 0 28px 56px rgba(var(--dh-primary-rgb), 0.22);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard {
  background: linear-gradient(180deg, #fff 0%, var(--dh-bg) 100%);
  color: var(--dh-primary);
  box-shadow: 0 6px 18px rgba(var(--dh-primary-rgb), 0.07);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard:hover {
  box-shadow: 0 16px 36px rgba(var(--dh-primary-rgb), 0.14);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__title a,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard:hover .dh-ocard__title a,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__title a:focus-visible {
  background-size: 0 2px;
  text-decoration: none;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__media::after {
  display: none;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__actions {
  top: 16px;
  bottom: auto;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__body {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  padding-top: 54px;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.45) 24px,
    rgba(255, 255, 255, 0.82) 44px,
    rgba(255, 255, 255, 0.85) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 44px);
  mask-image: linear-gradient(180deg, transparent 0, #000 44px);
  pointer-events: none;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__title a,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__title a:hover {
  color: var(--dh-primary);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__desc {
  color: #3f4a46;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__address {
  color: #3f4a46;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__facts li + li {
  border-left-color: rgba(var(--dh-primary-rgb), 0.18);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__facts b {
  color: var(--dh-primary);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__facts span {
  color: #55605c;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__footer {
  border-top-color: rgba(var(--dh-primary-rgb), 0.18);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__price {
  color: var(--dh-primary);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__more:hover,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__more:focus-visible {
  color: var(--dh-primary);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__icon {
  background: rgba(22, 35, 30, 0.35);
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__more {
  color: var(--dh-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__title a {
  transition: color 0.3s ease, background-size 0.5s ease;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard:hover .dh-ocard__title a,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard:focus-within .dh-ocard__title a,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard:hover .dh-ocard__more,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard:focus-within .dh-ocard__more,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__more:hover,
:where([class*="dh-page-property"]).dh-page-property .dh-ocard__more:focus-visible {
  color: var(--dh-accent);
  text-decoration-color: currentColor;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__media {
  height: 310px;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__desc {
  display: none;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__address {
  order: -1;
  margin: 0 0 6px;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__title {
  margin-bottom: 14px;
}

:where([class*="dh-page-property"]).dh-page-property .dh-ocard__body {
  padding-top: 50px;
  padding-bottom: 20px;
}

/* breadcrumb above the title: Properties › this home */
:where([class*="dh-page-property"]) .dh-pd__crumbs {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  font-size: clamp(13.5px, calc(13.148px + 0.094vw), 14.5px);
}

:where([class*="dh-page-property"]) .dh-pd__crumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--dh-accent);
}

:where([class*="dh-page-property"]) .dh-pd__crumbs a {
  color: var(--dh-primary);
  font-weight: 600;
  text-decoration: none;
}

:where([class*="dh-page-property"]) .dh-pd__crumbs a:hover {
  color: var(--dh-accent);
}

:where([class*="dh-page-property"]) .dh-pd__crumbs .breadcrumb-item.active {
  color: #777;
}

html[data-theme="dark"] :where([class*="dh-page-property"]) .dh-pd__crumbs a {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] :where([class*="dh-page-property"]) .dh-pd__crumbs .breadcrumb-item.active {
  color: var(--dh-d-muted);
}

:where([class*="dh-page-property"]) .dh-pd-tour3d__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: clamp(16px, calc(12.479px + 0.939vw), 26px);
  background: linear-gradient(0deg, rgba(10, 30, 24, 0.82), rgba(10, 30, 24, 0));
}

:where([class*="dh-page-property"]) .dh-pd-tour3d__body p {
  max-width: 420px;
  margin: 0;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #fff;
}

:where([class*="dh-page-property"]) .dh-pd-tour3d__body .dh-btn {
  gap: 8px;
}

/* distances: icon, place, distance */
:where([class*="dh-page-property"]) .dh-pd-dist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-property"]) .dh-pd-dist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F0E9DC;
}

:where([class*="dh-page-property"]) .dh-pd-dist__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(var(--dh-accent-rgb), 0.12);
  color: var(--dh-accent);
}

:where([class*="dh-page-property"]) .dh-pd-dist__name {
  flex: 1;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #444;
}

:where([class*="dh-page-property"]) .dh-pd-dist strong {
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  color: var(--dh-primary);
  white-space: nowrap;
}

html[data-theme="dark"] .dh-pd-tour3d__body p {
  color: #fff;
}

html[data-theme="dark"] .dh-pd-dist li {
  border-bottom-color: var(--dh-d-border);
}

html[data-theme="dark"] .dh-pd-dist__name {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-pd-dist strong {
  color: var(--dh-d-heading);
}

/* ==========================================================================
   END: Property detail page (body.dh-page-property)
   ========================================================================== */

/* ==========================================================================
   START: Contact page (body.dh-page-contact)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page header
   -------------------------------------------------------------------------- */
:where([class*="dh-page-contact"]) .cs_page_header.cs_style_1 {
  position: relative;
  width: 100%;
  padding: 170px 0 90px;
  background-position: center;
  background-size: cover;
  color: #fff;
}

/* soft shade so the white text stays readable (no green overlay) */
:where([class*="dh-page-contact"]) .cs_page_header.cs_style_1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

:where([class*="dh-page-contact"]) .cs_page_header.cs_style_1 .container {
  position: relative;
  z-index: 1;
}

:where([class*="dh-page-contact"]) .cs_page_header_title {
  margin: 0 0 14px;
  font-family: var(--dh-font-heading);
  font-size: clamp(36px, calc(22px + 3vw), 60px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  text-transform: none;
}

:where([class*="dh-page-contact"]) .dh-breadcrumb {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
}

:where([class*="dh-page-contact"]) .dh-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #fff;
}

:where([class*="dh-page-contact"]) .dh-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

/* underline grows on hover */
:where([class*="dh-page-contact"]) .breadcrumb li a {
  color: #fff;
  background-repeat: no-repeat;
  background-image: linear-gradient(90deg, currentColor 0, currentColor 100%);
  background-position: 100% calc(100% - 0px);
  background-size: 0 1px;
  transition: background-size 0.4s cubic-bezier(0.49, 0.49, 0.08, 1);
}

:where([class*="dh-page-contact"]) .breadcrumb li a:hover,
:where([class*="dh-page-contact"]) .breadcrumb li a:focus {
  color: #fff;
  text-decoration: none;
  background-size: 100% 1px;
  background-position: 0 calc(100% - 0px);
}

@media (max-width: 991px) {
  :where([class*="dh-page-contact"]) .cs_page_header.cs_style_1 {
    padding: 130px 0 60px;
  }
}

:where([class*="dh-page-contact"]).dh-page-contact .cs_page_header.cs_style_1 {
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

:where([class*="dh-page-contact"]).dh-page-contact .cs_page_header.cs_style_1::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* --------------------------------------------------------------------------
   2. Layout
   -------------------------------------------------------------------------- */
:where([class*="dh-page-contact"]) .dh-ct {
  padding: clamp(56px, 6vw, 90px) 0 clamp(70px, 7vw, 110px);
}

:where([class*="dh-page-contact"]) .dh-ct__container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

:where([class*="dh-page-contact"]) .dh-ct__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  :where([class*="dh-page-contact"]) .dh-ct__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 50px;
    align-items: start;
  }

  /* contact box and map of the same height */
  :where([class*="dh-page-contact"]) .dh-ct__grid--map {
    align-items: stretch;
  }

  /* intro + form: the shorter side stays in view while the page scrolls */
  :where([class*="dh-page-contact"]) .dh-ct__grid:not(.dh-ct__grid--map) > * {
    position: sticky;
    top: 120px;
  }
}

/* packages intro (left of the form) */
@media (min-width: 992px) {
  :where([class*="dh-page-contact"]) .dh-ct__intro {
    padding-top: 30px;
  }
}

:where([class*="dh-page-contact"]) .dh-ct__heading {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(34px, calc(18px + 2.4vw), 56px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-contact"]) .dh-ct__lead {
  margin: 16px 0 30px;
  font-size: clamp(15px, calc(14.472px + 0.141vw), 16.5px);
  line-height: 1.7;
  color: #666;
}

:where([class*="dh-page-contact"]) .dh-ct__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1.5px solid;
  border-radius: var(--dh-btn-radius, 6px);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

/* map */
:where([class*="dh-page-contact"]) .dh-ct__map {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--dh-sand);
  border-radius: 20px;
  background: #fff;
}

/* Leaflet map (OpenStreetMap) */
:where([class*="dh-page-contact"]) .dh-ct__map {
  position: relative;
  z-index: 0;
}

:where([class*="dh-page-contact"]) .dh-ct__map-canvas {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

:where([class*="dh-page-contact"]) .dh-ct__map .leaflet-tile-pane {
  filter: grayscale(0.35);
}

/* --------------------------------------------------------------------------
   3. Contact details + form
   -------------------------------------------------------------------------- */
:where([class*="dh-page-contact"]) .dh-ct__info,
:where([class*="dh-page-contact"]) .dh-ct__form {
  padding: clamp(24px, 2.2vw, 30px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--dh-sand);
  border-radius: 20px;
  background: #fff;
}

/* white outline box on the cream section; keeps its height without the
   social links, the content sits in the middle */
:where([class*="dh-page-contact"]) .dh-ct__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  background: #fff;
}

@media (max-width: 767px) {
  :where([class*="dh-page-contact"]) .dh-ct__info {
    min-height: 0;
  }
}

:where([class*="dh-page-contact"]) .dh-ct__title {
  margin: 0 0 8px;
  font-family: var(--dh-font-heading);
  font-size: clamp(26px, calc(18px + 1.2vw), 36px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-contact"]) .dh-ct__text {
  margin: 0 0 28px;
  font-size: clamp(14.5px, calc(14.148px + 0.094vw), 15.5px);
  line-height: 1.7;
  color: #666;
}

:where([class*="dh-page-contact"]) .dh-ct__list {
  display: grid;
  gap: 22px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-contact"]) .dh-ct__list li {
  display: flex;
  align-items: center;
  gap: 16px;
}

:where([class*="dh-page-contact"]) .dh-ct__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dh-bg);
  color: var(--dh-accent);
}

:where([class*="dh-page-contact"]) .dh-ct__label {
  display: block;
  margin-bottom: 2px;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dh-primary);
}

:where([class*="dh-page-contact"]) .dh-ct__list a,
:where([class*="dh-page-contact"]) .dh-ct__list p {
  margin: 0;
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

:where([class*="dh-page-contact"]) .dh-ct__list a:hover,
:where([class*="dh-page-contact"]) .dh-ct__list a:focus-visible {
  color: var(--dh-accent);
}

/* form */
:where([class*="dh-page-contact"]) .dh-ct__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  :where([class*="dh-page-contact"]) .dh-ct__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :where([class*="dh-page-contact"]) .dh-ct__full {
    grid-column: 1 / -1;
  }
}

:where([class*="dh-page-contact"]) .dh-ct__fields label {
  display: block;
  margin: 0;
}

:where([class*="dh-page-contact"]) .dh-ct__fields label > span {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-page-contact"]) .dh-ct__fields input,
:where([class*="dh-page-contact"]) .dh-ct__fields textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
  background: #fff;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #333;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

:where([class*="dh-page-contact"]) .dh-ct__fields input {
  height: 50px;
}

:where([class*="dh-page-contact"]) .dh-ct__fields textarea {
  min-height: 150px;
  resize: vertical;
}

:where([class*="dh-page-contact"]) .dh-ct__fields input::placeholder,
:where([class*="dh-page-contact"]) .dh-ct__fields textarea::placeholder {
  color: #9a9a9a;
}

:where([class*="dh-page-contact"]) .dh-ct__fields input:focus,
:where([class*="dh-page-contact"]) .dh-ct__fields textarea:focus {
  border-color: var(--dh-primary);
  box-shadow: 0 0 0 3px rgba(var(--dh-primary-rgb), 0.1);
}

:where([class*="dh-page-contact"]) .dh-ct__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 22px;
  padding: 0 26px;
  border: 1.5px solid var(--dh-primary);
  border-radius: var(--dh-btn-radius, 6px);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  cursor: pointer;
}

:where([class*="dh-page-contact"]) .dh-ct__note {
  margin: 12px 0 0;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: #666;
}

/* the note line only takes space once it has a message */
:where([class*="dh-page-contact"]) .dh-ct__note:empty {
  display: none;
}

/* ==========================================================================
   END: Contact page (body.dh-page-contact)
   ========================================================================== */

/* ==========================================================================
   START: How it works page (body.dh-page-how)
   ========================================================================== */
/* --------------------------------------------------------------------------
   0. Tokens for this page
   -------------------------------------------------------------------------- */
:where([class*="dh-page-how"]).dh-page-how {
  --hw-line: var(--dh-sand);
  --hw-line-soft: rgba(233, 223, 206, 0.6);   /* lighter border for the big panel and the switch */
  --hw-card: #fff;
  --hw-row: #fff;
  --hw-soft: #F6F4EE;
  --hw-ink: #2b2b2b;
  --hw-heading: var(--dh-primary);
  --hw-muted: #666;
  --hw-gold-soft: #D9B77A;
  --hw-live: #3BA776;
  --hw-radius: 16px;
  --hw-ways-bg: var(--dh-primary);
  --hw-reach-bg: var(--dh-primary);
  --hw-shadow: 0 24px 60px rgba(19, 75, 62, 0.12);
  --hw-pill: #fff;                 /* white pills on the green section */
  --hw-pill-text: var(--dh-primary);
  --hw-sticky-top: 120px;
}

/* --------------------------------------------------------------------------
   1. Intro: text, button and the four key figures in one row on the
      left (numbers count up, js/main.js), one photo right with the
      diagonal hover (.dh-img-hover)
   -------------------------------------------------------------------------- */
/* Bootstrap row: text col-lg-6, photo col-lg-5 offset-lg-1 */
:where([class*="dh-page-how"]) .hw-intro__row {
  row-gap: 40px;
}

:where([class*="dh-page-how"]) .hw-intro__text .h2-head__text {
  margin: 18px 0 28px;
  max-width: 560px;
}

:where([class*="dh-page-how"]) .hw-intro__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.2;
  border-radius: 20px;
}

:where([class*="dh-page-how"]) .hw-intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

/* key figures: four in one row under the button, thin lines between */
:where([class*="dh-page-how"]) .hw-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(32px, 3.6vw, 44px) 0 0;
  padding: 0;
  /* border-top: 1px solid var(--hw-line); */
  list-style: none;
}

:where([class*="dh-page-how"]) .hw-stats__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
}

:where([class*="dh-page-how"]) .hw-stats__item:first-child {
  padding-left: 0;
}

:where([class*="dh-page-how"]) .hw-stats__item + .hw-stats__item {
  border-left: 1px solid var(--hw-line);
}

:where([class*="dh-page-how"]) .hw-stats__num {
  font-family: var(--dh-font-heading);
  font-size: clamp(30px, calc(26.479px + 0.939vw), 40px);
  line-height: 1;
  color: var(--hw-heading);
}

:where([class*="dh-page-how"]) .hw-stats__num small {
  margin-left: 2px;
  font-size: 0.55em;
  color: var(--dh-accent);
}

:where([class*="dh-page-how"]) .hw-stats__label {
  font-size: clamp(12.5px, calc(12.148px + 0.094vw), 13.5px);
  line-height: 1.45;
  color: var(--hw-muted);
}

@media (max-width: 991px) {
  :where([class*="dh-page-how"]) .hw-intro__photo {
    aspect-ratio: 16 / 10;
  }
}

/* small screens: 2 x 2 */
@media (max-width: 575px) {
  :where([class*="dh-page-how"]) .hw-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :where([class*="dh-page-how"]) .hw-stats__item {
    padding: 18px 16px 18px 0;
  }

  :where([class*="dh-page-how"]) .hw-stats__item + .hw-stats__item {
    border-left: 0;
  }

  :where([class*="dh-page-how"]) .hw-stats__item:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--hw-line);
  }

  :where([class*="dh-page-how"]) .hw-stats__item:nth-child(n + 3) {
    border-top: 1px solid var(--hw-line);
  }
}

/* --------------------------------------------------------------------------
   2. Your path to the sale: the photo stays in place while the steps
      scroll past; the step in the middle of the screen is active
      (js/main.js sets .is-active and swaps the photo)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-how"]) .hw-path__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 90px);
  align-items: start;
}

:where([class*="dh-page-how"]) .hw-path__media {
  position: sticky;
  top: var(--hw-sticky-top);
}

:where([class*="dh-page-how"]) .hw-path__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - var(--hw-sticky-top) - 40px);
  border-radius: var(--hw-radius);
  background: var(--dh-sand);
}

:where([class*="dh-page-how"]) .hw-path__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s ease, transform 1.2s ease;
}

:where([class*="dh-page-how"]) .hw-path__img.is-active {
  opacity: 1;
  transform: scale(1);
}

:where([class*="dh-page-how"]) .hw-path__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

:where([class*="dh-page-how"]) .hw-path__badge-label {
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dh-accent);
}

:where([class*="dh-page-how"]) .hw-path__badge-num {
  font-family: var(--dh-font-heading);
  font-size: clamp(28px, calc(25.183px + 0.751vw), 36px);
  line-height: 1;
  color: var(--dh-primary);
}

:where([class*="dh-page-how"]) .hw-path__badge-total {
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: #888;
}

:where([class*="dh-page-how"]) .hw-path__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-how"]) .hw-step {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  padding: clamp(26px, 3vw, 40px) 0 clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  border-left: 2px solid var(--hw-line);
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

:where([class*="dh-page-how"]) .hw-step::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 2px;
  background: var(--dh-accent);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.5s ease;
}

:where([class*="dh-page-how"]) .hw-step.is-active {
  opacity: 1;
}

:where([class*="dh-page-how"]) .hw-step.is-active::before {
  transform: scaleY(1);
}

:where([class*="dh-page-how"]) .hw-step__num {
  font-family: var(--dh-font-heading);
  font-size: clamp(34px, calc(30.479px + 0.939vw), 44px);
  line-height: 1;
  color: var(--hw-line);
  transition: color 0.4s ease;
}

:where([class*="dh-page-how"]) .hw-step.is-active .hw-step__num {
  color: var(--dh-accent);
}

:where([class*="dh-page-how"]) .hw-step__title {
  margin: 4px 0 10px;
  font-family: var(--dh-font-heading);
  font-size: clamp(22px, calc(19.887px + 0.563vw), 28px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-how"]) .hw-step__text {
  margin: 0;
  font-size: clamp(15px, calc(14.648px + 0.094vw), 16px);
  line-height: 1.7;
  color: var(--hw-muted);
}

:where([class*="dh-page-how"]) .hw-step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-how"]) .hw-step__tags li {
  padding: 5px 12px;
  border: 1px solid var(--hw-line);
  border-radius: 999px;
  background: var(--hw-card);
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 500;
  color: var(--dh-primary);
}

@media (max-width: 991px) {
  :where([class*="dh-page-how"]) .hw-path__layout {
    grid-template-columns: 1fr;
  }

  :where([class*="dh-page-how"]) .hw-path__media {
    display: none;
  }

  :where([class*="dh-page-how"]) .hw-step {
    opacity: 1;
  }

  :where([class*="dh-page-how"]) .hw-step__num {
    color: var(--dh-accent);
  }
}

@media (max-width: 479px) {
  :where([class*="dh-page-how"]) .hw-step {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   3. Two ways to sell: a switch (Bootstrap tabs) and one panel,
      photo left with the price, details right; both panels look the same
   -------------------------------------------------------------------------- */
:where([class*="dh-page-how"]) .hw-ways__head {
  align-items: flex-end;
}

:where([class*="dh-page-how"]) .hw-switch {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--hw-line-soft);
  border-radius: 999px;
  background: var(--hw-card);
}

:where([class*="dh-page-how"]) .hw-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px 11px 14px;
  border-radius: 999px;
  font-size: clamp(14px, calc(13.472px + 0.141vw), 15.5px);
  font-weight: 600;
  white-space: nowrap;
  color: var(--hw-heading);
  text-decoration: none;
  transition: background-color 0.35s ease, color 0.35s ease;
}

:where([class*="dh-page-how"]) .hw-switch__btn:hover,
:where([class*="dh-page-how"]) .hw-switch__btn:focus-visible {
  color: var(--dh-accent);
  text-decoration: none;
}

:where([class*="dh-page-how"]) .hw-switch__btn.active {
  background: var(--dh-primary);
  color: #fff;
}

:where([class*="dh-page-how"]) .hw-switch__btn:focus {
  outline: none;
}

:where([class*="dh-page-how"]) .hw-switch__btn:focus-visible {
  outline: 2px solid rgba(var(--dh-accent-rgb), 0.5);
  outline-offset: 2px;
}

:where([class*="dh-page-how"]) .hw-switch__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--dh-accent-rgb), 0.14);
  color: var(--dh-accent);
}

:where([class*="dh-page-how"]) .hw-switch__btn.active .hw-switch__icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--hw-gold-soft);
}

:where([class*="dh-page-how"]) .hw-switch__icon svg {
  width: 18px;
  height: 18px;
}

/* panel */
:where([class*="dh-page-how"]) .tab-content > .hw-way.active {
  display: grid;
}

:where([class*="dh-page-how"]) .hw-way {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--hw-line-soft);
  border-radius: 24px;
  background: var(--hw-card);
}

:where([class*="dh-page-how"]) .hw-way__media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

:where([class*="dh-page-how"]) .hw-way__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

:where([class*="dh-page-how"]) .hw-way.active .hw-way__media img {
  animation: hw-zoom 1.4s ease both;
}

@keyframes hw-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* price on the photo */
:where([class*="dh-page-how"]) .hw-way__price {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--hw-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

:where([class*="dh-page-how"]) .hw-way__price small {
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hw-muted);
}

:where([class*="dh-page-how"]) .hw-way__price strong {
  font-family: var(--dh-font-heading);
  font-size: clamp(28px, calc(24.479px + 0.939vw), 38px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dh-accent);
}

:where([class*="dh-page-how"]) .hw-way__price span {
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: var(--hw-muted);
}

:where([class*="dh-page-how"]) .hw-way__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 3vw, 44px);
}

:where([class*="dh-page-how"]) .hw-way__label {
  padding: 6px 14px;
  border: 1px solid rgba(var(--dh-accent-rgb), 0.6);
  border-radius: 999px;
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dh-accent);
}

:where([class*="dh-page-how"]) .hw-way__title {
  margin: 14px 0 10px;
  font-family: var(--dh-font-heading);
  font-size: clamp(26px, calc(22.831px + 0.845vw), 35px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--hw-heading);
  text-transform: none;
}

:where([class*="dh-page-how"]) .hw-way__text {
  margin: 0;
  max-width: 520px;
  font-size: clamp(15px, calc(14.648px + 0.094vw), 16px);
  line-height: 1.7;
  color: var(--hw-muted);
}

:where([class*="dh-page-how"]) .hw-way__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  width: 100%;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-how"]) .hw-way__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hw-line);
  font-size: clamp(14.5px, calc(14.148px + 0.094vw), 15.5px);
  color: var(--hw-ink);
}

:where([class*="dh-page-how"]) .hw-way__check {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(var(--dh-accent-rgb), 0.14);
  color: var(--dh-accent);
}

:where([class*="dh-page-how"]) .hw-way__check svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 991px) {
  :where([class*="dh-page-how"]) .hw-way {
    grid-template-columns: minmax(0, 1fr);
  }

  :where([class*="dh-page-how"]) .hw-way__media {
    min-height: 280px;
  }
}

@media (max-width: 575px) {
  :where([class*="dh-page-how"]) .hw-switch {
    display: flex;
    width: 100%;
  }

  :where([class*="dh-page-how"]) .hw-switch .nav-item {
    flex: 1;
  }

  :where([class*="dh-page-how"]) .hw-switch__btn {
    justify-content: center;
    width: 100%;
    padding: 10px 8px;
    white-space: normal;
    text-align: center;
  }

  :where([class*="dh-page-how"]) .hw-switch__icon {
    display: none;
  }

  :where([class*="dh-page-how"]) .hw-way__media {
    min-height: 240px;
  }

  :where([class*="dh-page-how"]) .hw-way__price {
    bottom: 16px;
    left: 16px;
    padding: 12px 16px;
  }

  :where([class*="dh-page-how"]) .hw-way__list {
    grid-template-columns: minmax(0, 1fr);
  }

  :where([class*="dh-page-how"]) .hw-way__body .dh-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   4. Where your listing appears: your listing in the middle, the SELF
      portals on the inner ring, the PREMIUM portals on the outer ring
   -------------------------------------------------------------------------- */
:where([class*="dh-page-how"]) .hw-reach {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 50%, rgba(var(--dh-accent-rgb), 0.16) 0%, rgba(var(--dh-accent-rgb), 0) 45%),
    var(--hw-reach-bg);
  color: #fff;
}

:where([class*="dh-page-how"]) .hw-reach__row {
  row-gap: 56px;
}

:where([class*="dh-page-how"]) .hw-reach .hw-reach__title {
  margin-bottom: 18px;
  color: #fff;
}

:where([class*="dh-page-how"]) .hw-reach .hw-reach__title .dh-hl {
  color: var(--hw-gold-soft);
}

:where([class*="dh-page-how"]) .hw-reach .hw-reach__text {
  color: rgba(255, 255, 255, 0.75);
}

:where([class*="dh-page-how"]) .hw-reach__facts {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-how"]) .hw-reach__facts li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

:where([class*="dh-page-how"]) .hw-reach__num {
  font-family: var(--dh-font-heading);
  font-size: clamp(34px, calc(30.479px + 0.939vw), 44px);
  line-height: 1;
  color: var(--hw-gold-soft);
}

:where([class*="dh-page-how"]) .hw-reach__facts strong {
  display: block;
  margin-bottom: 2px;
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
  font-weight: 600;
  color: #fff;
}

:where([class*="dh-page-how"]) .hw-reach__facts div span {
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

:where([class*="dh-page-how"]) .hw-hub {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin: 0 auto;
}

:where([class*="dh-page-how"]) .hw-hub__ring {
  position: absolute;
  border-radius: 50%;
}

:where([class*="dh-page-how"]) .hw-hub__ring--inner {
  inset: 19%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
}

/* outer ring turns slowly, the five gold dots are the PREMIUM portals */
:where([class*="dh-page-how"]) .hw-hub__ring--outer {
  inset: 3%;
  border: 1px dashed rgba(217, 183, 122, 0.45);
  animation: hw-spin 60s linear infinite;
}

:where([class*="dh-page-how"]) .hw-hub__ring--outer i {
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--n) * 72deg + 20deg));
}

:where([class*="dh-page-how"]) .hw-hub__ring--outer i::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--hw-gold-soft);
  box-shadow: 0 0 0 5px rgba(217, 183, 122, 0.18);
}

:where([class*="dh-page-how"]) .hw-hub__ring--outer i:nth-child(1) { --n: 0; }
:where([class*="dh-page-how"]) .hw-hub__ring--outer i:nth-child(2) { --n: 1; }
:where([class*="dh-page-how"]) .hw-hub__ring--outer i:nth-child(3) { --n: 2; }
:where([class*="dh-page-how"]) .hw-hub__ring--outer i:nth-child(4) { --n: 3; }
:where([class*="dh-page-how"]) .hw-hub__ring--outer i:nth-child(5) { --n: 4; }

@keyframes hw-spin {
  to { transform: rotate(360deg); }
}

/* lines from the listing to the SELF portals, the dashes move outwards */
:where([class*="dh-page-how"]) .hw-hub__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

:where([class*="dh-page-how"]) .hw-hub__lines line {
  stroke: rgba(217, 183, 122, 0.75);
  stroke-width: 0.35;
  stroke-dasharray: 1 1.6;
  stroke-linecap: round;
  animation: hw-dash 1.6s linear infinite;
}

@keyframes hw-dash {
  to { stroke-dashoffset: -5.2; }
}

:where([class*="dh-page-how"]) .hw-hub__center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 30%;
  aspect-ratio: 1;
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.08), 0 24px 50px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}

:where([class*="dh-page-how"]) .hw-hub__center img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

:where([class*="dh-page-how"]) .hw-hub__tag {
  position: absolute;
  top: -14px;
  left: 50%;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--dh-accent);
  font-size: clamp(10.5px, calc(10.148px + 0.094vw), 11.5px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  transform: translateX(-50%);
}

:where([class*="dh-page-how"]) .hw-hub__portal {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  background: var(--hw-pill);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: hw-float 5s ease-in-out infinite;
}

:where([class*="dh-page-how"]) .hw-hub__portal--1 { top: 19%; left: 50%; }
:where([class*="dh-page-how"]) .hw-hub__portal--2 { top: 65.5%; left: 76.8%; animation-delay: -1.6s; }
:where([class*="dh-page-how"]) .hw-hub__portal--3 { top: 65.5%; left: 23.2%; animation-delay: -3.2s; }

@keyframes hw-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 6px)); }
}

:where([class*="dh-page-how"]) .hw-hub__logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hw-soft);
  font-family: var(--dh-font-heading);
  font-size: clamp(17px, calc(16.296px + 0.188vw), 19px);
  color: var(--hw-pill-text);
}

:where([class*="dh-page-how"]) .hw-hub__name {
  display: flex;
  flex-direction: column;
  font-size: clamp(13.5px, calc(12.972px + 0.141vw), 15px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--hw-pill-text);
}

:where([class*="dh-page-how"]) .hw-hub__name small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  font-weight: 600;
  color: var(--hw-live);
}

:where([class*="dh-page-how"]) .hw-hub__name small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: hw-live 1.8s ease-out infinite;
}

@keyframes hw-live {
  0% { box-shadow: 0 0 0 0 rgba(59, 167, 118, 0.55); }
  100% { box-shadow: 0 0 0 7px rgba(59, 167, 118, 0); }
}

:where([class*="dh-page-how"]) .hw-hub__premium {
  position: absolute;
  top: 12%;
  left: 84%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--dh-accent);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}

:where([class*="dh-page-how"]) .hw-hub__premium strong {
  font-family: var(--dh-font-heading);
  font-size: clamp(20px, calc(17.887px + 0.563vw), 26px);
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

:where([class*="dh-page-how"]) .hw-hub__premium span {
  max-width: 150px;
  font-size: clamp(11px, calc(10.648px + 0.094vw), 12px);
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

:where([class*="dh-page-how"]) .hw-reach__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 440px;
  margin: 18px auto 0;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: rgba(255, 255, 255, 0.7);
}

:where([class*="dh-page-how"]) .hw-reach__note svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--hw-gold-soft);
}

@media (max-width: 575px) {
  :where([class*="dh-page-how"]) .hw-hub__portal {
    gap: 7px;
    padding: 5px 12px 5px 5px;
  }

  :where([class*="dh-page-how"]) .hw-hub__logo {
    width: 30px;
    height: 30px;
  }

  :where([class*="dh-page-how"]) .hw-reach__note {
    justify-content: flex-start;
  }

  /* small screens: PREMIUM card at the bottom of the outer ring */
  :where([class*="dh-page-how"]) .hw-hub__premium {
    top: 97%;
    left: 50%;
    padding: 8px 12px;
  }

  :where([class*="dh-page-how"]) .hw-hub__premium span {
    max-width: none;
    white-space: nowrap;
  }

  :where([class*="dh-page-how"]) .hw-hub {
    margin-bottom: 24px;
  }

  :where([class*="dh-page-how"]) .hw-hub__center {
    border-width: 4px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 18px 36px rgba(0, 0, 0, 0.3);
  }
}

/* --------------------------------------------------------------------------
   5. Inside your Cockpit: the About page timeline (.ab-timeline, section 4b
      of the About page CSS, shared with this page)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   6. Call to action: same parallax block as the About page (.ab-cta)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-how"]) .ab-cta__title .dh-hl {
  color: var(--hw-gold-soft);
}

@media (prefers-reduced-motion: reduce) {
  :where([class*="dh-page-how"]) .hw-way.active .hw-way__media img,
  :where([class*="dh-page-how"]) .hw-hub__ring--outer,
  :where([class*="dh-page-how"]) .hw-hub__lines line,
  :where([class*="dh-page-how"]) .hw-hub__portal,
  :where([class*="dh-page-how"]) .hw-hub__name small i {
    animation: none;
  }
}

/* ==========================================================================
   END: How it works page (body.dh-page-how)
   ========================================================================== */

/* ==========================================================================
   START: Legal pages: AGB, Datenschutz, Impressum (body.dh-page-legal)
   ========================================================================== */

:where([class*="dh-page-legal"]).dh-page-legal {
  --dh-legal-title: var(--dh-primary);
  --dh-legal-text: #555;
  --dh-legal-link: var(--dh-primary);
}

/* --------------------------------------------------------------------------
   1. Page header (same as the contact page)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-legal"]) .cs_page_header.cs_style_1 {
  position: relative;
  width: 100%;
  padding: 170px 0 90px;
  background-position: center;
  background-size: cover;
  color: #fff;
}

/* soft shade so the white text stays readable (no green overlay) */
:where([class*="dh-page-legal"]) .cs_page_header.cs_style_1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

:where([class*="dh-page-legal"]) .cs_page_header.cs_style_1 .container {
  position: relative;
  z-index: 1;
}

:where([class*="dh-page-legal"]) .cs_page_header_title {
  margin: 0 0 14px;
  font-family: var(--dh-font-heading);
  font-size: clamp(36px, calc(22px + 3vw), 60px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  text-transform: none;
}

:where([class*="dh-page-legal"]) .dh-breadcrumb {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
}

:where([class*="dh-page-legal"]) .dh-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #fff;
}

:where([class*="dh-page-legal"]) .dh-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

/* underline grows on hover */
:where([class*="dh-page-legal"]) .breadcrumb li a {
  color: #fff;
  background-repeat: no-repeat;
  background-image: linear-gradient(90deg, currentColor 0, currentColor 100%);
  background-position: 100% calc(100% - 0px);
  background-size: 0 1px;
  transition: background-size 0.4s cubic-bezier(0.49, 0.49, 0.08, 1);
}

:where([class*="dh-page-legal"]) .breadcrumb li a:hover,
:where([class*="dh-page-legal"]) .breadcrumb li a:focus {
  color: #fff;
  text-decoration: none;
  background-size: 100% 1px;
  background-position: 0 calc(100% - 0px);
}

@media (max-width: 991px) {
  :where([class*="dh-page-legal"]) .cs_page_header.cs_style_1 {
    padding: 130px 0 60px;
  }
}

:where([class*="dh-page-legal"]).dh-page-legal .cs_page_header.cs_style_1 {
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

:where([class*="dh-page-legal"]).dh-page-legal .cs_page_header.cs_style_1::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* --------------------------------------------------------------------------
   2. Numbered sections (full site width, same container as the other pages)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-legal"]) .dh-legal {
  padding: clamp(56px, 6vw, 90px) 0 clamp(70px, 7vw, 110px);
}

:where([class*="dh-page-legal"]) .dh-legal__container {
  width: 100%;
  max-width: var(--dh-container, 1560px);
  margin: 0 auto;
  padding: 0 var(--dh-gutter, 15px);
}

:where([class*="dh-page-legal"]) .dh-legal__intro {
  margin-bottom: clamp(32px, 3.4vw, 48px);
}

:where([class*="dh-page-legal"]) .dh-legal__updated {
  margin: 0 0 12px;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dh-accent);
}

:where([class*="dh-page-legal"]) .dh-legal__lead {
  margin: 0;
  font-size: clamp(16px, calc(15.296px + 0.188vw), 18px);
  line-height: 1.75;
  color: var(--dh-legal-text);
}

:where([class*="dh-page-legal"]) .dh-legal__item + .dh-legal__item {
  margin-top: clamp(25px, 2.5vw, 32px);
}

/* heading: serif, bigger; paragraphs: body font, regular */
:where([class*="dh-page-legal"]) .dh-legal__title {
  margin: 0 0 12px;
  font-family: var(--dh-font-heading);
  font-size: clamp(22px, calc(16px + 0.7vw), 28px);
  font-weight: 400;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dh-legal-title);
}

:where([class*="dh-page-legal"]) .dh-legal__text {
  margin: 0;
  font-family: var(--dh-font-body);
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  font-weight: 400;
  line-height: 1.85;
  color: var(--dh-legal-text);
}

:where([class*="dh-page-legal"]) .dh-legal__text + .dh-legal__text {
  margin-top: 12px;
}

:where([class*="dh-page-legal"]) .dh-legal__text a,
:where([class*="dh-page-legal"]) .dh-legal__lead a {
  color: var(--dh-legal-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(var(--dh-accent-rgb), 0.6);
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

:where([class*="dh-page-legal"]) .dh-legal__text a:hover,
:where([class*="dh-page-legal"]) .dh-legal__lead a:hover {
  color: var(--dh-accent);
}

/* --------------------------------------------------------------------------
   Dark mode: only the variables change
   -------------------------------------------------------------------------- */
html[data-theme="dark"] :where([class*="dh-page-legal"]).dh-page-legal {
  --dh-legal-title: var(--dh-d-heading);
  --dh-legal-text: var(--dh-d-text);
  --dh-legal-link: var(--dh-d-heading);
}

/* ==========================================================================
   END: Legal pages: AGB, Datenschutz, Impressum (body.dh-page-legal)
   ========================================================================== */

/* ==========================================================================
   START: Login, register, forgot password (body.dh-auth-page)
   ========================================================================== */

body:where([class*="dh-auth-page"]).dh-auth-page {
  margin: 0;
  background: var(--dh-bg);
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.6;
  color: #555;
}

/* --------------------------------------------------------------------------
   1. Split layout: form left, photo right (photo hidden on small screens)
   -------------------------------------------------------------------------- */
:where([class*="dh-auth-page"]) .dh-auth {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 992px) {
  :where([class*="dh-auth-page"]) .dh-auth {
    grid-template-columns: 1fr 1fr;
  }
}

:where([class*="dh-auth-page"]) .dh-auth__form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px) 16px;
}

/* Photo */
:where([class*="dh-auth-page"]) .dh-auth__media.cs_contact_map {
  display: none;
  position: relative;
  min-height: 100vh;
}

:where([class*="dh-auth-page"]) .dh-auth__media.cs_contact_map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 992px) {
  :where([class*="dh-auth-page"]) .dh-auth__media.cs_contact_map {
    display: block;
  }

  /* photo stays in view while a long form scrolls */
  :where([class*="dh-auth-page"]) .dh-auth__media.cs_contact_map img {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

/* --------------------------------------------------------------------------
   2. Form card
   -------------------------------------------------------------------------- */
:where([class*="dh-auth-page"]) .cs_contact_form_wrapper.dh-auth__card {
  width: 100%;
  max-width: 560px;
  padding: 36px 40px 40px;
  border: 1px solid var(--dh-sand);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(var(--dh-primary-rgb), 0.08);
}

@media (max-width: 767px) {
  :where([class*="dh-auth-page"]) .cs_contact_form_wrapper.dh-auth__card {
    padding: 30px 20px 34px;
  }
}

/* Main logo – centred above each auth form with clear heading separation */
:where([class*="dh-auth-page"]) .dh-auth__brand {
  display: block;
  width: fit-content;
  margin: 0 auto 28px;
  line-height: 0;
}

:where([class*="dh-auth-page"]) .dh-auth__brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

:where([class*="dh-auth-page"]) .dh-auth__brand:hover,
:where([class*="dh-auth-page"]) .dh-auth__brand:focus-visible {
  opacity: 0.85;
}

:where([class*="dh-auth-page"]) .cs_contact_form_heading {
  margin: 0 0 8px;
  font-family: var(--dh-font-heading);
  font-size: clamp(26px, calc(20px + 1vw), 34px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dh-primary);
}

:where([class*="dh-auth-page"]) .dh-auth__lead {
  margin: 0 0 26px;
  color: #666;
}

/* --------------------------------------------------------------------------
   3. Fields
   -------------------------------------------------------------------------- */
:where([class*="dh-auth-page"]) .dh-auth__form {
  row-gap: 18px;
  margin-bottom: 26px;
}

:where([class*="dh-auth-page"]) .dh-auth__label {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-auth-page"]) .dh-auth__optional {
  font-weight: 400;
  color: #888;
}

:where([class*="dh-auth-page"]) .cs_contact_form.cs_type_1 .cs_form_field {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--dh-sand);
  border-radius: 10px;
  outline: 0;
  background: var(--dh-bg);
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

:where([class*="dh-auth-page"]) .cs_contact_form.cs_type_1 .cs_form_field::placeholder {
  color: #999;
}

:where([class*="dh-auth-page"]) .cs_contact_form.cs_type_1 .cs_form_field:focus {
  border-color: var(--dh-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--dh-primary-rgb), 0.12);
}

:where([class*="dh-auth-page"]) .dh-auth__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

:where([class*="dh-auth-page"]) .dh-auth__submit.dh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border: 1.5px solid var(--dh-primary);
  border-radius: 999px;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. Checkbox
   -------------------------------------------------------------------------- */
:where([class*="dh-auth-page"]) .cs_custom_checkbox {
  position: relative;
  display: inline-block;
  min-height: 24px;
}

:where([class*="dh-auth-page"]) .cs_custom_checkbox input {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  cursor: pointer;
  opacity: 0;
}

:where([class*="dh-auth-page"]) .cs_custom_checkbox > label {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-left: 28px;
  line-height: 1.6;
  color: #444;
  cursor: pointer;
}

:where([class*="dh-auth-page"]) .cs_custom_checkbox > label::before,
:where([class*="dh-auth-page"]) .cs_custom_checkbox > label::after {
  content: "";
  position: absolute;
  transition: all 0.25s ease;
}

:where([class*="dh-auth-page"]) .cs_custom_checkbox > label::before {
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--dh-primary);
  border-radius: 4px;
}

:where([class*="dh-auth-page"]) .cs_custom_checkbox > label::after {
  top: 8px;
  left: 0;
  width: 9px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  border-radius: 1px;
  transform: rotate(-45deg);
  opacity: 0;
}

:where([class*="dh-auth-page"]) .cs_custom_checkbox input:checked + label::before {
  background-color: var(--dh-primary);
}

:where([class*="dh-auth-page"]) .cs_custom_checkbox input:checked + label::after {
  opacity: 1;
}

:where([class*="dh-auth-page"]) .cs_custom_checkbox input:focus-visible + label::before {
  box-shadow: 0 0 0 3px rgba(var(--dh-accent-rgb), 0.35);
}

/* --------------------------------------------------------------------------
   5. Text links
   -------------------------------------------------------------------------- */
:where([class*="dh-auth-page"]) .cs_text_btn.cs_style_1 {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: var(--dh-primary);
  text-decoration: none;
}

:where([class*="dh-auth-page"]) .cs_text_btn.cs_style_1::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scale(1, 1);
  transform-origin: top right;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

:where([class*="dh-auth-page"]) .cs_text_btn.cs_style_1:hover {
  color: var(--dh-accent);
  text-decoration: none;
}

:where([class*="dh-auth-page"]) .cs_text_btn.cs_style_1:hover::before {
  transform: scale(0.5, 1);
}

/* --------------------------------------------------------------------------
   6. "Or login with" + social buttons
   -------------------------------------------------------------------------- */
:where([class*="dh-auth-page"]) .cs_or_login {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
  color: #777;
}

:where([class*="dh-auth-page"]) .cs_or_login span {
  position: relative;
  padding: 0 12px;
  text-align: center;
}

:where([class*="dh-auth-page"]) .cs_or_login span::before,
:where([class*="dh-auth-page"]) .cs_or_login span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background-color: var(--dh-sand);
}

:where([class*="dh-auth-page"]) .cs_or_login span::before {
  right: 100%;
}

:where([class*="dh-auth-page"]) .cs_or_login span::after {
  left: 100%;
}

/* Google login: one full width button */
:where([class*="dh-auth-page"]) .dh-auth__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  margin-bottom: 24px;
  padding: 0 24px;
  border: 1.5px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
  background-color: #fff;
  color: var(--dh-primary);
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

:where([class*="dh-auth-page"]) .dh-auth__google:hover,
:where([class*="dh-auth-page"]) .dh-auth__google:focus-visible {
  border-color: var(--dh-accent);
  background-color: var(--dh-bg);
  color: var(--dh-primary);
  text-decoration: none;
}

:where([class*="dh-auth-page"]) .dh-auth__google svg {
  flex: 0 0 auto;
}

:where([class*="dh-auth-page"]) .dh-auth__switch {
  margin: 0;
  text-align: center;
  color: #555;
}

/* ==========================================================================
   END: Login, register, forgot password (body.dh-auth-page)
   ========================================================================== */

/* ==========================================================================
   START: Chatbot
   ========================================================================== */

/* back to top: above the chat button */
.go-up {
  bottom: 95px;
  /* bottom: calc(1.5rem + 56px + 14px); */
}

/* launcher */

/* panel */

@keyframes dhChatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* messages */

/* typing dots */

@keyframes dhChatDot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}


/* ==========================================================================
   START: Blog
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:where([class*="dh-page-blog"]).dh-page-blog {
  --dh-blog-primary: var(--dh-primary);   /* buttons, active states */
  --dh-blog-heading: var(--dh-primary);   /* titles, links */
  --dh-blog-text: #555;                   /* paragraphs, meta */
  --dh-blog-line: var(--dh-sand);         /* borders, dividers */
  --dh-blog-surface: var(--dh-bg);        /* quote */
  --dh-blog-card: #fff;                   /* fields, light fills */
  --dh-blog-hover: var(--dh-accent);      /* hover fill in dark mode */
}

/* --------------------------------------------------------------------------
   2. Page header (same as the legal pages)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-blog"]) .cs_page_header.cs_style_1 {
  position: relative;
  width: 100%;
  padding: 170px 0 90px;
  background-position: center;
  background-size: cover;
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

:where([class*="dh-page-blog"]) .cs_page_header.cs_style_1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.5) 100%);
}

:where([class*="dh-page-blog"]) .cs_page_header.cs_style_1 .container {
  position: relative;
  z-index: 1;
}

:where([class*="dh-page-blog"]) .cs_page_header_title {
  margin: 0 0 14px;
  font-family: var(--dh-font-heading);
  font-size: clamp(36px, calc(22px + 3vw), 60px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  text-transform: none;
}

:where([class*="dh-page-blog"]) .dh-breadcrumb {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
}

:where([class*="dh-page-blog"]) .dh-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #fff;
}

:where([class*="dh-page-blog"]) .dh-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

:where([class*="dh-page-blog"]) .breadcrumb li a {
  color: #fff;
  background-repeat: no-repeat;
  background-image: linear-gradient(90deg, currentColor 0, currentColor 100%);
  background-position: 100% calc(100% - 0px);
  background-size: 0 1px;
  transition: background-size 0.4s cubic-bezier(0.49, 0.49, 0.08, 1);
}

:where([class*="dh-page-blog"]) .breadcrumb li a:hover,
:where([class*="dh-page-blog"]) .breadcrumb li a:focus {
  color: #fff;
  text-decoration: none;
  background-size: 100% 1px;
  background-position: 0 calc(100% - 0px);
}

@media (max-width: 991px) {
  :where([class*="dh-page-blog"]) .cs_page_header.cs_style_1 {
    padding: 130px 0 60px;
  }
}

/* --------------------------------------------------------------------------
   3. Post content (blog detail, full width)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-blog"]) .cs_post_details {
  color: var(--dh-blog-text);
}

:where([class*="dh-page-blog"]) .cs_post_details a {
  color: inherit;
  text-decoration: none;
}

:where([class*="dh-page-blog"]) .cs_post_details h2,
:where([class*="dh-page-blog"]) .cs_post_details h3 {
  font-family: var(--dh-font-heading);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dh-blog-heading);
}

/* photos: wide and not too tall at full width */
:where([class*="dh-page-blog"]) .cs_post_details img {
  max-width: 100%;
  height: auto;
  max-height: 520px;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

@media (max-width: 767px) {
  :where([class*="dh-page-blog"]) .cs_post_details img {
    aspect-ratio: 4 / 3;
  }
}

:where([class*="dh-page-blog"]) .cs_reading_time,
:where([class*="dh-page-blog"]) .cs_post_meta {
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: var(--dh-blog-text);
}

:where([class*="dh-page-blog"]) .cs_post_details blockquote {
  position: relative;
  color: var(--dh-blog-heading);
}

:where([class*="dh-page-blog"]) .cs_post_details blockquote svg path {
  fill: var(--dh-accent);
}

/* --------------------------------------------------------------------------
   4. Blog grid, cards, search, category and load more
   -------------------------------------------------------------------------- */
/* same width as the other sections (no narrow container) */
:where([class*="dh-page-blog"]) .dh-blog__container {
  width: 100%;
  max-width: var(--dh-container);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--dh-gutter);
  padding-left: var(--dh-gutter);
}

:where([class*="dh-page-blog"]) .dh-blog__grid {
  row-gap: 48px;
}

@media (max-width:500px) {
  :where([class*="dh-page-blog"]) .dh-blog__grid {
    row-gap: 28px;
  }
  
}

:where([class*="dh-page-blog"]) .dh-blog__item.is-hidden {
  display: none !important;
}

:where([class*="dh-page-blog"]) .dh-blog__item.is-new {
  animation: dh-blog-in 0.5s ease both;
}

@keyframes dh-blog-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

:where([class*="dh-page-blog"]) .dh-blog__more {
  display: flex;
  justify-content: center;
  margin-top: 65px;
}

:where([class*="dh-page-blog"]) .dh-blog__more.is-done {
  display: none;
}

/* same outline button as the properties page */
:where([class*="dh-page-blog"]) .dh-blog-page .h2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border: 1.5px solid;
  border-radius: var(--dh-btn-radius, 6px);
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

:where([class*="dh-page-blog"]) .dh-blog__empty {
  margin: 10px 0 0;
  text-align: center;
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  color: var(--dh-blog-text);
}

/* toolbar: search with the button inside (left), category (right) */
:where([class*="dh-page-blog"]) .dh-blog__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 50px;
}

:where([class*="dh-page-blog"]) .dh-blog__search {
  position: relative;
  flex: 0 1 460px;
  margin: 0;
}

:where([class*="dh-page-blog"]) .dh-blog__search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: var(--dh-accent);
  transform: translateY(-50%);
  pointer-events: none;
}

:where([class*="dh-page-blog"]) .dh-blog__search input {
  width: 100%;
  height: 52px;
  padding: 0 116px 0 46px;
  border: 1px solid var(--dh-blog-line);
  border-radius: var(--dh-btn-radius, 6px);
  background: var(--dh-blog-card);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: var(--dh-blog-heading);
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

:where([class*="dh-page-blog"]) .dh-blog__search input::placeholder {
  color: var(--dh-blog-text);
  opacity: 0.8;
}

:where([class*="dh-page-blog"]) .dh-blog__search input:focus {
  border-color: var(--dh-blog-heading);
}

:where([class*="dh-page-blog"]) .dh-blog__search-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  padding: 0 20px;
  border: 1px solid;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  cursor: pointer;
}

/* category: nice-select (js/searched.js) or the native select */
:where([class*="dh-page-blog"]) .dh-blog__bar select.dh-blog__cat,
:where([class*="dh-page-blog"]) .dh-blog__bar .nice-select {
  float: none;
  min-width: 230px;
  height: 52px;
  margin: 0;
  padding-left: 18px;
  border: 1px solid var(--dh-blog-line);
  border-radius: var(--dh-btn-radius, 6px);
  background-color: var(--dh-blog-card);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 50px;
  color: var(--dh-blog-heading);
}

:where([class*="dh-page-blog"]) .dh-blog__bar .nice-select:hover,
:where([class*="dh-page-blog"]) .dh-blog__bar .nice-select.open,
:where([class*="dh-page-blog"]) .dh-blog__bar .nice-select:focus {
  border-color: var(--dh-blog-heading);
}

:where([class*="dh-page-blog"]) .dh-blog__bar .nice-select:after {
  right: 18px;
  border-color: var(--dh-accent);
}

:where([class*="dh-page-blog"]) .dh-blog__bar .nice-select.open {
  z-index: 20;
}

:where([class*="dh-page-blog"]) .dh-blog__bar .nice-select .list {
  right: 0;
  left: auto;
  width: 100%;
  max-height: 260px;
  margin-top: 6px;
  overflow-y: auto;
  border: 1px solid var(--dh-blog-line);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(var(--dh-primary-rgb), 0.12);
}

:where([class*="dh-page-blog"]) .dh-blog__bar .nice-select .option {
  min-height: 40px;
  line-height: 40px;
}

@media (max-width: 575px) {
  :where([class*="dh-page-blog"]) .dh-blog__search,
  :where([class*="dh-page-blog"]) .dh-blog__bar .nice-select,
  :where([class*="dh-page-blog"]) .dh-blog__bar select.dh-blog__cat {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* card: the homepage card (.h2-pcard / .h2-bcard, see the homepage sections),
   here only the pills: read time + category, white with a soft shadow */
.dh-bcard-tags span {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.dh-bcard-tags .dh-bcard-tags__cat {
  color: var(--dh-accent);
}

@media (prefers-reduced-motion: reduce) {
  :where([class*="dh-page-blog"]) .dh-blog__item.is-new {
    transition: none;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   5. Blog detail: 8 / 4 layout, share bar, sidebar, comments, review form, related posts
   -------------------------------------------------------------------------- */
/* 8 / 4 layout: post with the share bar on the left, sidebar on the right */
:where([class*="dh-page-blog"]) .dh-blog-detail {
  row-gap: 48px;
}

:where([class*="dh-page-blog"]) .dh-blog-detail__main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* share bar (sticky while reading) */
:where([class*="dh-page-blog"]) .dh-share {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

:where([class*="dh-page-blog"]) .dh-share__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  font-size: clamp(17px, calc(15.944px + 0.282vw), 20px);
  color: var(--dh-blog-heading);
}

:where([class*="dh-page-blog"]) .dh-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--dh-blog-line);
  border-radius: 50%;
  background: var(--dh-blog-card);
  font-size: clamp(14.5px, calc(13.972px + 0.141vw), 16px);
  color: var(--dh-blog-heading);
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

:where([class*="dh-page-blog"]) .dh-share__link:hover,
:where([class*="dh-page-blog"]) .dh-share__link:focus-visible {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  :where([class*="dh-page-blog"]) .dh-blog-detail__main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  :where([class*="dh-page-blog"]) .dh-share {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* sidebar */
:where([class*="dh-page-blog"]) .dh-blog-side {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 24px;
}

:where([class*="dh-page-blog"]) .dh-blog-side .dh-pd-box__title {
  margin-bottom: 14px;
}

/* categories and tags: outline chips */
:where([class*="dh-page-blog"]) .dh-blog-side .dh-blog-side__sub {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--dh-blog-line);
}

:where([class*="dh-page-blog"]) .dh-blog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

:where([class*="dh-page-blog"]) .dh-blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border: 1px solid var(--dh-blog-line);
  border-radius: var(--dh-btn-radius, 6px);
  background: transparent;
  font-size: clamp(13.5px, calc(13.148px + 0.094vw), 14.5px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--dh-blog-heading);
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

:where([class*="dh-page-blog"]) .dh-blog-chip--tag {
  font-weight: 400;
  color: var(--dh-blog-text);
}

:where([class*="dh-page-blog"]) .dh-blog-chip:hover,
:where([class*="dh-page-blog"]) .dh-blog-chip:focus-visible {
  border-color: var(--dh-primary);
  background: var(--dh-primary);
  color: #fff;
  text-decoration: none;
}

/* call to action: green card */
:where([class*="dh-page-blog"]) .dh-blog-side__cta {
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 18px;
  background: var(--dh-primary);
  color: rgba(255, 255, 255, 0.82);
}

:where([class*="dh-page-blog"]) .dh-blog-side__cta-title {
  margin: 0 0 12px;
  font-family: var(--dh-font-heading);
  font-size: clamp(24px, calc(16px + 0.9vw), 30px);
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  color: #fff;
}

:where([class*="dh-page-blog"]) .dh-blog-side__cta p {
  margin: 0 0 22px;
  font-size: clamp(14.5px, calc(14.148px + 0.094vw), 15.5px);
  line-height: 1.7;
}

:where([class*="dh-page-blog"]) .dh-blog-side__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1.5px solid #fff;
  background: #fff;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-page-blog"]) .dh-blog-side__btn:hover,
:where([class*="dh-page-blog"]) .dh-blog-side__btn:focus-visible {
  border-color: var(--dh-accent);
  color: #fff;
}

@media (max-width: 991px) {
  :where([class*="dh-page-blog"]) .dh-blog-side {
    position: static;
  }
}

/* comments above the review form (same box style) */
:where([class*="dh-page-blog"]) .dh-blog-page--detail .dh-comments {
  margin-top: clamp(48px, 5vw, 72px);
}

:where([class*="dh-page-blog"]) .dh-comments__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-blog"]) .dh-comment {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

:where([class*="dh-page-blog"]) .dh-comment + .dh-comment {
  margin-top: 24px;
}

/* divider only under the text column, not under the photo */
:where([class*="dh-page-blog"]) .dh-comment:not(:last-child) .dh-comment__body {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dh-blog-line);
}

:where([class*="dh-page-blog"]) .dh-comment__avatar {
  flex: none;
  width: 60px;
  height: 60px;
  border: 2px solid var(--dh-blog-line);
  border-radius: 50%;
  object-fit: cover;
}

:where([class*="dh-page-blog"]) .dh-comment__body {
  flex: 1;
  min-width: 0;
}

:where([class*="dh-page-blog"]) .dh-comment__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

:where([class*="dh-page-blog"]) .dh-comment__name {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(17px, calc(15.944px + 0.282vw), 20px);
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
  color: var(--dh-blog-heading);
}

:where([class*="dh-page-blog"]) .dh-comment__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
  color: #D9D4C9;
}

:where([class*="dh-page-blog"]) .dh-comment__stars .is-on {
  color: #F5B301;
}

:where([class*="dh-page-blog"]) .dh-comment__stars svg {
  display: block;
}

:where([class*="dh-page-blog"]) .dh-comment__date {
  font-size: clamp(12.5px, calc(12.148px + 0.094vw), 13.5px);
  color: var(--dh-blog-text);
}

:where([class*="dh-page-blog"]) .dh-pd-box .dh-comment__text {
  margin: 0;
}

:where([class*="dh-page-blog"]) .dh-blog-page--detail .dh-comments + .dh-pd-review {
  margin-top: 24px;
}

@media (max-width: 575px) {
  :where([class*="dh-page-blog"]) .dh-comment {
    gap: 14px;
  }

  :where([class*="dh-page-blog"]) .dh-comment__avatar {
    width: 48px;
    height: 48px;
  }
}

/* review form: same box as the property detail page */
:where([class*="dh-page-blog"]) .dh-blog-page--detail .dh-pd-review {
  margin-top: clamp(48px, 5vw, 72px);
}

:where([class*="dh-page-blog"]) .dh-pd-box {
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--dh-sand);
  border-radius: 18px;
  background: #fff;
}

:where([class*="dh-page-blog"]) .dh-pd-box__title {
  margin: 0 0 18px;
  font-family: var(--dh-font-heading);
  font-size: clamp(22px, calc(16px + 0.8vw), 28px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dh-primary);
  text-transform: none;
}

:where([class*="dh-page-blog"]) .dh-pd-box p {
  margin: 0 0 14px;
  font-size: clamp(14.5px, calc(14.148px + 0.094vw), 15.5px);
  line-height: 1.75;
  color: #666;
}

:where([class*="dh-page-blog"]) .dh-pd-box p:last-child {
  margin-bottom: 0;
}

:where([class*="dh-page-blog"]) .dh-pd-box .dh-pd-box__text {
  margin-bottom: 18px;
}

:where([class*="dh-page-blog"]) .dh-pd-stars {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

:where([class*="dh-page-blog"]) .dh-pd-stars legend {
  margin-bottom: 8px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-page-blog"]) .dh-pd-stars__row {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

:where([class*="dh-page-blog"]) .dh-pd-stars__row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

:where([class*="dh-page-blog"]) .dh-pd-stars__row label {
  margin: 0;
  color: #D9D4C9;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

:where([class*="dh-page-blog"]) .dh-pd-stars__row label:hover,
:where([class*="dh-page-blog"]) .dh-pd-stars__row label:hover ~ label,
:where([class*="dh-page-blog"]) .dh-pd-stars__row input:checked ~ label {
  color: #F5B301;
}

:where([class*="dh-page-blog"]) .dh-pd-stars__row label:hover {
  transform: scale(1.12);
}

:where([class*="dh-page-blog"]) .dh-pd-stars__row input:focus-visible + label {
  outline: 2px solid rgba(var(--dh-accent-rgb), 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

:where([class*="dh-page-blog"]) .dh-pd-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 576px) {
  :where([class*="dh-page-blog"]) .dh-pd-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 576px) {
  :where([class*="dh-page-blog"]) .dh-pd-form__full {
    grid-column: 1 / -1;
  }
}

:where([class*="dh-page-blog"]) .dh-pd-form label {
  display: block;
  margin: 0;
}

:where([class*="dh-page-blog"]) .dh-pd-form label > span {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  font-weight: 600;
  color: var(--dh-primary);
}

:where([class*="dh-page-blog"]) .dh-pd-form input,
:where([class*="dh-page-blog"]) .dh-pd-form textarea {
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
  background: #fff;
  font-family: var(--dh-font-body);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: #333;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

:where([class*="dh-page-blog"]) .dh-pd-form textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
}

:where([class*="dh-page-blog"]) .dh-pd-form input:focus,
:where([class*="dh-page-blog"]) .dh-pd-form textarea:focus {
  border-color: var(--dh-primary);
  box-shadow: 0 0 0 3px rgba(var(--dh-primary-rgb), 0.1);
}

:where([class*="dh-page-blog"]) .dh-pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  margin-top: 22px;
  padding: 0 26px;
  border: 1.5px solid var(--dh-primary);
  border-radius: var(--dh-btn-radius, 6px);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

:where([class*="dh-page-blog"]) .dh-pd-review__note:empty {
  display: none;
}

:where([class*="dh-page-blog"]) .dh-pd-review .dh-pd-review__note {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--dh-primary);
}

/* related posts: own cream section with the site slider arrows
   (top / bottom space: .rec-pro, same as every other section) */
:where([class*="dh-page-blog"]) .dh-blog-related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

:where([class*="dh-page-blog"]) .dh-blog-related__title {
  margin: 0;
  font-family: var(--dh-font-heading);
  font-size: clamp(32px, calc(18px + 2vw), 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dh-blog-heading);
}

:where([class*="dh-page-blog"]) .dh-blog-related__arrows {
  display: flex;
  flex: none;
  gap: 12px;
}

/* equal card heights in the slider */
:where([class*="dh-page-blog"]) .dh-blog-related__slider {
  margin: 0 -12px;
}

:where([class*="dh-page-blog"]) .dh-blog-related__slide {
  height: auto;
  padding: 0 12px;
}

:where([class*="dh-page-blog"]) .cs_mb_3 {
  margin-bottom: 3px;
}

:where([class*="dh-page-blog"]) .cs_post_details .cs_post_meta_wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

:where([class*="dh-page-blog"]) .cs_post_details .cs_post_meta:last-child {
  padding-left: 24px;
  position: relative;
}

:where([class*="dh-page-blog"]) .cs_post_details .cs_post_meta:last-child::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: currentColor;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

:where([class*="dh-page-blog"]) .cs_post_details h2 {
  font-size: clamp(29px, calc(25.479px + 0.939vw), 39px);
  font-weight: 600;
  line-height: 1.282em;
  margin-bottom: 34px;
}

:where([class*="dh-page-blog"]) .cs_post_details h3 {
  font-size: clamp(26.5px, calc(24.915px + 0.423vw), 31px);
  font-weight: 600;
  line-height: 1.29em;
  margin-bottom: 14px;
}

:where([class*="dh-page-blog"]) .cs_post_details p {
  margin-bottom: 30px;
}

:where([class*="dh-page-blog"]) .cs_post_details p:last-child {
  margin-bottom: 0;
}

:where([class*="dh-page-blog"]) .cs_post_details img {
  display: block;
  width: 100%;
  border-radius: 20px;
  margin-bottom: 45px;
}

:where([class*="dh-page-blog"]) .cs_post_details blockquote {
  padding: 19px 32px;
  background-color: var(--dh-blog-surface);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  font-size: clamp(21px, calc(19.592px + 0.376vw), 25px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4em;
  color: var(--dh-blog-heading);
  margin-bottom: 40px;
  position: relative;
}

:where([class*="dh-page-blog"]) .cs_post_details blockquote::before {
  content: "";
  width: 5px;
  height: 100%;
  background-color: var(--dh-blog-primary);
  border-radius: 10px;
  position: absolute;
  left: 0;
  top: 0;
}

:where([class*="dh-page-blog"]) .cs_post_details blockquote svg {
  width: 49px;
  height: 49px;
  margin-bottom: 22px;
}

:where([class*="dh-page-blog"]) .cs_post_details blockquote small {
  margin-top: 13px;
}

@media (max-width: 1199px) {
  :where([class*="dh-page-blog"]) .cs_post_details br {
    display: none;
  }
}

@media (max-width: 767px) {
  :where([class*="dh-page-blog"]) .cs_post_details blockquote {
    padding: 19px 15px 19px 20px;
  }
}

/* intro paragraph and "Our tip" box of the articles (blog-detail.php) */
:where([class*="dh-page-blog"]) .dh-blog-detail__intro {
  font-size: clamp(16px, calc(15.648px + 0.094vw), 17px);
  line-height: 1.75;
  color: var(--dh-blog-heading);
}

:where([class*="dh-page-blog"]) .cs_post_details blockquote.dh-blog-tip {
  gap: 8px;
  margin-top: 10px;
  padding: 22px 28px;
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 0 !important;
}

:where([class*="dh-page-blog"]) .cs_post_details blockquote.dh-blog-tip .dh-blog-tip__label {
  margin: 0;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dh-accent);
}

/* --------------------------------------------------------------------------
   7. Dark mode
   -------------------------------------------------------------------------- */
html[data-theme="dark"] :where([class*="dh-page-blog"]).dh-page-blog {
  --dh-blog-primary: var(--dh-d-brand);
  --dh-blog-heading: var(--dh-d-heading);
  --dh-blog-text: var(--dh-d-text);
  --dh-blog-line: rgba(255, 255, 255, 0.14);
  --dh-blog-surface: var(--dh-d-surface);
  --dh-blog-card: var(--dh-d-surface-2);
}

/* quote and "Our tip" boxes: the side bar is gold (secondary) on the dark page */
html[data-theme="dark"] :where([class*="dh-page-blog"]) .cs_post_details blockquote::before {
  background-color: var(--dh-accent);
}

html[data-theme="dark"] :where([class*="dh-page-blog"]) .dh-blog__bar .nice-select .list {
  border-color: var(--dh-blog-line);
  background-color: var(--dh-d-popover);
}

html[data-theme="dark"] :where([class*="dh-page-blog"]) .dh-blog__bar .nice-select .option {
  color: var(--dh-d-heading);
}

/* hover / selected get the gold fill of the site dropdowns: keep the text white */
html[data-theme="dark"] :where([class*="dh-page-blog"]) .dh-blog__bar .nice-select .option:hover,
html[data-theme="dark"] :where([class*="dh-page-blog"]) .dh-blog__bar .nice-select .option.focus,
html[data-theme="dark"] :where([class*="dh-page-blog"]) .dh-blog__bar .nice-select .option.selected {
  color: #fff;
}

html[data-theme="dark"] :where([class*="dh-page-blog"]) .dh-blog-chip:hover,
html[data-theme="dark"] :where([class*="dh-page-blog"]) .dh-blog-chip:focus-visible {
  border-color: var(--dh-blog-hover);
  background: var(--dh-blog-hover);
  color: #fff;
}

html[data-theme="dark"] :where([class*="dh-page-blog"]) .dh-share__link:hover,
html[data-theme="dark"] :where([class*="dh-page-blog"]) .dh-share__link:focus-visible {
  border-color: var(--dh-blog-hover);
  background: var(--dh-blog-hover);
}

html[data-theme="dark"] :where([class*="dh-page-blog"]) .dh-blog-side__cta {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dh-d-brand);
}

html[data-theme="dark"] .dh-bcard-tags span {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .dh-bcard-tags .dh-bcard-tags__cat {
  color: var(--dh-accent);
}

/* ==========================================================================
   END: Blog and blog detail pages (body.dh-page-blog)
   ========================================================================== */

/* ==========================================================================
   START: Sitemap page (body.dh-page-sitemap)
   ========================================================================== */

:where([class*="dh-page-sitemap"]).dh-page-sitemap {
  --dh-sm-card: #fff;
  --dh-sm-line: var(--dh-sand);
  --dh-sm-heading: var(--dh-primary);
  --dh-sm-text: #5f6b66;
  --dh-sm-icon-bg: rgba(var(--dh-primary-rgb), 0.07);
  --dh-sm-hover: var(--dh-bg);
}

/* --------------------------------------------------------------------------
   1. Page header (same as the legal pages)
   -------------------------------------------------------------------------- */
:where([class*="dh-page-sitemap"]) .cs_page_header.cs_style_1 {
  position: relative;
  width: 100%;
  padding: 170px 0 90px;
  background-position: center;
  background-size: cover;
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

:where([class*="dh-page-sitemap"]) .cs_page_header.cs_style_1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.5) 100%);
}

:where([class*="dh-page-sitemap"]) .cs_page_header.cs_style_1 .container {
  position: relative;
  z-index: 1;
}

:where([class*="dh-page-sitemap"]) .cs_page_header_title {
  margin: 0 0 14px;
  font-family: var(--dh-font-heading);
  font-size: clamp(36px, calc(22px + 3vw), 60px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  text-transform: none;
}

:where([class*="dh-page-sitemap"]) .dh-breadcrumb {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: clamp(15.5px, calc(14.972px + 0.141vw), 17px);
}

:where([class*="dh-page-sitemap"]) .dh-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #fff;
}

:where([class*="dh-page-sitemap"]) .dh-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

:where([class*="dh-page-sitemap"]) .breadcrumb li a {
  color: #fff;
  background-repeat: no-repeat;
  background-image: linear-gradient(90deg, currentColor 0, currentColor 100%);
  background-position: 100% calc(100% - 0px);
  background-size: 0 1px;
  transition: background-size 0.4s cubic-bezier(0.49, 0.49, 0.08, 1);
}

:where([class*="dh-page-sitemap"]) .breadcrumb li a:hover,
:where([class*="dh-page-sitemap"]) .breadcrumb li a:focus {
  color: #fff;
  text-decoration: none;
  background-size: 100% 1px;
  background-position: 0 calc(100% - 0px);
}

@media (max-width: 991px) {
  :where([class*="dh-page-sitemap"]) .cs_page_header.cs_style_1 {
    padding: 130px 0 60px;
  }
}

/* --------------------------------------------------------------------------
   2. Groups: name and purpose on the left, numbered page list on the right
   -------------------------------------------------------------------------- */
:where([class*="dh-page-sitemap"]) .dh-sitemap__container {
  width: 100%;
  max-width: var(--dh-container);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--dh-gutter);
  padding-left: var(--dh-gutter);
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__intro {
  max-width: 720px;
  margin: 0 auto clamp(36px, calc(28.958px + 1.878vw), 56px);
  font-family: var(--dh-font-heading);
  font-size: clamp(22px, calc(17.775px + 1.127vw), 34px);
  line-height: 1.3;
  text-align: center;
  color: var(--dh-sm-heading);
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: clamp(28px, calc(22.366px + 1.502vw), 44px) 0;
  border-top: 1px solid var(--dh-sm-line);
}

@media (min-width: 992px) {
  :where([class*="dh-page-sitemap"]) .dh-sitemap__group {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 60px;
  }

  :where([class*="dh-page-sitemap"]) .dh-sitemap__aside {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__count {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--dh-accent-rgb), 0.14);
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dh-accent);
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__title {
  margin: 0 0 10px;
  font-family: var(--dh-font-heading);
  font-size: clamp(26px, calc(21.07px + 1.315vw), 40px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
  color: var(--dh-sm-heading);
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__lead {
  max-width: 380px;
  margin: 0;
  font-size: clamp(15px, calc(14.648px + 0.094vw), 16px);
  line-height: 1.7;
  color: var(--dh-sm-text);
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__list li + li {
  border-top: 1px solid var(--dh-sm-line);
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, calc(11.887px + 0.563vw), 20px);
  padding: 12px 16px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.35s ease;
  margin: 10px 0;
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__num {
  min-width: 34px;
  font-family: var(--dh-font-heading);
  font-size: clamp(20px, calc(18.592px + 0.376vw), 24px);
  line-height: 1;
  color: var(--dh-accent);
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dh-sm-icon-bg);
  color: var(--dh-primary);
  transition: background-color 0.35s ease, color 0.35s ease;
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__name {
  font-family: var(--dh-font-heading);
  font-size: clamp(19px, calc(17.592px + 0.376vw), 23px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--dh-sm-heading);
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__text {
  font-size: clamp(14.5px, calc(14.148px + 0.094vw), 15.5px);
  line-height: 1.65;
  color: var(--dh-sm-text);
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--dh-sm-line);
  border-radius: 50%;
  color: var(--dh-sm-heading);
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__row:hover,
:where([class*="dh-page-sitemap"]) .dh-sitemap__row:focus-visible {
  background: var(--dh-sm-hover);
  color: inherit;
  text-decoration: none;
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__row:hover .dh-sitemap__icon,
:where([class*="dh-page-sitemap"]) .dh-sitemap__row:focus-visible .dh-sitemap__icon {
  background: var(--dh-primary);
  color: #fff;
}

:where([class*="dh-page-sitemap"]) .dh-sitemap__row:hover .dh-sitemap__go,
:where([class*="dh-page-sitemap"]) .dh-sitemap__row:focus-visible .dh-sitemap__go {
  border-color: var(--dh-accent);
  background: var(--dh-accent);
  color: #fff;
  transform: rotate(45deg);
}

@media (max-width: 575px) {
  :where([class*="dh-page-sitemap"]) .dh-sitemap__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 18px 8px;
  }

  :where([class*="dh-page-sitemap"]) .dh-sitemap__icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where([class*="dh-page-sitemap"]) .dh-sitemap__row,
  :where([class*="dh-page-sitemap"]) .dh-sitemap__go {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   3. Dark mode
   -------------------------------------------------------------------------- */
html[data-theme="dark"] :where([class*="dh-page-sitemap"]).dh-page-sitemap {
  --dh-sm-card: var(--dh-d-surface);
  --dh-sm-line: rgba(255, 255, 255, 0.14);
  --dh-sm-heading: var(--dh-d-heading);
  --dh-sm-text: var(--dh-d-text);
  --dh-sm-icon-bg: rgba(255, 255, 255, 0.08);
  --dh-sm-hover: var(--dh-d-surface);
}

html[data-theme="dark"] :where([class*="dh-page-sitemap"]) .dh-sitemap__icon {
  color: var(--dh-accent);
}

html[data-theme="dark"] :where([class*="dh-page-sitemap"]) .dh-sitemap__row:hover .dh-sitemap__icon,
html[data-theme="dark"] :where([class*="dh-page-sitemap"]) .dh-sitemap__row:focus-visible .dh-sitemap__icon {
  background: var(--dh-accent);
  color: #fff;
}

/* ==========================================================================
   END: Sitemap page (body.dh-page-sitemap)
   ========================================================================== */

/* ==========================================================================
   START: Page header parallax 
   ========================================================================== */
@media (min-width: 992px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  body .cs_page_header.dh-page-header {
    background-position: center calc(50% + var(--dh-hero-shift, 0px));
    will-change: background-position;
  }
}
/* ==========================================================================
   END: Page header parallax 
   ========================================================================== */

.dh-legal__text a,
.dh-legal__lead a,
.dh-chat__msg a:not(.dh-chat__link),
.dh-pf__clear {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: color 0.3s ease, background-size 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.dh-legal__text a:hover,
.dh-legal__lead a:hover,
.dh-chat__msg a:not(.dh-chat__link):hover,
.dh-pf__clear:hover {
  color: var(--dh-accent);
  text-decoration: none;
  background-size: 50% 1px;
}
/* ==========================================================================
   END: Underlined text links 
   ========================================================================== */

/* ==========================================================================
   START: Savings calculator
   ========================================================================== */
.h3-calc {
  --calc-line: var(--dh-sand);
  --calc-box: #fff;
  --calc-ink: var(--dh-primary);
  --calc-muted: rgba(var(--dh-primary-rgb), 0.65);
  --calc-result: var(--dh-primary);
  --calc-track: rgba(255, 255, 255, 0.16);
}

.h3-calc__row {
  row-gap: 24px;
}

.h3-calc__box,
.h3-calc__result {
  height: 100%;
  padding: clamp(22px, calc(16.718px + 1.408vw), 37px);
  border-radius: 24px;
}

.h3-calc__box {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border: 1px solid var(--calc-line);
  background: var(--calc-box);
  box-shadow: 0 30px 70px rgba(var(--dh-primary-rgb), 0.08);
}

.h3-calc__field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.h3-calc__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.h3-calc__label {
  display: block;
  margin: 0 0 10px;
  font-family: var(--dh-font-body);
  font-size: clamp(15px, calc(14.648px + 0.094vw), 16px);
  font-weight: 600;
  color: var(--calc-ink);
}

.h3-calc__value {
  font-size: clamp(18px, calc(16.592px + 0.376vw), 22px);
  font-weight: 600;
  color: var(--calc-ink);
  white-space: nowrap;
}

/* CHF field */
.h3-calc__money {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 1px solid var(--calc-line);
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.h3-calc__money:focus-within {
  border-color: var(--calc-ink);
}

.h3-calc__money span {
  font-size: clamp(15px, calc(14.648px + 0.094vw), 16px);
  font-weight: 600;
  color: var(--calc-muted);
}

.h3-calc__money input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: clamp(18px, calc(16.592px + 0.376vw), 22px);
  font-weight: 600;
  color: var(--calc-ink);
}

/* Sliders: --p = filled part (js/main.js) */
.h3-calc__range {
  --p: 50%;
  width: 100%;
  height: 6px;
  margin: 8px 0 0;
  border-radius: 6px;
  /* background: linear-gradient(90deg, var(--calc-ink) var(--p), #f7f4ed var(--p)); */
  background: linear-gradient(90deg, var(--calc-ink) var(--p), var(--calc-line) var(--p));
  outline: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.h3-calc__range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--calc-ink);
  border-radius: 50%;
  background: var(--calc-box);
  box-shadow: 0 2px 6px rgba(var(--dh-primary-rgb), 0.25);
  -webkit-appearance: none;
  appearance: none;
}

.h3-calc__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--calc-ink);
  border-radius: 50%;
  background: var(--calc-box);
}

.h3-calc__range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(var(--dh-accent-rgb), 0.35);
}

.h3-calc__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: var(--calc-muted);
}

/* Package choice */
.h3-calc__pkgs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.h3-calc__pkg {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.h3-calc__pkg input {
  position: absolute;
  opacity: 0;
}

.h3-calc__pkg > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--calc-line);
  border-radius: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.h3-calc__pkg strong {
  font-size: clamp(15px, calc(14.648px + 0.094vw), 16px);
  color: var(--calc-ink);
}

.h3-calc__pkg small {
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: var(--calc-muted);
}

.h3-calc__pkg:hover > span {
  border-color: var(--calc-ink);
}

.h3-calc__pkg input:checked + span {
  border-color: var(--calc-ink);
  background: rgba(var(--dh-primary-rgb), 0.06);
  box-shadow: inset 0 0 0 1px var(--calc-ink);
}

.h3-calc__pkg input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(var(--dh-accent-rgb), 0.35);
}

/* Result card */
.h3-calc__result {
  display: flex;
  flex-direction: column;
  background: var(--calc-result);
  color: #fff;
}

.h3-calc__result-label {
  margin: 0;
  font-size: clamp(15px, calc(14.648px + 0.094vw), 16px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.h3-calc__saving {
  margin: 6px 0 4px;
  font-family: var(--dh-font-heading);
  font-size: clamp(36px, calc(28.958px + 1.878vw), 56px);
  line-height: 1.1;
  color: var(--dh-sand);
  overflow-wrap: anywhere;
}

.h3-calc__result-sub {
  margin: 0;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: rgba(255, 255, 255, 0.7);
}

.h3-calc__bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0;
}

.h3-calc__bar-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  color: rgba(255, 255, 255, 0.85);
}

.h3-calc__bar-top strong {
  color: #fff;
  white-space: nowrap;
}

.h3-calc__track {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--calc-track);
}

.h3-calc__fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  transition: width 0.35s ease;
}

.h3-calc__fill--agent {
  background: rgba(255, 255, 255, 0.45);
}

.h3-calc__fill--us {
  background: var(--dh-accent);
}

/* Share of the agent cost */
.h3-calc__share {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: clamp(14px, calc(13.648px + 0.094vw), 15px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.h3-calc__share strong {
  color: #fff;
  font-weight: 700;
}

.h3-calc__actions {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 12px;
  margin-top: auto;
}

.h3-calc__actions .h2-btn {
  flex: 1 1 auto;
  justify-content: center;
}

/* Swiss minimum commission: info under the slider, note under the agent bar */
.h3-calc__hint {
  margin: 15px 0 0;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  line-height: 1.5;
  color: var(--calc-muted);
}

.h3-calc__min {
  display: block;
  margin-top: 6px;
  font-size: clamp(12px, calc(11.648px + 0.094vw), 13px);
  font-weight: 600;
  color: var(--dh-accent);
}

.h3-calc__min[hidden] {
  display: none;
}

.h3-calc__note {
  margin: 16px 0 0;
  font-size: clamp(13px, calc(12.648px + 0.094vw), 14px);
  color: rgba(255, 255, 255, 0.6);
}

/* Buttons on the green card: gold (main) and ghost (second) */
.h3-calc .dh-btn.dh-btn--gold {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
  color: #fff;
  --dh-btn-fill: #fff;
}

.h3-calc .dh-btn.dh-btn--gold:hover,
.h3-calc .dh-btn.dh-btn--gold:focus-visible {
  border-color: #fff;
  color: var(--dh-primary);
}

.h3-calc .dh-btn.dh-btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: transparent;
  color: #fff;
  --dh-btn-fill: #fff;
}

.h3-calc .dh-btn.dh-btn--ghost:hover,
.h3-calc .dh-btn.dh-btn--ghost:focus-visible {
  border-color: #fff;
  color: var(--dh-primary);
}

/* Packages page: same content width as "Services at a glance" above (1280px) */
.dh-pk-calc .h2-container {
  max-width: calc(1280px + 8vw);
}


#wrapper {
  overflow-x: clip;
}

.dh-nowrap {
  white-space: nowrap;
  color: inherit; 
}

/* Homepage "Your property. Your sale. Your choice": no forced break on phones */
@media (max-width: 575px) {
  .dh-home2 .h3-vs__br {
    display: none;
  }
}


@media (max-width: 575px) {
  .dh-home2 .h2-benefits__item:nth-child(3)::before {
    display: block;
  }
}


@media (max-width: 669px) {
  .dh-home3 .h2-banner--profi .h2-btn {
    align-self: stretch;
    justify-content: center;
    width: 100%;
  }
}

/* Mobile menu: current page gets a light background (bar on the left stays) */
.dh-offcanvas__nav li.is-active a {
  padding-right: 12px;
  border-radius: 10px;
  background: rgba(var(--dh-accent-rgb), 0.12);
  color: #8A6A35;
}

.dh-offcanvas__nav li.is-active a:hover,
.dh-offcanvas__nav li.is-active a:focus-visible {
  padding-left: 16px;
  color: #8A6A35;
}

/* Property detail: key facts in 2 x 2 on phones, with a line between the rows */
@media (max-width: 767px) {
  .dh-page-property .dh-pd__facts li:nth-child(2n) {
    border-right: 0;
  }

  .dh-page-property .dh-pd__facts li:nth-child(-n+2) {
    border-bottom: 1px solid var(--dh-sand);
  }
}

/* Property detail: last detail row has no line on phones (the next part has one) */
@media (max-width: 575px) {
  .dh-page-property .dh-pd-details div:last-child {
    border-bottom: 0;
  }
}

/* Blog detail: related posts head (title, text, arrows below on phones) */
.dh-page-blog .dh-blog-related__main {
  max-width: 680px;
}

.dh-page-blog .dh-blog-related__title {
  margin-bottom: 14px;
}

.dh-page-blog .dh-blog-related__text {
  margin: 0;
  font-size: clamp(15px, calc(14.648px + 0.094vw), 16px);
  line-height: 1.65;
  color: #666;
}

@media (max-width: 767px) {
  .dh-page-blog .dh-blog-related__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* room above and below the cards, so their hover lift and shadow are not cut */
.dh-page-blog .dh-blog-related__slider {
  margin-top: -14px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Slider dots (every .dh-dots and the property gallery): at most 7 dots are
   shown, the window moves with the active slide (js/main.js dhDotsWindow),
   the active dot is a wider pill
   -------------------------------------------------------------------------- */
html body .dh-dots.dh-dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

html body .dh-dots.dh-dots li {
  width: auto;
  height: auto;
  margin: 0 4px;
  padding: 0;
  box-shadow: none;
  line-height: 1;
  transition: margin 0.35s ease;
}

html body .dh-dots.dh-dots li::after {
  display: none;
}

html body .dh-dots.dh-dots li button {
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1.5px solid var(--dh-primary);
  border-radius: 999px;
  background: transparent;
  font-size: 0;
  cursor: pointer;
  transform: none;
  transition: width 0.35s ease, background-color 0.3s ease, border-width 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

html body .dh-dots.dh-dots li.is-active button {
  width: 28px;
  background: var(--dh-primary);
  transform: none;
}

html body .dh-dots.dh-dots li.is-small button {
  transform: scale(0.65);
}

html body .dh-dots.dh-dots li.is-off {
  margin: 0;
  pointer-events: none;
}

html body .dh-dots.dh-dots li.is-off button {
  width: 0;
  border-width: 0;
  opacity: 0;
}

/* property gallery (Swiper bullets on the photo) */
.dh-page-property .dh-pd-gallery .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 4px;
  border-radius: 999px;
  transition: width 0.35s ease, opacity 0.35s ease, margin 0.35s ease, transform 0.35s ease, background-color 0.3s ease;
}

.dh-page-property .dh-pd-gallery .swiper-pagination-bullet-active {
  width: 26px;
}

.dh-page-property .dh-pd-gallery .swiper-pagination-bullet.is-small {
  transform: scale(0.65);
}

.dh-page-property .dh-pd-gallery .swiper-pagination-bullet.is-off {
  width: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html body .dh-dots.dh-dots li,
  html body .dh-dots.dh-dots li button,
  .dh-page-property .dh-pd-gallery .swiper-pagination-bullet {
    transition: none;
  }
}
/* Call to action photos (How it works, Mission, Packages): parallax with a
   fixed layer that the section clips. Same look as background-attachment:
   fixed, but the browser only moves the layer while scrolling (no repaint),
   so it stays smooth on phones and also works on iPhone */
.ab-cta,
.dh-pk-cta.cs_cta {
  isolation: isolate;
  background-attachment: scroll;
  clip-path: inset(0);
}

.ab-cta::after,
.dh-pk-cta.cs_cta::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: inherit;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

/* Popups always on top: modals (advanced search …), the mobile menu, the
   filter drawer and the photo / video lightbox open above the light / dark
   toggle and the chat button (the chat widget uses z-index 2147483639) */
.modal {
  z-index: 2147483646 !important;
}

.modal-backdrop {
  z-index: 2147483645 !important;
}

.offcanvas {
  z-index: 2147483644;
}

.offcanvas-backdrop {
  z-index: 2147483643;
}

.fancybox__container {
  z-index: 2147483646 !important;
}

@media (max-width: 991px) {
  .dh-page-properties .dh-pf {
    z-index: 2147483644;
  }

  .dh-page-properties .dh-pf-backdrop {
    z-index: 2147483643;
  }
}

/* Property detail: video play button with a ripple (two rings that grow
   and fade), smaller on phones */
.dh-page-property .dh-pd-video__play,
html[data-theme="dark"] .dh-page-property .dh-pd-video__play {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.dh-page-property .dh-pd-video__play::before,
.dh-page-property .dh-pd-video__play::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: dh-play-ripple 2.4s ease-out infinite;
}

.dh-page-property .dh-pd-video__play::after {
  animation-delay: 1.2s;
}

.dh-page-property .dh-pd-video__play:hover::before,
.dh-page-property .dh-pd-video__play:hover::after,
.dh-page-property .dh-pd-video__play:focus-visible::before,
.dh-page-property .dh-pd-video__play:focus-visible::after {
  border-color: var(--dh-accent);
}

@keyframes dh-play-ripple {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@media (max-width: 575px) {
  .dh-page-property .dh-pd-video__play {
    width: 54px;
    height: 54px;
  }

  .dh-page-property .dh-pd-video__play svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dh-page-property .dh-pd-video__play::before,
  .dh-page-property .dh-pd-video__play::after {
    animation: none;
  }
}

/* Property detail: message under "Book a viewing" (thanks / missing date) */
.dh-page-property .dh-pd-tour .dh-pd-review__note {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--dh-primary);
}

.dh-page-property .dh-pd-tour .dh-pd-review__note.is-error {
  color: #B4442C;
}

html[data-theme="dark"] .dh-page-property .dh-pd-tour .dh-pd-review__note {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-property .dh-pd-tour .dh-pd-review__note.is-error {
  color: #F0A08C;
}

/* ==========================================================================
   END: Responsive and slider fixes (homepage, menu, property, blog)
   ========================================================================== */

/* ==========================================================================
   START: Dark mode (html[data-theme="dark"]), loads last
   ========================================================================== */

:root {
  --dh-theme-fade: 300ms;          /* page colours fade             */
  --dh-toggle-move: 400ms;         /* the sun / moon movement       */
}

.dh-theme-toggle {
  --dh-toggle-h: 16em;
  --dh-toggle-w: 30em;
  --dh-toggle-knob: 10em;
  --dh-toggle-gap: 14px;           /* distance from the screen edge */

  position: fixed;
  top: 50%;
  /* turned 90deg: move right by half the width / height difference */
  right: 50px;
  /* right: calc(var(--dh-toggle-gap) - (var(--dh-toggle-w) - var(--dh-toggle-h)) / 2); */
  z-index: 100050;
  display: block;
  width: var(--dh-toggle-w);
  height: var(--dh-toggle-h);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--dh-toggle-h);
  background: var(--dh-primary);
  font-size: 2.2px;               /* the toggle size: 35 x 66 px (upright) */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%) rotate(270deg);
  cursor: pointer;
  transition: background-color var(--dh-toggle-move) ease-in-out var(--dh-theme-fade),
              box-shadow var(--dh-toggle-move) ease-in-out var(--dh-theme-fade);
}

/* no focus ring or tap highlight when the toggle is clicked */
.dh-theme-toggle,
.dh-theme-toggle:focus, button:focus,
.dh-theme-toggle:focus-visible, button:focus-visible,
.dh-theme-toggle:active, button:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.dh-theme-toggle::-moz-focus-inner {
  border: 0;
}

.dh-theme-toggle__knob {
  position: absolute;
  display: block;
  border-radius: 50%;
  transition: all var(--dh-toggle-move) ease-in-out var(--dh-theme-fade);
}

/* light: sun (right side = bottom when upright) */
.dh-theme-toggle__knob {
  top: 4.5em;
  left: 18em;
  width: 7em;
  height: 7em;
  background: var(--dh-toggle-day-sun);
  transform: rotate(0deg);
  box-shadow:
    3em 3em 0 5em var(--dh-toggle-day-sun) inset,
    0 -5em 0 -2.7em var(--dh-toggle-day-sun),
    3.5em -3.5em 0 -3em var(--dh-toggle-day-sun),
    5em 0 0 -2.7em var(--dh-toggle-day-sun),
    3.5em 3.5em 0 -3em var(--dh-toggle-day-sun),
    0 5em 0 -2.7em var(--dh-toggle-day-sun),
    -3.5em 3.5em 0 -3em var(--dh-toggle-day-sun),
    -5em 0 0 -2.7em var(--dh-toggle-day-sun),
    -3.5em -3.5em 0 -3em var(--dh-toggle-day-sun);
}

/* dark: moon with craters (left side = top when upright) */
html[data-theme="dark"] .dh-theme-toggle {
  background: var(--dh-accent);
  /* background: var(--dh-toggle-night-bg); */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--dh-d-border);
}

html[data-theme="dark"] .dh-theme-toggle__knob {
  top: 3em;
  left: 3em;
  width: var(--dh-toggle-knob);
  height: var(--dh-toggle-knob);
  background: var(--dh-accent);
  /* background: var(--dh-toggle-night-bg); */
  transform: rotate(-75deg);
  box-shadow:
    3em 2.5em 0 0 var(--dh-toggle-moon) inset,
    var(--dh-primary) 0 -7em 0 -4.5em,
    var(--dh-primary) 3em 7em 0 -4.5em,
    var(--dh-primary) 2em 13em 0 -4em,
    var(--dh-primary) 6em 2em 0 -4.1em,
    var(--dh-primary) 8em 8em 0 -4.5em,
    var(--dh-primary) 6em 13em 0 -4.5em,
    var(--dh-primary) -4em 7em 0 -4.5em,
    var(--dh-primary) -1em 10em 0 -4.5em;
}

@media (max-width: 575px) {
  .dh-theme-toggle {
    --dh-toggle-gap: 8px;
    font-size: 1.9px;
    right: 20px;
  }
}

/* page colours fade while switching (class set for a moment by the JS);
   the toggle keeps its own, later animation */
html.dh-theme-switching,
html.dh-theme-switching *:not(.dh-theme-toggle):not(.dh-theme-toggle__knob),
html.dh-theme-switching *:not(.dh-theme-toggle)::before,
html.dh-theme-switching *::after {
  transition: background-color var(--dh-theme-fade) ease, color var(--dh-theme-fade) ease, border-color var(--dh-theme-fade) ease !important;
}

/* --------------------------------------------------------------------------
   2. Component colours
   -------------------------------------------------------------------------- */
/* ---- dark: About ---- */

html[data-theme="dark"] .ab-acc,
html[data-theme="dark"] .ab-acc__item {
  border-color: var(--dh-d-border);
}

html[data-theme="dark"] .ab-acc__toggle {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .ab-acc__icon {
  border-color: var(--dh-d-border);
}

html[data-theme="dark"] .ab-acc__toggle:not(.collapsed) .ab-acc__icon {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
  color: #fff;
}

html[data-theme="dark"] .ab-acc__body,
html[data-theme="dark"] .ab-step__text {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-page-about,
html[data-theme="dark"] .dh-page-how {
  --ab-tl-line: var(--dh-d-border);
  --ab-card-bg: var(--dh-d-popover);
  --ab-card-border: var(--dh-d-border);
}

html[data-theme="dark"] .ab-step__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .ab-step__lead {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .ab-step.is-active .ab-step__node {
  border-color: var(--dh-accent);
  background: var(--dh-accent);
}

html[data-theme="dark"] .dh-page-about,
html[data-theme="dark"] .dh-page-how {
  --ab-final-bg: var(--dh-d-heading);
  --ab-final-title: var(--dh-primary);
  --ab-final-meta: var(--dh-accent);
  --ab-final-lead: #2b2b2b;
  --ab-final-text: #5b5b5b;
  --ab-final-node-bg: var(--dh-d-heading);
  --ab-final-node-icon: var(--dh-primary);
}

html[data-theme="dark"] .ab-step--final .ab-step__title {
  color: var(--ab-final-title);
}

html[data-theme="dark"] .ab-step--final .ab-step__lead {
  color: var(--ab-final-lead);
}

html[data-theme="dark"] .ab-step--final .ab-step__text {
  color: var(--ab-final-text);
}

html[data-theme="dark"] .ab-step--final .ab-step__node,
html[data-theme="dark"] .ab-step--final.is-active .ab-step__node {
  border-color: var(--ab-final-node-bg);
  background: var(--ab-final-node-bg);
}

html[data-theme="dark"] .ab-cta .dh-btn.dh-btn--ghost:hover,
html[data-theme="dark"] .ab-cta .dh-btn.dh-btn--ghost:focus-visible {
  color: var(--dh-d-heading);
}

/* ---- dark: Add-on services ---- */

/* ---- dark: Login / register ---- */
html[data-theme="dark"] body.dh-auth-page {
  background-color: var(--dh-d-alt);
  color: var(--dh-d-text);
}

html[data-theme="dark"] .cs_contact_form_wrapper.dh-auth__card {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-auth__brand.dh-wordmark:hover,
html[data-theme="dark"] .dh-auth__brand.dh-wordmark:focus {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .cs_contact_form_heading {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-auth__lead {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-auth__label {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-auth__optional {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .cs_contact_form.cs_type_1 .cs_form_field {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-alt);
  color: var(--dh-d-text);
}

html[data-theme="dark"] .cs_contact_form.cs_type_1 .cs_form_field::placeholder {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .cs_contact_form.cs_type_1 .cs_form_field:focus {
  border-color: var(--dh-d-heading);
  background-color: var(--dh-d-surface);
}

/* dark: filled button without a light border (border takes the fill colour; gold on hover) */
html[data-theme="dark"] .dh-auth__submit.dh-btn {
  border: 1.5px solid transparent;
}

html[data-theme="dark"] .dh-auth__submit.dh-btn:hover,
html[data-theme="dark"] .dh-auth__submit.dh-btn:focus-visible {
  border-color: var(--dh-accent);
}

html[data-theme="dark"] .cs_custom_checkbox > label {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .cs_custom_checkbox > label::before {
  border: 1.5px solid var(--dh-d-heading);
}

html[data-theme="dark"] .cs_text_btn.cs_style_1 {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .cs_or_login {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .cs_or_login span::before,
html[data-theme="dark"] .cs_or_login span::after {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .dh-auth__switch {
  color: var(--dh-d-text);
}

/* ---- dark: Blog cards ---- */

/* ---- dark: Buttons ---- */
html[data-theme="dark"] .dh-btn.dh-btn--outline {
  border-color: var(--dh-d-heading);
  color: var(--dh-d-heading);
}

/* ---- dark: Property cards ---- */
html[data-theme="dark"] .dh-prop-card {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-prop-card__media {
  background-color: var(--dh-d-alt);
}

html[data-theme="dark"] .dh-icon-btn:hover,
html[data-theme="dark"] .dh-icon-btn:focus-visible {
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-icon-btn.dh-action--fav.is-active {
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-prop-card__title a {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-prop-card__title a:hover {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-prop-card__address {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-prop-card__desc {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-prop-card__facts li {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-prop-card__facts i {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-prop-card__footer {
  border-top: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-prop-card__price {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-prop-card__more {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-prop-card:hover .dh-prop-card__more,
html[data-theme="dark"] .dh-prop-card__more:focus-visible {
  color: var(--dh-d-heading);
}

/* ---- dark: Contact page ---- */

html[data-theme="dark"] .dh-ct__heading {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-ct__lead {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-ct__map {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-ct__info,
html[data-theme="dark"] .dh-ct__form {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-ct__info {
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-ct__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-ct__text {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-ct__icon {
  background-color: var(--dh-d-alt);
}

html[data-theme="dark"] .dh-ct__label {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-ct__list a,
html[data-theme="dark"] .dh-ct__list p {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-ct__fields label > span {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-ct__fields input,
html[data-theme="dark"] .dh-ct__fields textarea {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-ct__fields input::placeholder,
html[data-theme="dark"] .dh-ct__fields textarea::placeholder {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-ct__fields input:focus,
html[data-theme="dark"] .dh-ct__fields textarea:focus {
  border-color: var(--dh-d-heading);
}

/* dark: filled button without a light border (border takes the fill colour; gold on hover) */
html[data-theme="dark"] .dh-ct__submit {
  border: 1.5px solid transparent;
}

html[data-theme="dark"] .dh-ct__submit:hover,
html[data-theme="dark"] .dh-ct__submit:focus-visible {
  border-color: var(--dh-accent);
}

html[data-theme="dark"] .dh-ct__note {
  color: var(--dh-d-muted);
}

/* ---- dark: Discover section ---- */

html[data-theme="dark"] body .dh-discover .sec-title.discover h2,
html[data-theme="dark"] body .dh-discover .sec-title.discover h2 span {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] body .dh-discover .sec-title.discover p {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] body .dh-discover .dh-dots button {
  border: 2px solid var(--dh-d-heading);
}

/* ---- dark: Homepage: benefits, comparison, steps ---- */
html[data-theme="dark"] .h2-benefits__list {
  background-color: var(--dh-d-benefits);
}

html[data-theme="dark"] .h2-benefits__item + .h2-benefits__item::before {
  background-color: var(--dh-d-border);
}

html[data-theme="dark"] .h2-benefits__icon {
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-benefits__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-benefits__text {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2-vs__table {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .h2-vs__row + .h2-vs__row > span {
  border-top: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .h2-vs__label {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-vs__icon {
  background-color: var(--dh-d-alt);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-vs__agent {
  background-color: var(--dh-d-surface-2);
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2-vs__us {
  background-color: var(--dh-d-surface-2);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-vs__row--head .h2-vs__label--head,
html[data-theme="dark"] .h2-vs__row--head .h2-vs__agent {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2-vs__row--head .h2-vs__agent {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .h2-vs__mark--no {
  background-color: rgba(229, 72, 77, 0.16);
  color: #F06B6F;
}

html[data-theme="dark"] .h2-vs__row:not(.h2-vs__row--head):hover .h2-vs__label {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .h2-vs__row:not(.h2-vs__row--head):hover .h2-vs__agent {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .h2-vs__row:not(.h2-vs__row--head):hover .h2-vs__us {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .h2-step {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .h2-step__icon {
  background-color: var(--dh-d-alt);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-step__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-step__text {
  color: var(--dh-d-muted);
}

/* ---- dark: FAQ ---- */

html[data-theme="dark"] .dh-faq__item {
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-faq__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-faq__icon {
  border: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-faq__toggle:not(.collapsed) .dh-faq__icon::before,
html[data-theme="dark"] .dh-faq__toggle:not(.collapsed) .dh-faq__icon::after {
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-faq__a {
  color: var(--dh-d-text);
}

/* ---- dark: Featured slider ---- */

/* ---- dark: Footer ---- */
html[data-theme="dark"] .cs_newsletter_form.cs_style_1::before {
  background-color: var(--dh-d-surface-2);
}

/* ---- dark: Header ---- */

html[data-theme="dark"] .dh-lang__menu {
  background-color: var(--dh-d-surface);
  border: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-lang__menu a {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-lang__menu a:hover,
html[data-theme="dark"] .dh-lang__menu a.is-current {
  background-color: var(--dh-d-alt);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] #header .dh-lang__menu li a,
html[data-theme="dark"] #header .dh-lang__menu li a:hover,
html[data-theme="dark"] #header .dh-lang__menu li a:focus,
html[data-theme="dark"] #header.cloned .dh-lang__menu li a {
  color: var(--dh-d-heading) !important;
}

html[data-theme="dark"] #header .dh-search-btn {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-header-dark #header:not(.cloned) .dh-search-btn:hover {
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading) !important;
}

html[data-theme="dark"] .dh-header-dark #header:not(.cloned) .dh-header__cta a.dh-btn-login {
  background-color: var(--dh-d-surface) !important;
  color: var(--dh-d-heading) !important;
}

html[data-theme="dark"] .dh-header-dark #header:not(.cloned) .dh-menu-trigger .hamburger-inner,
html[data-theme="dark"] .dh-header-dark #header:not(.cloned) .dh-menu-trigger .hamburger-inner::before,
html[data-theme="dark"] .dh-header-dark #header:not(.cloned) .dh-menu-trigger .hamburger-inner::after {
  background-color: #fff !important;
}

html[data-theme="dark"] .dh-header-dark #header:not(.cloned) .dh-menu-trigger .hamburger {
  border-color: rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] body.dh-header-scrolled #header-container #header {
  background-color: var(--dh-d-glass) !important;
}

html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-nav-pill > li > a,
html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-nav-pill > li.is-active > a,
html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-nav-pill > li.is-hovered > a,
html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-nav-pill > li > a:hover,
html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-lang__toggle,
html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-search-btn {
  color: var(--dh-d-heading) !important;
}

html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-search-btn {
  border-color: var(--dh-d-border);
}

html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-menu-trigger .hamburger {
  border-color: var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-menu-trigger .hamburger-inner,
html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-menu-trigger .hamburger-inner::before,
html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-menu-trigger .hamburger-inner::after {
  background-color: #fff !important;
}

/* ---- dark: Hero search / modal ---- */

html[data-theme="dark"] .dh-advanced-btn {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-advanced-btn:hover,
html[data-theme="dark"] .dh-advanced-btn:focus {
  border-color: var(--dh-d-heading);
  background-color: var(--dh-d-alt);
}

html[data-theme="dark"] .dh-filter-modal .modal-header {
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-filter-modal .modal-title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-filter-modal__sub {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-filter-modal .dh-filter-modal__close {
  border: 1px solid var(--dh-d-border);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-filter-modal .dh-filter-modal__close:hover {
  background-color: var(--dh-d-alt);
}

html[data-theme="dark"] .dh-filter-label {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-check .custom-control-label {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-check .custom-control-label::before {
  border: 1.5px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-range__field label {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-range__field .form-control {
  border: 1px solid var(--dh-d-border);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-range__field .form-control:focus {
  border-color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-filter-modal .modal-footer {
  border-top: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-btn-text {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-filter-main {
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-filter-main__field label {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-filter-main .form-control {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-filter-main .form-control:focus {
  border-color: var(--dh-d-heading);
}

/* ---- dark: Homepage hero ---- */
html[data-theme="dark"] .dh-hhero .dh-btn.dh-btn--ghost:hover {
  color: var(--dh-d-heading);
}

/* ---- dark: Homepage sections ---- */
html[data-theme="dark"] .h2-title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-head__text {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2-icon-badge {
  background-color: var(--dh-d-surface-2);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2h__glance {
  background-color: var(--dh-d-glass);
}

html[data-theme="dark"] .h2h__glance-head p {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2h__glance-head span {
  background-color: var(--dh-d-alt);
}

html[data-theme="dark"] .h2h__glance-item {
  background-color: var(--dh-d-alt);
}

html[data-theme="dark"] .h2h__glance-item strong {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .h2h__glance-item small {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2h__glance-item i {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2h__glance-tabs {
  border-bottom: 1px solid var(--dh-d-border);
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2h__glance-tabs .is-active {
  border-bottom: 2px solid var(--dh-d-heading);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2h__glance-steps li {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .h2h__glance-steps li > span {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .h2h__glance-steps em {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2h__glance-steps i {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .h2-banner {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .h2-banner__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-banner__text {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2-banner--profi {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .h2-banner__big {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-service {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .h2-service__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-service__text {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2-pcard {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .h2-pcard__tags span {
  background-color: var(--dh-d-glass);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-pcard__icon:hover,
html[data-theme="dark"] .h2-pcard__icon:focus-visible {
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-pcard__icon.dh-action--fav.is-active {
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .h2-pcard__panel {
  background-color: var(--dh-d-glass);
}

html[data-theme="dark"] .h2-pcard__city {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2-pcard__title a {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-pcard__facts {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2-pcard__row {
  border-top: 1px dashed var(--dh-d-border);
}

html[data-theme="dark"] .h2-pcard__price {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-pcard:hover .h2-pcard__city,
html[data-theme="dark"] .h2-pcard:hover .h2-pcard__facts {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2-pcard__panel {
  background-color: var(--dh-d-glass);
}

html[data-theme="dark"] .h2-pcard__desc {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .h2-pcard:hover .h2-pcard__desc {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2-pcard__facts svg {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2-bcard__more {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2h__glance-head small {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2h__glance-tabs {
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .h2h__glance-tabs button {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2h__glance-tabs button:hover {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2h__glance-tabs button.is-active {
  border-bottom-color: var(--dh-d-heading);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2h__glance-steps em {
  background-color: var(--dh-d-surface-2);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2h__glance-msgs li,
html[data-theme="dark"] .h2h__glance-dates li {
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .h2h__glance-msgs li > b {
  background-color: var(--dh-d-surface-2);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2h__glance-msgs strong,
html[data-theme="dark"] .h2h__glance-dates strong {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .h2h__glance-msgs small,
html[data-theme="dark"] .h2h__glance-dates small {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2h__glance-msgs em,
html[data-theme="dark"] .h2h__glance-dates em {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2h__glance-day {
  background-color: var(--dh-d-alt);
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .h2h__glance-day b {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .h2h__glance-dates em.is-ok {
  color: var(--dh-d-heading);
}

/* ---- dark: Homepage variant B ---- */

/* ---- dark: How it works page ---- */
html[data-theme="dark"] .dh-page-how {
  --hw-line: var(--dh-d-border);
  --hw-line-soft: var(--dh-d-border);
  --hw-card: var(--dh-d-surface);
  --hw-row: var(--dh-d-popover);
  --hw-soft: var(--dh-d-alt);
  --hw-ink: var(--dh-d-text);
  --hw-heading: var(--dh-d-heading);
  --hw-muted: var(--dh-d-muted);
  --hw-ways-bg: var(--dh-d-alt);
  --hw-reach-bg: var(--dh-d-alt);
  --hw-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --hw-pill: var(--dh-d-popover);
  --hw-pill-text: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-how .hw-step__title,
html[data-theme="dark"] .dh-page-how .hw-step__tags li {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-how .hw-switch__btn.active {
  background: var(--dh-accent);
}

html[data-theme="dark"] .dh-page-how .hw-switch__btn.active .hw-switch__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

html[data-theme="dark"] .dh-page-how .hw-way__price {
  background: var(--dh-d-popover);
}

html[data-theme="dark"] .dh-page-how .hw-path__badge {
  background: var(--dh-d-popover);
}

html[data-theme="dark"] .dh-page-how .hw-path__badge-num {
  color: var(--dh-d-heading);
}

/* ---- dark: Modals ---- */

/* ---- dark: Glass property card ---- */
html[data-theme="dark"] .dh-ocard__tag--featured {
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-ocard__icon:hover,
html[data-theme="dark"] .dh-ocard__icon:focus-visible {
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

/* ---- dark: Mobile menu ---- */
html[data-theme="dark"] .dh-offcanvas {
  border-left: unset;
}

html[data-theme="dark"] .dh-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-offcanvas__close {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-offcanvas__nav a {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-offcanvas__foot {
  border-top: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-menu-trigger .hamburger {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-menu-trigger .hamburger:hover,
html[data-theme="dark"] .dh-menu-trigger .hamburger:focus-visible {
  border-color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-offcanvas__lang a {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-offcanvas__lang a:hover {
  color: var(--dh-d-heading);
}

/* ---- dark: Packages page ---- */
html[data-theme="dark"] .dh-pk-vat {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-compare__badge {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-compare__table {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-compare__table th,
html[data-theme="dark"] .dh-compare__table td {
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-compare__table tbody th {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-compare__table td {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-compare__table .dh-compare__corner {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-compare__table .dh-compare__plan {
  color: var(--dh-d-heading);
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .dh-compare__plan small {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-compare__table .dh-compare__group th {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .dh-compare__table td.is-premium {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .dh-compare__tick {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-compare__table .dh-compare__incl {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-compare__table tbody tr:not(.dh-compare__group):hover th,
html[data-theme="dark"] .dh-compare__table tbody tr:not(.dh-compare__group):hover td {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .dh-compare__table tbody tr:not(.dh-compare__group):hover td.is-premium {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .dh-compare__total {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .dh-compare__total-title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-compare__total-text {
  color: var(--dh-d-muted);
}

/* dark: filled button without a light border (border takes the fill colour; gold on hover) */
html[data-theme="dark"] .dh-pk-cta__btn {
  border: 1.5px solid transparent;
}

html[data-theme="dark"] .dh-pk-cta__btn:hover,
html[data-theme="dark"] .dh-pk-cta__btn:focus-visible {
  border-color: var(--dh-accent);
}

html[data-theme="dark"] .dh-pk-split__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pk-split__lead {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-compare__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-compare__lead {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-compare__intro .dh-compare__badge {
  color: var(--dh-d-heading);
}

/* ---- dark: Popular places ---- */

/* ---- dark: Pricing cards ---- */

html[data-theme="dark"] .dh-pricing .dh-plan {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-plan hr {
  border-top: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-pricing .dh-plan--featured .dh-plan__btn,
html[data-theme="dark"] .dh-pricing .dh-plan:hover .dh-plan__btn {
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

/* ---- dark: Properties page ---- */

html[data-theme="dark"] .dh-pf {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-pf__top {
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-pf__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pf__search input,
html[data-theme="dark"] .dh-pf-range input {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pf__search input:focus,
html[data-theme="dark"] .dh-pf-range input:focus {
  border-color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pf-group {
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-pf-group__head {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pf-opt {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-pf-opt span::before {
  border: 1.5px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-pf-opt input:checked + span {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pf-scroll::-webkit-scrollbar-thumb {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .dh-pf .nice-select,
html[data-theme="dark"] .dh-pf select.dh-pf-select {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pf .nice-select:hover,
html[data-theme="dark"] .dh-pf .nice-select.open,
html[data-theme="dark"] .dh-pf .nice-select:focus {
  border-color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pf .nice-select .list {
  border: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-pf-range span {
  color: var(--dh-d-muted);
}

/* dark: filled button without a light border (border takes the fill colour; gold on hover) */
html[data-theme="dark"] .dh-pf__submit {
  border: 1.5px solid transparent;
}

html[data-theme="dark"] .dh-pf__submit:hover,
html[data-theme="dark"] .dh-pf__submit:focus-visible {
  border-color: var(--dh-accent);
}

html[data-theme="dark"] .dh-pf__clear {
  color: var(--dh-d-heading);
}

@media (max-width: 991px) {
  html[data-theme="dark"] .dh-pf__top {
    border-bottom: 1px solid var(--dh-d-border);
    background-color: var(--dh-d-surface);
  }

  html[data-theme="dark"] .dh-pf__close {
    border: 1px solid var(--dh-d-border);
    background-color: var(--dh-d-surface);
    color: var(--dh-d-heading);
  }
}

html[data-theme="dark"] .dh-pl__count {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-pl__count b {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pl__filter-btn {
  border: 1px solid var(--dh-d-heading);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pl__view {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-pl__view:hover {
  border-color: var(--dh-d-heading);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pl__tools select.dh-pl__sort,
html[data-theme="dark"] .dh-pl__tools .nice-select {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-properties .dh-ocard {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-properties .dh-ocard__title a,
html[data-theme="dark"] .dh-page-properties .dh-ocard__title a:hover {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-properties .dh-ocard__desc {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-page-properties .dh-ocard__address {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-page-properties .dh-ocard__facts b {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-properties .dh-ocard__facts span {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-page-properties .dh-ocard__price {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-properties .dh-ocard__more:hover,
html[data-theme="dark"] .dh-page-properties .dh-ocard__more:focus-visible {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-properties .dh-ocard__more {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pl__empty {
  border: 1px dashed var(--dh-d-border);
}

html[data-theme="dark"] .dh-pl__empty h3 {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pl__empty p {
  color: var(--dh-d-muted);
}

/* ---- dark: Property detail page ---- */

html[data-theme="dark"] .dh-pd-gallery .dh-pd-gallery__nav {
  background-color: var(--dh-d-glass);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-gallery .swiper-pagination-bullet {
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-pd__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd__address {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-pd__price strong {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd__price span {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-pd__facts {
  border: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-pd__facts li {
  border-right: 1px solid var(--dh-d-border);
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-pd__fact-icon {
  background-color: var(--dh-d-alt);
}

html[data-theme="dark"] .dh-pd__facts strong {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd__facts small {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-pd-box {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-pd-box__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-box p {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-pd-details div {
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-pd-details dt {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-pd-details dd {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-amenities li {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-pd-stars legend {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-stars__row label {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-pd-form label > span,
html[data-theme="dark"] .dh-pd-tour__row label > span,
html[data-theme="dark"] .dh-pd-count__label {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-form input,
html[data-theme="dark"] .dh-pd-form textarea,
html[data-theme="dark"] .dh-pd-tour__row input[type="text"]#reservation-date,
html[data-theme="dark"] .dh-pd-tour__row input[type="text"]#reservation-time {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-pd-form input:focus,
html[data-theme="dark"] .dh-pd-form textarea:focus,
html[data-theme="dark"] .dh-pd-tour__row input:focus {
  border-color: var(--dh-d-heading);
}

/* dark: filled button without a light border (border takes the fill colour; gold on hover) */
html[data-theme="dark"] .dh-pd-btn.dh-btn--primary {
  border: 1.5px solid transparent;
}

html[data-theme="dark"] .dh-pd-btn.dh-btn--primary:hover,
html[data-theme="dark"] .dh-pd-btn.dh-btn--primary:focus-visible {
  border-color: var(--dh-accent);
}

html[data-theme="dark"] .dh-pd-review .dh-pd-review__note {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] div.datedropper.dh .picker,
html[data-theme="dark"] div.datedropper.dh .pick-l {
  background-color: var(--dh-d-popover);
}

html[data-theme="dark"] div.datedropper.dh .picker,
html[data-theme="dark"] div.datedropper.dh .pick-arw,
html[data-theme="dark"] div.datedropper.dh .pick-l {
  color: var(--dh-d-text);
}

html[data-theme="dark"] div.datedropper.dh.picker-tiny:before,
html[data-theme="dark"] div.datedropper.dh.picker-tiny .pick-m {
  background-color: var(--dh-d-popover);
}

html[data-theme="dark"] div.datedropper.dh.picker-tiny .pick-m,
html[data-theme="dark"] div.datedropper.dh.picker-tiny .pick-m .pick-arw {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-pd-count__box {
  border: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-pd-count__box .btn-number {
  background-color: var(--dh-d-alt);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-count__box input {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-recent__body strong {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-recent__body small {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-pd-recent__body em {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-tags a {
  border: 1px solid var(--dh-d-border);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-similar__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-pd-similar__head p {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-pd-similar__slider + .dh-dots button {
  border: 1.5px solid var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-property .dh-ocard {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-property .dh-ocard__title a,
html[data-theme="dark"] .dh-page-property .dh-ocard__title a:hover {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-property .dh-ocard__desc {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-page-property .dh-ocard__address {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-page-property .dh-ocard__facts b {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-property .dh-ocard__facts span {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-page-property .dh-ocard__price {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-property .dh-ocard__more:hover,
html[data-theme="dark"] .dh-page-property .dh-ocard__more:focus-visible {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-page-property .dh-ocard__more {
  color: var(--dh-d-heading);
}

/* ---- dark: Shared sections ---- */
html[data-theme="dark"] body .dh-sec-head .sec-title.sec-title h2 {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] body .dh-sec-head .sec-title.sec-title p {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-arrow {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

/* ---- dark: Testimonials ---- */

html[data-theme="dark"] .dh-testi {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-testi-slider .swiper-slide img.dh-testi__avatar {
  border: 2px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-testi__name {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-testi__place {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-testi__text {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-testi__stars {
  border-top: 1px solid var(--dh-d-border);
}

/* ---- dark: Wide property card ---- */
html[data-theme="dark"] .dh-wcard {
  background-color: var(--dh-d-surface);
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-wcard__media {
  background-color: var(--dh-d-alt);
}

html[data-theme="dark"] .dh-wcard__tag--featured {
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-wcard__icon:hover,
html[data-theme="dark"] .dh-wcard__icon:focus-visible {
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-wcard__address {
  color: var(--dh-d-text);
}

html[data-theme="dark"] .dh-wcard__title a {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-wcard__desc {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-wcard__facts {
  border-top: 1px solid var(--dh-d-border);
  border-bottom: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-wcard__facts li + li {
  border-left: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .dh-wcard__facts b {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-wcard__facts span {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .dh-wcard__price {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-wcard__more {
  color: var(--dh-d-heading);
}

/* ---- dark: Why choose us ---- */

html[data-theme="dark"] .dh-why-card {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .dh-why-card__title {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] .dh-why-card__text {
  color: var(--dh-d-muted);
}

/* --------------------------------------------------------------------------
   3. Page base, sections, header, footer, forms
   -------------------------------------------------------------------------- */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #wrapper {
  color: var(--dh-d-text);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: var(--dh-d-heading);
}

html[data-theme="dark"] p {
  color: inherit;
}

/* page and cream section colours: only variables, see
   --dh-body-bg / --dh-cream-bg in css/main.css */

/* header: dark glass once scrolled, white logo */
html[data-theme="dark"] body.dh-header-scrolled #header-container #header,
html[data-theme="dark"] #header.cloned {
  background-color: var(--dh-d-header-glass) !important;
  border-bottom-color: var(--dh-d-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] #header #logo img,
html[data-theme="dark"] body.dh-header-scrolled #header-container #header #logo img,
html[data-theme="dark"] .dh-offcanvas__logo img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] #header .dh-nav-pill > li > a,
html[data-theme="dark"] #header .dh-lang__toggle,
html[data-theme="dark"] #header .dh-search-btn {
  color: var(--dh-d-heading) !important;
}

html[data-theme="dark"] #header .dh-search-btn {
  border-color: var(--dh-d-border);
}

html[data-theme="dark"] #header .dh-header__cta a.dh-btn-login {
  border-color: var(--dh-primary) !important;
  background: var(--dh-primary) !important;
  color: #fff !important;
}

html[data-theme="dark"] .dh-lang__menu,
html[data-theme="dark"] .dh-offcanvas {
  background-color: var(--dh-d-popover);
}

/* footer: same brand green as light mode */
html[data-theme="dark"] .cs_footer.cs_style_1,
html[data-theme="dark"] .cs_footer {
  background-color: var(--dh-d-footer);
  background-image: url("../assets/img/footer-bg-directhomes.svg");
}

/* forms */
html[data-theme="dark"] input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .nice-select {
  border-color: var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--dh-d-muted);
}

html[data-theme="dark"] .nice-select .list {
  background-color: var(--dh-d-popover);
}

html[data-theme="dark"] .nice-select .option:hover,
html[data-theme="dark"] .nice-select .option.focus,
html[data-theme="dark"] .nice-select .option.selected.focus {
  background-color: var(--dh-d-surface);
}

/* outline buttons: cream border and text */
html[data-theme="dark"] .dh-btn.dh-btn--outline {
  border-color: var(--dh-d-heading);
  color: var(--dh-d-heading);
}

/* "back to top" button */
html[data-theme="dark"] .go-up {
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] .go-up:hover,
html[data-theme="dark"] .go-up:focus-visible {
  background-color: var(--dh-accent);
  color: #fff;
}

/* photos a little softer on dark */
html[data-theme="dark"] main img,
html[data-theme="dark"] section img {
  filter: brightness(0.92);
}

/* glass property cards (properties, property detail): dark glass panel */
html[data-theme="dark"] .dh-ocard__body::before {
  background: linear-gradient(180deg,
    rgba(var(--dh-d-glass-rgb), 0) 0,
    rgba(var(--dh-d-glass-rgb), 0.6) 24px,
    rgba(var(--dh-d-glass-rgb), 0.92) 44px,
    rgba(var(--dh-d-glass-rgb), 0.95) 100%);
}

/* floor plan drawing has dark lines: keep it on a light sheet */
html[data-theme="dark"] .dh-pd-plan {
  padding: 16px;
  border-radius: 12px;
  background-color: var(--dh-d-heading);
  filter: none;
}

html[data-theme="dark"] {
  --dh-d-field-bg: rgba(233, 223, 206, 0.05);
  --dh-d-field-bg-focus: rgba(233, 223, 206, 0.08);
  --dh-d-field-border: rgba(233, 223, 206, 0.16);
  --dh-d-field-border-hover: rgba(var(--dh-accent-rgb), 0.55);
  --dh-d-field-border-focus: var(--dh-accent);
  --dh-d-field-ring: 0 0 0 3px rgba(var(--dh-accent-rgb), 0.16);
  --dh-d-field-text: var(--dh-d-heading);
  --dh-d-field-placeholder: rgba(233, 223, 206, 0.45);
  --dh-d-check-border: rgba(233, 223, 206, 0.32);
  --dh-d-modal-bg: var(--dh-d-popover);
  --dh-d-modal-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* fields */
html[data-theme="dark"] body input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html[data-theme="dark"] body textarea,
html[data-theme="dark"] body select,
html[data-theme="dark"] body .form-control,
html[data-theme="dark"] body .nice-select,
html[data-theme="dark"] body .cs_contact_form.cs_type_1 .cs_form_field,
html[data-theme="dark"] body .dh-ct__fields input,
html[data-theme="dark"] body .dh-ct__fields textarea,
html[data-theme="dark"] body .dh-pf__search input,
html[data-theme="dark"] body .dh-pf-range input,
html[data-theme="dark"] body .dh-pf .nice-select,
html[data-theme="dark"] body .dh-pl__tools .nice-select,
html[data-theme="dark"] body .dh-pd-form input,
html[data-theme="dark"] body .dh-pd-form textarea,
html[data-theme="dark"] body .dh-pd-tour__row input[type="text"]#reservation-date,
html[data-theme="dark"] body .dh-pd-tour__row input[type="text"]#reservation-time,
html[data-theme="dark"] body .dh-filter-main .form-control,
html[data-theme="dark"] body .dh-range__field .form-control {
  border-color: var(--dh-d-field-border);
  background-color: var(--dh-d-field-bg);
  color: var(--dh-d-field-text);
  box-shadow: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="dark"] body input::placeholder,
html[data-theme="dark"] body textarea::placeholder,
html[data-theme="dark"] body .cs_contact_form.cs_type_1 .cs_form_field::placeholder {
  color: var(--dh-d-field-placeholder);
  opacity: 1;
}

html[data-theme="dark"] body input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):hover,
html[data-theme="dark"] body textarea:hover,
html[data-theme="dark"] body select:hover,
html[data-theme="dark"] body .form-control:hover,
html[data-theme="dark"] body .nice-select:hover,
html[data-theme="dark"] body .dh-pf .nice-select:hover {
  border-color: var(--dh-d-field-border-hover);
}

html[data-theme="dark"] body input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):focus,
html[data-theme="dark"] body textarea:focus,
html[data-theme="dark"] body select:focus,
html[data-theme="dark"] body .form-control:focus,
html[data-theme="dark"] body .nice-select:focus,
html[data-theme="dark"] body .nice-select.open,
html[data-theme="dark"] body .dh-pf .nice-select.open,
html[data-theme="dark"] body .cs_contact_form.cs_type_1 .cs_form_field:focus,
html[data-theme="dark"] body .dh-ct__fields input:focus,
html[data-theme="dark"] body .dh-ct__fields textarea:focus,
html[data-theme="dark"] body .dh-pd-form input:focus,
html[data-theme="dark"] body .dh-pd-form textarea:focus,
html[data-theme="dark"] body .dh-pf__search input:focus {
  border-color: var(--dh-d-field-border-focus);
  background-color: var(--dh-d-field-bg-focus);
  box-shadow: var(--dh-d-field-ring);
}

html[data-theme="dark"] body .nice-select::after {
  border-color: var(--dh-accent);
}

html[data-theme="dark"] body .nice-select .list {
  border: 1px solid var(--dh-d-field-border);
  background-color: var(--dh-d-popover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] body .nice-select .option {
  color: var(--dh-d-text);
}

html[data-theme="dark"] body .nice-select .option:hover,
html[data-theme="dark"] body .nice-select .option.focus,
html[data-theme="dark"] body .nice-select .option.selected.focus {
  background-color: rgba(var(--dh-accent-rgb), 0.12);
  color: var(--dh-d-heading);
}

/* checkboxes: outline only, gold when checked */
html[data-theme="dark"] body .dh-check .custom-control-label::before,
html[data-theme="dark"] body .dh-pf-opt span::before {
  border-color: var(--dh-d-check-border);
  background-color: transparent;
}

html[data-theme="dark"] body .dh-check .custom-control-label:hover::before,
html[data-theme="dark"] body .dh-pf-opt:hover span::before {
  border-color: var(--dh-accent);
}

html[data-theme="dark"] body .dh-check .custom-control-input:checked ~ .custom-control-label::before,
html[data-theme="dark"] body .dh-pf-opt input:checked + span::before {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
}

html[data-theme="dark"] body .dh-check .custom-control-label {
  color: var(--dh-d-text);
}

/* advanced search modal: dark card */
html[data-theme="dark"] body .dh-filter-modal .modal-content {
  border: 1px solid var(--dh-d-border);
  background-color: var(--dh-d-modal-bg);
  box-shadow: var(--dh-d-modal-shadow);
}

html[data-theme="dark"] body .dh-filter-modal .modal-header,
html[data-theme="dark"] body .dh-filter-modal .modal-footer,
html[data-theme="dark"] body .dh-filter-modal .modal-body {
  background-color: transparent;
}

html[data-theme="dark"] body .dh-filter-modal .dh-filter-modal__close {
  background-color: transparent;
}

html[data-theme="dark"] body .dh-filter-modal .dh-filter-modal__close:hover {
  border-color: var(--dh-accent);
  color: var(--dh-accent);
}

html[data-theme="dark"] body .dh-filter-modal .modal-body::-webkit-scrollbar-thumb {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] .modal-backdrop.show {
  opacity: 0.7;
}

/* footer newsletter: keep the light version's underline field */
html[data-theme="dark"] body .cs_newsletter_form.cs_style_1 input {
  border: 0;
  background-color: transparent;
  box-shadow: none;
  color: var(--dh-d-heading);
}

html[data-theme="dark"] body .cs_newsletter_form.cs_style_1 input:focus {
  background-color: transparent;
  box-shadow: none;
}

html[data-theme="dark"] body .cs_newsletter_form.cs_style_1::before {
  background-color: var(--dh-d-heading);
  opacity: 0.25;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

html[data-theme="dark"] body .cs_newsletter_form.cs_style_1:focus-within::before {
  background-color: var(--dh-accent);
  opacity: 1;
}

/* ==========================================================================
   Dark
   ========================================================================== */

/* benefits bar: glass, border in the same tone */
html[data-theme="dark"] body .h2-benefits__list {
  border-color: var(--dh-d-glass-line);
  background-color: var(--dh-d-glass-bar);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

html[data-theme="dark"] body .h2-benefits__item + .h2-benefits__item::before {
  background-color: var(--dh-d-glass-line);
}

html[data-theme="dark"] body .h2-benefits__icon {
  background-color: var(--dh-d-glass-bar);
}

/* header once scrolled: glass with a light blur */
html[data-theme="dark"] body.dh-header-scrolled #header-container #header,
html[data-theme="dark"] body #header.cloned {
  background-color: var(--dh-d-header-glass) !important;
  border-bottom-color: var(--dh-d-glass-line);
  -webkit-backdrop-filter: var(--dh-d-header-blur);
  backdrop-filter: var(--dh-d-header-blur);
}

/* login: brand primary green, on the hero and once scrolled */
html[data-theme="dark"] body #header .dh-header__cta a.dh-btn-login,
html[data-theme="dark"] body.dh-header-dark #header:not(.cloned) .dh-header__cta a.dh-btn-login,
html[data-theme="dark"] body.dh-header-light #header:not(.cloned) .dh-header__cta a.dh-btn-login,
html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-header__cta a.dh-btn-login {
  border-color: var(--dh-d-brand) !important;
  background: var(--dh-d-brand) !important;
  color: #fff !important;
}

/* packages: PREMIUM in brand green with a white button,
   SELF keeps its card, its button turns glass white */
html[data-theme="dark"] body .dh-pricing .dh-plan--featured {
  border-color: var(--dh-d-brand);
  background-color: var(--dh-d-brand);
}

html[data-theme="dark"] body .dh-pricing .dh-plan .dh-plan__btn {
  border-color: var(--dh-d-heading);
  background-color: transparent;
  color: #fff;
}

html[data-theme="dark"] body .dh-pricing .dh-plan--featured .dh-plan__btn {
  border-color: #fff;
  background-color: #fff;
  color: var(--dh-d-brand);
}

html[data-theme="dark"] body .dh-pricing .dh-plan .dh-plan__btn.dh-btn:hover,
html[data-theme="dark"] body .dh-pricing .dh-plan .dh-plan__btn.dh-btn:focus-visible {
  border-color: var(--dh-accent);
  color: #fff;
}

/* comparison table: rows look like the hover state by default,
   the Directhomes column is highlighted */
html[data-theme="dark"] body .h2-vs__label {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] body .h2-vs__icon {
  background-color: var(--dh-primary);
  color: #fff;
}

html[data-theme="dark"] body .h2-vs__row--head .h2-vs__label--head {
  background-color: var(--dh-d-surface-2);
}

html[data-theme="dark"] body .h2-vs__row--head .h2-vs__us {
  background-color: var(--dh-d-brand);
}

html[data-theme="dark"] body .h2-vs__us {
  background-color: rgba(var(--dh-d-brand-rgb), 0.75);
}

html[data-theme="dark"] body .h2-vs__row:not(.h2-vs__row--head):hover .h2-vs__us {
  background-color: var(--dh-d-brand);
}

/* FAQ: the open "x" stays visible */
html[data-theme="dark"] body .dh-faq__icon::before,
html[data-theme="dark"] body .dh-faq__icon::after {
  background-color: var(--dh-d-heading);
}

html[data-theme="dark"] body .dh-faq__toggle:not(.collapsed) .dh-faq__icon {
  border-color: var(--dh-d-brand);
  background-color: var(--dh-d-brand);
}

html[data-theme="dark"] body .dh-faq__toggle:not(.collapsed) .dh-faq__icon::before,
html[data-theme="dark"] body .dh-faq__toggle:not(.collapsed) .dh-faq__icon::after {
  background-color: #fff;
}

/* property cards: content on the body colour */
html[data-theme="dark"] body .dh-wcard {
  background-color: var(--dh-body-bg);
}

/* blog cards: panel border in the same colour as the panel */
html[data-theme="dark"] body .h2-pcard__panel {
  border-color: var(--dh-d-glass);
}

/* comparison table: each column its own tone (same order as light mode) */
html[data-theme="dark"] body .h2-vs__label,
html[data-theme="dark"] body .h2-vs__row--head .h2-vs__label--head {
  background-color: var(--dh-d-vs-label);
}

html[data-theme="dark"] body .h2-vs__agent {
  background-color: var(--dh-d-vs-agent);
}

html[data-theme="dark"] body .h2-vs__row--head .h2-vs__agent {
  background-color: var(--dh-d-vs-agent-head);
}

html[data-theme="dark"] body .h2-vs__row:not(.h2-vs__row--head):hover .h2-vs__label {
  background-color: var(--dh-d-surface);
}

html[data-theme="dark"] body .h2-vs__row:not(.h2-vs__row--head):hover .h2-vs__agent {
  background-color: var(--dh-d-vs-agent-head);
}

/* login once scrolled: white with green text */
html[data-theme="dark"] body.dh-header-scrolled #header-container #header .dh-header__cta a.dh-btn-login,
html[data-theme="dark"] body #header.cloned .dh-header__cta a.dh-btn-login {
  border-color: #fff !important;
  background: #fff !important;
  color: var(--dh-d-brand) !important;
}

/* how it works: icons in the secondary colour */
html[data-theme="dark"] body .h2-step__icon {
  color: var(--dh-accent);
}

html[data-theme="dark"] body .h2-step:hover .h2-step__icon {
  background-color: var(--dh-accent);
  color: #fff;
}

/* PREMIUM card and property cards: the dark green of the dotted sections */
html[data-theme="dark"] body .dh-pricing .dh-plan--featured {
  border-color: var(--dh-d-alt);
  background-color: var(--dh-d-alt);
}

html[data-theme="dark"] body .dh-wcard {
  background-color: var(--dh-d-alt);
}

/* FAQ: open "x" on a gold circle */
html[data-theme="dark"] body .dh-faq__toggle:not(.collapsed) .dh-faq__icon {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
}

/* FAQ: the open question in the secondary colour */
html[data-theme="dark"] body .dh-faq__toggle:not(.collapsed) .dh-faq__title {
  color: var(--dh-accent);
}

/* packages: SELF only an outline, PREMIUM with a moving light border */
html[data-theme="dark"] body .dh-pricing .dh-plan:not(.dh-plan--featured) {
  border-color: var(--dh-d-pk-outline);
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@property --dh-pk-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

html[data-theme="dark"] body .dh-pricing .dh-plan--featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--dh-d-alt), var(--dh-d-alt)) padding-box,
    conic-gradient(from var(--dh-pk-angle),
      var(--dh-d-pk-border-a) 0deg,
      transparent 70deg,
      transparent 150deg,
      var(--dh-d-pk-border-b) 180deg,
      transparent 250deg,
      transparent 330deg,
      var(--dh-d-pk-border-a) 360deg) border-box;
  box-shadow: 0 0 0 1px rgba(var(--dh-accent-rgb), 0.12), 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(var(--dh-accent-rgb), 0.12);
  animation: dh-pk-border var(--dh-d-pk-border-speed) linear infinite;
}

@keyframes dh-pk-border {
  to { --dh-pk-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] body .dh-pricing .dh-plan--featured {
    animation: none;
  }
}

/* hero "How it works": white fill on hover, so the text turns green */
html[data-theme="dark"] body .dh-hhero .dh-btn.dh-btn--ghost:hover,
html[data-theme="dark"] body .dh-hhero .dh-btn.dh-btn--ghost:focus-visible {
  border-color: #fff;
  color: var(--dh-d-brand);
}

/* slider arrows: gold on hover */
html[data-theme="dark"] body .dh-arrow:not(.swiper-button-disabled):not([aria-disabled="true"]):hover,
html[data-theme="dark"] body .dh-arrow:not(.swiper-button-disabled):not([aria-disabled="true"]):focus-visible,
html[data-theme="dark"] body .dh-pd-gallery__nav:hover,
html[data-theme="dark"] body .dh-pd-gallery__nav:focus-visible {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
  color: #fff;
}

/* slider pagination: secondary colour (light mode keeps the primary green) */
html[data-theme="dark"] body .dh-discover .dh-dots button,
html[data-theme="dark"] body .dh-featured .dh-dots button,
html[data-theme="dark"] body .dh-pd-similar__slider + .dh-dots button {
  border-color: var(--dh-accent);
  background-color: transparent;
}

html[data-theme="dark"] body .dh-discover .dh-dots .is-active button,
html[data-theme="dark"] body .dh-featured .dh-dots .is-active button,
html[data-theme="dark"] body .dh-pd-similar__slider + .dh-dots .is-active button,
html[data-theme="dark"] body .dh-pd-gallery .swiper-pagination-bullet-active {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
}

/* comparison table: row icon turns gold on hover */
html[data-theme="dark"] body .h2-vs__row:hover .h2-vs__icon {
  background-color: var(--dh-accent);
  color: #fff;
}

/* packages page: FAQ drawing in white */
html[data-theme="dark"] body .dh-faq__img img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* packages page: "Cancel monthly" without a background */
html[data-theme="dark"] body .dh-compare__badge,
html[data-theme="dark"] body .dh-compare__intro .dh-compare__badge {
  border: 0;
  background: none;
  color: var(--dh-d-heading);
}

/* packages comparison table: solid tones like light mode
   (SELF light gold, PREMIUM light green), no glass */
html[data-theme="dark"] body .dh-compare__table {
  border-color: var(--dh-d-cmp-line);
  background-color: var(--dh-d-cmp-bg);
}

html[data-theme="dark"] body .dh-compare__table th,
html[data-theme="dark"] body .dh-compare__table td {
  border-bottom-color: var(--dh-d-cmp-line);
}

html[data-theme="dark"] body .dh-compare__table tbody th,
html[data-theme="dark"] body .dh-compare__table td,
html[data-theme="dark"] body .dh-compare__table .dh-compare__corner {
  background-color: var(--dh-d-cmp-bg);
}

html[data-theme="dark"] body .dh-compare__table .dh-compare__plan {
  background-color: var(--dh-d-cmp-self-head);
  color: #fff;
}

html[data-theme="dark"] body .dh-compare__table .dh-compare__plan--premium {
  background-color: var(--dh-d-cmp-premium-head);
}

html[data-theme="dark"] body .dh-compare__plan small {
  color: var(--dh-d-text);
}

html[data-theme="dark"] body .dh-compare__plan--premium small {
  color: #D9B77A;
}

html[data-theme="dark"] body .dh-compare__table .dh-compare__group th {
  background-color: var(--dh-d-cmp-group);
  color: #D9B77A;
}

html[data-theme="dark"] body .dh-compare__table td.is-premium {
  background-color: var(--dh-d-cmp-premium);
}

html[data-theme="dark"] body .dh-compare__table tbody tr:not(.dh-compare__group):hover th,
html[data-theme="dark"] body .dh-compare__table tbody tr:not(.dh-compare__group):hover td {
  background-color: var(--dh-d-cmp-hover);
}

html[data-theme="dark"] body .dh-compare__table tbody tr:not(.dh-compare__group):hover td.is-premium {
  background-color: var(--dh-d-cmp-premium-hover);
}

html[data-theme="dark"] body .dh-compare__total {
  border-color: var(--dh-d-cmp-line);
  background-color: var(--dh-d-cmp-group);
}

/* properties: active grid / list button in the secondary colour */
html[data-theme="dark"] body .dh-pl__view.is-active,
html[data-theme="dark"] body .dh-pl__view.is-active:hover {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
  color: #fff;
}

html[data-theme="dark"] body .dh-pl__view:not(.is-active):hover {
  border-color: var(--dh-accent);
  color: var(--dh-accent);
}

/* "Featured" label: solid gold so it reads on every photo */
html[data-theme="dark"] body .dh-wcard__tag--featured,
html[data-theme="dark"] body .dh-ocard__tag--featured,
html[data-theme="dark"] body .dh-page-properties .dh-ocard__tag--featured {
  border-color: var(--dh-accent);
  background-color: var(--dh-accent);
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="dark"] body .dh-wcard__tag--featured svg,
html[data-theme="dark"] body .dh-ocard__tag--featured svg {
  color: #fff;
}

/* dropdowns: hovered option in the secondary colour
   (!important: css/colors/directhomes.css sets the green with !important) */
html[data-theme="dark"] body .nice-select .option:hover,
html[data-theme="dark"] body .nice-select .option.focus,
html[data-theme="dark"] body .nice-select .option.selected.focus {
  background: var(--dh-accent) !important;
  color: #fff;
}

/* contact page: social links turn gold on hover */

/* property detail: dividers inside the grouped box */
html[data-theme="dark"] body .dh-pd-box--group .dh-pd-box__part + .dh-pd-box__part {
  border-top-color: var(--dh-d-border);
}

/* property detail: adults / children counter, the number has no field box */
html[data-theme="dark"] body .dh-pd-count__box input,
html[data-theme="dark"] body .dh-pd-count__box input:hover,
html[data-theme="dark"] body .dh-pd-count__box input:focus {
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent !important; /* beats the general dark field style */
  color: var(--dh-d-heading);
}

html[data-theme="dark"] body .dh-pd-count__box:focus-within {
  border-color: var(--dh-accent);
}

html[data-theme="dark"] body .dh-pd-count__box .btn-number:hover:not(:disabled) {
  background-color: var(--dh-accent);
  color: #fff;
}

/* authentication pages (login, register, forgot password) */
html[data-theme="dark"] body.dh-auth-page .dh-auth__brand img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] body.dh-auth-page .dh-auth__switch {
  color: var(--dh-d-text);
}

html[data-theme="dark"] body.dh-auth-page .dh-auth__media img {
  filter: brightness(0.85);
}

/* auth: Google button */
html[data-theme="dark"] body.dh-auth-page .dh-auth__google {
  border-color: var(--dh-d-border);
  background-color: var(--dh-d-surface);
  color: var(--dh-d-heading);
}

html[data-theme="dark"] body.dh-auth-page .dh-auth__google:hover,
html[data-theme="dark"] body.dh-auth-page .dh-auth__google:focus-visible {
  border-color: var(--dh-accent);
  background-color: var(--dh-d-surface-2);
  color: var(--dh-d-heading);
}

/* preloader: same house animation on the dark page colour */
html[data-theme="dark"] #preloader.dh-preloader {
  --dh-pl-bg: var(--dh-body-bg);
  --dh-pl-line: var(--dh-d-heading);
  --dh-pl-ground: rgba(233, 223, 206, 0.35);
  --dh-pl-smoke: rgba(255, 255, 255, 0.22);
  --dh-pl-track: rgba(255, 255, 255, 0.12);
  --dh-pl-word: var(--dh-d-heading);
}

/* review stars: yellow on hover and when chosen, like light mode */
html[data-theme="dark"] body .dh-pd-stars__row label:hover,
html[data-theme="dark"] body .dh-pd-stars__row label:hover ~ label,
html[data-theme="dark"] body .dh-pd-stars__row input:checked ~ label {
  color: #F5B301;
}

/* outline buttons: on hover the border takes the gold fill colour (not white) */
html[data-theme="dark"] .dh-btn.dh-btn--outline:hover,
html[data-theme="dark"] .dh-btn.dh-btn--outline:focus-visible {
  border-color: var(--dh-btn-fill, var(--dh-accent));
}

/* property detail: play button and slider arrows white, so they stand out */
html[data-theme="dark"] .dh-pd-video__play {
  background-color: #fff;
  color: var(--dh-d-brand);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .dh-pd-video__play:hover,
html[data-theme="dark"] .dh-pd-video__play:focus-visible {
  background-color: var(--dh-accent);
  color: #fff;
  box-shadow: 0 0 0 14px rgba(var(--dh-accent-rgb), 0.3);
}

html[data-theme="dark"] .dh-pd-similar__arrow.dh-arrow {
  border-color: #fff;
  background-color: #fff;
  color: var(--dh-d-brand);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Mission Tips & Tricks: dark surfaces with readable secondary tab states */

/* Mission tips: five equal horizontal tabs with one sliding active pill */

/* ---- dark: Savings calculator ---- */
html[data-theme="dark"] .h3-calc {
  --calc-line: var(--dh-d-border);
  --calc-box: var(--dh-d-surface);
  --calc-ink: var(--dh-d-heading);
  --calc-muted: var(--dh-d-muted);
  --calc-result: var(--dh-d-brand);
}

html[data-theme="dark"] .h3-calc__box {
  box-shadow: none;
}

html[data-theme="dark"] .h3-calc__range::-webkit-slider-thumb {
  background: var(--dh-d-page);
}

html[data-theme="dark"] .h3-calc__range::-moz-range-thumb {
  background: var(--dh-d-page);
}

html[data-theme="dark"] .h3-calc__pkg input:checked + span {
  background: var(--dh-d-surface-2);
}

html[data-theme="dark"] .h3-calc__result {
  border: 1px solid var(--dh-d-border);
}

html[data-theme="dark"] .h3-calc__money input {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--calc-ink) !important;
}

/* dark: Header active link keeps the underline of the light mode (no tab) */

/* ---- dark: Mobile menu, current page ---- */
html[data-theme="dark"] .dh-offcanvas__nav li.is-active a,
html[data-theme="dark"] .dh-offcanvas__nav li.is-active a:hover,
html[data-theme="dark"] .dh-offcanvas__nav li.is-active a:focus-visible {
  background: rgba(var(--dh-accent-rgb), 0.16);
  color: var(--dh-accent);
}

/* ---- dark: Property key facts (lines only between the items) ---- */
html[data-theme="dark"] .dh-pd__facts li {
  border-bottom: 0;
}

html[data-theme="dark"] .dh-pd__facts li:last-child {
  border-right: 0;
}

@media (max-width: 767px) {
  html[data-theme="dark"] .dh-pd__facts li:nth-child(2n) {
    border-right: 0;
  }

  html[data-theme="dark"] .dh-pd__facts li:nth-child(-n+2) {
    border-bottom: 1px solid var(--dh-d-border);
  }
}

/* ---- dark: Related posts text ---- */
html[data-theme="dark"] .dh-page-blog .dh-blog-related__text {
  color: var(--dh-d-muted);
}

/* ---- dark: Slider dots (gold) ---- */
html[data-theme="dark"] body .dh-dots.dh-dots li button {
  border-color: var(--dh-accent);
  background: transparent;
}

html[data-theme="dark"] body .dh-dots.dh-dots li.is-active button {
  background: var(--dh-accent);
}

/* ---- Phones and tablets: scrolled header without the blur ----
   A fixed bar with backdrop-filter is blurred again on every scroll frame,
   which makes scrolling lag on phones. Below 992px the bar is nearly solid
   instead (same colours, no blur). */
@media (max-width: 991px) {
  body.dh-header-scrolled #header-container #header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: rgba(var(--dh-bg-rgb), 0.97) !important;
  }

  html[data-theme="dark"] body.dh-header-scrolled #header-container #header,
  html[data-theme="dark"] body #header.cloned {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: rgba(19, 63, 52, 0.97) !important;
  }
}

/* ==========================================================================
   END: Dark mode 
   ========================================================================== */
