:root {
  --charcoal: #151515;
  --charcoal-soft: #242424;
  --ivory: #faf8f4;
  --stone: #e7e0d4;
  --stone-light: #f1ede6;
  --white: #ffffff;
  --gold: #b08a4a;
  --sage: #53685a;
  --text-muted: #5f5a52;
  --border: #ded6c8;
  --shadow: 0 18px 48px rgba(21, 21, 21, 0.09);
  --shadow-hover: 0 22px 58px rgba(21, 21, 21, 0.14);
  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "Inter", Arial, sans-serif;
  --container: 1180px;
  --radius: 8px;
}

html:lang(ar),
html:lang(fa) {
  --heading-font: Tahoma, Arial, sans-serif;
  --body-font: Tahoma, Arial, sans-serif;
}

html:lang(zh),
html:lang(yue) {
  --heading-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --body-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

html:lang(hi),
html:lang(ne),
html:lang(pa),
html:lang(bn),
html:lang(ta),
html:lang(te) {
  --heading-font: "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Gurmukhi", "Noto Sans Tamil", "Noto Sans Telugu", Arial, sans-serif;
  --body-font: "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Gurmukhi", "Noto Sans Tamil", "Noto Sans Telugu", Arial, sans-serif;
}

html:lang(ka),
html:lang(hy),
html:lang(kk) {
  --heading-font: "Noto Sans Georgian", "Noto Sans Armenian", Arial, sans-serif;
  --body-font: "Noto Sans Georgian", "Noto Sans Armenian", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--ivory);
  font-family: var(--body-font);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(250, 248, 244, 0.94);
  border-bottom: 1px solid rgba(222, 214, 200, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.2;
  font-weight: 800;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: clamp(30px, 4.2vw, 48px);
  height: auto;
}

.brand-text {
  display: inline-block;
  min-width: 0;
  max-width: min(58vw, 360px);
  color: var(--charcoal);
  font-family: var(--heading-font);
  font-size: clamp(0.72rem, 1.35vw, 1.12rem);
  font-weight: 800;
  line-height: 1.25;
  padding-bottom: 0.08em;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  transform-origin: left center;
}

html[dir="rtl"] .brand-text {
  transform-origin: right center;
}

.language-switcher {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 8px;
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.language-icon {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

.language-select {
  max-width: 118px;
  min-height: 28px;
  padding: 0;
  color: var(--charcoal);
  background: transparent;
  border: 0;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.language-select:focus {
  outline: 0;
}

.nav-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.main-nav {
  position: absolute;
  top: calc(100% + 1px);
  left: 16px;
  right: 16px;
  display: none;
  gap: 6px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-header[data-nav-open] .main-nav {
  display: grid;
}

.main-nav a,
.nav-dropdown summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg);
}

.nav-dropdown-menu {
  display: grid;
  gap: 4px;
  padding-left: 10px;
}

.main-nav a:hover,
.nav-dropdown summary:hover {
  color: var(--gold);
}

.main-nav a[aria-current="page"],
.nav-dropdown:has(a[aria-current="page"]) summary {
  color: var(--gold);
}

.nav-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-button:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.main-nav .nav-button:hover {
  color: var(--white);
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.button:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 14px 28px rgba(21, 21, 21, 0.14);
  transform: translateY(-1px);
}

.button:focus-visible,
.main-nav a:focus-visible,
.nav-dropdown summary:focus-visible,
.text-link:focus-visible,
.hero-points a:focus-visible {
  outline: 3px solid rgba(180, 141, 70, 0.34);
  outline-offset: 3px;
}

.button-primary {
  color: var(--white);
  background: var(--charcoal);
  box-shadow: 0 12px 24px rgba(21, 21, 21, 0.13);
}

.button-primary:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.78);
}

.button-secondary:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.button-small {
  min-height: 40px;
  padding: 10px 15px;
  color: var(--white);
  background: var(--charcoal);
}

.button-small:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.button-light {
  color: var(--charcoal);
  background: var(--stone-light);
  border-color: var(--border);
}

.button-light:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Typography */
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading-font);
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: 2rem;
  font-weight: 650;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 650;
}

p {
  margin: 0;
}

/* Hero */
.hero {
  min-height: 540px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.84), rgba(21, 21, 21, 0.46) 58%, rgba(21, 21, 21, 0.25)),
    url("images/unsplash/photo-1600585154340-be6161a56a0c.jpg") center / cover no-repeat;
}

/* Interior page hero */
.page-hero {
  min-height: 500px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.9), rgba(21, 21, 21, 0.55) 62%, rgba(21, 21, 21, 0.28)),
    url("images/unsplash/photo-1518005020951-eccb494ad742.jpg") center / cover no-repeat;
}

.services-hero {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.9), rgba(21, 21, 21, 0.55) 62%, rgba(21, 21, 21, 0.28)),
    url("images/unsplash/photo-1615873968403-89e068629265.jpg") center / cover no-repeat;
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.9), rgba(21, 21, 21, 0.56) 62%, rgba(21, 21, 21, 0.32)),
    url("images/unsplash/photo-1524758631624-e2822e304c36.jpg") center / cover no-repeat;
}

.properties-hero {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.9), rgba(21, 21, 21, 0.58) 62%, rgba(21, 21, 21, 0.26)),
    url("images/unsplash/photo-1600585154084-4e5fe7c39198.jpg") center / cover no-repeat;
}

.careers-hero {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.9), rgba(21, 21, 21, 0.58) 62%, rgba(21, 21, 21, 0.26)),
    url("images/unsplash/photo-1493809842364-78817add7ffb.jpg") center / cover no-repeat;
}

body[data-page="quick-sale"] .page-hero {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.92), rgba(21, 21, 21, 0.6) 56%, rgba(21, 21, 21, 0.2)),
    url("images/generated/quick-sale-property-keys-money.jpg") center / cover no-repeat;
}

.page-hero-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 86px 0 58px;
}

.page-hero-content h1,
.page-hero-content .eyebrow,
.page-hero-content .button-row {
  max-width: 760px;
}

.page-hero-content p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-layout {
  padding: 86px 0 58px;
}

.hero-copy {
  max-width: 760px;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points a {
  display: block;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-points a:hover,
.hero-points a:focus-visible {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* Programmatic SEO pages */
.seo-page .site-header {
  align-items: center;
}

.seo-language-switcher {
  flex: 0 0 auto;
  margin-left: 8px;
  margin-right: 8px;
}

.seo-static-nav {
  position: static;
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.seo-static-nav a {
  min-height: 40px;
  padding: 8px 10px;
}

.seo-static-nav .nav-button {
  color: var(--white);
}

.seo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
}

.seo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(21, 21, 21, 0.91), rgba(21, 21, 21, 0.62) 62%, rgba(21, 21, 21, 0.3));
}

.seo-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.seo-hero .page-hero-content {
  position: relative;
  z-index: 2;
}

.seo-page-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.seo-summary-panel,
.seo-info-block,
.seo-link-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.seo-summary-panel {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 24px;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.breadcrumb-nav a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--gold-light);
}

.local-guide-nav {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.local-guide-links {
  display: grid;
  gap: 8px;
}

.local-guide-link,
.local-guide-back {
  display: block;
  border-radius: 14px;
  text-decoration: none;
}

.local-guide-link {
  padding: 10px 12px;
  color: var(--charcoal);
  background: var(--stone-light);
  border: 1px solid var(--border);
  font-weight: 850;
}

.local-guide-link:hover {
  color: var(--charcoal);
  border-color: rgba(180, 141, 70, 0.55);
  background: rgba(180, 141, 70, 0.12);
}

.local-guide-back {
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.seo-summary-panel h2,
.seo-summary-panel p,
.seo-summary-panel a,
.seo-info-block h2,
.seo-info-block p {
  min-width: 0;
  max-width: 100%;
}

.seo-summary-panel p:not(.eyebrow),
.seo-info-block p {
  color: var(--text-muted);
}

.seo-copy-stack {
  display: grid;
  gap: 18px;
}

.seo-info-block {
  padding: 24px;
}

.seo-info-block:hover,
.seo-link-card:hover {
  border-color: rgba(180, 141, 70, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.seo-info-block h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.seo-info-block p + p {
  margin-top: 12px;
}

.seo-info-block ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.seo-info-block li {
  padding: 7px 10px;
  color: var(--charcoal);
  background: var(--stone-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.seo-link-grid {
  display: grid;
  gap: 14px;
}

.seo-link-card {
  display: flex;
  min-height: 76px;
  align-items: center;
  padding: 18px;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 850;
}

.seo-link-card:visited {
  color: var(--charcoal);
}

.trust-strip {
  color: var(--white);
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-strip-grid {
  display: grid;
}

.trust-strip span {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.trust-strip span:last-child {
  border-bottom: 0;
}

.lead-magnet-section {
  background: var(--ivory);
}

.lead-magnet-layout,
.coverage-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.lead-magnet-layout > div:first-child,
.coverage-layout > div:first-child {
  max-width: 720px;
}

.lead-magnet-layout p:not(.eyebrow),
.coverage-layout p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 1.03rem;
}

.lead-magnet-actions {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lead-magnet-actions:hover {
  border-color: rgba(180, 141, 70, 0.42);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.money-link-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.money-link-list .seo-link-card {
  min-height: 54px;
}

.coverage-section {
  border-top: 1px solid var(--border);
}

.coverage-links {
  display: grid;
  gap: 26px;
}

.coverage-links h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.coverage-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Shared sections */
.section {
  padding: 68px 0;
}

.section-soft {
  background: var(--stone);
}

.section-dark {
  color: var(--white);
  background: var(--charcoal);
}

.two-column,
.trust-layout,
.faq-layout,
.final-cta-layout,
.proof-layout {
  display: grid;
  gap: 30px;
}

.rich-text {
  display: grid;
  gap: 16px;
  max-width: 700px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.rich-text .button {
  margin-top: 8px;
  justify-self: start;
}

/* Services page */
.intro-panel {
  display: grid;
  gap: 30px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intro-panel:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.service-path-grid {
  display: grid;
  gap: 18px;
}

.path-card {
  display: grid;
  min-height: 220px;
  align-content: start;
  padding: 26px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.path-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.path-card span {
  margin-bottom: 32px;
  color: var(--gold);
  font-weight: 800;
}

.path-card p {
  color: var(--text-muted);
}

.careers-layout {
  display: grid;
  gap: 30px;
  align-items: start;
}

.section-lead {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.career-card-grid {
  display: grid;
  gap: 16px;
}

.career-card {
  display: grid;
  min-height: 190px;
  align-content: start;
  padding: 24px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.career-card:hover {
  border-color: rgba(180, 141, 70, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.career-card span {
  margin-bottom: 22px;
  color: var(--gold);
  font-weight: 800;
}

.career-card p,
.careers-application-copy p:not(.eyebrow),
.file-help {
  color: var(--text-muted);
}

.careers-application-layout {
  align-items: start;
}

.careers-application-copy {
  display: grid;
  gap: 14px;
}

.service-detail {
  display: grid;
  gap: 28px;
  align-items: start;
}

.service-detail-copy {
  position: static;
}

.service-lead {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.service-detail-card {
  display: grid;
  gap: 26px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-detail-card:hover {
  border-color: rgba(180, 141, 70, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.service-meta-grid {
  display: grid;
  gap: 16px;
}

.service-meta-grid div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.service-meta-grid p,
.service-detail-card p {
  color: var(--text-muted);
}

.included-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
}

.included-list li::before {
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.why-box {
  padding: 22px;
  background: var(--stone-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-box:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* Properties search page */
.properties-search-section {
  background: var(--ivory);
}

.properties-layout {
  display: grid;
  gap: 26px;
}

.filters-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filters-panel:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.filters-panel-heading {
  margin-bottom: 18px;
}

.filters-panel-heading h2 {
  font-size: 1.85rem;
}

.property-filters {
  display: grid;
  gap: 20px;
}

.property-filters label,
.property-filters legend {
  color: var(--charcoal);
  font-weight: 800;
}

.filter-basic-grid,
.filter-secondary-grid,
.advanced-filters {
  display: grid;
  gap: 14px;
}

.filter-control {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.property-filters input,
.property-filters select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.property-filters input:hover,
.property-filters select:hover {
  background: var(--white);
  border-color: var(--gold);
}

.property-filters input::placeholder {
  color: var(--text-muted);
}

.range-fieldset,
.rooms-fieldset,
.recency-fieldset,
.amenity-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  padding-right: 58px;
}

.input-with-suffix span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--text-muted);
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}

.room-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.room-options label,
.amenity-fieldset label {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--text-muted);
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.room-options label:hover,
.amenity-fieldset label:hover {
  color: var(--charcoal);
  background: var(--white);
  border-color: var(--gold);
}

.room-options span,
.amenity-fieldset span {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(0.78rem, 1.5vw, 0.96rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: normal;
}

.room-options input,
.amenity-fieldset input {
  position: absolute;
  opacity: 0;
}

.room-options label:has(input:checked),
.amenity-fieldset label:has(input:checked) {
  color: var(--charcoal);
  background: var(--white);
  border-color: var(--gold);
}

.filter-main-actions {
  display: grid;
  gap: 12px;
  align-items: center;
}

.text-reset-button {
  min-height: 44px;
  padding: 0;
  color: var(--charcoal);
  background: transparent;
  border: 0;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.text-reset-button:hover {
  color: var(--gold);
}

.advanced-toggle {
  color: var(--charcoal);
  background: var(--white);
  border-color: var(--gold);
}

.advanced-toggle[aria-expanded="true"] {
  border-color: #1f7f8c;
  box-shadow: inset 0 0 0 1px #1f7f8c;
}

.search-button {
  min-height: 54px;
}

.advanced-filters {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.advanced-filters[hidden] {
  display: none;
}

.recency-options {
  display: grid;
  gap: 12px;
}

.recency-options label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
  font-weight: 700;
}

.recency-options input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--gold);
}

.properties-results-area {
  min-width: 0;
}

.results-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.results-toolbar h2 {
  margin-bottom: 0;
}

.results-count {
  justify-self: start;
  padding: 8px 12px;
  color: var(--charcoal);
  background: var(--stone-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 800;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.per-page-control {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 5px 6px 5px 12px;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.per-page-control:hover,
.per-page-control:focus-within {
  border-color: rgba(180, 141, 70, 0.62);
  box-shadow: 0 12px 28px rgba(180, 141, 70, 0.16);
  transform: translateY(-2px);
}

.per-page-control select {
  min-height: 30px;
  padding: 3px 28px 3px 9px;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 900;
}

.properties-results-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.listing-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-card:hover {
  border-color: rgba(180, 141, 70, 0.36);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.listing-card-highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 141, 70, 0.24), var(--shadow);
}

.listing-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}

.listing-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-no-photo {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  color: rgba(20, 27, 31, 0.72);
  background:
    linear-gradient(135deg, rgba(180, 141, 70, 0.12), rgba(184, 105, 69, 0.08)),
    var(--stone);
  border: 1px solid rgba(180, 141, 70, 0.28);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.listing-no-photo::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(184, 105, 69, 0.32);
  border-radius: 14px;
}

.listing-no-photo::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 50%;
  width: 140%;
  height: 36px;
  background: rgba(184, 105, 69, 0.13);
  transform: rotate(-12deg);
}

.listing-no-photo > * {
  position: relative;
  z-index: 1;
}

.listing-no-photo-kicker {
  display: block;
  margin-bottom: 6px;
  color: rgba(184, 105, 69, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.listing-no-photo strong {
  display: block;
  color: var(--charcoal);
  font-size: 1rem;
}

.property-no-photo {
  aspect-ratio: 4 / 3;
}

.listing-photo-strip {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.listing-photo-strip::-webkit-scrollbar {
  display: none;
}

.listing-photo-strip img {
  width: 100%;
  height: 100%;
}

.listing-photo-open {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.listing-photo-open img {
  transition: transform 0.28s ease, filter 0.28s ease;
}

.listing-photo-open:hover img,
.listing-photo-open:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.listing-photo-open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.listing-zoom-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(20, 27, 31, 0.82), rgba(20, 27, 31, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.listing-zoom-tag::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1.6px solid currentColor;
  border-radius: 999px;
  box-shadow: 5px 5px 0 -3px currentColor;
}

.listing-photo-open:hover .listing-zoom-tag,
.listing-photo-open:focus-visible .listing-zoom-tag {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .listing-zoom-tag {
    opacity: 1;
    transform: none;
  }
}

.listing-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: rgba(20, 27, 31, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.listing-photo-nav::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(255, 255, 255, 0.94);
  border-right: 2px solid rgba(255, 255, 255, 0.94);
}

.listing-photo-nav-prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.listing-photo-nav-next::before {
  transform: translateX(-2px) rotate(45deg);
}

.listing-photo-nav:hover,
.listing-photo-nav:focus-visible {
  background: rgba(20, 27, 31, 0.46);
  border-color: rgba(255, 255, 255, 0.68);
  outline: none;
}

.listing-photo-nav-prev {
  left: 10px;
}

.listing-photo-nav-next {
  right: 10px;
}

.listing-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 9px;
  color: var(--white);
  background: rgba(20, 27, 31, 0.72);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

body.listing-lightbox-open,
body.listing-share-open {
  overflow: hidden;
}

.listing-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(8, 10, 11, 0.82);
  backdrop-filter: blur(14px);
}

.listing-lightbox-frame {
  position: relative;
  display: grid;
  width: min(1120px, 94vw);
  max-height: 92vh;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(220, 198, 151, 0.34);
  border-radius: 24px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48);
}

.listing-lightbox-frame img {
  display: block;
  width: 100%;
  max-height: min(76vh, 820px);
  object-fit: contain;
  background: #101010;
}

.listing-lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(17, 17, 17, 0.9));
  font-size: 0.88rem;
}

.listing-lightbox-caption strong {
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 1.08rem;
}

.listing-lightbox-counter {
  margin-left: auto;
  color: rgba(220, 198, 151, 0.92);
  font-weight: 850;
}

.listing-lightbox-close,
.listing-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(20, 27, 31, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.listing-lightbox-close:hover,
.listing-lightbox-close:focus-visible,
.listing-lightbox-nav:hover,
.listing-lightbox-nav:focus-visible {
  background: rgba(20, 27, 31, 0.78);
  border-color: rgba(220, 198, 151, 0.72);
  outline: none;
}

.listing-lightbox-close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  line-height: 1;
}

.listing-lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}

.listing-lightbox-prev {
  left: 14px;
}

.listing-lightbox-next {
  right: 14px;
}

.listing-lightbox-nav::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.listing-lightbox-prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.listing-lightbox-next::before {
  transform: translateX(-2px) rotate(45deg);
}

@media (max-width: 560px) {
  .listing-lightbox {
    padding: 12px;
  }

  .listing-lightbox-frame {
    width: 100%;
    border-radius: 18px;
  }

  .listing-lightbox-caption {
    display: grid;
    gap: 6px;
  }

  .listing-lightbox-counter {
    margin-left: 0;
  }
}

.listing-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 16px;
  padding: 22px;
}

.listing-body .button {
  align-self: end;
  justify-self: start;
}

.listing-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  color: var(--charcoal);
  background: var(--stone-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.listing-price {
  color: var(--charcoal);
  font-family: var(--heading-font);
  font-size: 1.55rem;
  line-height: 1.1;
}

.listing-price-per-meter {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 6px 10px;
  color: var(--gold-dark);
  background: rgba(180, 141, 70, 0.12);
  border: 1px solid rgba(180, 141, 70, 0.26);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
}

.listing-pill-floor {
  color: var(--gold-dark);
  background: rgba(180, 141, 70, 0.12);
  border-color: rgba(180, 141, 70, 0.32);
}

.listing-pill-reference {
  color: var(--charcoal);
  background: rgba(180, 141, 70, 0.16);
  border-color: rgba(180, 141, 70, 0.38);
  letter-spacing: 0.06em;
}

.listing-meta-price-meter {
  color: var(--charcoal);
  background: rgba(20, 27, 31, 0.045);
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 800;
}

.listing-source-details {
  display: grid;
  gap: 4px;
  padding-top: 2px;
  color: rgba(20, 27, 31, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.listing-source-row {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.listing-source-row strong {
  color: var(--charcoal);
  font-weight: 850;
}

.listing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing-features li {
  padding: 7px 9px;
  color: var(--text-muted);
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
}

.listing-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.listing-share-button {
  gap: 8px;
  color: var(--charcoal);
  background: var(--white);
  border-color: rgba(180, 141, 70, 0.38);
}

.listing-share-button .listing-share-icon {
  width: 19px;
  height: 19px;
}

.listing-share-button:hover {
  color: var(--white);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.listing-share-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 12, 14, 0.62);
  backdrop-filter: blur(12px);
}

.listing-share-panel {
  width: min(560px, 100%);
  padding: 24px;
  color: var(--charcoal);
  background: linear-gradient(145deg, var(--white), var(--ivory));
  border: 1px solid rgba(180, 141, 70, 0.28);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.listing-share-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.listing-share-header h3 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.listing-share-header p {
  color: var(--text-muted);
}

.listing-share-close {
  display: inline-grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--charcoal);
  background: rgba(20, 27, 31, 0.06);
  border: 1px solid rgba(20, 27, 31, 0.1);
  border-radius: 999px;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.listing-share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.listing-share-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(180, 141, 70, 0.26);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.listing-share-action:hover {
  color: var(--charcoal);
  background: rgba(180, 141, 70, 0.13);
  border-color: rgba(180, 141, 70, 0.48);
  transform: translateY(-1px);
}

.listing-share-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  color: currentColor;
}

.listing-share-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.listing-share-icon svg path[fill],
.listing-share-icon svg rect[fill],
.listing-share-icon svg circle[fill] {
  stroke: currentColor;
}

.listing-share-link-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.listing-share-link-row input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
}

.listing-share-status {
  min-height: 1.2em;
  margin-top: 8px;
  color: var(--gold-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

@media (max-width: 560px) {
  .listing-share-panel {
    padding: 20px;
  }

  .listing-share-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.empty-results {
  padding: 24px;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.properties-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 13px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pagination-button:hover,
.pagination-button:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 12px 26px rgba(180, 141, 70, 0.2);
  transform: translateY(-2px);
}

.pagination-button[aria-current="page"] {
  color: var(--white);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 42px;
  color: var(--text-muted);
  font-weight: 900;
  user-select: none;
}

@media (max-width: 520px) {
  .pagination-button {
    min-width: 36px;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.88rem;
  }

  .pagination-ellipsis {
    min-width: 20px;
    min-height: 36px;
  }
}

/* Direction support for Arabic and Farsi */
html[dir="rtl"] .language-switcher {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .included-list li {
  padding-right: 28px;
  padding-left: 0;
}

html[dir="rtl"] .included-list li::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .why-box {
  border-right: 4px solid var(--gold);
  border-left: 0;
}

html[dir="rtl"] .rich-text .button {
  justify-self: end;
}

/* About page */
.story-panel,
.proof-panel {
  display: grid;
  gap: 30px;
}

.mission-block,
.philosophy-block {
  max-width: 900px;
}

.founders-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 7%, rgba(180, 141, 70, 0.13), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(21, 21, 21, 0.055), transparent 24%),
    linear-gradient(135deg, #f8f4ec 0%, #fff 54%, #f7f1e6 100%);
}

.founders-section::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 2.4vw, 34px);
  border: 1px solid rgba(180, 141, 70, 0.16);
  border-radius: calc(var(--radius) + 18px);
  pointer-events: none;
}

.founders-layout {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.founders-heading {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: end;
  padding: clamp(26px, 4vw, 50px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(180, 141, 70, 0.22);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.founders-heading .eyebrow,
.founders-heading h2 {
  grid-column: 1;
}

.founders-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.founders-heading p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.78;
}

.section-heading.founders-heading {
  max-width: none;
  margin-bottom: 0;
}

.founder-principles {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.founder-principles li {
  padding: 10px 15px;
  border: 1px solid rgba(180, 141, 70, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(21, 21, 21, 0.04);
}

.founders-grid {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.founder-card {
  overflow: hidden;
  display: grid;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(180, 141, 70, 0.23);
  border-radius: calc(var(--radius) + 12px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.founder-card:hover {
  border-color: rgba(180, 141, 70, 0.5);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.founder-photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 0;
  margin: 0;
  background: linear-gradient(135deg, rgba(180, 141, 70, 0.18), rgba(255, 255, 255, 0.72));
}

.founder-photo-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.16));
  pointer-events: none;
}

.founder-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.founder-card-kamil .founder-photo-frame img {
  object-position: center 8%;
}

.founder-card-content {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(180, 141, 70, 0.16);
}

.founder-role {
  margin: 0;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.founder-card h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(1.9rem, 2.6vw, 2.55rem);
  line-height: 1.05;
}

.founder-card p:not(.founder-role) {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.76;
}

.founder-proof-list {
  display: grid;
  gap: 9px;
  margin: 6px 0 0;
  padding: 16px 0 0;
  color: var(--charcoal);
  border-top: 1px solid rgba(180, 141, 70, 0.18);
  list-style: none;
}

.founder-proof-list li {
  position: relative;
  padding-left: 18px;
  color: var(--charcoal);
  font-size: 0.94rem;
  line-height: 1.55;
}

.founder-proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 999px;
}

@media (max-width: 899px) {
  .founders-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .founders-heading .eyebrow,
  .founders-heading h2,
  .founders-heading p:not(.eyebrow),
  .founder-principles {
    grid-column: 1;
  }

  .founders-heading p:not(.eyebrow) {
    grid-row: auto;
  }
}

@media (max-width: 719px) {
  .founders-section::before {
    inset: 10px;
  }

  .founders-heading,
  .founder-card {
    border-radius: var(--radius);
  }

  .founder-photo-frame {
    aspect-ratio: 3 / 4;
  }

  .founder-principles li {
    font-size: 0.72rem;
    padding: 9px 12px;
  }
}

.mission-block,
.philosophy-block {
  max-width: 900px;
}

.mission-block p:not(.eyebrow),
.philosophy-block p {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.philosophy-block {
  display: grid;
  gap: 18px;
}

.audience-grid,
.values-grid,
.proof-grid {
  display: grid;
  gap: 18px;
  grid-auto-rows: 1fr;
}

.audience-card p {
  color: var(--text-muted);
}

.value-card {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.value-card:hover {
  border-color: rgba(180, 141, 70, 0.6);
  transform: translateY(-2px);
}

.value-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 800;
}

.value-card p {
  color: var(--text-muted);
}

.proof-panel > div:first-child p {
  max-width: 680px;
  color: var(--text-muted);
}

.proof-grid article {
  display: grid;
  align-content: start;
  min-height: 160px;
  padding: 24px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.proof-grid article:hover {
  border-color: rgba(180, 141, 70, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.proof-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--charcoal);
  font-family: var(--heading-font);
  font-size: 1.6rem;
  line-height: 1.1;
}

.proof-grid span {
  display: block;
  color: var(--text-muted);
}

.about-ai-panel .proof-grid {
  gap: 12px;
}

.about-ai-panel .proof-grid article {
  min-height: 112px;
  padding: 16px 18px;
  border-radius: 8px;
}

.about-ai-panel .proof-grid strong {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.about-ai-panel .proof-grid span {
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-details-panel {
  display: grid;
  gap: 24px;
  align-items: start;
}

.contact-details-panel > div:first-child p:not(.eyebrow) {
  max-width: 620px;
  color: var(--text-muted);
}

.contact-details-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-details-list div {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-details-list div:hover {
  border-color: rgba(180, 141, 70, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.contact-details-list dt {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.contact-details-list dd {
  margin: 0;
  color: var(--charcoal);
  font-weight: 800;
}

.contact-details-list dd a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(180, 141, 70, 0.5);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-details-list dd a:hover,
.contact-details-list dd a:focus-visible {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.03rem;
}

.section-heading-light p {
  color: rgba(255, 255, 255, 0.72);
}

/* Cards and services */
.service-grid,
.property-grid,
.benefit-grid,
.process-grid {
  display: grid;
  align-items: stretch;
  gap: 18px;
}

.card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.4vw, 32px);
  background: linear-gradient(180deg, #fff, rgba(250, 248, 244, 0.74));
  border: 1px solid rgba(222, 214, 200, 0.92);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 18px 46px rgba(21, 21, 21, 0.055);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(180, 141, 70, 0.34);
  box-shadow: 0 22px 54px rgba(21, 21, 21, 0.08);
  transform: translateY(-2px);
}

.card p {
  color: var(--text-muted);
  line-height: 1.68;
}

.icon-box {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--white);
  background: var(--sage);
  border-radius: 6px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  align-items: center;
  color: var(--gold);
  font-weight: 800;
}

.service-card .text-link {
  margin-top: auto;
  padding-top: 18px;
}

.text-link:hover {
  color: var(--charcoal);
}

/* Featured property carousel */
.featured-carousel {
  display: grid;
  gap: 14px;
}

.carousel-button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.carousel-button:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.carousel-button[hidden] {
  display: none;
}

/* Property cards */
.property-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: var(--charcoal);
  background: var(--white);
  border-radius: var(--radius);
}

.property-image-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.has-no-image-placeholder img {
  filter: none;
}

.no-image-placeholder-text {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: block;
  width: 124%;
  padding: clamp(8px, 1.15vw, 18px) 16px;
  color: var(--ivory);
  font-family: var(--body-font);
  font-size: clamp(0.72rem, 1.9vw, 2.85rem);
  font-weight: 900;
  letter-spacing: clamp(0.06em, 0.38vw, 0.12em);
  line-height: 1.08;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(21, 21, 21, 0.38);
  transform: translate(-50%, -50%) rotate(-14deg);
}

html:lang(ar) .no-image-placeholder-text,
html:lang(fa) .no-image-placeholder-text,
html:lang(he) .no-image-placeholder-text,
html:lang(ja) .no-image-placeholder-text,
html:lang(ko) .no-image-placeholder-text,
html:lang(zh) .no-image-placeholder-text,
html:lang(yue) .no-image-placeholder-text {
  letter-spacing: 0.02em;
}

.featured-carousel .no-image-placeholder-text {
  font-size: clamp(0.76rem, 1.4vw, 2rem);
}

@media (max-width: 560px) {
  .no-image-placeholder-text {
    width: 132%;
    font-size: clamp(0.68rem, 4vw, 1.3rem);
    letter-spacing: 0.05em;
  }
}

.featured-carousel .property-image-link {
  aspect-ratio: 2 / 3;
}

.property-image-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.property-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--stone);
  transition: transform 0.24s ease;
}

.property-image-link:hover img {
  transform: scale(1.035);
}

.property-image-link[data-badge-label]::after,
.listing-image-wrap[data-badge-label]::after {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: max-content;
  max-width: 94%;
  padding: 8px 18px;
  color: rgba(184, 14, 14, 0.86);
  border: 3px solid rgba(184, 14, 14, 0.78);
  border-radius: 7px;
  content: attr(data-badge-label);
  font-family: Impact, "Arial Black", var(--body-font);
  font-size: clamp(0.72rem, 1.55vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.86;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.18),
    -1px -1px 0 rgba(21, 21, 21, 0.05);
  transform: translate(-50%, -50%) rotate(-22deg);
}

.property-image-link[data-badge-label]::before,
.listing-image-wrap[data-badge-label]::before {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 58%;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68) 18%, transparent 34%),
    linear-gradient(90deg, transparent, rgba(21, 21, 21, 0.12) 46%, transparent 58%);
  content: "";
  opacity: 0.52;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-22deg);
}

.property-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.property-label {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.property-body p:not(.property-label) {
  margin-bottom: 18px;
  color: var(--text-muted);
}

.property-body .button {
  margin-top: auto;
}

/* Benefits */
.benefit-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.benefit-item:hover {
  border-color: rgba(180, 141, 70, 0.6);
  transform: translateY(-2px);
}

.benefit-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 800;
}

.benefit-item p {
  color: var(--text-muted);
}

/* Trust section */
.trust-section {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.92), rgba(21, 21, 21, 0.78)),
    url("images/unsplash/photo-1486406146926-c627a92ad1ab.jpg") center / cover no-repeat;
}

.trust-layout p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.trust-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.trust-list li:hover {
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

/* Process */
.process-step {
  padding: 24px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.process-step:hover {
  border-color: rgba(180, 141, 70, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.process-step span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--white);
  background: var(--charcoal);
  border-radius: 6px;
  font-weight: 800;
}

.process-step p {
  color: var(--text-muted);
}

/* Testimonials */
.testimonial-carousel {
  display: grid;
  gap: 14px;
}

.testimonial-carousel .carousel-button {
  color: var(--charcoal);
  background: var(--white);
  border-color: var(--border);
}

.testimonial-carousel .carousel-button:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.testimonial-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.testimonial-card {
  display: flex;
  height: 280px;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 28px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.testimonial-card:hover {
  border-color: rgba(180, 141, 70, 0.4);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.testimonial-card blockquote {
  margin: 0 0 18px;
  font-family: var(--heading-font);
  font-size: 1.12rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.testimonial-card figcaption {
  margin-top: auto;
  color: var(--text-muted);
  font-weight: 700;
}

/* Quick sale */
.quick-sale-section {
  background: linear-gradient(135deg, #f5f1e8 0%, #ffffff 58%, #ece8dc 100%);
}

.quick-sale-layout {
  align-items: center;
}

.quick-sale-copy {
  padding: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-sale-copy:hover {
  border-color: rgba(180, 141, 70, 0.4);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.quick-sale-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding-left: 20px;
  color: var(--text-muted);
}

.quick-sale-list li::marker {
  color: var(--gold);
}

.mobile-sticky-cta {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  padding: 8px;
  background: rgba(15, 15, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.26s ease, opacity 0.2s ease, visibility 0.2s ease;
  will-change: transform, opacity;
}

.mobile-sticky-cta.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + max(24px, env(safe-area-inset-bottom))));
}

.mobile-sticky-cta a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: var(--white);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-sticky-call {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-sticky-consult {
  background: var(--gold);
}

.mobile-sticky-cta a:hover,
.mobile-sticky-cta a:focus-visible {
  color: var(--white);
  background: var(--gold);
  transform: translateY(-1px);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-list details:hover,
.faq-list details:focus-within {
  background: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.faq-list summary {
  font-weight: 800;
  cursor: pointer;
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.faq-list details p {
  margin-top: 14px;
  color: var(--text-muted);
}

/* Final CTA and form */
.final-cta {
  color: var(--white);
  background: var(--charcoal);
}

.final-cta-layout {
  align-items: start;
}

.final-cta-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-logo {
  display: none;
  width: min(100%, clamp(185px, 23vw, 345px));
  height: auto;
  margin-top: clamp(14px, 2.5vw, 30px);
  justify-self: center;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
}

.final-cta-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 24px;
  color: var(--charcoal);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.contact-form label {
  margin-top: 4px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  overflow-y: auto;
  resize: none;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  background: var(--white);
  border-color: var(--gold);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.contact-form button {
  margin-top: 8px;
}

.privacy-consent-field {
  margin-top: 6px;
}

.career-consent-group {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 14px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.consent-heading {
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 850;
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.checkbox-field input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.checkbox-field a {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: rgba(176, 138, 74, 0.65);
  text-underline-offset: 3px;
}

.checkbox-field a:hover {
  color: var(--gold);
}

.captcha-field {
  display: grid;
  gap: 8px;
}

.captcha-row {
  display: grid;
  gap: 10px;
  align-items: center;
}

.captcha-row span {
  color: var(--text-muted);
  font-weight: 800;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-page {
  background: var(--white);
}

.legal-content {
  display: grid;
  gap: 22px;
}

.legal-card {
  padding: 24px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.legal-card:hover {
  border-color: rgba(180, 141, 70, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.legal-card h2,
.legal-card h3 {
  margin-top: 0;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--text-muted);
}

.legal-card p {
  color: var(--text-muted);
}

.text-button {
  padding: 0;
  color: var(--gold);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.text-button:hover {
  color: var(--charcoal);
}

.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: 90;
  display: grid;
  gap: 14px;
  width: min(calc(100vw - 32px), 520px);
  max-width: 520px;
  margin: 0;
  padding: 18px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(222, 214, 200, 0.9);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 18px 46px rgba(15, 15, 15, 0.18);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent h2 {
  margin-bottom: 4px;
  font-size: 1.16rem;
}

.cookie-consent p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-consent .eyebrow {
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.cookie-consent .button {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.86rem;
}

.cookie-consent-copy {
  display: grid;
  gap: 8px;
}

.cookie-preferences {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cookie-preferences[hidden] {
  display: none;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Footer */
.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.74);
  background: #0f0f0f;
}

.footer-layout {
  display: grid;
  gap: 16px;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.footer-text {
  max-width: 920px;
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.site-footer a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(180, 141, 70, 0.8);
  box-shadow: 0 14px 28px rgba(180, 141, 70, 0.22);
  transform: translateY(-3px);
}

.social-links img,
.social-links .social-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.social-links img {
  object-fit: contain;
  object-position: center;
}

.footer-bottom {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.floating-social,
.ai-chat-widget {
  position: fixed;
  z-index: 40;
}

.floating-social {
  top: 50%;
  right: 0;
  display: grid;
  grid-template-columns: auto max-content;
  max-width: calc(100vw - 24px);
  color: var(--white);
  transform: translate(calc(100% - 28px), -50%);
  transition: transform 0.24s ease;
}

.floating-social:hover,
.floating-social:focus-within {
  transform: translate(0, -50%);
}

.floating-social-tab {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  padding: 12px 4px;
  background: linear-gradient(90deg, rgba(15, 15, 15, 0.72) 0%, rgba(15, 15, 15, 0.32) 24%, rgba(15, 15, 15, 0) 72%);
  border: 0;
  border-left: 1px solid rgba(15, 15, 15, 0.18);
  border-radius: 12px 0 0 12px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  box-shadow: none;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
}

.floating-social-tab::before,
.floating-social-tab::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 1px;
  background: rgba(15, 15, 15, 0.18);
}

.floating-social-tab::before {
  top: 0;
}

.floating-social-tab::after {
  bottom: 0;
}

.floating-social-links {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(15, 15, 15, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.floating-social-links a {
  width: 42px;
  height: 42px;
}

.ai-chat-widget {
  right: 16px;
  bottom: 86px;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.ai-chat-toggle {
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  gap: 5px;
  width: 92px;
  min-height: 98px;
  padding: 10px 8px 9px;
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ai-chat-toggle:hover,
.ai-chat-toggle:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 18px 48px rgba(180, 141, 70, 0.28);
  transform: translateY(-3px);
}

.ai-chat-toggle-text {
  display: block;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.ai-chat-toggle:hover .ai-chat-toggle-text,
.ai-chat-toggle:focus-visible .ai-chat-toggle-text {
  color: var(--gold);
}

.ai-chat-widget[data-chat-open="true"] .ai-chat-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translate(18px, -18px) scale(0.58);
}

.agent-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.agent-face {
  position: relative;
  display: block;
  width: 49px;
  height: 49px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(145deg, #ffe0a0 0%, #d2a24d 45%, #b48d46 66%, #f5c15b 100%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  box-shadow: inset 0 -8px 15px rgba(74, 43, 0, 0.22);
}

.agent-hat {
  position: absolute;
  top: 1px;
  left: 14px;
  z-index: 3;
  width: 34px;
  height: 19px;
  background: linear-gradient(180deg, #222, #050505);
  border-bottom: 5px solid var(--gold);
  border-radius: 5px 5px 2px 2px;
  transform: rotate(-7deg);
}

.agent-hat::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: -8px;
  width: 52px;
  height: 7px;
  background: #050505;
  border-radius: 999px;
}

.agent-eye {
  position: absolute;
  top: 22px;
  left: 14px;
  width: 5px;
  height: 5px;
  background: #111;
  border-radius: 50%;
}

.agent-monocle {
  position: absolute;
  top: 17px;
  right: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid #111;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.38) inset;
}

.agent-monocle::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -11px;
  width: 2px;
  height: 12px;
  background: #111;
  border-radius: 999px;
  transform: rotate(-20deg);
}

.agent-mustache {
  position: absolute;
  top: 31px;
  left: 50%;
  width: 24px;
  height: 9px;
  transform: translateX(-50%);
}

.agent-mustache::before,
.agent-mustache::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 14px;
  height: 8px;
  background: #111;
  border-radius: 50% 50% 55% 55%;
}

.agent-mustache::before {
  left: 0;
  transform: rotate(16deg);
}

.agent-mustache::after {
  right: 0;
  transform: rotate(-16deg);
}

.agent-smile {
  position: absolute;
  right: 19px;
  bottom: 9px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid #111;
  border-radius: 0 0 999px 999px;
}

.ai-chat-panel {
  position: relative;
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
  padding: 24px 18px 18px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  pointer-events: auto;
  transform-origin: bottom right;
  animation: chatPanelIn 0.2s ease both;
}

.ai-chat-panel[hidden] {
  display: none;
}

.ai-chat-panel > .agent-avatar {
  position: absolute;
  top: -34px;
  right: 18px;
  transform: scale(0.82);
}

.ai-chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 72px;
}

.ai-chat-panel-header strong {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  line-height: 1.1;
}

.ai-chat-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ai-chat-close:hover,
.ai-chat-close:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.ai-chat-copy {
  margin: 0;
  color: var(--text-muted);
}

.ai-chat-form {
  display: grid;
  gap: 10px;
}

.ai-chat-form textarea {
  width: 100%;
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  padding: 12px 13px;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-y: auto;
  resize: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-form textarea:hover,
.ai-chat-form textarea:focus {
  background: var(--white);
  border-color: var(--gold);
}

.ai-chat-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.limited-field {
  position: relative;
  width: 100%;
}

.limited-field > input,
.limited-field > textarea {
  padding-right: 88px;
}

.limited-field > textarea {
  padding-bottom: 30px;
}

.character-counter {
  position: absolute;
  right: 11px;
  z-index: 1;
  color: rgba(100, 95, 86, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.limited-field-input .character-counter {
  top: 50%;
  transform: translateY(calc(-50% + 2px));
}

.limited-field-textarea .character-counter {
  bottom: 10px;
  transform: translateY(2px);
}

.limited-field:focus-within .character-counter {
  opacity: 1;
}

.limited-field-input:focus-within .character-counter {
  transform: translateY(-50%);
}

.limited-field-textarea:focus-within .character-counter {
  transform: translateY(0);
}

@keyframes chatPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 720px) {
  .mobile-sticky-cta {
    display: none;
  }

  .ai-chat-widget {
    bottom: 16px;
  }

  .site-header {
    gap: 18px;
    padding: 10px 24px;
  }

  .brand-text {
    max-width: 360px;
  }

  .language-switcher {
    margin-left: 0;
    margin-right: 18px;
  }

  html[dir="rtl"] .language-switcher {
    margin-right: 0;
    margin-left: 18px;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .footer-social {
    justify-content: end;
  }

  .language-select {
    max-width: 130px;
  }

  .site-header:not([data-nav-collapsed]) .nav-toggle {
    display: none;
  }

  .site-header:not([data-nav-collapsed]) .main-nav,
  .site-header:not([data-nav-collapsed])[data-nav-open] .main-nav {
    position: static;
    display: flex;
    min-width: 0;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 1.1vw, 12px);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-header[data-nav-collapsed] .nav-toggle {
    display: inline-grid;
  }

  .site-header[data-nav-collapsed] .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 24px;
    right: 24px;
    display: none;
    gap: 6px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-header[data-nav-collapsed][data-nav-open] .main-nav {
    display: grid;
  }

  .main-nav a,
  .nav-dropdown summary {
    min-height: auto;
    padding: 0;
    white-space: nowrap;
  }

  .main-nav .nav-button {
    min-height: 42px;
    padding: 10px 16px;
  }

  .section {
    padding: 96px 0;
  }

  h1 {
    font-size: 4.1rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero {
    min-height: 650px;
  }

  .hero-layout {
    padding: 106px 0 74px;
  }

  .page-hero-content {
    padding: 106px 0 74px;
  }

  .trust-strip-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .trust-strip span {
    padding: 18px 0;
    border-bottom: 0;
  }

  .lead-magnet-layout,
  .coverage-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .two-column,
  .intro-panel,
  .careers-layout,
  .story-panel,
  .proof-panel,
  .trust-layout,
  .faq-layout,
  .proof-layout,
  .contact-details-panel {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .seo-page-layout {
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  }

  .seo-summary-panel {
    position: sticky;
    top: 94px;
  }

  .seo-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .property-grid,
  .benefit-grid,
  .service-path-grid,
  .career-card-grid,
  .audience-grid,
  .values-grid,
  .proof-grid,
  .contact-details-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .featured-carousel .property-grid {
    grid-column: 2;
  }

  .carousel-button-prev {
    grid-column: 1;
  }

  .carousel-button-next {
    grid-column: 3;
  }

  .testimonial-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .testimonial-carousel .testimonial-grid {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-carousel .carousel-button-prev {
    grid-column: 1;
  }

  .testimonial-carousel .carousel-button-next {
    grid-column: 3;
  }

  .service-meta-grid div {
    padding-right: 16px;
    padding-bottom: 0;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .service-meta-grid div:last-child {
    border-right: 0;
  }

  html[dir="rtl"] .service-meta-grid div {
    padding-right: 0;
    padding-left: 16px;
    border-right: 0;
    border-left: 1px solid var(--border);
  }

  html[dir="rtl"] .service-meta-grid div:last-child {
    border-left: 0;
  }

  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .final-cta-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    align-items: start;
  }

  .contact-logo {
    display: block;
  }

  .captcha-row {
    grid-template-columns: auto minmax(90px, 1fr);
  }

  .cookie-consent {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .cookie-consent-actions {
    justify-content: start;
  }

  .results-toolbar {
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
  }

  .filter-basic-grid {
    grid-template-columns: minmax(130px, 0.9fr) minmax(130px, 0.9fr) minmax(180px, 1.35fr);
    align-items: end;
  }

  .filter-control-location {
    grid-column: auto;
  }

  .filter-secondary-grid {
    grid-template-columns: minmax(170px, 1fr) minmax(120px, 0.62fr);
    align-items: end;
  }

  .room-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filter-main-actions {
    grid-template-columns: 1fr auto auto;
    justify-content: end;
  }

  .text-reset-button {
    justify-self: end;
    text-align: right;
  }

  .advanced-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .advanced-filters .rooms-fieldset,
  .recency-fieldset,
  .amenity-fieldset {
    grid-column: 1 / -1;
  }

  .recency-options,
  .amenity-fieldset {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .results-count {
    justify-self: auto;
  }

  .results-meta {
    justify-self: end;
    justify-content: end;
  }

  .properties-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .site-header {
    padding-left: 40px;
    padding-right: 40px;
  }

  .site-header > .language-switcher {
    position: static;
    z-index: auto;
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }

  html[dir="rtl"] .site-header > .language-switcher {
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }

  .site-header:not([data-nav-collapsed]) .main-nav {
    gap: clamp(8px, 0.8vw, 12px);
    margin-left: clamp(8px, 1vw, 12px);
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3.35rem;
  }

  .service-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .seo-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .coverage-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-path-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .career-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-detail {
    grid-template-columns: 0.76fr 1.24fr;
  }

  .service-detail-copy {
    position: sticky;
    top: 96px;
  }

  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-carousel {
    position: relative;
    display: block;
  }

  .featured-carousel .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 2.6vw, 34px);
  }

  .featured-carousel .carousel-button {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
  }

  .featured-carousel .carousel-button:hover {
    transform: translateY(calc(-50% - 1px));
  }

  .featured-carousel .carousel-button-prev {
    left: clamp(-30px, -2vw, -18px);
  }

  .featured-carousel .carousel-button-next {
    right: clamp(-30px, -2vw, -18px);
  }

  .featured-carousel .property-image-link[data-badge-label]::after {
    font-size: clamp(1.15rem, 2.2vw, 2.1rem);
  }

  .featured-carousel .property-body {
    padding: 24px;
  }

  .featured-carousel .property-body h3 {
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    line-height: 1.08;
  }

  .audience-grid,
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .founders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .founder-card {
    grid-template-rows: auto 1fr;
  }

  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-ai-panel .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compact-proof {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-basic-grid {
    grid-template-columns: minmax(118px, 0.72fr) minmax(132px, 0.78fr) minmax(170px, 1fr) minmax(188px, 1.08fr) minmax(188px, 1.08fr);
  }

  .filter-control-location {
    grid-column: auto;
  }

  .filter-secondary-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(128px, 0.5fr);
  }

  .room-options {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .advanced-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recency-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .amenity-fieldset {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .properties-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .property-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .testimonial-carousel .testimonial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Responsive header and brand refinements */
.brand-line {
  display: inline-block;
  justify-self: center;
  width: max-content;
}

.brand-line-main,
.brand-line-sub {
  white-space: nowrap;
}

.brand-line-main {
  font-size: clamp(1.02rem, 1.55vw, 1.36rem);
  letter-spacing: -0.03em;
}

.brand-line-sub {
  font-size: clamp(0.62rem, 0.86vw, 0.76rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-divider-preview .brand-line-sub {
  margin-top: 0.16em;
  padding-top: 0.18em;
  border-top: 1px solid rgba(176, 141, 87, 0.58);
}

@media (max-width: 719px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
  }

  .brand {
    position: relative;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    gap: 0;
    width: max-content;
    max-width: min(calc(100vw - 190px), 242px);
    min-width: 0;
    min-height: 46px;
    overflow: visible;
  }

  .brand-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    width: clamp(96px, 28vw, 118px);
    max-width: calc(100% - 8px);
    opacity: 0.2;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  .brand-text {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    max-width: min(calc(100vw - 190px), 242px);
    white-space: normal;
    line-height: 0.96;
    overflow: visible;
    transform: none !important;
  }

  .brand-line {
    display: inline-block;
    justify-self: center;
    width: max-content;
  }

  .brand-line-main {
    font-size: clamp(0.96rem, 4.25vw, 1.3rem);
    letter-spacing: -0.03em;
  }

  .brand-line-partners {
    font-size: clamp(0.64rem, 3vw, 0.88rem);
    letter-spacing: 0.02em;
  }

  .brand-line-sub {
    font-size: clamp(0.58rem, 2.35vw, 0.72rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .language-switcher {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    align-self: center;
    gap: 5px;
    margin: 0;
    padding: 6px 7px;
  }

  .language-select {
    max-width: 82px;
    font-size: 0.82rem;
  }

  .nav-toggle {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: center;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 6px;
  }

  .language-switcher {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    align-self: center;
    margin: 0;
    padding-inline: 6px;
  }

  .language-select {
    max-width: 72px;
    font-size: 0.78rem;
  }

  .nav-toggle {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: center;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .site-header {
    gap: 12px;
    padding: 10px 18px;
  }

  .site-header > .language-switcher,
  html[dir="rtl"] .site-header > .language-switcher {
    position: static;
    left: auto;
    margin-left: auto;
    margin-right: 8px;
    transform: none;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-text {
    display: grid;
    justify-items: center;
    max-width: min(34vw, 210px);
    white-space: normal;
    line-height: 0.96;
    overflow: visible;
    transform: none !important;
  }

  .brand-line {
    display: inline-block;
    justify-self: center;
    width: max-content;
  }

  .brand-line-main {
    font-size: clamp(1.02rem, 2.1vw, 1.28rem);
    letter-spacing: -0.03em;
  }

  .brand-line-partners {
    font-size: clamp(0.72rem, 1.45vw, 0.88rem);
    letter-spacing: 0.02em;
  }

  .brand-line-sub {
    font-size: clamp(0.6rem, 1.05vw, 0.72rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .language-select {
    max-width: 132px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .main-nav,
  .site-header[data-nav-open] .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    gap: 6px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.92rem;
    font-weight: 750;
  }

  .main-nav {
    display: none;
  }

  .site-header[data-nav-open] .main-nav {
    display: grid;
  }

  .main-nav a,
  .nav-dropdown summary {
    min-height: 44px;
    padding: 10px 12px;
  }

  .main-nav .nav-button {
    min-height: 44px;
    padding: 10px 12px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    gap: clamp(8px, 1.1vw, 14px);
    padding: 10px clamp(14px, 1.6vw, 22px);
  }

  .brand {
    flex: 0 1 clamp(230px, 22vw, 305px);
  }

  .brand-mark {
    width: clamp(34px, 3.2vw, 44px);
  }

  .brand-text {
    display: grid;
    justify-items: center;
    max-width: clamp(185px, 17vw, 245px);
    white-space: normal;
    line-height: 0.96;
    overflow: visible;
    transform: none !important;
  }

  .brand-line {
    display: inline-block;
    justify-self: center;
    width: max-content;
  }

  .brand-line-main {
    font-size: clamp(1.02rem, 1.55vw, 1.36rem);
    letter-spacing: -0.03em;
  }

  .brand-line-partners {
    font-size: clamp(0.62rem, 0.95vw, 0.78rem);
    letter-spacing: 0.02em;
  }

  .brand-line-sub {
    font-size: clamp(0.62rem, 0.86vw, 0.76rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .language-switcher,
  html[dir="rtl"] .language-switcher {
    margin-left: auto;
    margin-right: clamp(4px, 0.7vw, 10px);
  }

  .language-select {
    max-width: clamp(92px, 8vw, 126px);
  }

  .nav-toggle {
    display: none;
  }

  .main-nav,
  .site-header[data-nav-open] .main-nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(7px, 0.85vw, 12px);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: clamp(0.78rem, 0.82vw, 0.92rem);
    font-weight: 750;
  }

  .main-nav a,
  .nav-dropdown summary {
    min-height: auto;
    padding: 0;
    white-space: nowrap;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    min-width: 150px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown[open] .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown-menu a {
    min-height: 38px;
    padding: 8px 10px;
  }

  .main-nav .nav-button {
    min-height: 40px;
    padding: 9px 12px;
  }
}

@media (min-width: 1900px) {
  .brand {
    flex: 0 1 auto;
  }

  .nav-toggle {
    display: none;
  }
}
