.dm-hidden {
  display: none !important;
}

.dm-property-empty {
  display: grid;
  min-height: 320px;
  justify-items: center;
  align-content: center;
  gap: 28px;
  padding: 45px;
  border: 1px solid rgba(215, 175, 86, 0.26);
  background: linear-gradient(140deg, rgba(11, 29, 49, 0.78), rgba(5, 8, 12, 0.74));
  text-align: center;
}

.dm-property-empty p {
  max-width: 570px;
  margin: 0;
  color: rgba(244, 240, 231, 0.75);
  font-size: 15px;
  line-height: 1.8;
}

.dm-property-empty .button,
.dm-not-found-button {
  width: fit-content;
}

.dm-content-page {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.9;
}

.page-numbers {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  margin: 38px 8px 0 0;
  place-items: center;
  border: 1px solid rgba(215, 175, 86, 0.36);
  color: var(--gold-light);
}

.page-numbers.current {
  background: var(--gold);
  color: var(--black);
}

.page-hero--careers {
  background-image: url("../hero-careers-daniela-tonova.webp");
  background-position: center 47%;
}

.page-hero--contact {
  background-image: url("../hero-contact-business-meeting.webp");
  background-position: center 48%;
}

.page-hero--announce {
  background-image: url("../villa-sofia.png");
  background-position: center 58%;
}

.page-hero--rules {
  background-image: url("../hero-portfolio-alpine-lake.webp");
  background-position: center 54%;
}

.main-nav .nav-announce {
  white-space: nowrap;
}

.highlight-card {
  isolation: isolate;
  overflow: hidden;
  background: #08111c;
  color: var(--ivory);
}

.highlight-card::before,
.highlight-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.highlight-card::before {
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: saturate(0.72) brightness(0.68) blur(1.2px);
  transform: scale(1.035);
  transition: filter 420ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-card::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 8, 14, 0.2), rgba(3, 8, 14, 0.88)),
    linear-gradient(110deg, rgba(7, 26, 43, 0.72), rgba(0, 0, 0, 0.08));
  transition: background 350ms ease;
}

.highlight-card--properties::before {
  background-image: url("../hero-properties-mediterranean.webp");
}

.highlight-card--services::before {
  background-image: url("../hero-services-private-advisory.webp");
}

.highlight-card--team::before {
  background-image: url("../hero-team-sofia-studio.webp");
}

.highlight-card--about::before {
  background-image: url("../hero-about-vitosha-residence.webp");
}

.highlight-card > span,
.highlight-card h3,
.highlight-card p,
.highlight-card i {
  position: relative;
  z-index: 1;
}

.highlight-card h3 {
  color: #fffdf8;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.highlight-card p {
  color: rgba(255, 255, 255, 0.68);
}

.highlight-card:hover::before,
.highlight-card:focus-visible::before {
  filter: saturate(0.86) brightness(0.78) blur(0);
  transform: scale(1.08);
}

.highlight-card:hover::after,
.highlight-card:focus-visible::after {
  background:
    linear-gradient(180deg, rgba(3, 8, 14, 0.1), rgba(3, 8, 14, 0.78)),
    linear-gradient(110deg, rgba(7, 26, 43, 0.57), rgba(0, 0, 0, 0.03));
}

.signature-ambient-mark {
  display: block;
  width: clamp(230px, 33vw, 490px);
  height: clamp(230px, 33vw, 490px);
  opacity: 0.038;
}

.signature-ambient-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.announce-property-section {
  position: relative;
  overflow: hidden;
}

.announce-property-section::before {
  position: absolute;
  top: -160px;
  left: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(146, 112, 38, 0.12);
  border-radius: 50%;
  content: "";
}

.announce-property-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(580px, 1.28fr);
  align-items: start;
  gap: clamp(52px, 8vw, 120px);
}

.announce-property-copy {
  position: sticky;
  top: 130px;
}

.announce-property-copy h2 {
  margin: 0;
  color: #102a43;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.announce-property-copy > p:not(.kicker) {
  margin: 30px 0 0;
  color: #68635b;
  font-size: 15px;
  line-height: 1.85;
}

.announce-steps {
  display: grid;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.announce-steps li {
  display: grid;
  min-height: 62px;
  grid-template-columns: 45px 1fr;
  align-items: center;
  border-top: 1px solid rgba(16, 42, 67, 0.14);
}

.announce-steps li:last-child {
  border-bottom: 1px solid rgba(16, 42, 67, 0.14);
}

.announce-steps span {
  color: #927026;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.announce-steps strong {
  color: #273b4d;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.announce-form-panel {
  border: 1px solid rgba(146, 112, 38, 0.27);
  background: #fbf9f4;
  box-shadow: 0 34px 80px rgba(9, 24, 38, 0.09);
}

.announce-property-form {
  display: grid;
  gap: 39px;
  padding: clamp(28px, 5vw, 58px);
}

.announce-property-form fieldset {
  display: grid;
  min-width: 0;
  gap: 17px;
  margin: 0;
  padding: 0 0 40px;
  border: 0;
  border-bottom: 1px solid rgba(146, 112, 38, 0.2);
}

.announce-property-form legend {
  width: 100%;
  margin: 0 0 12px;
  color: #102a43;
  font-family: var(--serif);
  font-size: 30px;
}

.announce-property-form legend span {
  margin-right: 16px;
  color: #927026;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.announce-property-form label {
  display: grid;
  gap: 9px;
}

.announce-property-form label > span:first-child {
  color: #6e685e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.announce-property-form input,
.announce-property-form select,
.announce-property-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid rgba(16, 42, 67, 0.17);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  color: #102a43;
  font: inherit;
  outline: none;
}

.announce-property-form textarea {
  min-height: 150px;
  resize: vertical;
}

.announce-property-form input:focus,
.announce-property-form select:focus,
.announce-property-form textarea:focus {
  border-color: #927026;
  box-shadow: 0 0 0 3px rgba(146, 112, 38, 0.08);
}

.form-row-three {
  grid-template-columns: 1fr 1fr 0.68fr;
}

.announce-upload-field {
  position: relative;
  padding: 20px;
  border: 1px dashed rgba(146, 112, 38, 0.55);
  background: rgba(215, 175, 86, 0.045);
  cursor: pointer;
}

.announce-upload-action {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.announce-upload-action strong {
  color: #102a43;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.announce-upload-action small,
.announce-upload-field em {
  color: #817b71;
  font-size: 10px;
  font-style: normal;
}

.announce-upload-field input[type="file"] {
  min-height: 0;
  padding: 11px 0 3px;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.form-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px !important;
  color: #6e685e;
  font-size: 11px;
  line-height: 1.65;
}

.form-consent input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
  accent-color: #927026;
}

.form-consent a {
  color: #927026;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-alert {
  margin: 0;
  padding: 17px 22px;
  border-bottom: 1px solid rgba(125, 42, 31, 0.2);
  background: rgba(125, 42, 31, 0.06);
  color: #7d2a1f;
  font-size: 12px;
  line-height: 1.6;
}

.form-status {
  display: grid;
  min-height: 520px;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 50px;
  text-align: center;
}

.form-status > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #927026;
  border-radius: 50%;
  color: #927026;
  font-size: 22px;
}

.form-status h2 {
  max-width: 520px;
  margin: 0;
  color: #102a43;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 55px);
  font-weight: 400;
  line-height: 1.05;
}

.form-status p {
  max-width: 520px;
  margin: 0;
  color: #68635b;
  line-height: 1.75;
}

.form-status strong {
  color: #927026;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rules-section {
  position: relative;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(48px, 8vw, 120px);
}

.rules-index {
  position: sticky;
  top: 125px;
  display: grid;
  border-top: 1px solid #cec8bc;
}

.rules-index .kicker {
  margin: 26px 0 20px;
}

.rules-index > a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(16, 42, 67, 0.12);
  color: #102a43;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rules-index > a span {
  color: #927026;
  font-size: 8px;
}

.rules-index > p:last-child {
  margin: 28px 0 0;
  color: #8a857c;
  font-size: 10px;
  line-height: 1.6;
}

.rules-content {
  min-width: 0;
}

.rules-document {
  scroll-margin-top: 110px;
}

.rules-document + .rules-document {
  margin-top: 100px;
  padding-top: 100px;
  border-top: 1px solid #cec8bc;
}

.rules-document-number {
  margin: 0 0 19px;
  color: #927026;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.rules-document > h2 {
  margin: 0;
  color: #102a43;
  font-family: var(--serif);
  font-size: clamp(48px, 5.3vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.rules-document-lead {
  max-width: 760px;
  margin: 28px 0 62px;
  color: #676158;
  font-size: 16px;
  line-height: 1.8;
}

.rules-article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 22px;
  padding: 32px 0;
  border-top: 1px solid rgba(16, 42, 67, 0.13);
}

.rules-article > span {
  padding-top: 5px;
  color: #927026;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.rules-article h3 {
  margin: 0 0 14px;
  color: #17314a;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.rules-article p {
  margin: 0;
  color: #6d675f;
  font-size: 14px;
  line-height: 1.85;
}

.rules-article p + p {
  margin-top: 12px;
}

.footer-newsletter {
  position: relative;
  border-top: 1px solid rgba(215, 175, 86, 0.26);
  border-bottom: 1px solid rgba(215, 175, 86, 0.18);
  background:
    radial-gradient(circle at 84% 5%, rgba(215, 175, 86, 0.1), transparent 27%),
    linear-gradient(120deg, #0c1d2d, #05090d 70%);
}

.footer-newsletter-layout {
  display: grid;
  min-height: 260px;
  grid-template-columns: minmax(330px, 0.88fr) minmax(460px, 1.12fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
  padding-block: 50px;
}

.footer-newsletter-copy .kicker {
  margin-bottom: 14px;
}

.footer-newsletter-copy h2 {
  margin: 0;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.footer-newsletter-copy > p:last-child {
  max-width: 540px;
  margin: 19px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.75;
}

.footer-newsletter-form {
  display: grid;
  gap: 13px;
}

.footer-newsletter-control {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid rgba(215, 175, 86, 0.55);
}

.footer-newsletter-control input {
  min-width: 0;
  min-height: 58px;
  padding: 0 14px 0 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  outline: none;
}

.footer-newsletter-control input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.footer-newsletter-control button {
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-newsletter-control button span {
  margin-left: 12px;
}

.footer-newsletter-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  line-height: 1.55;
}

.footer-newsletter-consent input {
  margin-top: 2px;
  accent-color: var(--gold);
}

.footer-newsletter-consent a {
  color: inherit;
}

.footer-newsletter-status {
  margin: 0;
  color: var(--gold-light);
  font-size: 10px;
}

.footer-main {
  min-height: 225px;
}

.footer-links {
  max-width: 490px;
}

.dm-submission-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #dcdcde;
}

.dm-submission-admin-grid p {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 14px;
  background: #fff;
}

.dm-submission-admin-grid strong {
  color: #646970;
  font-size: 11px;
  text-transform: uppercase;
}

.dm-submission-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dm-submission-photo-grid figure {
  margin: 0;
  border: 1px solid #dcdcde;
  background: #fff;
}

.dm-submission-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.dm-submission-photo-grid figcaption {
  padding: 8px;
  text-align: center;
}

@media (max-width: 640px) {
  .dm-property-empty {
    min-height: 280px;
    padding: 28px 20px;
  }

  .page-hero--contact {
    background-position: 62% center;
  }

  .page-hero--careers {
    background-position: 69% center;
  }

  .page-hero--announce,
  .page-hero--rules {
    background-position: 62% center;
  }

  .announce-property-layout,
  .rules-layout,
  .footer-newsletter-layout {
    grid-template-columns: 1fr;
  }

  .announce-property-copy,
  .rules-index {
    position: static;
  }

  .announce-property-layout,
  .rules-layout {
    gap: 48px;
  }

  .form-row-three {
    grid-template-columns: 1fr;
  }

  .announce-upload-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .form-status {
    min-height: 430px;
    padding: 30px 22px;
  }

  .rules-document + .rules-document {
    margin-top: 72px;
    padding-top: 72px;
  }

  .rules-document-lead {
    margin-bottom: 40px;
  }

  .rules-article {
    grid-template-columns: 32px 1fr;
    gap: 10px;
  }

  .rules-article h3 {
    font-size: 24px;
  }

  .footer-newsletter-layout {
    min-height: 0;
    gap: 34px;
    padding-block: 58px;
  }

  .footer-newsletter-control {
    grid-template-columns: 1fr;
  }

  .footer-newsletter-control button {
    justify-self: start;
    padding: 0;
  }

  .dm-submission-admin-grid,
  .dm-submission-photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .announce-property-layout,
  .rules-layout,
  .footer-newsletter-layout {
    grid-template-columns: 1fr;
  }

  .announce-property-copy,
  .rules-index {
    position: static;
  }
}
