/* AB24 — reusable UI components */

/* =========================================================
   Icons
   ========================================================= */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke-width: 2;
}

.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }
.icon--xl { width: 2.25em; height: 2.25em; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: var(--control-height);
  padding-inline: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  border-color: var(--color-cta-bg);
}

.btn--primary:hover {
  background: var(--color-cta-bg-hover);
  border-color: var(--color-cta-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--dark {
  background: var(--ab24-black);
  color: var(--color-text-inverse);
  border-color: var(--ab24-black);
}

.btn--dark:hover {
  background: var(--ab24-navy-900);
  border-color: var(--ab24-navy-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Every button on the site is solid brand blue — .btn--outline /
   .btn--outline-dark are kept as aliases (same look as .btn--primary) so
   existing markup doesn't need touching everywhere they're used. */
/* True outline — secondary CTA paired next to a solid-blue primary button
   on dark/photographic backgrounds (hero, final CTA). */
.btn--outline {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-inverse);
}

/* Card/section action buttons — solid blue, same as primary. */
.btn--outline-dark {
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  border-color: var(--color-cta-bg);
}

.btn--outline-dark:hover {
  background: var(--color-cta-bg-hover);
  border-color: var(--color-cta-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-brand-strong);
  border-color: transparent;
  padding-inline: 0;
  height: auto;
}

.btn--ghost .icon {
  transition: transform var(--duration-fast) var(--ease-standard);
}

.btn--ghost:hover .icon {
  transform: translateX(3px);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  height: 38px;
  padding-inline: 1.1rem;
  font-size: var(--fs-xs);
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--color-brand-strong);
}

.link-cta .icon {
  transition: transform var(--duration-fast) var(--ease-standard);
}

.link-cta:hover .icon {
  transform: translateX(3px);
}

/* =========================================================
   Badges / status labels
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.75em;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.6;
}

.badge--available,
.badge--completed {
  background: var(--ab24-status-available-bg);
  color: var(--ab24-status-available-fg);
}

.badge--sold {
  background: var(--ab24-status-sold-bg);
  color: var(--ab24-status-sold-fg);
}

.badge--under-offer {
  background: var(--ab24-status-offer-bg);
  color: var(--ab24-status-offer-fg);
}

.badge--ongoing {
  background: var(--ab24-status-ongoing-bg);
  color: var(--ab24-status-ongoing-fg);
}

.badge--neutral {
  background: var(--ab24-gray-100);
  color: var(--color-text-muted);
}

.badge--on-sale {
  background: var(--ab24-status-available-bg);
  color: var(--ab24-status-available-fg);
}

/* Distress-sale stays inside the blue/black/white system — bold black
   instead of a red "alarm" colour, per the Properties PRD. */
.badge--distress {
  background: var(--ab24-black);
  color: var(--color-text-inverse);
}

.badge--featured {
  background: var(--color-brand);
  color: var(--color-text-inverse);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.25em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}

.pill .icon {
  color: var(--color-brand);
  transition: color var(--duration-fast) var(--ease-standard);
}

.pill:hover .icon,
.pill[aria-current="true"] .icon {
  color: var(--color-text-inverse);
}

.pill:hover,
.pill[aria-current="true"] {
  background: var(--ab24-black);
  border-color: var(--ab24-black);
  color: var(--color-text-inverse);
}

/* =========================================================
   Site header / navigation
   ========================================================= */
/* Transparent over the hero/banner image at rest; on scroll it detaches
   into a narrower, rounded, floating pill. .site-header is a full-width
   invisible shell (fixed, so it overlays content instead of pushing it
   down) — .site-header__bar is the actual visible bar and does all the
   transitioning. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: flex;
  justify-content: center;
  padding-block: 26px;
  pointer-events: none;
  transition: padding var(--duration-base) var(--ease-standard);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 14, 31, 0.5), transparent);
  opacity: 1;
  transition: opacity var(--duration-base) var(--ease-standard);
  pointer-events: none;
}

.site-header[data-scrolled="true"] {
  padding-block: 14px;
}

.site-header[data-scrolled="true"]::before {
  opacity: 0;
}

.site-header__bar {
  pointer-events: auto;
  width: 100%;
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: max-width var(--duration-base) var(--ease-standard),
              height var(--duration-base) var(--ease-standard),
              background var(--duration-base) var(--ease-standard),
              border-radius var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard),
              padding var(--duration-base) var(--ease-standard);
}

.site-header[data-scrolled="true"] .site-header__bar {
  max-width: 1220px;
  height: 74px;
  padding-inline: 1.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: var(--shadow-lg);
}

/* Mobile: skip the floating-pill treatment entirely — a normal full-width
   bar fixed to the very top on scroll, no shrink/round/float. */
@media (max-width: 720px) {
  .site-header {
    padding-block: 0;
  }

  .site-header[data-scrolled="true"] {
    padding-block: 0;
  }

  .site-header__bar {
    max-width: none;
    height: 72px;
  }

  .site-header[data-scrolled="true"] .site-header__bar {
    max-width: none;
    height: 72px;
    border-radius: 0;
  }
}

/* Nav/phone text still default to white for the transparent-over-image
   state — the logo itself swaps images (below) rather than being recolored. */
.site-header[data-scrolled="false"] .nav-primary__list a,
.site-header[data-scrolled="false"] .header-phone {
  color: var(--color-text-inverse);
}

.site-header[data-scrolled="false"] .nav-primary__list a[aria-current="page"] {
  color: var(--ab24-blue-400);
}

.site-header[data-scrolled="false"] .header-phone .icon {
  color: var(--ab24-blue-400);
}

.site-header[data-scrolled="false"] .nav-toggle {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-text-inverse);
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand__logo {
  height: 52px;
  width: auto;
  display: block;
}

/* Two logo images, one shown at a time: the reversed/white lockup while
   the header floats transparent over the hero photo, the full-colour
   lockup once it's scrolled to the solid pill state (or in any other
   context — footer overrides back to the white one below). */
.brand__logo--light { display: none; }

.site-header[data-scrolled="false"] .brand__logo--dark { display: none; }
.site-header[data-scrolled="false"] .brand__logo--light { display: block; }

.site-header[data-scrolled="true"] .brand__logo {
  height: 42px;
}

.footer-brand .brand__logo--dark { display: none; }
.footer-brand .brand__logo--light { display: block; height: 48px; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-brand-strong);
}

.header-phone .icon {
  color: var(--color-brand);
}

@media (max-width: 1180px) {
  .header-phone {
    display: none;
  }
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex: none;
}

.nav-primary__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-primary__list a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  padding-block: var(--space-2xs);
  white-space: nowrap;
}

.nav-primary__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--color-brand);
  transition: right var(--duration-base) var(--ease-standard);
}

.nav-primary__list a:hover::after,
.nav-primary__list a[aria-current="page"]::after {
  right: 0;
}

.nav-primary__list a[aria-current="page"] {
  color: var(--color-brand-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: transparent;
}

.nav-toggle .icon--close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon--open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon--close {
  display: block;
}

@media (max-width: 960px) {
  .nav-primary__list,
  .header-actions .btn {
    display: none;
  }

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

  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-mobile-menu);
    background: var(--ab24-white);
    padding: 0 var(--container-pad) var(--space-lg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-base) var(--ease-standard),
                visibility 0s linear var(--duration-base);
  }

  .mobile-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--duration-base) var(--ease-standard),
                visibility 0s linear 0s;
  }

  .mobile-nav__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    flex: none;
    margin-inline: calc(var(--container-pad) * -1);
    padding-inline: var(--container-pad);
    border-bottom: 1px solid var(--ab24-gray-100);
  }

  .mobile-nav__logo {
    height: 32px;
    width: auto;
    display: block;
  }

  .mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ab24-gray-100);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    flex: none;
  }

  .mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .mobile-nav__list li,
  .mobile-nav__legal,
  .mobile-nav__cta,
  .mobile-nav__social {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--duration-slow) var(--ease-standard),
                transform var(--duration-slow) var(--ease-standard);
    transition-delay: calc(var(--i, 0) * 40ms);
  }

  .mobile-nav[data-open="true"] .mobile-nav__list li,
  .mobile-nav[data-open="true"] .mobile-nav__legal,
  .mobile-nav[data-open="true"] .mobile-nav__cta,
  .mobile-nav[data-open="true"] .mobile-nav__social {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav__list a {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
  }

  .mobile-nav__list a[aria-current="page"] {
    color: var(--color-brand);
  }

  /* ---- Legal accordion ---- */
  .mobile-nav__legal-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
    color: var(--color-text);
    cursor: pointer;
  }

  .mobile-nav__legal-toggle .icon {
    transition: transform var(--duration-fast) var(--ease-standard);
  }

  .mobile-nav__legal-toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
  }

  .mobile-nav__legal-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
  }

  .mobile-nav__legal-list a {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
  }

  /* ---- CTA card ---- */
  .mobile-nav__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-brand);
    color: var(--color-text-inverse);
  }

  .mobile-nav__cta strong {
    display: block;
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
  }

  .mobile-nav__cta small {
    display: block;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--fs-xs);
  }

  .mobile-nav__cta .icon {
    flex: none;
  }

  /* ---- Social row ---- */
  .mobile-nav__social {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
  }

  .mobile-nav__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-border-strong);
    color: var(--color-text-muted);
  }
}

@media (min-width: 961px) {
  .mobile-nav {
    display: none;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ab24-navy-950);
  color: var(--color-text-inverse-muted);
  padding-block: var(--space-2xl) var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-lg);
  }
}

.footer-brand .brand__mark {
  font-size: 1.9rem;
}

.footer-brand p {
  margin-top: var(--space-sm);
  max-width: 34ch;
  color: var(--color-text-inverse-muted);
}

.footer-heading {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.footer-links a {
  color: var(--color-text-inverse-muted);
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-links a:hover {
  color: var(--color-text-inverse);
}

.footer-links--contact {
  gap: var(--space-sm);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  color: var(--color-text-inverse-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

.footer-contact-item .icon {
  flex: none;
  margin-top: 0.15em;
  color: var(--ab24-blue-400);
}

.footer-contact-item a {
  color: inherit;
}

.footer-contact-item a:hover {
  color: var(--color-text-inverse);
}

.footer-social {
  display: flex;
  gap: var(--space-2xs);
  margin-top: var(--space-md);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-inverse);
  transition: background var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}

.footer-social a:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.footer-newsletter-copy {
  font-size: var(--fs-sm);
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--space-sm);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2xs);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  height: var(--control-height);
  padding-inline: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-inverse);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
  padding-inline: 1rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  font-size: var(--fs-xs);
}

.footer-bottom__left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.footer-bottom__left p {
  margin: 0;
  color: var(--color-text-inverse-muted);
}

.footer-statement {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: none;
}

.footer-legal a {
  color: var(--color-text-inverse-muted);
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-legal a:hover {
  color: var(--color-text-inverse);
}

.footer-credit {
  margin-top: var(--space-2xs);
  font-size: var(--fs-xs);
  color: var(--color-text-inverse-muted);
}

.footer-credit a {
  color: var(--color-text-inverse-muted);
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-credit a:hover {
  color: var(--color-text-inverse);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .footer-legal {
    gap: var(--space-md);
  }
}

/* =========================================================
   Cards — services / property / project
   ========================================================= */

/* Image-topped service card (Services overview grid) — distinct from
   .service-card below, which is icon-only for the homepage preview. */
.service-detail-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-detail-card__media {
  position: relative;
}

.service-detail-card__media-clip {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ab24-gray-100);
}

.service-detail-card__media-clip--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ab24-gray-400, #9aa1ac);
}

.service-detail-card__media-clip--empty svg { width: 2.5rem; height: 2.5rem; stroke-width: 1.5; }

.service-detail-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-standard);
}

.service-detail-card:hover .service-detail-card__media img {
  transform: scale(1.06);
}

.service-detail-card__icon {
  position: absolute;
  left: var(--space-md);
  bottom: calc(var(--space-md) * -1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-brand);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

.service-detail-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: calc(var(--space-md) + var(--space-sm)) var(--space-md) var(--space-md);
}

.service-detail-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2xs);
}

.service-detail-card__desc {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

.service-detail-card__body > .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* =========================================================
   Brokerage service card — image + overlapping icon badge,
   checklist benefits, text-link CTA. Whole card is one <a>.
   ========================================================= */
.brokerage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

.brokerage-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.brokerage-card__number {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 1;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--color-text-inverse);
  opacity: 0.65;
}

.brokerage-card--no-image .brokerage-card__number {
  color: var(--color-text-muted);
  opacity: 1;
}

.brokerage-card__media {
  position: relative;
}

.brokerage-card__media-clip {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ab24-gray-100);
}

.brokerage-card__media-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-standard);
}

.brokerage-card:hover .brokerage-card__media-clip img {
  transform: scale(1.06);
}

.brokerage-card__icon {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

.brokerage-card__icon--standalone {
  position: static;
  transform: none;
  margin: var(--space-md) auto 0;
}

.brokerage-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: calc(var(--space-md) + var(--space-sm)) var(--space-md) var(--space-md);
}

.brokerage-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2xs);
}

.brokerage-card__desc {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
}

.brokerage-card__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  text-align: left;
  margin-bottom: var(--space-md);
}

.brokerage-card__benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.brokerage-card__benefits .icon {
  flex: none;
  margin-top: 0.2em;
  color: var(--color-brand);
}

.brokerage-card__cta {
  margin-top: auto;
  align-self: flex-start;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

/* Button always locks to the card's bottom edge, regardless of how much
   title/body text sits above it — every card with a button in the same
   grid row lines its button up on the same baseline. */
.service-card > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.service-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card__number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--color-border-strong);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
  margin-bottom: var(--space-md);
}

.service-card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}

.service-card__body {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.property-card,
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

.property-card:hover,
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.property-card__media,
.project-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ab24-gray-100);
}

.property-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ab24-gray-400, #9aa1ac);
}

.property-card__media--empty svg { width: 2.5rem; height: 2.5rem; stroke-width: 1.5; }

.property-card__media img,
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-standard);
}

.property-card:hover .property-card__media img,
.project-card:hover .project-card__media img {
  transform: scale(1.06);
}

.property-card__featured,
.project-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
}

.property-card__badge {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
}

.property-card__featured + .property-card__badge {
  top: calc(var(--space-sm) + 2rem + var(--space-2xs));
}

.property-card__favorite {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ab24-gray-700);
  box-shadow: var(--shadow-sm);
  transition: color var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}

.property-card__favorite:hover {
  transform: scale(1.08);
}

.property-card__favorite[aria-pressed="true"] {
  color: var(--color-brand);
}

[data-favorite-toggle][aria-pressed="true"] .icon {
  fill: currentColor;
}

.property-card__body,
.project-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.property-card__title,
.project-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: 0;
}

.property-card__location,
.project-card__location {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
}

.property-card__price {
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: var(--fs-xl);
  color: var(--color-brand-strong);
  margin-top: var(--space-2xs);
}

.property-card__fee {
  font-size: var(--fs-xs);
  color: var(--color-text-subtle);
}

.property-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-2xs);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.property-card__stats li {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
}

.property-card__stats .icon {
  color: var(--color-text-subtle);
}

.property-card__footer {
  margin-top: auto;
  padding-top: var(--space-sm);
}

.project-card__footer {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

/* =========================================================
   Properties page — category tabs, filter bar, results toolbar
   ========================================================= */
.property-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.property-filter-bar {
  margin-bottom: var(--space-lg);
}

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

.property-filter-bar__grid--second {
  grid-template-columns: repeat(2, 1fr) auto auto;
  align-items: end;
  margin-top: var(--space-sm);
}

@media (max-width: 1100px) {
  .property-filter-bar__grid,
  .property-filter-bar__grid--second {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .property-filter-bar__grid,
  .property-filter-bar__grid--second {
    grid-template-columns: 1fr;
  }

  .property-filter-bar__grid--second .btn {
    width: 100%;
  }
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.results-toolbar__count {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.results-toolbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.results-toolbar__sort .field-control {
  height: 40px;
}

.results-toolbar__view {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--ab24-gray-100);
  border-radius: var(--radius-sm);
}

.results-toolbar__view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border: 0;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  color: var(--color-text-subtle);
}

.results-toolbar__view-btn[aria-pressed="true"] {
  background: var(--ab24-white);
  color: var(--color-brand-strong);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 560px) {
  .results-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* List view: single column, image on the left */
.grid-cards--list {
  grid-template-columns: 1fr;
}

.grid-cards--list .property-card {
  flex-direction: row;
}

.grid-cards--list .property-card__media {
  width: 280px;
  flex: none;
  aspect-ratio: auto;
}

.grid-cards--list .property-card__footer .btn {
  width: auto;
}

@media (max-width: 720px) {
  .grid-cards--list .property-card {
    flex-direction: column;
  }

  .grid-cards--list .property-card__media {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}

.property-empty-state {
  text-align: center;
  padding-block: var(--space-2xl);
}

.property-empty-state .icon {
  color: var(--color-border-strong);
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-md);
}

/* =========================================================
   Property search / filter widget
   ========================================================= */
.search-widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
}

.search-widget__modes {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--ab24-gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.search-widget__modes button {
  border: 0;
  background: transparent;
  padding: 0.55rem 1.25rem;
  border-radius: calc(var(--radius-sm) - 2px);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}

.search-widget__modes button[aria-pressed="true"] {
  background: var(--ab24-black);
  color: var(--color-text-inverse);
}

.search-widget__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: var(--space-sm);
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.search-field label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-subtle);
}

.search-field .field-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--control-height);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding-inline: 0.85rem;
}

.search-field .field-control .icon {
  color: var(--color-text-subtle);
}

.search-field select,
.search-field input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  padding: 0;
}


@media (max-width: 1100px) {
  .search-widget__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-widget__grid .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .search-widget__grid {
    grid-template-columns: 1fr;
  }

  .search-widget__modes {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .search-widget__modes button {
    text-align: center;
  }
}

/* =========================================================
   Gallery marquee — 3 lanes, alternating auto-scroll direction
   ========================================================= */
.gallery-marquee {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  /* True full-bleed: break out of .container entirely to touch the actual
     viewport edges, not just the container's own padding. */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: var(--space-lg);
}

.gallery-marquee__row {
  overflow: hidden;
  width: 100%;
}

.gallery-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--space-sm);
  animation-name: ab24-marquee-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.gallery-marquee__track--reverse {
  animation-direction: reverse;
}

.js .gallery-marquee__row:hover .gallery-marquee__track {
  animation-play-state: paused;
}

@media (hover: none) {
  .gallery-marquee__row:hover .gallery-marquee__track {
    animation-play-state: running;
  }
}

.gallery-marquee__frame {
  flex: none;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-marquee__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes ab24-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   Property detail page — breadcrumb, layout, summary, tabs,
   contact/inquiry panel, similar properties
   ========================================================= */
.property-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
  padding-block: var(--space-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-subtle);
}

.property-breadcrumb a {
  color: var(--color-text-subtle);
}

.property-breadcrumb a:hover {
  color: var(--color-brand-strong);
}

.property-breadcrumb [aria-current="page"] {
  color: var(--color-text);
}

.property-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

/* Grid items default to min-width:auto (won't shrink below their content's
   natural size) — without this, the scrollable thumbnail strip's full
   content width pushes the whole grid track (and the page) wider instead
   of scrolling internally. */
.property-detail-layout > * {
  min-width: 0;
}

.property-detail-layout > *:first-child {
  overflow-x: hidden;
}

@media (max-width: 960px) {
  .property-detail-layout {
    grid-template-columns: 1fr;
  }
}

.property-summary,
.property-contact-card,
.property-inquiry-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.property-detail-aside {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
}

.property-summary__location {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-sm);
}

.property-summary__price {
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: var(--fs-2xl);
  color: var(--color-brand-strong);
  margin-bottom: var(--space-md);
}

.property-summary__price-label {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
}

.property-summary__specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-block: var(--space-md);
  border-block: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.property-summary__specs li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.property-summary__specs .icon {
  color: var(--color-brand);
}

.property-summary__fee {
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-md);
}

.property-summary__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.property-summary__favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: var(--control-height);
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: var(--fw-semibold);
  font-size: 0.9rem;
}

.property-summary__favorite:hover,
.property-summary__favorite[aria-pressed="true"] {
  color: var(--color-brand);
}

.property-info-tabs {
  margin-top: var(--space-xl);
}

.property-info-tabs [role="tablist"] {
  display: flex;
  gap: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

@media (max-width: 640px) {
  .property-info-tabs [role="tablist"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }

  .property-info-tabs [data-tab-trigger] {
    flex: none;
    white-space: nowrap;
  }
}

.property-info-tabs [data-tab-trigger] {
  padding-block: var(--space-sm);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
}

.property-info-tabs [data-tab-trigger][aria-selected="true"] {
  color: var(--color-brand-strong);
  border-bottom-color: var(--color-brand);
}

.property-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-lg);
}

.property-details-grid__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.property-details-grid__row dt {
  color: var(--color-text-subtle);
}

.property-details-grid__row dd {
  margin: 0;
  font-weight: var(--fw-semibold);
}

@media (max-width: 560px) {
  .property-details-grid {
    grid-template-columns: 1fr;
  }
}

.property-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs) var(--space-md);
}

.property-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-sm);
}

.property-feature-list .icon {
  color: var(--color-brand);
  flex: none;
}

@media (max-width: 560px) {
  .property-feature-list {
    grid-template-columns: 1fr;
  }
}

.property-share {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.property-share--centered {
  justify-content: center;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  margin-bottom: var(--space-lg);
}

.property-inquiry-form--wide .form-grid {
  gap: var(--space-md);
}

.property-share__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
}

.property-share__links {
  display: flex;
  gap: var(--space-xs);
}

.property-share__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
}

.property-share__links a:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-text-inverse);
}

.property-contact-card__heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.property-contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}

.property-contact-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

.property-contact-card__row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
}

.property-contact-card__row .icon {
  color: var(--color-brand);
}

.property-inquiry-form {
  margin-top: var(--space-md);
}

.property-inquiry-form h3 {
  margin-bottom: var(--space-md);
}

.similar-properties {
  background: var(--ab24-navy-950);
  color: var(--color-text-inverse);
}

.similar-properties .h2 {
  color: var(--color-text-inverse);
}

.similar-properties .property-card {
  background: var(--ab24-navy-900);
  border-color: rgba(255, 255, 255, 0.1);
}

.similar-properties .property-card__title {
  color: var(--color-text-inverse);
}

.similar-properties .property-card__stats {
  border-color: rgba(255, 255, 255, 0.1);
}

.similar-properties .property-card__stats li {
  color: var(--color-text-inverse-muted);
}

/* =========================================================
   Property detail gallery + lightbox
   ========================================================= */
.property-gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ab24-gray-100);
}

.property-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery__empty {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(160deg, var(--ab24-navy-900), var(--ab24-navy-800));
  color: rgba(255, 255, 255, 0.55);
}

.property-gallery__empty svg { width: 3.5rem; height: 3.5rem; stroke-width: 1.5; }

.property-gallery__empty span {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.property-gallery__featured {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 1;
}

.property-gallery__badge {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  z-index: 1;
}

.property-gallery__featured + .property-gallery__badge {
  top: calc(var(--space-sm) + 2rem + var(--space-2xs));
}

.property-gallery__expand {
  position: absolute;
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(5, 14, 31, 0.7);
  color: var(--color-text-inverse);
}

.property-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ab24-black);
}

.property-gallery__nav--prev {
  left: var(--space-sm);
}

.property-gallery__nav--prev .icon {
  transform: rotate(180deg);
}

.property-gallery__nav--next {
  right: var(--space-sm);
}

.property-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2xs);
  margin-top: var(--space-sm);
}

.property-gallery__thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
}

.property-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery__thumb.is-active {
  border-color: var(--color-brand);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 14, 31, 0.92);
  padding: var(--space-lg);
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  max-width: 100%;
}

.lightbox__image {
  max-width: min(100%, 1100px);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__caption {
  color: var(--color-text-inverse-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

.lightbox__counter {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-inverse-muted);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  margin: 0;
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-inverse);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-inverse);
}

.lightbox__nav--prev {
  left: var(--space-md);
}

.lightbox__nav--prev .icon {
  transform: rotate(180deg);
}

.lightbox__nav--next {
  right: var(--space-md);
}

@media (max-width: 640px) {
  .property-gallery__thumbs {
    display: flex;
    grid-template-columns: none;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-2xs);
  }

  .property-gallery__thumb {
    flex: none;
    width: 84px;
    scroll-snap-align: start;
  }
}

/* =========================================================
   Projects page — filter tabs, masonry gallery, delivery process
   ========================================================= */
.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
}

@media (max-width: 640px) {
  .gallery-filter-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-3xs);
  }

  .gallery-filter-tabs .pill {
    flex: none;
    padding: 0.45em 0.85em;
    font-size: var(--fs-xs);
    gap: 0.35em;
  }

  .gallery-filter-tabs .pill .icon {
    width: 0.85em;
    height: 0.85em;
  }
}

.masonry-section {
  margin-bottom: var(--space-xl);
}

.masonry-section:last-child {
  margin-bottom: 0;
}

.masonry-section__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

/* True masonry, positioned by assets/js/masonry-layout.js (places each
   tile into the currently-shortest column, so the bottom edge ends up
   far more even than plain CSS-columns while keeping natural, varied
   tile heights). JS sets left/top/width inline once images are measured;
   these are just the pre-JS/fallback base styles (a simple stacked
   column) so the gallery is never broken without JS. */
.masonry {
  position: relative;
}

.masonry__tile {
  margin: 0 0 var(--space-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.js .masonry[data-masonry-ready] .masonry__tile {
  position: absolute;
  margin: 0;
  transition: left var(--duration-base) var(--ease-standard),
              top var(--duration-base) var(--ease-standard),
              width var(--duration-base) var(--ease-standard);
}

.masonry__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.masonry__button img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-standard),
              opacity var(--duration-base) var(--ease-standard);
}

.masonry__button:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

/* ---- Have a Project in Mind CTA ---- */
.cta-banner {
  padding-block: var(--space-lg);
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--ab24-navy-900);
}

.cta-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-text-inverse);
  flex: none;
}

.cta-banner__text {
  color: var(--color-text-inverse);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
}

.cta-banner .btn {
  background: var(--ab24-white);
  color: var(--ab24-navy-900);
  border-color: var(--ab24-white);
}

.cta-banner .btn:hover {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--ab24-white);
}

@media (max-width: 600px) {
  .cta-banner {
    background: var(--ab24-navy-900);
    padding-block: var(--space-md);
  }

  .cta-banner__inner {
    max-width: none;
    margin-inline: 0;
    padding: 0 var(--container-pad);
    border-radius: 0;
    background: transparent;
    flex-direction: column;
    text-align: center;
    gap: var(--space-xs);
  }

  .cta-banner__icon {
    width: 36px;
    height: 36px;
  }

  .cta-banner__text {
    font-size: var(--fs-base);
  }

  .cta-banner .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- How We Deliver ---- */
.delivery-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.delivery-step {
  position: relative;
}

.delivery-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.delivery-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  width: calc(100% + var(--space-lg) - 40px);
  height: 1px;
  background: var(--color-border-strong);
}

.delivery-step__icon {
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.delivery-step__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2xs);
}

.delivery-step__body {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .delivery-process {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Vertical timeline: number stays in a fixed left rail, everything else
     (icon/title/body) sits in a right column so the connecting line runs
     down the rail instead of cutting through the step's text. */
  .delivery-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: var(--space-sm);
    align-items: start;
  }

  .delivery-step__number {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .delivery-step__icon {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: var(--space-2xs);
  }

  .delivery-step__title {
    grid-column: 2;
    grid-row: 2;
  }

  .delivery-step__body {
    grid-column: 2;
    grid-row: 3;
  }

  .delivery-step:not(:last-child)::after {
    top: 40px;
    left: 20px;
    width: 1px;
    height: calc(100% + var(--space-lg) - 40px);
  }
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-sm);
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-standard);
}

.gallery-tile:hover img {
  transform: scale(1.08);
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 28, 60, 0) 55%, rgba(7, 28, 60, 0.35) 100%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-standard);
}

.gallery-tile:hover::after {
  opacity: 1;
}

.gallery-tile--tall { grid-row: span 2; }
.gallery-tile--wide { grid-column: span 2; }

@media (max-width: 900px) {
  .gallery-grid {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none;
    grid-template-rows: 1fr;
    grid-auto-rows: unset;
    height: 340px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2xs);
    -webkit-overflow-scrolling: touch;
  }

  .gallery-tile {
    scroll-snap-align: start;
  }

  .gallery-tile--tall,
  .gallery-tile--wide {
    grid-row: auto;
    grid-column: auto;
  }
}

.gallery-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

@media (max-width: 640px) {
  .gallery-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-3xs);
  }

  .gallery-pills .pill {
    flex: none;
    padding: 0.45em 0.85em;
    font-size: var(--fs-xs);
    gap: 0.35em;
  }

  .gallery-pills .pill .icon {
    width: 0.85em;
    height: 0.85em;
  }
}

/* =========================================================
   Forms
   ========================================================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding-inline: 0.9rem;
  background: var(--color-surface);
  width: 100%;
  font-size: 0.9rem;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.form-field input,
.form-field select {
  height: var(--control-height);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--color-brand);
}

.form-field textarea {
  min-height: 96px;
  padding-block: 0.7rem;
  resize: vertical;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--ab24-black);
}

.form-field__error {
  display: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ab24-black);
}

.form-field.has-error .form-field__error {
  display: block;
}

.form-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-weight: var(--fw-semibold);
}

.form-status[data-state="success"] {
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}

.form-status[data-state="error"] {
  background: var(--ab24-gray-100);
  color: var(--ab24-black);
}

.contact-form-note {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-3xs);
  margin-top: var(--space-sm);
  max-width: 26rem;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  text-align: left;
}

.contact-form-note .icon {
  flex-shrink: 0;
  margin-top: 0.2em;
}

/* =========================================================
   Contact page — info cards, office/map, WhatsApp CTA
   ========================================================= */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.contact-info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-text-inverse);
}

.contact-info-card__label {
  font-weight: var(--fw-bold);
  margin-bottom: 0.15rem;
}

.contact-info-card__value {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.contact-info-card__value a {
  color: inherit;
}

.contact-info-card__value a:hover {
  color: var(--color-brand);
}


@media (max-width: 1024px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

.office-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.office-section__address {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-md);
}

.office-section__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

.office-section__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .office-section {
    grid-template-columns: 1fr;
  }
}

.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--ab24-blue-50);
}

.whatsapp-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: #25d366;
  color: var(--color-text-inverse);
}

.whatsapp-cta__body {
  flex: 1 1 auto;
  min-width: 0;
}

.whatsapp-cta__body .eyebrow {
  margin-bottom: var(--space-3xs);
}

.whatsapp-cta__body .h3 {
  margin-bottom: var(--space-3xs);
}

.whatsapp-cta__body p:last-child {
  color: var(--color-text-muted);
  margin: 0;
}

.whatsapp-cta__btn {
  flex: none;
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.whatsapp-cta__btn:hover {
  background: #1da851;
  border-color: #1da851;
}

@media (max-width: 720px) {
  .whatsapp-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .whatsapp-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   Final CTA — floating dark card, shared across every page
   ========================================================= */
.final-cta-wrap {
  padding-block: var(--space-2xl);
}

.final-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--ab24-navy-900);
  text-align: left;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='320' viewBox='0 0 900 320'%3E%3Cpath d='M-50 260 C 150 100, 320 320, 520 170 S 820 40, 950 190' stroke='%232C74C9' stroke-width='1.5' fill='none' opacity='0.35'/%3E%3Cpath d='M-50 170 C 220 260, 400 30, 630 220 S 900 140, 980 90' stroke='%232C74C9' stroke-width='1' fill='none' opacity='0.22'/%3E%3Cpath d='M-50 90 C 260 200, 470 -10, 680 150 S 920 260, 1000 190' stroke='%235B93D6' stroke-width='1' fill='none' opacity='0.28'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.final-cta__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--color-brand);
  color: var(--color-text-inverse);
}

.final-cta__body {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.final-cta .h2 {
  color: var(--color-text-inverse);
  margin-bottom: 0.35rem;
  font-size: clamp(1.25rem, 1.6vw + 0.9rem, 2rem);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .final-cta .h2 {
    white-space: normal;
  }
}

.final-cta p {
  max-width: 48ch;
  color: var(--color-text-inverse-muted);
  font-size: var(--fs-base);
}

.final-cta .cta-row {
  position: relative;
  flex: none;
  margin-top: 0;
}

@media (max-width: 860px) {
  .final-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: var(--space-lg);
  }

  .final-cta .cta-row {
    width: 100%;
  }

  .final-cta .cta-row .btn {
    flex: 1;
  }
}

/* =========================================================
   Inner-page banner (compact — About/Services/Properties/
   Projects/Brokerage/Contact). Not a full homepage hero.
   ========================================================= */
.page-banner {
  position: relative;
  min-height: clamp(460px, 52vh, 620px);
  display: flex;
  align-items: flex-end;
  color: var(--color-text-inverse);
  overflow: hidden;
}

.page-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.page-banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(5, 14, 31, 0.82) 0%,
    rgba(7, 28, 60, 0.72) 55%,
    rgba(7, 28, 60, 0.85) 100%);
}

/* This element also carries .container — deliberately NOT overriding its
   max-width/margin-inline here. .container must stay at the site's
   standard 1280px/auto-centered box (same as the hero and every other
   section) so its content starts at the exact same left edge as the
   header logo. Line-length for the title/subhead is capped on those
   elements individually instead (.page-banner__subhead has its own
   max-width) — capping this shared wrapper doubles as changing the
   outer box's own centering math, which caused a real misalignment bug. */
.page-banner__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-lg) var(--space-xl);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--space-sm);
}

.breadcrumb a {
  color: var(--color-text-inverse-muted);
}

.breadcrumb a:hover {
  color: var(--color-text-inverse);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text-inverse);
}

.page-banner__title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.page-banner__subhead {
  font-size: var(--fs-lg);
  color: var(--color-text-inverse-muted);
  max-width: 38rem;
}

@media (max-width: 720px) {
  .page-banner {
    min-height: clamp(420px, 62vh, 560px);
  }

  .page-banner__title {
    font-size: var(--fs-3xl);
  }
}

/* =========================================================
   Trust bar
   ========================================================= */
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  padding-block: var(--space-sm);
}

.trust-bar__item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--ab24-navy-800), var(--ab24-navy-950));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}

.trust-bar__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 15% 0%, rgba(44, 116, 201, 0.35), transparent 60%);
  pointer-events: none;
}

.trust-bar__item > * {
  position: relative;
  z-index: 1;
}

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

.trust-bar__item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ab24-blue-400);
}

.trust-bar__item .value {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--color-text-inverse);
}

.trust-bar__item .label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-inverse-muted);
}

@media (max-width: 720px) {
  .trust-bar__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .trust-bar__item__icon {
    width: 36px;
    height: 36px;
  }
}

/* =========================================================
   Legal pages — Privacy Policy / Terms of Service
   Document-style, full-width, readable text.
   ========================================================= */
.legal-layout {
  width: 100%;
}

.legal-document {
  width: 100%;
}

.legal-last-updated {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-lg);
}

.legal-section {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.legal-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

.legal-section p {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.legal-section ul li {
  display: list-item;
}

.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-draft-badge {
  display: inline-block;
  margin-bottom: var(--space-sm);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
}

.legal-pending-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-md);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
}

.legal-pending-notice .icon {
  flex: none;
  margin-top: 0.15em;
  color: var(--color-text-muted);
}

.legal-pending-notice p {
  margin: 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.legal-contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-top: var(--space-sm);
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-contact-block li {
  display: list-item;
}

.legal-contact-block a {
  color: var(--color-brand);
  text-decoration: underline;
}

.legal-contact-block a:hover {
  color: var(--color-brand-strong);
}

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}

.back-to-top:hover {
  background: var(--color-brand-strong);
  transform: translateY(-3px);
}

.back-to-top .icon {
  width: 1.4em;
  height: 1.4em;
}

@media (max-width: 640px) {
  .back-to-top {
    right: var(--space-sm);
    bottom: var(--space-sm);
    width: 42px;
    height: 42px;
  }
}

