/*
Theme Name: DS Immobilier
Theme URI: https://example.com/ds-immobilier
Author: DS Immobilier
Description: Lightweight, accessible, Elementor-ready theme for the DS Immobilier website and Activimmo listings.
Version: 1.2.15
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ds-immobilier
*/

:root {
  --ds-brand: #46bdc6;
  --ds-brand-dark: #2a9aa3;
  --ds-ink: #1a2b33;
  --ds-text: #2c3a42;
  --ds-muted: #6b7c86;
  --ds-bg: #ffffff;
  --ds-hero-radius: 20px;
  --ds-hero-gap: 10px;
  --ds-scoop: 20px;
  --ds-font-sans: "Jost", sans-serif;
  --ds-font-serif: "Playfair Display", serif;
  --ds-content-width: 1140px;
  --ds-hero-image: linear-gradient(135deg, #0d5c5a 0%, #46bdc6 45%, #7ed6d2 100%);
  --ds-hero-position: center;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--ds-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ds-text);
  background: var(--ds-bg);
  font-family: var(--ds-font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.ds-site-main {
  background: var(--ds-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ds-brand); }
a:hover { color: var(--ds-brand-dark); }

h1,
h2,
h3,
.elementor-heading-title {
  font-family: var(--ds-font-serif);
}

button,
input,
select,
textarea { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: #fff;
  background: #111827;
}

.ds-container {
  width: min(100% - 40px, var(--ds-content-width));
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Cutout hero header
--------------------------------------------------------------------------- */

.ds-hero {
  --ds-chrome-h: 80px;
  --ds-cover-height: clamp(420px, 72vh, 760px);
  --ds-cover-content-height: calc(var(--ds-cover-height) - var(--ds-chrome-h));
  --ds-hero-title-size: clamp(2.4rem, 6vw, 4rem);
  --ds-hero-title-size-inner: clamp(1.85rem, 4.6vw, 3.25rem);
  --ds-hero-title-size-page: clamp(2.1rem, 5.2vw, 3.75rem);
  --ds-hero-title-weight: 800;
  --ds-hero-title-max-width: 28ch;
  --ds-scoop: 20px;
  --ds-tab-join: 10px;
  --ds-chrome-inset: clamp(120px, 12.3vw, 200px);
  /* Shared side inset for header chrome + bottom breadcrumb/home tab (all pages). */
  --ds-hero-island-gutter: 100px;
  padding: var(--ds-hero-gap);
  background: var(--ds-bg);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  position: relative;
}

.ds-hero.has-sticky-nav {
  z-index: 100;
}

.ds-hero.ds-hero--home {
  --ds-hero-gap: 10px;
  --ds-cover-height: calc(100dvh - var(--ds-hero-gap) - var(--ds-hero-gap));
  /* Fill the viewport, but grow when cover content is taller (mobile search stack, etc.). */
  min-height: 100dvh;
  height: auto;
  padding: var(--ds-hero-gap);
  box-sizing: border-box;
}

.ds-hero.ds-hero--home.ds-hero--elementor-cover {
  --ds-cover-content-height: calc(var(--ds-cover-height) - var(--ds-chrome-h) - 56px);
  padding: var(--ds-hero-gap);
}

.ds-hero--home .ds-hero__shell {
  min-height: var(--ds-cover-height);
  height: auto;
}

body.admin-bar .ds-hero--home {
  --ds-cover-height: calc(100dvh - 32px - var(--ds-hero-gap) - var(--ds-hero-gap));
  min-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
  body.admin-bar .ds-hero--home {
    --ds-cover-height: calc(100dvh - 46px - var(--ds-hero-gap) - var(--ds-hero-gap));
    min-height: calc(100dvh - 46px);
  }
}

.ds-hero__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--ds-cover-height);
  border-radius: var(--ds-hero-radius);
  /* visible so nav dropdowns are hoverable below the chrome */
  overflow: visible;
  isolation: isolate;
}

.ds-hero--inner .ds-hero__shell {
  --ds-cover-height: clamp(280px, 42vh, 460px);
  min-height: var(--ds-cover-height);
}

.ds-hero__media,
.ds-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--ds-hero-radius);
}

.ds-hero__media {
  z-index: 0;
  overflow: hidden;
  background-color: #0d4f4d;
  background-image: var(--ds-hero-image);
  background-position: var(--ds-hero-position);
  background-size: cover;
  background-repeat: no-repeat;
}

.ds-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ds-hero-position);
}

.ds-hero--has-video.is-video-ready .ds-hero__media {
  background-image: none;
}

@media (prefers-reduced-motion: reduce) {
  .ds-hero__video {
    display: none;
  }

  .ds-hero--has-video .ds-hero__media {
    background-image: var(--ds-hero-image);
  }
}

.ds-hero__scrim {
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(8 30 32 / 28%) 0%, rgb(8 30 32 / 18%) 40%, rgb(8 30 32 / 45%) 100%);
}

.ds-hero__chrome,
.ds-hero__body,
.ds-hero__tab {
  position: relative;
  z-index: 2;
}

/* White navigation island: container max-width + outer screen gutter. */
.ds-hero__chrome {
  position: relative;
  z-index: 5;
  isolation: isolate;
  width: min(calc(100% - var(--ds-hero-island-gutter)), var(--ds-content-width));
  margin-inline: auto;
  background: var(--ds-bg);
  border-radius: 0 0 var(--ds-scoop) var(--ds-scoop);
  overflow: visible;
}

.ds-hero__chrome.is-sticky {
  position: fixed;
  top: 0;
  left: var(--ds-sticky-nav-left);
  z-index: 1000;
  width: var(--ds-sticky-nav-width);
  margin: 0;
  transform: translateY(-100%);
  box-shadow:
    0 4px 12px rgb(15 40 45 / 10%),
    0 14px 36px rgb(15 40 45 / 14%);
  transition: none;
  will-change: transform;
}

body.admin-bar .ds-hero__chrome.is-sticky {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .ds-hero__chrome.is-sticky {
    top: 46px;
  }
}

.ds-hero__chrome.is-sticky.is-sticky-visible {
  transform: translateY(0);
}

.ds-hero__chrome.is-sticky.is-sticky-ready {
  transition: transform 2000ms cubic-bezier(0.37, 0, 0.63, 1);
}

.ds-hero__chrome-sentinel {
  width: 1px;
  height: 0;
  pointer-events: none;
}

.ds-hero.has-sticky-nav .ds-hero__chrome-sentinel {
  height: var(--ds-sticky-nav-height);
}

.ds-hero__chrome-shape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ds-hero__scoop {
  position: absolute;
  top: 0;
  width: var(--ds-scoop);
  height: var(--ds-scoop);
  line-height: 0;
  color: #fff;
}

.ds-hero__scoop--left {
  left: calc(-1 * var(--ds-scoop));
}

.ds-hero__scoop--right {
  right: calc(-1 * var(--ds-scoop));
  transform: scaleX(-1);
}

.ds-hero__scoop-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ds-hero__chrome-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--ds-chrome-h);
  padding: 10px 12px;
  overflow: visible;
}

.ds-hero__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.ds-hero__logo .custom-logo-link {
  display: block;
}

.ds-hero__logo .custom-logo {
  width: 56px;
  height: 56px;
  max-height: 56px;
  object-fit: contain;
  border-radius: 50%;
}

.ds-hero__logo-fallback {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ds-brand);
  color: #fff;
  font-family: var(--ds-font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ds-primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-primary-menu > .menu-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
}

.ds-primary-menu a {
  color: var(--ds-brand);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ds-primary-menu a:hover,
.ds-primary-menu .current-menu-item > a,
.ds-primary-menu .current_page_item > a {
  color: var(--ds-brand-dark);
}

.ds-primary-menu .current-menu-item > a,
.ds-primary-menu .current_page_item > a {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.ds-primary-menu .menu-item-has-children {
  position: relative;
}

/* Solid panel + hover bridge (no negative z-index — fails under isolation). */
.ds-primary-menu .menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 230px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d7e4e6;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgb(15 40 45 / 12%);
}

/* Invisible bridge from parent link down into the panel */
.ds-primary-menu .menu-item-has-children > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}

.ds-primary-menu .menu-item-has-children:hover > .sub-menu,
.ds-primary-menu .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.ds-primary-menu .sub-menu .menu-item {
  margin: 0;
  padding: 0;
}

.ds-primary-menu .sub-menu a {
  display: block;
  min-height: 0;
  padding: 9px 16px;
  white-space: nowrap;
}

.ds-primary-menu .sub-menu a:hover {
  background: #f4f8f9;
}

.ds-primary-menu .sub-menu .current-menu-item > a {
  text-decoration: none;
  color: var(--ds-brand-dark);
  font-weight: 600;
}

/* Logo | centered nav | switchers — equal gaps on both sides of the menu */
.ds-navigation {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.ds-navigation > .ds-primary-menu {
  flex: 1 1 auto;
  justify-content: center;
}

.ds-hero__switchers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.ds-switcher {
  position: relative;
}

.ds-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--ds-brand);
  border-radius: 9px;
  background: #fff;
  color: var(--ds-brand);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ds-switcher__btn:hover,
.ds-switcher.is-open .ds-switcher__btn {
  border-color: var(--ds-brand-dark);
  color: var(--ds-brand-dark);
}

.ds-switcher__chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.ds-switcher__list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 1200;
  min-width: 100%;
  width: max-content;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid #e2ebef;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(16 40 45 / 12%);
}

.ds-switcher__list a,
.ds-switcher__list button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 28px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ds-ink);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.ds-switcher__list a:hover,
.ds-switcher__list button:hover,
.ds-switcher__list [aria-selected="true"] > * {
  background: rgb(70 189 198 / 12%);
  color: var(--ds-brand-dark);
}

.ds-switcher__name {
  display: none;
}

.ds-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d5e0e4;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.ds-menu-toggle__icon,
.ds-menu-toggle__icon::before,
.ds-menu-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ds-ink);
  border-radius: 2px;
}

.ds-menu-toggle__icon {
  position: relative;
}

.ds-menu-toggle__icon::before,
.ds-menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.ds-menu-toggle__icon::before { top: -6px; }
.ds-menu-toggle__icon::after { top: 6px; }

/* Hero body copy */
.ds-hero__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(28px, 6vh, 72px) clamp(18px, 4vw, 48px) clamp(36px, 8vh, 88px);
  text-align: center;
  color: #fff;
}

.ds-hero__elementor-content {
  width: min(100%, 1100px);
}

.ds-hero__elementor-dropzone {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.ds-hero--elementor-cover .ds-hero__body {
  align-items: stretch;
  padding: 0;
}

.ds-hero--elementor-cover .ds-hero__elementor-dropzone,
.ds-hero--elementor-cover .ds-hero__elementor-dropzone > .elementor,
.ds-hero--elementor-cover .ds-hero__elementor-dropzone > .e-con,
.ds-hero--elementor-cover .ds-hero__elementor-dropzone > .elementor > .e-con,
.ds-hero--elementor-cover .ds-hero__elementor-dropzone > .elementor > .elementor-section {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-height: var(--ds-cover-content-height);
}

.ds-hero__elementor-dropzone > .elementor,
.ds-hero__elementor-dropzone > .e-con,
.ds-hero__elementor-dropzone > .elementor-section {
  width: 100%;
}

.ds-cover-page-content,
.ds-cover-page-content .ds-entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.ds-property-single .ds-property-entry {
  width: min(100% - 32px, var(--ds-content-width));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.ds-property-single .activimmo-detail,
.ds-property-single .activimmo-property {
  width: 100%;
}

/* Theme-owned Activimmo single-property detail: content + enquiry sidebar. */
.ds-property-detail {
  max-width: 1180px;
  padding-inline: 0;
}

.ds-property-detail__header {
  margin-bottom: 1.5rem;
}

.ds-property-detail > .activimmo-carousel {
  width: min(100%, 800px);
  margin-inline: auto;
}

.ds-property-detail > .activimmo-carousel .activimmo-carousel__track {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.ds-property-detail > .activimmo-carousel .activimmo-carousel__slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-property-detail__heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.ds-property-detail__location {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  color: var(--ds-muted);
  font-size: 0.92rem;
}

.ds-property-detail__price {
  flex: 0 0 auto;
  text-align: right;
}

.ds-property-detail__price strong,
.ds-property-detail__price span {
  display: block;
}

.ds-property-detail__price strong {
  color: var(--ds-brand-dark);
  font-family: var(--ds-font-serif);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
}

.ds-property-detail__price span {
  margin-top: 0.35rem;
  color: var(--ds-muted);
  font-size: 0.85rem;
}

.ds-property-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin-top: 2.25rem;
}

.ds-property-detail__content {
  min-width: 0;
}

.ds-property-detail__section {
  padding: 0 0 2.5rem;
  margin: 0 0 2.5rem;
  border-bottom: 1px solid #dce7e8;
}

.ds-property-detail__section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.ds-property-detail__section > h2,
.ds-property-detail__contact-card > h2 {
  margin: 0 0 1.25rem;
  color: var(--ds-brand-dark);
  font-family: var(--ds-font-serif);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.2;
}

.ds-property-detail__table {
  width: 100%;
}

.ds-property-detail__sidebar {
  position: sticky;
  top: 2rem;
}

.admin-bar .ds-property-detail__sidebar {
  top: calc(2rem + 32px);
}

.ds-property-detail__contact-card {
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid #d7e4e6;
  border-radius: 22px;
  background: #f7fbfb;
  box-shadow: 0 18px 45px rgb(18 62 67 / 10%);
}

.ds-property-detail__contact-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--ds-brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ds-property-detail__contact-ref {
  margin: -0.55rem 0 1.35rem;
  color: var(--ds-muted);
  font-size: 0.85rem;
}

.ds-property-detail__contact-card .ds-prop-form {
  max-width: none;
}

.ds-property-detail__contact-card .ds-prop-form__grid {
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.ds-property-detail__contact-card .ds-prop-form__field {
  grid-column: 1 / -1;
}

.ds-property-detail__contact-card .ds-prop-form__textarea {
  min-height: 120px;
}

.ds-property-detail__contact-card .ds-prop-form__submit {
  width: 100%;
}

.ds-property-detail__contact-card .ds-contact {
  max-width: none;
}

.ds-property-detail__contact-card .ds-contact__grid {
  grid-template-columns: 1fr;
}

.ds-property-detail__contact-card .ds-contact__field {
  grid-column: 1 / -1;
}

.ds-property-detail__contact-card .ds-contact__submit {
  width: 100%;
}

.ds-property-detail .activimmo-detail__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.ds-property-detail .activimmo-detail__features > h2 {
  grid-column: 1 / -1;
}

.ds-property-detail .activimmo-detail__feature-group {
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
}

.ds-property-detail .activimmo-detail__feature-group:last-child {
  margin-bottom: 0;
}

.ds-property-detail__related {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid #dce7e8;
}

.ds-property-detail__related-heading {
  margin-bottom: 1.75rem;
}

.ds-property-detail__related-heading p {
  margin: 0 0 0.4rem;
  color: var(--ds-brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ds-property-detail__related-heading h2 {
  margin: 0;
  color: var(--ds-brand-dark);
  font-family: var(--ds-font-serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

/* Compact sidebar form: prevents tall controls and horizontal overflow. */
.ds-property-detail__contact-card .ds-contact__grid {
  gap: 0.7rem;
}

.ds-property-detail__contact-card .ds-contact__field,
.ds-property-detail__contact-card .ds-contact__actions {
  margin: 0;
}

.ds-property-detail__contact-card .ds-contact__label {
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
}

.ds-property-detail__contact-card .ds-contact__input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.ds-property-detail__contact-card .ds-contact__textarea {
  min-height: 86px;
  resize: vertical;
}

.ds-property-detail__contact-card .ds-contact__field--terms {
  font-size: 0.76rem;
  line-height: 1.35;
}

.ds-property-detail__contact-card .ds-contact__actions {
  margin-top: 0.85rem;
}

.ds-property-detail__contact-card .ds-contact__submit {
  min-height: 42px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .ds-property-detail__layout {
    grid-template-columns: 1fr;
  }

  .ds-property-detail__sidebar {
    position: static;
  }

  .ds-property-detail__contact-card {
    max-width: 640px;
  }

  .ds-property-detail .activimmo-detail__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ds-property-detail__heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .ds-property-detail__price {
    text-align: left;
  }

  .ds-property-detail .activimmo-detail__features {
    grid-template-columns: 1fr;
  }

}

.ds-hero__elementor-content .elementor-heading-title,
.ds-hero__elementor-content .elementor-widget-text-editor {
  color: #fff;
}

/* Elementor block sits above search inside the cover */
.ds-hero__elementor-content {
  width: min(100%, 920px);
  margin: 0 auto;
  color: #fff;
}

.ds-hero__elementor-content .elementor-section,
.ds-hero__elementor-content .e-con,
.ds-hero__elementor-content .elementor-widget-wrap {
  background: transparent !important;
}

.ds-hero__elementor-content .elementor-heading-title,
.ds-hero__elementor-content h1,
.ds-hero__elementor-content h2,
.ds-hero__elementor-content h3 {
  margin: 0 auto;
  color: #fff !important;
  font-family: var(--ds-font-serif);
  font-size: var(--ds-hero-title-size);
  font-weight: var(--ds-hero-title-weight);
  font-style: italic;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-shadow: 0 8px 28px rgb(0 0 0 / 28%);
}

.ds-hero__elementor-content p,
.ds-hero__elementor-content .elementor-widget-text-editor {
  margin: 12px auto 0;
  max-width: 42ch;
  color: rgb(255 255 255 / 92%) !important;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  text-shadow: 0 4px 18px rgb(0 0 0 / 25%);
}

.ds-hero__elementor-content a {
  color: #fff;
}

/* Home Cover — Elementor dropzone h1 (lock to theme title scale, 64px max). */
.ds-hero--home.ds-hero--elementor-cover .ds-hero__elementor-dropzone h1,
.ds-hero--home.ds-hero--elementor-cover .ds-hero__elementor-dropzone .elementor-widget-heading h1.elementor-heading-title {
  margin: 0 auto;
  color: #fff !important;
  font-family: var(--ds-font-serif);
  font-size: var(--ds-hero-title-size) !important;
  font-weight: var(--ds-hero-title-weight) !important;
  font-style: italic;
  max-width: min(100%, var(--ds-hero-title-max-width));
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-shadow: 0 8px 28px rgb(0 0 0 / 28%);
}

/* Page Cover — h1 slightly smaller than home / inner hero titles. */
.ds-hero--inner.ds-hero--elementor-cover .ds-hero__elementor-dropzone h1,
.ds-hero--inner.ds-hero--elementor-cover .ds-hero__elementor-dropzone .elementor-widget-heading h1.elementor-heading-title {
  margin: 0 auto;
  color: #fff !important;
  font-family: var(--ds-font-serif);
  font-size: var(--ds-hero-title-size-page) !important;
  font-weight: var(--ds-hero-title-weight) !important;
  font-style: italic;
  max-width: min(100%, var(--ds-hero-title-max-width));
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-shadow: 0 8px 28px rgb(0 0 0 / 28%);
}

.ds-hero__title {
  margin: 0;
  max-width: var(--ds-hero-title-max-width);
  font-family: var(--ds-font-serif);
  font-size: var(--ds-hero-title-size-inner);
  font-weight: var(--ds-hero-title-weight);
  font-style: italic;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-shadow: 0 8px 28px rgb(0 0 0 / 28%);
}

.ds-hero--inner .ds-hero__title {
  max-width: 32ch;
}

.ds-hero__subtitle {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgb(255 255 255 / 92%);
  text-shadow: 0 4px 18px rgb(0 0 0 / 25%);
}

/* Bottom white tab (home text + breadcrumbs on every inner page).
   Uses the same island gutter as the header chrome. */
.ds-hero__tab {
  align-self: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: fit-content;
  max-width: min(calc(100% - var(--ds-hero-island-gutter)), var(--ds-content-width));
  min-width: min(280px, 100%);
  margin-inline: auto;
  padding: 14px 28px 16px;
  background: var(--ds-bg);
  border-radius: 22px 22px 0 0;
  text-align: center;
}

.ds-hero__tab-join {
  position: absolute;
  bottom: 0;
  width: var(--ds-tab-join);
  height: var(--ds-tab-join);
  line-height: 0;
  pointer-events: none;
  transform: scaleY(-1);
}

.ds-hero__tab-join--left {
  left: calc(-1 * var(--ds-tab-join));
}

.ds-hero__tab-join--right {
  right: calc(-1 * var(--ds-tab-join));
  transform: scale(-1, -1);
}

.ds-hero__tab-join img {
  display: block;
  width: 100%;
  height: 100%;
}

.ds-hero__tab-text,
.ds-hero__breadcrumb,
.ds-hero__tab .elementor-widget-text-editor p {
  margin: 0;
  color: var(--ds-brand);
  font-size: 0.98rem;
  font-weight: 600;
}

.ds-hero__breadcrumb {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.ds-hero__tab .elementor-element,
.ds-hero__tab .elementor-widget,
.ds-hero__tab .elementor-widget-container {
  margin: 0;
  padding: 0;
}

.ds-hero__breadcrumb a {
  color: var(--ds-brand);
  text-decoration: none;
}

.ds-hero__breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ds-hero__breadcrumb-sep {
  opacity: 0.7;
}

/* -------------------------------------------------------------------------
   Content / footer
--------------------------------------------------------------------------- */

.ds-site-main { min-height: 40vh; }
.ds-content { padding-block: 56px; }
.ds-content--narrow { max-width: 840px; }
.ds-page-header { margin-bottom: 32px; }
.ds-page-title {
  margin: 0;
  color: var(--ds-ink);
  font-family: var(--ds-font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
}
.ds-entry-content::after { display: table; clear: both; content: ""; }

.ds-post-card { padding: 28px 0; border-bottom: 1px solid #e5e7eb; }
.ds-post-card:first-child { padding-top: 0; }
.ds-post-card__title { margin: 0 0 8px; font-size: 1.6rem; }
.ds-post-card__title a { color: var(--ds-ink); text-decoration: none; }
.ds-post-card__meta { margin-bottom: 14px; color: var(--ds-muted); font-size: .9rem; }

/* Blog cards (slider) — same media chrome as property cards */
.ds-blog-card {
  --ds-card-surface: #ffffff;
  --ds-card-join: 20px;
  min-width: 0;
  height: 100%;
  padding: 10px 10px 28px;
  border-radius: 24px;
  background: var(--ds-card-surface);
  box-shadow: 0 4px 16px rgb(15 40 45 / 10%);
}

.ds-blog-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.ds-blog-card:hover .ds-property-card__image {
  transform: scale(1.04);
}

.ds-blog-card__updated {
  display: block;
  padding: 6px 14px;
  border: 2px solid var(--ds-brand);
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-family: var(--ds-font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.ds-blog-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 0;
  text-align: center;
}

.ds-blog-card__title {
  margin: 0;
  color: var(--ds-brand);
  font-family: var(--ds-font-sans);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
}

.ds-blog-card__excerpt {
  margin: 0;
  color: var(--ds-ink);
  font-family: var(--ds-font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
}

.ds-site-footer {
  padding: 10px;
  color: #fff;
  background: var(--ds-bg);
}

.ds-footer-panel {
  --ds-footer-join: 20px;
  position: relative;
  padding: clamp(72px, 8vw, 100px) clamp(28px, 6vw, 88px) 12px;
  overflow: visible;
  border-radius: 20px;
  background: var(--ds-brand);
}

/* White logo notch + SVG scoops along the square top edge. */
.ds-footer-logo-island {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px 8px;
  background: var(--ds-bg);
  border-radius: 0 0 999px 999px;
  transform: translate(-50%, 0);
}

.ds-footer-logo-join {
  position: absolute;
  top: 0;
  width: var(--ds-footer-join);
  height: var(--ds-footer-join);
  line-height: 0;
  pointer-events: none;
}

.ds-footer-logo-join--left {
  left: calc(-1 * var(--ds-footer-join));
}

.ds-footer-logo-join--right {
  right: calc(-1 * var(--ds-footer-join));
  transform: scaleX(-1);
}

.ds-footer-logo-join img {
  display: block;
  width: 100%;
  height: 100%;
}

.ds-footer-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ds-brand);
}

.ds-footer-logo .custom-logo-link,
.ds-footer-logo .custom-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.ds-footer-logo .custom-logo {
  border-radius: 50%;
  object-fit: contain;
}

.ds-footer-logo__fallback {
  color: #fff;
  font-family: var(--ds-font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.ds-footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 76px);
  width: min(100%, 1320px);
  min-height: 160px;
  margin-inline: auto;
}

.ds-footer-widget {
  margin: 0;
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.65;
}

.ds-footer-widget__title,
.ds-footer-widget .wp-block-heading {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--ds-font-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-style: italic;
  font-weight: 500;
}

.ds-footer-widget ul,
.ds-footer-widget .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-footer-widget a {
  color: #fff;
  text-decoration: none;
}

.ds-footer-widget a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ds-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1320px);
  margin: 36px auto 0;
  font-size: 0.72rem;
}

.ds-copyright,
.ds-footer-credit {
  margin: 0;
}

.ds-footer-credit a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .ds-footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ds-footer-panel {
    padding-inline: 24px;
  }

  .ds-footer-widgets {
    grid-template-columns: 1fr;
  }

  .ds-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 28px;
  }
}

.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 7px 12px; border: 1px solid #dbe2ea; border-radius: 4px; text-decoration: none; }
.page-numbers.current { color: #fff; border-color: var(--ds-brand); background: var(--ds-brand); }

/* DS card override for Activimmo's documented card template contract. */
.activimmo-grid.ds-property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

/* Listing toolbar + AJAX search (theme activimmo/card.php) */
.ds-listing,
.ds-listing-group {
  display: grid;
  gap: 18px;
}

.ds-listing.is-loading .ds-listing__results {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.ds-listing__search {
  position: relative;
  z-index: 40;
  width: 100%;
}

.ds-listing__search .ds-search--listing {
  max-width: none;
  width: 100%;
}

.ds-listing__search .ds-search--listing .ds-search__bar {
  background: #f4f8f9;
  border: 1px solid #d7e4e6;
  border-radius: 16px;
  box-shadow: none;
}

.ds-listing__search .ds-search__field {
  position: relative;
  z-index: 1;
}

.ds-listing__search .ds-search__field--open {
  z-index: 60;
}

.ds-listing__search .select2-container,
.ds-listing__search .select2-dropdown,
.ds-listing__search .select2-container--open {
  z-index: 70 !important;
}

.ds-listing__search .ds-search__field .select2-dropdown.ds-search-dropdown,
.select2-dropdown.ds-search-dropdown {
  z-index: 80 !important;
}

.ds-listing__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.ds-listing__count {
  margin: 0;
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: 1.25rem;
  font-weight: 700;
}

.ds-listing__sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.ds-listing__sort-label {
  color: var(--ds-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.ds-listing__sort-select {
  min-width: 160px;
  height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid #c9d6da;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7c86' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3.0 2.3z'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ds-ink);
  font-family: var(--ds-font-sans);
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
}

.ds-listing__sort-select:focus {
  outline: 2px solid var(--ds-brand);
  outline-offset: 2px;
}

.activimmo-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.activimmo-pagination__link,
.activimmo-pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  color: var(--ds-ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.activimmo-pagination__current {
  color: #fff;
  border-color: var(--ds-brand);
  background: var(--ds-brand);
}

.activimmo-pagination__link:hover {
  border-color: var(--ds-brand);
  color: var(--ds-brand-dark);
}

.activimmo-empty {
  grid-column: 1 / -1;
  margin: 12px 0;
  color: var(--ds-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .ds-listing__toolbar {
    align-items: stretch;
  }

  .ds-listing__sort {
    width: 100%;
    justify-content: space-between;
  }

  .ds-listing__sort-select {
    flex: 1;
    min-width: 0;
  }
}

.ds-property-card {
  --ds-card-surface: #ffffff;
  --ds-card-join: 20px;
  min-width: 0;
  padding: 10px 10px 28px;
  border-radius: 24px;
  background: var(--ds-card-surface);
  box-shadow: 0 4px 16px rgb(15 40 45 / 10%);
}

.ds-property-card__link {
  display: block;
  color: var(--ds-ink);
  text-decoration: none;
}

.ds-property-card__media {
  position: relative;
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
  /* Keep joins visible so cutouts can bleed into the card surface. */
  overflow: visible;
}

.ds-property-card__media-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #d7e4e6;
}

.ds-property-card__image,
.ds-property-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.ds-property-card__image {
  transition: transform 320ms ease;
}

.ds-property-card:hover .ds-property-card__image {
  transform: scale(1.04);
}

/* Beat the global `img { height: auto }` so crops stay equal across photos. */
.ds-property-card img.ds-property-card__image {
  height: 100%;
  max-height: 100%;
}

.ds-property-card__placeholder {
  background: linear-gradient(135deg, #dce8e9, #b8d3d7);
}

.ds-property-card__cutout {
  position: absolute;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-card-surface);
  transform: translateX(-50%);
}

.ds-property-card__cutout--mandate {
  top: -1px;
  padding: 7px 6px 6px;
  border-radius: 0 0 12px 12px;
}

.ds-property-card__cutout--price {
  --ds-card-join: 12px;
  bottom: -1px;
  width: fit-content;
  max-width: calc(100% - 24px);
  min-width: 0;
  padding: 6px 6px 7px;
  border-radius: 12px 12px 0 0;
}

.ds-property-card__cutout-join {
  position: absolute;
  width: var(--ds-card-join);
  height: var(--ds-card-join);
  line-height: 0;
  pointer-events: none;
}

.ds-property-card__cutout-join img {
  display: block;
  width: 100%;
  height: 100%;
}

.ds-property-card__cutout--mandate .ds-property-card__cutout-join {
  top: 0;
}

/* +1px overlap kills the hairline seam against the cutout body. */
.ds-property-card__cutout--mandate .ds-property-card__cutout-join--left {
  left: calc(-1 * var(--ds-card-join) + 1px);
}

.ds-property-card__cutout--mandate .ds-property-card__cutout-join--right {
  right: calc(-1 * var(--ds-card-join) + 1px);
  transform: scaleX(-1);
}

.ds-property-card__cutout--price .ds-property-card__cutout-join {
  bottom: 0;
}

.ds-property-card__cutout--price .ds-property-card__cutout-join--left {
  left: calc(-1 * var(--ds-card-join) + 1px);
  transform: scaleY(-1);
}

.ds-property-card__cutout--price .ds-property-card__cutout-join--right {
  right: calc(-1 * var(--ds-card-join) + 1px);
  transform: scale(-1, -1);
}

.ds-property-card__mandate {
  display: block;
  padding: 5px 24px;
  border: 2px solid var(--ds-brand);
  border-radius: 12px;
  color: #111;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.ds-property-card__price {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ds-brand);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.ds-property-card__body {
  display: grid;
  gap: 10px;
  padding: 0 4px 2px;
}

.ds-property-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
}

.ds-property-card__title {
  margin: 0;
  color: #111;
  font-family: var(--ds-font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ds-property-card__type,
.ds-property-card__location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-property-card svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ds-brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.ds-property-card__facts svg {
  width: 18px;
  height: 18px;
}

.ds-property-card__facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
}

.ds-property-card__facts span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #111;
  font-size: 16px;
  white-space: nowrap;
}

/* Property card slider — 3 / 2 / 1 */
.ds-property-slider {
  --ds-slider-gap: clamp(10px, 1.8vw, 16px);
  --ds-slider-per-view: 3;
  width: 100%;
}

.ds-property-slider__shell {
  position: relative;
  width: 100%;
}

.ds-property-slider__viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  /* Room for card shadows so overflow:hidden does not clip them */
  padding: 10px 8px 20px;
  touch-action: pan-y;
  cursor: grab;
}

.ds-property-slider__viewport:active {
  cursor: grabbing;
}

.ds-property-slider__track {
  display: flex;
  gap: var(--ds-slider-gap);
  will-change: transform;
}

.ds-property-slider__slide {
  flex: 0 0 calc((100% - (var(--ds-slider-per-view) - 1) * var(--ds-slider-gap)) / var(--ds-slider-per-view));
  min-width: 0;
}

.ds-property-slider__slide .ds-property-card {
  height: 100%;
}

.ds-property-slider__slide .ds-blog-card {
  height: 100%;
}

.ds-property-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ds-brand);
  color: #fff;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(26 43 51 / 18%);
  transform: translateY(-50%);
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.ds-property-slider__nav-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.ds-property-slider__nav--prev {
  left: 0;
}

.ds-property-slider__nav--next {
  right: 0;
}

.ds-property-slider__nav:hover:not(:disabled) {
  background: var(--ds-brand-dark);
}

.ds-property-slider__nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.ds-property-slider__nav[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.ds-property-slider__bullets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

.ds-property-slider__bullets[hidden] {
  display: none;
}

.ds-property-slider__bullet {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid var(--ds-brand);
  border-radius: 50%;
  background: #d9d9d9;
  cursor: pointer;
  appearance: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.ds-property-slider__bullet::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background 160ms ease;
}

.ds-property-slider__bullet.is-active {
  background: #fff;
}

.ds-property-slider__bullet.is-active::after {
  background: var(--ds-brand);
}

.ds-property-slider__bullet:focus-visible {
  outline: 2px solid var(--ds-brand);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .activimmo-grid.ds-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-property-card__media {
    height: 230px;
  }

  .ds-property-slider {
    --ds-slider-per-view: 2;
  }
}

@media (max-width: 620px) {
  .activimmo-grid.ds-property-grid {
    grid-template-columns: 1fr;
  }

  .ds-property-card__media {
    height: 210px;
  }

  .ds-property-slider {
    --ds-slider-per-view: 1;
  }

  .ds-property-slider__nav {
    width: 48px;
    height: 48px;
  }

  .ds-property-slider__nav-icon {
    width: 24px;
    height: 24px;
  }

  .ds-property-slider__nav--prev { left: 0; }
  .ds-property-slider__nav--next { right: 0; }

  .ds-property-slider__bullets {
    gap: 10px;
    margin-top: 8px;
  }

  .ds-property-slider__bullet {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
  }

  .ds-property-slider__bullet::after {
    width: 6px;
    height: 6px;
  }

  .ds-property-slider__bullet:focus-visible {
    outline-offset: 2px;
  }
}

/* Reviews / testimonials slider — one card per view (count = slides in track) */
.ds-reviews-slider {
  --ds-reviews-count: 1;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
}

.ds-reviews-slider__shell {
  position: relative;
  width: 100%;
}

.ds-reviews-slider__viewport {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden !important;
  touch-action: pan-y;
  cursor: grab;
}

.ds-reviews-slider__viewport:active {
  cursor: grabbing;
}

.ds-reviews-slider__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  will-change: transform;
}

.ds-reviews-slider__slide {
  box-sizing: border-box;
  flex-grow: 0;
  flex-shrink: 0;
  min-width: 0;
  padding-inline: 64px;
}

.ds-review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 220px;
  margin: 0;
  padding: 2.75rem 1.25rem 2rem;
  text-align: center;
}

.ds-review-card__quote {
  position: absolute;
  top: 0.15rem;
  left: 0.35rem;
  font-family: var(--ds-font-serif);
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ds-brand);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}

.ds-review-card__text {
  margin: 0 auto;
  max-width: 36em;
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

.ds-review-card__name {
  display: block;
  margin: 0 auto;
  color: var(--ds-ink);
  font-family: var(--ds-font-serif);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

@media (max-width: 620px) {
  .ds-reviews-slider__slide {
    padding-inline: 48px;
  }

  .ds-review-card {
    min-height: 200px;
    padding: 2.4rem 0.75rem 1.6rem;
  }
}

/* -------------------------------------------------------------------------
   FAQs accordion
--------------------------------------------------------------------------- */

.ds-faqs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ds-faqs__item {
  background: #fff;
  border: 1px solid rgb(26 43 51 / 6%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(15 40 45 / 8%);
  overflow: hidden;
}

.ds-faqs__question {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
}

.ds-faqs__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 1.15rem 1.25rem;
  border: 0;
  background: transparent;
  color: var(--ds-ink);
  font-family: var(--ds-font-sans);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.ds-faqs__trigger:hover,
.ds-faqs__trigger:focus-visible {
  color: var(--ds-brand-dark);
  outline: none;
}

.ds-faqs__question-text {
  flex: 1 1 auto;
}

.ds-faqs__icon {
  flex: 0 0 auto;
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ds-brand);
}

.ds-faqs__icon::before,
.ds-faqs__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ds-faqs__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ds-faqs__item.is-open .ds-faqs__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.ds-faqs__panel {
  overflow: hidden;
}

.ds-faqs__answer {
  padding: 0 1.25rem 1.2rem;
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: 0.98rem;
  line-height: 1.7;
}

.ds-faqs__answer p {
  margin: 0 0 0.75em;
}

.ds-faqs__answer p:last-child {
  margin-bottom: 0;
}

.ds-post-card__meta--hero { margin-bottom: 1.25rem; }
.archive-description--hero { margin-bottom: 1.5rem; }

.elementor-page .ds-entry-content { margin: 0; }
body.elementor-template-full-width .ds-site-main > .ds-content { width: 100%; max-width: none; padding: 0; }
body.ds-has-hero-header.elementor-page .ds-site-main { padding-top: 0; }

/* -------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */

@media (max-width: 1052px) {
  .ds-hero {
    --ds-hero-radius: 20px;
    --ds-chrome-h: 70px;
    --ds-chrome-inset: 0px;
    /* Keep desktop island gutter for header + breadcrumb tab. */
  }

  .ds-hero__chrome-inner {
    padding: 8px 16px;
    gap: 12px;
  }

  .ds-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  .ds-hero__switchers {
    display: none;
  }

  .ds-navigation {
    display: none;
    position: absolute;
    z-index: 40;
    top: calc(100% - var(--ds-scoop) + 8px);
    left: 12px;
    right: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgb(15 40 45 / 16%);
  }

  .ds-navigation.is-open { display: block; }

  .ds-primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .ds-primary-menu > .menu-item > a {
    display: block;
    min-height: 0;
    padding: 10px 8px;
  }

  .ds-primary-menu a {
    display: block;
    padding: 10px 8px;
  }

  .ds-primary-menu .menu-item-has-children > .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    margin: 0 0 8px;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .ds-primary-menu .menu-item-has-children > .sub-menu::before {
    display: none;
  }

  .ds-primary-menu .sub-menu a {
    padding: 8px;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .ds-hero__switchers {
    gap: 6px;
  }

  .ds-switcher__btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
}
