﻿/* ============================================================
   MARTS â€” MAGIC LAYER
   Fantasy visual layer: gold shimmer, glow, aurora, sparkles.
   Loaded AFTER style.css. Additive only; safe to delete.
   ============================================================ */

/* ---------- Gold identity ---------- */
::selection { background: var(--gold); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: 99px;
  border: 2px solid var(--ivory);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); }

a, button, .btn, input, select, textarea { outline-color: var(--gold); }

/* ---------- Keyframes ---------- */
@keyframes mGoldShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes mShineSweep {
  0%   { transform: translateX(-130%) skewX(-18deg); }
  60%, 100% { transform: translateX(230%) skewX(-18deg); }
}
@keyframes mFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes mPulseGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(201,169,97,.35); }
  50%      { box-shadow: 0 8px 28px rgba(201,169,97,.7); }
}
@keyframes mBlobA {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6%, 8%) scale(1.15); }
  100% { transform: translate(-4%, -6%) scale(.95); }
}
@keyframes mBlobB {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-7%, 5%) scale(.9); }
  100% { transform: translate(5%, -8%) scale(1.2); }
}
@keyframes mSparkle {
  0%, 100% { opacity: 0; transform: translateY(20px) scale(.6); }
  50%      { opacity: .9; transform: translateY(-10px) scale(1); }
}
@keyframes mWiggle {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-8deg) scale(1.08); }
  75%      { transform: rotate(8deg) scale(1.08); }
}
@keyframes mUnderline {
  from { width: 0; opacity: 0; }
  to   { width: 100%; opacity: 1; }
}
@keyframes mTextGlow {
  0%, 100% { text-shadow: 0 2px 24px rgba(201,169,97,.2); }
  50%      { text-shadow: 0 2px 38px rgba(201,169,97,.6); }
}
@keyframes mRevealUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mBorderFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---------- Hero: aurora + shimmer + sparkles ---------- */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 12% 22%, rgba(201,169,97,.42), transparent 65%),
    radial-gradient(38% 50% at 88% 26%, rgba(142,163,200,.42), transparent 65%),
    radial-gradient(30% 42% at 70% 85%, rgba(201,169,97,.28), transparent 60%);
  filter: blur(6px);
}
.hero::before { animation: mBlobA 16s ease-in-out infinite alternate; }

.hero .hero-inner { animation: mFloat 7s ease-in-out infinite; }
.hero h1 { animation: mTextGlow 5s ease-in-out infinite; }

.hero-inner::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2.5px 2.5px at 18% 30%, rgba(231,213,168,.95), transparent 60%),
    radial-gradient(2px 2px at 62% 18%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(2.5px 2.5px at 84% 55%, rgba(231,213,168,.9), transparent 60%),
    radial-gradient(2px 2px at 34% 70%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(2px 2px at 72% 82%, rgba(231,213,168,.8), transparent 60%),
    radial-gradient(2px 2px at 8% 62%, rgba(255,255,255,.7), transparent 60%);
  background-size: 100% 100%;
}
.hero-inner::before { animation: mSparkle 6s ease-in-out infinite; }

.hero p.subtitle {
  text-shadow: 0 0 22px rgba(201,169,97,.35);
}
.search-bar button {
  position: relative; overflow: hidden;
  animation: mPulseGlow 4s ease-in-out infinite;
}
.search-bar button::after {
  content: '';
  position: absolute; top: 0; left: 0; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: mShineSweep 2.8s ease-in-out infinite;
}

/* ---------- Buttons: gold shine ---------- */
.btn-primary {
  position: relative; overflow: hidden;
  background-size: 200% 200%;
  animation: mGoldShimmer 6s ease-in-out infinite;
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: 0; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: mShineSweep 3.2s ease-in-out infinite;
}
.btn-outline { transition: transform .2s ease, box-shadow .25s ease, background .25s ease; }
.btn-outline:hover { box-shadow: 0 6px 22px rgba(201,169,97,.4); transform: translateY(-2px); }

/* ---------- Cards: gold glow + shine sweep ---------- */
.card {
  position: relative;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200% 100%;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.card:hover::before {
  transform: scaleX(1);
  animation: mBorderFlow 2.5s linear infinite;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,169,97,.55);
  box-shadow: 0 18px 44px rgba(201,169,97,.28), 0 4px 14px rgba(30,42,56,.08);
}
.card-img::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%);
  transform: translateX(-130%) skewX(-14deg);
  pointer-events: none;
}
.card:hover .card-img::after { animation: mShineSweep 1s ease forwards; }
.card:hover .card-img img { transform: scale(1.09); }
.card-price {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: mGoldShimmer 5s linear infinite;
}
.card-action { transition: color .2s, background .2s, transform .2s; }
.card-action:hover { transform: translateY(-2px); }

/* ---------- Section heads: animated gold underline ---------- */
.section-head h2 {
  position: relative;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: mGoldShimmer 7s linear infinite;
}
.section-head h2::after {
  content: '';
  display: block;
  height: 4px; margin-top: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
  animation: mUnderline .8s cubic-bezier(.2,.7,.3,1) both;
}

/* ---------- Quick links ---------- */
.quick-link {
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.quick-link::after {
  content: '';
  position: absolute; top: 0; left: 0; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.18), transparent);
  animation: mShineSweep 2.6s ease-in-out infinite;
}
.quick-link:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(201,169,97,.3); }
.quick-link:hover .ql-icon { animation: mWiggle .55s ease; }

/* ---------- Area cards ---------- */
.area-card { overflow: hidden; }
.area-card img { transition: transform .5s ease; }
.area-card:hover img { transform: scale(1.1); }
.area-card::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 48%, transparent 60%);
  transform: translateX(-130%) skewX(-14deg);
}
.area-card:hover::after { animation: mShineSweep 1s ease forwards; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(45% 60% at 15% 20%, rgba(201,169,97,.3), transparent 65%),
    radial-gradient(40% 55% at 85% 30%, rgba(142,163,200,.3), transparent 65%);
  animation: mBlobA 18s ease-in-out infinite alternate;
}
.page-hero > * { position: relative; z-index: 1; }

/* ---------- Stat cards ---------- */
.stat-card b {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: mGoldShimmer 5s linear infinite;
}

/* ---------- Price boxes (sell page) ---------- */
.price-box { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.price-box:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(201,169,97,.28); }
.price-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  background-size: 200% 100%;
  animation: mBorderFlow 3s linear infinite;
}

/* ---------- Socials ---------- */
.socials a {
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.socials a:hover {
  transform: translateY(-4px) scale(1.12);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 8px 20px rgba(201,169,97,.5);
}

/* ---------- Footer glow ---------- */
.footer { position: relative; }
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  background-size: 200% 100%;
  animation: mBorderFlow 4s linear infinite;
}
.footer-brand img { filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(201,169,97,.6)); }

/* ---------- Inputs ---------- */
.search-input,
.search-filters input,
.search-filters select {
  transition: box-shadow .25s ease, border-color .25s ease;
}
.search-input:focus,
.search-filters input:focus,
.search-filters select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,97,.18);
}

/* ---------- Scroll-reveal (Chrome/Edge 115+, graceful elsewhere) ---------- */
@supports (animation-timeline: view()) {
  .card, .area-card, .stat-card, .price-box, .quick-link, .section-head {
    animation: mRevealUp .7s cubic-bezier(.2,.7,.3,1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Floating WhatsApp button (all pages) ---------- */
.floating-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-wa:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 30px rgba(0,0,0,.34); }

/* ---------- Phone icon in header (desktop hidden, mobile visible) ---------- */
.header-phone { display: none; }
@media (max-width: 640px) {
  .header-phone { display: inline-flex; }
}

/* ---------- Sticky bottom CTA bar (property page, mobile only) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}
.sticky-cta-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.sticky-cta-btn.wa { background: #25D366; }
.sticky-cta-btn.booking { background: var(--gold); color: var(--ink); }
@media (max-width: 640px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 0; }
  .property-detail-grid { margin-bottom: 80px; }
}

/* ---------- Search: mobile filters collapsible ---------- */
.filters-toggle {
  display: none;
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media (max-width: 900px) {
  .filters-toggle { display: inline-flex; }
  .filters { display: none; }
  .filters.open { display: block; }
}

/* ---------- Trust stats strip (home) ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  background: linear-gradient(135deg, var(--navy), #243b5e);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}
.stat-item b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Poppins', 'Cairo', sans-serif;
}
.stat-item span { color: rgba(255,255,255,.85); font-size: 14px; }

/* ---------- Form success (reusable) ---------- */
.form-success {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f7ee;
  border: 1px solid #bfe6cf;
  color: #1c6b3a;
  font-weight: 600;
}
.form-success.show { display: block; }
.login-error {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fdecec;
  border: 1px solid #f5c6c6;
  color: #a12626;
  font-weight: 600;
}


/* ============ Global (International) page ============ */
.global-card { display: flex; flex-direction: column; padding: 24px; }
.global-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.global-card-head h2 { margin: 0; font-size: 20px; }
.global-code {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), #b8860b); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: .5px;
}
.global-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.global-row b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.global-row span { color: var(--ink-soft); text-align: left; }
html[lang="ar"] .global-row span { text-align: right; }
.global-points { list-style: none; margin: 12px 0 16px; padding: 0 !important; display: grid; gap: 6px; }
.global-points li { position: relative; padding-inline-start: 18px; color: var(--ink-soft); font-size: 14px; }
.global-points li::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.global-cta { margin-top: auto; }
.global-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) {
  .global-row { flex-direction: column; gap: 2px; }
}


/* ============ Floor plans ============ */
.plan-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--white);
}
.plan-wrap svg { width: 100%; height: auto; display: block; }
.plan-room { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1; }
.plan-label { fill: var(--ink); font-size: 13px; font-weight: 600; text-anchor: middle; }
.plan-area { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.plan-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* ===== Status chips (shared: services page) ===== */
.marts-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.marts-chip-live { color: #8FD9A8; background: rgba(111, 207, 151, 0.14); border: 1px solid rgba(111, 207, 151, 0.35); }
.marts-chip-new  { color: var(--gold-light); background: rgba(201, 169, 97, 0.16); border: 1px solid rgba(201, 169, 97, 0.45); }
.marts-chip-soon { color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.07); border: 1px dashed rgba(255, 255, 255, 0.25); }

/* ===== Services page ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.service-icon svg { width: 24px; height: 24px; }
.service-chip { align-self: flex-start; margin-top: -2px; }
.service-card h3 { margin: 2px 0 0; font-size: 16px; color: var(--ink); }
.service-card p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }

.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.tool-card h3 { margin: 0 0 6px; font-size: 18px; }
.tool-desc { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 18px; line-height: 1.6; }
.tool-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.tool-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.tool-card input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--ivory);
  width: 100%;
}
.tool-card input:focus { outline: none; border-color: var(--gold); background: var(--white); }
.tool-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-light);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
}
.tool-result small { color: var(--ink-soft); font-size: 12.5px; }

.axes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.axis-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  padding: 22px;
}
.axis-card h3 { margin: 0 0 14px; font-size: 16px; color: var(--ink); }
.axis-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.axis-card li { position: relative; padding-inline-start: 22px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.axis-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.services-cta {
  background: linear-gradient(135deg, var(--ink) 0%, #27384B 55%, #31455C 100%);
  border-radius: 22px;
  padding: 44px 34px;
  text-align: center;
  color: var(--white);
}
.services-cta h2 { color: var(--white); margin: 0 0 8px; font-size: 26px; }
.services-cta p { color: rgba(255,255,255,.75); margin: 0 0 22px; }

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .axes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-fields { grid-template-columns: 1fr; }
  .axes-grid { grid-template-columns: 1fr; }
}

/* ===== Colored social icons ===== */
.socials a {
  background: #fff;
  border-radius: 50%;
  color: #111;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.socials a:hover { transform: translateY(-3px); }
.socials a.fb svg { fill: #1877F2; }
.socials a.ig svg { fill: none; stroke: url(#igGrad); stroke-width: 2; }
.socials a.tk svg { fill: #010101; }
.socials a.sc svg { fill: #FFFC00; stroke: #E6E600; stroke-width: 1; }
.socials a.li svg { fill: #0A66C2; }
.socials a.yt svg { fill: #FF0000; }
.socials a.x svg { fill: #000000; }
.socials a.wa svg { fill: #25D366; }
