/* ============================================================
   PROPERTIES DESCRIPTION
   Dark navy aurora section with glass cards and SDA-style CTAs
   Scope: #properties-description only
============================================================ */

#properties-description{
  --pd-bg: #1E2A47;

  --pd-card-bg: rgba(255, 255, 255, 0.10);
  --pd-card-border: rgba(255, 255, 255, 0.14);
  --pd-card-shadow: 0 18px 50px rgba(0, 0, 0, 0.30);

  --pd-title-color: #fff;
  --pd-body-color: rgba(255, 255, 255, 0.82);
  --pd-heading-color: rgba(255, 255, 255, 0.96);
  --pd-text-color: rgba(255, 255, 255, 0.90);

  --pd-cta-accent: #B53028;
  --pd-cta-text: rgba(255, 255, 255, 0.92);
  --pd-cta-radius: 4px;
  --pd-cta-fill-opacity: 0.92;
  --pd-cta-fill-height-hover: 240%;
  --pd-cta-shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.28);

  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--pd-bg);
}

/* ============================================================
   SECTION BACKGROUND
============================================================ */

#properties-description .container{
  position: relative;
  z-index: 1;
}

#properties-description::before{
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;

  background:
    linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(155,190,255,.10) 35%, rgba(255,255,255,0) 70%),
    radial-gradient(1300px 780px at 50% 118%, rgba(93,130,225,.30) 0%, rgba(30,42,71,0) 64%),
    radial-gradient(980px 720px at 14% 98%, rgba(78,112,200,.18) 0%, rgba(30,42,71,0) 60%),
    radial-gradient(980px 720px at 86% 100%, rgba(72,104,188,.16) 0%, rgba(30,42,71,0) 60%),
    radial-gradient(1250px 900px at 32% 36%, rgba(66,98,178,.16) 0%, rgba(30,42,71,0) 64%),
    radial-gradient(1350px 980px at 72% 30%, rgba(58,90,166,.16) 0%, rgba(30,42,71,0) 66%),
    radial-gradient(1200px 900px at 52% 18%, rgba(56,86,158,.12) 0%, rgba(30,42,71,0) 62%),
    linear-gradient(180deg, rgba(30,42,71,1) 0%, rgba(22,32,56,1) 100%);

  background-size: 190% 190%;
  background-position: 50% 50%;
  filter: blur(14px);
  transform: translateZ(0);
  animation: propsDescAuroraDrift 18s ease-in-out infinite;
}

#properties-description::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(120% 90% at 50% 55%, rgba(30,42,71,0) 38%, rgba(10,14,28,.52) 100%),
    linear-gradient(180deg, rgba(10,14,28,.18) 0%, rgba(10,14,28,.44) 100%);
}

@keyframes propsDescAuroraDrift{
  0%   { background-position: 50% 50%; }
  35%  { background-position: 42% 58%; }
  70%  { background-position: 58% 44%; }
  100% { background-position: 50% 50%; }
}

@media (prefers-reduced-motion: reduce){
  #properties-description::before{
    animation: none;
  }
}

/* ============================================================
   CARD STYLING
============================================================ */

#properties-description .property-item{
  background: var(--pd-card-bg) !important;
  border: 1px solid var(--pd-card-border) !important;
  box-shadow: var(--pd-card-shadow) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;

  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

#properties-description .property-item:hover,
#properties-description .property-item:focus-within{
  transform: none !important;
  translate: 0 !important;
  transition: none !important;
  box-shadow: var(--pd-card-shadow) !important;
}

#properties-description .property-item,
#properties-description .property-content{
  position: relative;
}


#properties-description .property-content{
  color: var(--pd-text-color) !important;
}

#properties-description .property-content h3{
  color: var(--pd-heading-color) !important;
}

#properties-description .property-item p{
  margin-bottom: 1.25rem !important;
  font-size: clamp(0.95rem, 1.05vw, 1.06rem) !important;
  line-height: 1.6 !important;
  text-align: left !important;
  color: var(--pd-body-color) !important;
}

/* ============================================================
   SECTION TITLES
============================================================ */

#properties-description .section-title h2{
  color: var(--pd-title-color) !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

#properties-description .section-title p{
  color: rgba(255, 255, 255, 0.86) !important;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
}

/* ============================================================
   CTA BUTTONS
   Match SDA About button behavior
============================================================ */

#properties-description .call-to-action{
  margin-top: 0.25rem;
}

#properties-description .call-to-action .cta-btn.cta-btn-small:where(:link, :visited){
  box-sizing: border-box;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;

  min-width: max-content !important;
  padding: 0.72rem 1.1rem !important;

  border: 2px solid var(--pd-cta-accent) !important;
  border-radius: var(--pd-cta-radius) !important;
  background: transparent !important;

  font-family: var(--heading-font, inherit) !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.1 !important;
  text-transform: none !important;
  text-decoration: none !important;

  color: var(--pd-cta-text) !important;

  overflow: hidden !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  cursor: pointer !important;

  z-index: 5 !important;
  isolation: isolate !important;
  box-shadow: none !important;
  transition: color 220ms ease, transform 220ms ease, box-shadow 220ms ease !important;
}

/* Keep button content above fill layer */
#properties-description .call-to-action .cta-btn.cta-btn-small > *{
  position: relative !important;
  z-index: 1 !important;
}

/* Fill animation layer */
#properties-description .call-to-action .cta-btn.cta-btn-small:where(:link, :visited)::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 0%;
  transform: translate(-50%, -50%);

  background: var(--pd-cta-accent);
  opacity: var(--pd-cta-fill-opacity);

  z-index: -1;
  transition: height 320ms ease;
}

/* Hover and focus states */
#properties-description .call-to-action .cta-btn.cta-btn-small:hover{
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--pd-cta-shadow-hover) !important;
}

#properties-description .call-to-action .cta-btn.cta-btn-small:hover::after{
  height: var(--pd-cta-fill-height-hover);
}

#properties-description .call-to-action .cta-btn.cta-btn-small:focus-visible{
  outline: 3px solid rgba(181, 48, 40, 0.35) !important;
  outline-offset: 3px !important;
}

/* Prevent awkward wrapping on label span */
#properties-description .call-to-action .cta-btn.cta-btn-small > span{
  white-space: nowrap !important;
}

/* Desktop sizing */
@media (min-width: 992px){
  #properties-description .call-to-action .cta-btn.cta-btn-small:where(:link, :visited){
    min-width: 12rem !important;
    padding: 0.82rem 1.25rem !important;
    font-size: 1rem !important;
  }
}

/* Small phones */
@media (max-width: 420px){
  #properties-description .call-to-action .cta-btn.cta-btn-small:where(:link, :visited){
    min-width: 0 !important;
    padding: 0.62rem 1rem !important;
    font-size: 0.92rem !important;
    white-space: normal !important;
  }

  #properties-description .call-to-action .cta-btn.cta-btn-small > span{
    white-space: normal !important;
  }
}

/* =========================================================
   FOOTER — agency credit band
========================================================= */

#footer .footer-credit-band {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(255, 255, 255, 0.05) 48%,
      rgba(255, 255, 255, 0.03) 100%
    );
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

#footer .footer-credit-inner {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#footer .site-design-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
}

#footer .site-design-label,
#footer .site-design-name {
  font-family: "Gloock", serif;
}

#footer .site-design-label {
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.68);
}

#footer .site-design-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#footer .site-design-logo {
  display: block;
  width: clamp(46px, 5vw, 62px);
  height: auto;
  opacity: 0.96;
  filter:
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18))
    drop-shadow(0 0 6px rgba(214, 188, 145, 0.12))
    drop-shadow(0 0 14px rgba(181, 48, 40, 0.12));
  transition:
    transform 0.24s ease,
    filter 0.24s ease,
    opacity 0.24s ease;
}

#footer .site-design-logo-link:hover .site-design-logo,
#footer .site-design-logo-link:focus-visible .site-design-logo {
  opacity: 1;
  transform: translateY(-1px) scale(1.02);
  filter:
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.34))
    drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2))
    drop-shadow(0 0 8px rgba(214, 188, 145, 0.16))
    drop-shadow(0 0 18px rgba(181, 48, 40, 0.16));
}

#footer .site-design-name {
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.24s ease, opacity 0.24s ease;
}

#footer .site-design-name:hover,
#footer .site-design-name:focus-visible,
#footer .site-design-logo-link:hover + .site-design-name {
  color: #ffffff;
  opacity: 0.92;
}

@media (prefers-reduced-motion: no-preference) {
  #footer .site-design-logo {
    animation: footerLogoBreathe 4.8s ease-in-out infinite;
    transform-origin: center;
  }

  @keyframes footerLogoBreathe {
    0%,
    100% {
      transform: scale(1);
      filter:
        drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18))
        drop-shadow(0 0 6px rgba(214, 188, 145, 0.12))
        drop-shadow(0 0 14px rgba(181, 48, 40, 0.12));
    }

    50% {
      transform: scale(1.03);
      filter:
        drop-shadow(0 7px 13px rgba(0, 0, 0, 0.32))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18))
        drop-shadow(0 0 8px rgba(214, 188, 145, 0.16))
        drop-shadow(0 0 16px rgba(181, 48, 40, 0.16));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  #footer .site-design-logo {
    animation: none;
  }
}

@media (max-width: 767.98px) {
  #footer .footer-credit-band {
    margin-top: 1.2rem;
    padding: 1.15rem 1rem 1.25rem;
  }

  #footer .site-design-label {
    font-size: 0.74rem;
  }

  #footer .site-design-name {
    font-size: 0.88rem;
  }
}