*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #cc223d;
  --accent-dark: #890218;
  --accent-light: #cc344d;
  --ink: #1f3f7c;
  --ink-2: #082e76;
  --ink-3: #163e87;
  --ink-muted: rgba(15, 15, 18, 0.62);
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-bg-heavy: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.5);
  --blur: blur(22px);
  --blur-heavy: blur(40px);
  --page-bg: #EDE9E2;
  --page-bg-2: #F5F2EC;
  --surface: #FFFFFF;
  --hairline: rgba(15, 15, 18, 0.1);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 15, 18, 0.04), 0 1px 2px rgba(15, 15, 18, 0.06);
  --shadow-md: 0 8px 28px rgba(15, 15, 18, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 15, 18, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--page-bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.site-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 48px);
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 60px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--blur-heavy);
  -webkit-backdrop-filter: var(--blur-heavy);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: 0 12px 40px rgba(15, 15, 18, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-logo {
  width: 100px;
  height: auto;
  object-fit: contain;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 100px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(204, 34, 61, 0.08);
  opacity: 1;
}

.nav-links a[aria-current="page"] {
  color: #fff;
  background: var(--ink);
  font-weight: 600;
  opacity: 1;
}

.nav-links a[aria-current="page"]:hover {
  color: #fff;
  background: var(--ink-2);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 100px;
  padding: 9px 18px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-phone:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--ink-3);
}

.nav-wa {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border-radius: 100px;
  padding: 9px 18px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-wa:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}

.nav-wa svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.nav-login-btn,
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 9px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-login-btn:hover,
.nav-account-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--ink-3);
  transform: translateY(-1px);
}

.nav-login-btn[hidden],
.nav-account-btn[hidden],
.mobile-login-btn[hidden],
.mobile-account-btn[hidden] {
  display: none;
}

/* ── Nav user dropdown ──────────────────────────────────────────────────── */
.nav-user-menu {
  position: relative;
}

.nav-user-menu[hidden] {
  display: none !important;
}

.nav-user-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 7px;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.nav-user-trigger:hover {
  background: var(--ink-2);
}

.nav-user-caret {
  font-size: .62rem;
  transition: transform .2s;
}

.nav-user-menu.open .nav-user-caret {
  transform: rotate(180deg);
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 216px;
  background: #fff;
  border: 1px solid rgba(31, 63, 124, .12);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .13);
  padding: 6px;
  z-index: 500;
}

.nav-user-dropdown[hidden] {
  display: none !important;
}

.nav-dropdown-admin[hidden],
.nav-dropdown-agent[hidden],
.nav-dropdown-viewer[hidden] {
  display: none !important;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background .1s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(31, 63, 124, .07);
  color: var(--ink);
}

.nav-dropdown-item i {
  width: 15px;
  text-align: center;
  font-size: .78rem;
  opacity: .6;
  flex-shrink: 0;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(31, 63, 124, .1);
  margin: 4px 8px;
}

.nav-user-dropdown .nav-account-btn {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: none;
  background: none;
  color: var(--accent);
  padding: 9px 12px;
  border-radius: 8px;
  width: 100%;
  text-align: left;
}

.nav-user-dropdown .nav-account-btn:hover {
  background: rgba(204, 34, 61, .07);
  border-color: transparent;
  transform: none;
}

.nav-user-dropdown .nav-account-btn i {
  opacity: 1;
  color: var(--accent);
}

/* Mobile user menu */
.mobile-user-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-user-menu[hidden] {
  display: none !important;
}

.mobile-group-admin,
.mobile-group-agent,
.mobile-group-viewer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-group-admin[hidden],
.mobile-group-agent[hidden],
.mobile-group-viewer[hidden] {
  display: none !important;
}

.mobile-role-btn {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  border: none;
  background: var(--ink);
  color: #fff;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.mobile-account-btn.mobile-role-btn {
  background: rgba(204, 34, 61, .08);
  color: var(--accent);
  border: 1px solid rgba(204, 34, 61, .2);
}

.page-main {
  padding-top: 0.01px;
}

.page-hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 18, 0.16), rgba(15, 15, 18, 0.58)),
    linear-gradient(90deg, rgba(15, 15, 18, 0.72), rgba(15, 15, 18, 0.08));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8.5rem 2.5rem 5rem;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-title {
  max-width: 850px;
  margin: 1.6rem 0 1.2rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-title em {
  color: var(--accent-soft);
  font-style: italic;
  font-weight: 400;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.primary-action,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  font-size: 0.88rem;
  font-family: inherit;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  background-color: var(--accent-light);
  color: #fff;
}

.ghost-link:hover {
  transform: translateY(-2px);
  background-color: var(--ink-2);
  color: #fff;
}

.primary-action {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(184, 90, 46, 0.25);
  transition: transform 160ms ease, background 160ms ease;
}

.ghost-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.content-band {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem;
}

.content-band.tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0.7rem 0 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-head h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--ink-3);
  line-height: 1.75;
}

.data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-sm);
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  min-height: 48px;
  min-width: 48px;
  padding: 0 13px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.chip.is-active,
.chip:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.data-note {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.82rem;
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1.5rem;
}

.card-grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1.5rem;
}

.listing-pagination {
  min-height: 42px;
  margin-top: 2rem;
}

.listing-pagination:empty {
  display: none;
}

.listing-pagination-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  direction: ltr;
}

.listing-pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 0.65rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.listing-pagination-button:hover:not(:disabled),
.listing-pagination-button:focus-visible,
.listing-pagination-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.listing-pagination-button:focus-visible {
  outline: 3px solid rgba(184, 90, 46, 0.25);
  outline-offset: 2px;
}

.listing-pagination-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.listing-pagination-arrow {
  font-size: 1.25rem;
  line-height: 1;
}

.listing-pagination-ellipsis {
  min-width: 20px;
  color: var(--ink-3);
  text-align: center;
}

.metric-skeleton,
.card-skeleton {
  pointer-events: none;
}

.metric-skeleton {
  min-height: 128px;
}

.skeleton-block,
.skeleton-line,
.skeleton-pill {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(31, 63, 124, 0.06), rgba(31, 63, 124, 0.025)),
    #eee9e1;
}

.skeleton-block::after,
.skeleton-line::after,
.skeleton-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(105deg,
      transparent 0%,
      rgba(255, 255, 255, 0) 34%,
      rgba(255, 255, 255, 0.72) 48%,
      rgba(255, 255, 255, 0.22) 58%,
      transparent 74%);
  animation: skeleton-mirror 1.45s ease-in-out infinite;
}

.skeleton-line {
  height: 13px;
  border-radius: 999px;
}

.skeleton-value {
  width: 42%;
  height: 42px;
  border-radius: 10px;
}

.skeleton-label {
  width: 68%;
  margin-top: 0.9rem;
}

.card-skeleton .card-image {
  background: #e1dbd2;
}

.skeleton-kicker {
  width: 34%;
  height: 11px;
}

.skeleton-title {
  width: 82%;
  height: 22px;
  margin-top: 0.75rem;
  border-radius: 8px;
}

.skeleton-copy {
  width: 100%;
  margin-top: 0.85rem;
}

.skeleton-copy.short {
  width: 66%;
  margin-top: 0.55rem;
}

.skeleton-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.1rem;
}

.skeleton-pill {
  width: 74px;
  height: 28px;
  border-radius: 999px;
}

@keyframes skeleton-mirror {
  0% {
    transform: translateX(-130%);
  }

  62%,
  100% {
    transform: translateX(130%);
  }
}

.data-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-grid>.data-card,
.card-grid>.property-link {
  height: 100%;
}

.property-link {
  display: flex;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.property-link>.data-card {
  width: 100%;
  height: 100%;
}

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

.card-image {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #d7d0c5;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms ease;
}

.data-card:hover .card-image img {
  transform: scale(1.06);
}

.badges {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 15, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.72rem;
  font-weight: 800;
}

.badge.accent {
  background: var(--accent);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem;
}

.card-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.28;
}

.card-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0.7rem 0 0;
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.65;
}

.property-meta,
.item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.property-meta span,
.item-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--page-bg-2);
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 800;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.price {
  color: var(--ink);
  font-weight: 900;
  font-size: 1.05rem;
}

.property-card .card-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: auto;
  gap: 0.65rem;
  padding: 0.9rem 0.85rem;
  border: 1px solid rgba(225, 231, 242, 0.72);
  border-radius: 15px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(135deg, #17396f 0%, #214d91 100%);
  box-shadow:
    0 12px 24px rgba(23, 57, 111, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.property-card .card-footer::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 42%;
  height: 5px;
  background: linear-gradient(90deg, #f22550 0%, #c8143c 100%);
  clip-path: polygon(18% 100%, 29% 0, 100% 0, 100% 100%);
}

.property-card .card-footer::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 86px;
  height: 112px;
  right: -43px;
  bottom: -60px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f22550 0%, #b70f37 100%);
  box-shadow: -9px -7px 0 rgba(232, 237, 247, 0.1);
  transform: rotate(32deg);
}

.property-price {
  display: grid;
  gap: 0.12rem;
  color: #fff;
}

.property-price small {
  color: #dce4f2;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.property-price strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(8, 26, 58, 0.26);
  white-space: nowrap;
}

.mini-link {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.card-whatsapp-action {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(37, 211, 102, 0.22);
  border-radius: 50%;
  background: #fff;
  color: #25d366;
  box-shadow: 0 5px 14px rgba(15, 15, 18, 0.08);
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.card-whatsapp-action i {
  font-size: 1.45rem;
  line-height: 1;
}

.card-whatsapp-action:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(37, 211, 102, 0.4);
  background: #f4fff8;
  color: #128c7e;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.16);
}

.card-whatsapp-action:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.3);
  outline-offset: 3px;
}

.card-whatsapp-action:active {
  transform: translateY(0) scale(0.98);
}

.metric-grid,
.value-grid,
.timeline-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.metric,
.value-card,
.timeline-card,
.empty-state {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.metric strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  color: var(--accent);
}

.metric span,
.timeline-card span {
  display: block;
  margin-top: 0.6rem;
  color: var(--ink-3);
  font-size: 0.86rem;
  font-weight: 700;
}

.value-card h3,
.timeline-card h3 {
  margin: 0;
  color: var(--ink);
}

.value-card p,
.timeline-card p,
.empty-state p {
  margin: 0.65rem 0 0;
  color: var(--ink-3);
  line-height: 1.7;
}

.value-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  width: 100%;
  height: 140px;
  background: radial-gradient(circle at center, rgba(204, 34, 61, 0.08) 0%, rgba(204, 34, 61, 0.02) 100%);
  border: 1px solid rgba(204, 34, 61, 0.1);
  border-radius: var(--radius-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.value-card:hover .value-card-media {
  background: radial-gradient(circle at center, rgba(204, 34, 61, 0.12) 0%, rgba(204, 34, 61, 0.04) 100%);
  box-shadow: 0 8px 24px rgba(204, 34, 61, 0.06);
  transform: translateY(-2px);
}

.value-card-media img {
  max-width: 110px;
  max-height: 110px;
  width: auto;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 15px rgba(31, 63, 124, 0.15));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease;
}

.value-card:hover .value-card-media img {
  transform: scale(1.12) rotate(-3deg);
  filter: drop-shadow(0 15px 25px rgba(204, 34, 61, 0.2));
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: stretch;
}

.split-panel>div {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.service-pill {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--page-bg-2);
  padding: 0.7rem 0.95rem;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 800;
}

.data-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

.data-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5BE58A;
  box-shadow: 0 0 0 6px rgba(91, 229, 138, 0.16);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.site-footer {
  background: var(--ink-2);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.75rem 2rem 1.5rem;
}

.footer-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(140px, 0.7fr)) minmax(210px, 1fr);
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-logo {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-brand-logo span {
  color: #E89B73;
  font-style: italic;
  font-weight: 500;
}

.footer-brand p {
  margin: 1rem 0 1.3rem;
  max-width: 320px;
  line-height: 1.75;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, transform 160ms ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-social svg,
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.footer-col h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.7rem;
}

.footer-col a,
.footer-contact-item a,
.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-col a:hover,
.footer-contact-item a:hover,
.footer-bottom-links a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--accent-soft);
  margin-top: 0.18rem;
}

.footer-bottom {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-col a {
  font-weight: 700;
}

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate3d(-1%, 0, 0);
  }

  to {
    transform: scale(1.1) translate3d(1%, -1%, 0);
  }
}

.nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 160ms ease;
}

.nav-cart-btn:hover {
  background: rgba(31, 63, 124, 0.08);
}

.nav-cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

.mobile-drawer-actions .nav-cart-btn {
  width: auto;
  justify-content: flex-start;
  gap: 0.5rem;
  color: var(--ink-2);
}

.mobile-drawer-actions .nav-cart-btn::after {
  content: 'Cart';
  font-weight: 700;
}

html[lang="ar"] .mobile-drawer-actions .nav-cart-btn::after {
  content: 'السلة';
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 15, 18, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-menu-btn:hover {
  background: rgba(15, 15, 18, 0.1);
}

/* Mobile Drawer Overlay and Container */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  overflow: hidden;
  transition: visibility 0.3s;
}

.mobile-drawer.is-active {
  visibility: visible;
}

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.is-active .mobile-drawer-overlay {
  opacity: 1;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 2;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: var(--page-bg-2);
  border-left: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.is-active .mobile-drawer-content {
  transform: translateX(0);
}

/* RTL handling for slide-in */
html[lang="ar"] .mobile-drawer-content {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--hairline);
  transform: translateX(-100%);
}

html[lang="ar"] .mobile-drawer.is-active .mobile-drawer-content {
  transform: translateX(0);
}

/* Header inside drawer */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--hairline);
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--ink);
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.mobile-drawer-close:hover {
  background: rgba(15, 15, 18, 0.05);
}

/* Links and actions inside drawer */
.mobile-drawer-nav {
  margin-bottom: 2rem;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 100px;
  transition: all 0.2s;
}

.mobile-nav-links a:hover {
  color: var(--accent);
  background: rgba(204, 34, 61, 0.06);
}

.mobile-nav-links a[aria-current="page"] {
  color: #fff;
  background: var(--ink);
}

.mobile-nav-links a[aria-current="page"]:hover {
  background: var(--ink-2);
}

.mobile-drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.mobile-lang-btn {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hairline);
  background: transparent;
  padding: 10px;
  border-radius: 100px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-lang-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}

.mobile-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 11px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.84rem;
  transition: background 0.2s;
}

.mobile-phone-btn:hover {
  background: var(--ink-2);
}

.mobile-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.84rem;
  transition: background 0.2s;
}

.mobile-wa-btn:hover {
  background: var(--accent-dark);
}

.mobile-wa-btn svg {
  width: 14px;
  height: 14px;
}

.mobile-login-btn,
.mobile-account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  text-decoration: none;
  padding: 11px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-login-btn:hover,
.mobile-account-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 980px) {

  .section-head,
  .split-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    width: calc(100% - 24px);
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-phone,
  .nav-wa,
  .nav-login-btn,
  .nav-account-btn,
  .nav-user-menu {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }
}

@media (max-width: 640px) {

  .hero-inner,
  .content-band {
    width: calc(100% - 32px);
  }

  .page-hero {
    min-height: 78vh;
  }

  .hero-title {
    font-size: 3rem;
  }

  .card-grid,
  .card-grid.two,
  .metric-grid,
  .value-grid,
  .timeline-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 3rem 1rem 1.5rem;
  }

  .footer-grid,
  .footer-bottom {
    width: calc(100% - 16px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .hero-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-action,
  .ghost-link {
    width: 100%;
  }

  .metric strong {
    font-size: 1.6rem;
  }

  .value-grid {
    gap: 0.85rem;
  }

  .split-panel > div {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

html[lang="ar"] {
  font-family: 'Cairo', 'Playfair Display', 'DM Sans', sans-serif;
}

html[lang="ar"] body,
html[lang="ar"] .hero-title,
html[lang="ar"] .section-head h2,
html[lang="ar"] .card-title,
html[lang="ar"] .lang-btn,
html[lang="ar"] .nav-logo {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .page-hero,
html[lang="ar"] .hero-inner,
html[lang="ar"] .section-head,
html[lang="ar"] .split-panel,
html[lang="ar"] .footer-grid,
html[lang="ar"] .footer-bottom,
html[lang="ar"] .data-card,
html[lang="ar"] .value-card,
html[lang="ar"] .timeline-card {
  direction: rtl;
}

html[lang="ar"] .hero-inner,
html[lang="ar"] .section-head,
html[lang="ar"] .split-panel,
html[lang="ar"] .value-card,
html[lang="ar"] .timeline-card {
  text-align: right;
}

html[lang="ar"] .section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

html[lang="ar"] .site-nav {
  direction: rtl;
}

html[lang="ar"] ul.nav-links {
  padding: 0;
}

html[lang="ar"] .nav-right {
  gap: 12px;
}

html[lang="ar"] .badges {
  flex-direction: row-reverse;
}

html[lang="ar"] .property-meta,
html[lang="ar"] .item-meta {
  direction: rtl;
}

html[lang="ar"] .card-footer {
  flex-direction: row-reverse;
}

.property-save-btn {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.property-save-btn.is-saved {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.property-save-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}