:root {
  --navy: #10213b;
  --navy-2: #1b3152;
  --ink: #1b283b;
  --muted: #6b7686;
  --paper: #f5f7f8;
  --line: #d6dde5;
  --coral: #8ea3b8;
  --coral-soft: #dce5ed;
  --white: #ffffff;
}

button,
a,
select,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

.primary-nav a.is-active {
  color: var(--navy);
  font-weight: 700;
  position: relative;
}

.primary-nav a.is-active::after {
  background: var(--coral);
  bottom: -7px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.filter-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-controls label {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.filter-controls select {
  max-width: 145px;
}

.filter-submit,
.filter-clear {
  min-height: 38px;
}

.filter-submit {
  background: var(--navy);
}

.filter-clear {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 10px 13px;
}

.filter-clear:hover,
.filter-clear:focus-visible {
  background: var(--coral-soft);
}

.filter-status {
  color: var(--muted);
  font-size: 11px;
  min-height: 18px;
  margin: -21px 0 23px;
}

.no-results {
  border: 1px solid var(--line);
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px;
  text-align: center;
}

.property-type {
  background: var(--navy);
}

.property-details,
.property-contact {
  border-radius: 2px;
}

.property-details:focus-visible,
.property-contact:focus-visible {
  outline-offset: 3px;
}

.field-error {
  color: #8c4d56;
  font-size: 11px;
  margin: 6px 0 0;
  min-height: 0;
}

.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-bottom: 2px solid #8c4d56;
}

.form-status.is-error {
  color: #8c4d56;
}

.form-status.is-success {
  color: var(--navy);
}

.final-cta-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
}

.button-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.button-outline-light:hover,
.button-outline-light:focus-visible {
  background: var(--white);
  color: var(--navy);
}

.button-whatsapp {
  background: var(--coral-soft);
  color: var(--navy);
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
  background: var(--coral);
}

.contact-modal-panel {
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(9, 21, 42, 0.3);
  max-width: 480px;
  padding: 38px;
  position: relative;
  width: 100%;
}

.contact-modal-content h2 {
  color: var(--navy);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  margin: 0 48px 26px 0;
}

.contact-modal-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 82px 1fr auto;
  padding: 17px 0;
}

.contact-modal-row:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-modal-row > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-modal-row > a {
  color: var(--navy);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}

.contact-copy-button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 11px;
}

.contact-copy-button:hover,
.contact-copy-button:focus-visible {
  background: var(--coral-soft);
}

.contact-modal-row-whatsapp {
  grid-template-columns: 82px 1fr auto;
}

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

.property-modal {
  align-items: center;
  background: rgba(9, 21, 42, 0.76);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

#property-modal {
  align-items: flex-start;
  overflow-y: auto;
}

.modal-panel {
  background: var(--paper);
  height: auto;
  margin-block: auto;
  max-height: none;
  box-shadow: 0 28px 80px rgba(9, 21, 42, 0.3);
  max-width: 930px;
  overflow: visible;
  position: relative;
  width: 100%;
}

.modal-close {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  display: flex;
  font-family: var(--serif);
  font-size: 28px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  z-index: 2;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--coral-soft);
}

.modal-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.modal-image-wrap {
  min-height: 660px;
  position: relative;
}

.modal-image-wrap img {
  cursor: zoom-in;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  inset: 0;
  touch-action: pan-y;
  width: 100%;
}

.property-image-lightbox[hidden] {
  display: none;
}

.property-image-lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 56px 24px 24px;
  position: fixed;
  z-index: 120;
}

.property-image-lightbox img {
  display: block;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  touch-action: pan-y;
  width: auto;
}

.lightbox-close {
  right: 22px;
  top: 18px;
}

.modal-slider-controls {
  align-items: center;
  bottom: 16px;
  display: flex;
  gap: 14px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
}

.modal-slider-controls button {
  background: var(--navy);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  height: 34px;
  width: 34px;
}

.modal-slider-controls button:disabled {
  cursor: default;
  opacity: 0.45;
}

.modal-slider-controls span {
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  padding: 7px 10px;
}

.modal-copy {
  padding: 58px 52px 48px;
}

.modal-copy h2 {
  font-size: clamp(34px, 4vw, 58px);
  margin: 0 0 10px;
}

.modal-location {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
}

.modal-price {
  color: var(--navy);
  display: block;
  font-size: 14px;
  margin-bottom: 22px;
}

.modal-meta {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 22px;
  padding: 15px 0;
}

.modal-meta span {
  color: var(--muted);
  font-size: 11px;
}

.modal-meta span:first-child {
  color: var(--navy);
  font-weight: 700;
}

.modal-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-actions .button {
  flex: 1 1 150px;
  justify-content: space-between;
}

details p {
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}

details[open] p {
  max-height: 280px;
  padding-bottom: 22px;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

.mobile-cta {
  display: none;
}

@media (max-width: 980px) {
  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding: 17px 0;
  }

  .filter-controls {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 800px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-controls label {
    border-left: 0;
    display: block;
    padding-left: 0;
  }

  .filter-controls label select {
    display: block;
    margin-top: 6px;
    max-width: none;
    width: 100%;
  }

  .filter-submit,
  .filter-clear {
    width: 100%;
  }

  .filter-submit {
    grid-column: span 2;
  }

  .filter-clear {
    grid-column: span 2;
  }

  .filter-status {
    margin: -5px 0 22px;
  }

  .contact-modal-panel {
    padding: 32px 24px;
  }

  .contact-modal-row-whatsapp {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .contact-modal-row-whatsapp .button {
    grid-column: 2;
    justify-self: start;
    width: 100%;
    max-width: 146px;
    min-width: 0;
  }

  .modal-content {
    display: block;
  }

  .modal-image-wrap {
    height: min(55vh, 420px);
    min-height: 0;
  }

  .modal-copy {
    padding: 36px 24px 27px;
  }

  .modal-copy h2 {
    font-size: 39px;
    padding-right: 32px;
  }

  .modal-close {
    right: 12px;
    top: 12px;
  }

  .final-cta-actions {
    align-items: stretch;
    flex-direction: column;
    margin-inline: auto;
    max-width: 280px;
  }

  .mobile-cta {
    background: var(--navy);
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(9, 21, 42, 0.15);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    left: 0;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 40;
  }

  .mobile-cta a {
    border-right: 1px solid rgba(255, 255, 255, 0.17);
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 2px 7px;
    text-align: center;
  }

  .mobile-cta a:last-child {
    border-right: 0;
  }

  .mobile-cta span {
    color: var(--coral-soft);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-cta strong {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  h1 {
    font-size: 47px;
  }

  .hero-intro {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 14px;
  }

  .hero-note {
    margin-top: 18px;
  }

  .hero-stamp {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-modal,
  .modal-panel,
  details p {
    scroll-behavior: auto;
    transition: none;
  }
}

/* AL-AZMAT visitor dashboard — editorial property portal */
:root {
  --navy: #10213b;
  --navy-2: #1b3152;
  --ink: #1b283b;
  --muted: #6b7686;
  --paper: #f5f7f8;
  --line: #d6dde5;
  --coral: #8ea3b8;
  --coral-soft: #dce5ed;
  --white: #ffffff;
  --whatsapp: #168b57;
}
html { scroll-padding-top: 116px; }
body { background: #f1f4f6; }
.site-header { position: static; z-index: 50; }
.announcement {
  position: fixed; z-index: 52; top: 0; left: 248px; right: 0;
  height: 32px; background: #e3eaf0; color: #526278;
  justify-content: space-between; padding: 0 38px;
  font-size: 10px; letter-spacing: .08em;
}
.announcement a { border-color: #8799ad; }
.nav-wrap {
  position: fixed; z-index: 51; top: 32px; left: 248px; right: 0;
  width: auto; height: 78px; padding: 0 38px; margin: 0;
  background: rgba(250,251,252,.97); border-bottom: 1px solid var(--line);
  box-shadow: 0 7px 24px rgba(16,33,59,.035); justify-content: flex-start; gap: 24px;
}
.brand { gap: 0; flex: 0 0 auto; }
.brand .brand-mark { display: block; width: 58px; height: 58px; object-fit: contain; border: 0; border-radius: 0; }
.brand-light .brand-mark { width: 76px; height: 76px; }
.topbar-caption { display: flex; flex-direction: column; gap: 3px; margin-left: 10px; }
.topbar-caption .eyebrow { margin: 0; font-size: 8px; letter-spacing: .15em; }
.topbar-caption .eyebrow > span { width: 18px; }
.topbar-caption strong { font-family: var(--display); font-size: 16px; letter-spacing: -.025em; color: var(--navy); }
.topbar-contact { margin-left: auto; display: flex; align-items: center; gap: 15px; font-size: 10px; color: var(--muted); }
.topbar-contact strong { display: inline-flex; gap: 14px; align-items: center; background: var(--navy); color: white; padding: 12px 15px; font-size: 11px; }
.topbar-contact b { color: #c9d5e0; font-size: 15px; }
.menu-toggle { display: none; }
.primary-nav {
  position: fixed; z-index: 53; top: 0; bottom: 0; left: 0; right: auto;
  width: 248px; display: flex; flex-direction: column; align-items: stretch;
  gap: 5px; padding: 132px 18px 26px; overflow-y: auto;
  background: #10213b; color: #d8e0e9; border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 7px 0 24px rgba(16,33,59,.08);
}
.sidebar-label { margin: 0 12px 9px; color: #93a4b9; font: 700 9px var(--display); letter-spacing: .19em; text-transform: uppercase; }
.primary-nav a:not(.nav-cta) {
  position: relative; display: flex; align-items: center; gap: 13px;
  min-height: 43px; padding: 0 12px; border-radius: 3px;
  color: #c5cfdb; font-size: 12px; transition: background .2s, color .2s;
}
.primary-nav a:not(.nav-cta):hover, .primary-nav a.is-active { color: white; background: #1d3557; }
.primary-nav a.is-active::after { left: 0; right: auto; bottom: 8px; top: 8px; width: 2px; height: auto; background: #9bafc3; }
.nav-icon { display: grid; place-items: center; width: 21px; color: #9aadc2; font-size: 16px; }
.sidebar-contact { display: flex; flex-direction: column; gap: 7px; margin: auto 8px 15px; padding: 18px 12px 14px; border-top: 1px solid #30435c; }
.sidebar-contact span { margin-bottom: 4px; color: #91a3b9; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-contact a { color: #eef2f6; font-size: 11px; }
.sidebar-contact a:last-child { color: #aebbc9; font-size: 10px; }
.primary-nav .nav-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 0; padding: 13px 14px; border: 1px solid #60738a; color: white; background: transparent; }
main, .site-footer { margin-left: 248px; }
main { padding-top: 110px; }
.hero { min-height: 640px; }
.hero-inner, .shell { max-width: 1160px; }
@media (min-width: 1201px) {
  .hero-copy { width: calc(100% - min(42vw, 520px) - 44px); max-width: 580px; }
  .hero h1 { font-size: clamp(55px, 6vw, 84px); }
  .hero-image-wrap { width: min(42vw, 520px); right: 3%; }
}
@media (min-width: 1201px) and (max-width: 1300px) {
  .hero-copy { width: calc(100% - min(40vw, 410px) - 36px); max-width: none; }
  .hero h1 { font-size: clamp(52px, 6.3vw, 72px); }
  .hero-image-wrap { width: min(40vw, 410px); right: 3%; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .hero-copy { width: calc(100% - min(40vw, 410px) - 36px); max-width: none; }
  .hero h1 { font-size: clamp(52px, 6.3vw, 72px); }
  .hero-image-wrap { width: min(40vw, 410px); right: 3%; }
}
.section { scroll-margin-top: 118px; }
.about-section, .services-section, .contact-section { scroll-margin-top: 110px; }
.whatsapp-float {
  position: fixed; right: 26px; bottom: 24px; z-index: 45;
  display: flex; align-items: center; gap: 11px; min-height: 56px;
  padding: 9px 18px 9px 12px; border-radius: 999px; color: white;
  background: var(--whatsapp); box-shadow: 0 8px 24px rgba(9,73,47,.23);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 11px 27px rgba(9,73,47,.29); }
.whatsapp-float svg { width: 31px; height: 31px; flex: none; }
.whatsapp-float span { font-size: 11px; font-weight: 700; }
.whatsapp-float b { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); font-size: 10px; font-weight: 500; }
.mobile-cta { display: none; }
.welcome-screen[hidden] { display: none; }
.welcome-screen {
  position: fixed; z-index: 200; inset: 0; display: grid; place-items: center;
  background: #f7f8f8; opacity: 1; transition: opacity .72s ease, visibility .72s ease;
}
body.welcome-open { overflow: hidden; }
.welcome-screen.is-leaving { opacity: 0; visibility: hidden; }
.welcome-content { display: flex; flex-direction: column; align-items: center; text-align: center; animation: welcome-arrive .95s cubic-bezier(.2,.8,.2,1) both; }
.welcome-logo-frame { display: flex; align-items: center; justify-content: center; width: clamp(140px, 19vw, 224px); height: clamp(140px, 19vw, 224px); margin-bottom: 25px; }
.welcome-logo-frame img { display: block; width: 85%; height: auto; }
.welcome-content p { margin: 0 0 7px; color: #78879a; font: 700 10px var(--display); letter-spacing: .28em; }
.welcome-content h2 { margin: 0; color: var(--navy); font: 600 clamp(23px,3vw,36px) var(--display); letter-spacing: .14em; }
.welcome-rule { width: 38px; height: 1px; margin-top: 23px; background: #8ea3b8; transform-origin: center; animation: welcome-rule .8s .35s both; }
.welcome-skip { position: absolute; bottom: clamp(20px,6vh,52px); left: 50%; padding: 10px 14px; border: 0; background: transparent; color: #78879a; font: 600 10px var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; transform: translateX(-50%); cursor: pointer; }
.welcome-skip:hover, .welcome-skip:focus-visible { color: var(--navy); }
@keyframes welcome-arrive { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes welcome-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 1200px) {
  html { scroll-padding-top: 80px; }
  body { padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
  .announcement { position: relative; left: auto; right: auto; height: 30px; padding: 0 16px; }
  .announcement span { display: block; font-size: 8px; }
  .site-header { position: sticky; top: -30px; }
  body.menu-open .site-header { position: fixed; left: 0; right: 0; }
  .nav-wrap { position: relative; top: auto; left: auto; right: auto; z-index: 55; height: 69px; width: 100%; padding: 0 18px; gap: 11px; }
  .brand .brand-mark { width: 48px; height: 48px; }
  .topbar-caption { margin-left: 0; }
  .topbar-caption .eyebrow { font-size: 7px; margin-bottom: 1px; }
  .topbar-caption strong { font-size: 12px; }
  .topbar-contact { display: none; }
  .menu-toggle { display: block; margin-left: auto; padding: 10px 4px; }
  .menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--navy); }
  .primary-nav { z-index: 56; top: 99px; bottom: auto; left: 12px; right: 12px; width: auto; max-height: calc(100dvh - 115px); padding: 18px; display: none; gap: 2px; background: #10213b; box-shadow: 0 20px 45px rgba(16,33,59,.25); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.nav-cta) { min-height: 42px; }
  .sidebar-label { margin-top: 2px; }
  .sidebar-contact { margin: 13px 8px 8px; }
  .primary-nav .nav-cta { margin-top: 2px; }
  main, .site-footer { margin-left: 0; }
  main { padding-top: 0; }
  .hero { min-height: 0; }
  .section { scroll-margin-top: 80px; }
  .whatsapp-float { display: none; }
  .mobile-cta { display: grid; }
  .mobile-cta svg { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
  .mobile-cta a[data-whatsapp-general] svg { color: #25d366; }
  .welcome-logo-frame { width: 164px; height: 164px; }
}
@media (min-width: 801px) and (max-width: 1200px) {
  body { padding-bottom: 0; }
  .whatsapp-float { display: flex; }
  .mobile-cta { display: none; }
}
@media (max-width: 380px) {
  .announcement { padding-inline: 12px; }
  .announcement span { max-width: 190px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .nav-wrap { padding-inline: 12px; }
  .topbar-caption strong { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-screen, .welcome-content, .welcome-rule, .welcome-skip { animation: none; transition: none; }
  .whatsapp-float { transition: none; }
}