:root {
  --orange: #ea580c;
  --orange-2: #c2410c;
  --orange-soft: #fff7ed;
  --black: #0a0a0a;
  --ink: #1f2937;
  --white: #ffffff;
  --muted: #6b7280;
  --line: #f0e7de;
  --bg: #ffffff;
  --shadow: 0 14px 40px rgba(234,88,12,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(234,88,12,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-size: 11px; font-weight: 600; color: var(--orange); letter-spacing: .04em; }
.logo-img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; }
.logo-preview { max-width: 180px; max-height: 80px; object-fit: contain; margin-bottom: 10px; }
.aside-label { color: #9ca3af; font-size: 12px; font-weight: 800; padding: 14px 12px 6px; letter-spacing: .04em; }
.auto-preview { display: grid; gap: 4px; margin: -4px 0 14px; padding: 10px 12px; background: #fff7ed; border-radius: 12px; border: 1px solid var(--line); }
.auto-preview small { color: #6b7280; font-weight: 600; display: block; }
.auto-preview.busy { opacity: .6; }
.hero-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
.hero-admin-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding: 0 0 12px; }
.hero-admin-card img { width: 100%; height: 140px; object-fit: cover; }
.hero-admin-card p, .hero-admin-card label { padding: 0 12px; }
.map-frame { width: 100%; min-height: 280px; border: 0; border-radius: 16px; margin-top: 12px; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.nav a, .drop > button {
  padding: 8px 10px; border-radius: 999px; color: #4b5563; background: transparent; border: 0; font: inherit; font-weight: 700; cursor: pointer;
}
.nav a:hover, .nav a.on, .drop > button:hover { color: var(--orange); background: var(--orange-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-drop, .drop { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 800; font-size: 12px;
}
.lang-btn svg { color: var(--orange); }
.lang-menu, .drop-menu {
  display: none; position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; min-width: 160px;
  box-shadow: var(--shadow); padding: 8px; z-index: 50;
}
.drop-menu { inset-inline-end: auto; inset-inline-start: 0; }
.drop-menu a { display: block; padding: 8px 10px; border-radius: 10px; font-weight: 700; }
.lang-menu.open, .drop.open .drop-menu { display: grid; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 700; direction: ltr; text-align: left; }
.lang-menu a b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--orange-soft); color: var(--orange); font-size: 11px; }
.lang-menu a:hover, .lang-menu a.active, .drop-menu a:hover { background: var(--orange-soft); color: var(--orange); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 700;
}
.btn-orange { background: linear-gradient(135deg, var(--orange), #f97316); color: #fff; }
.btn-black { background: #fff; color: #111; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost { background: var(--orange-soft); color: var(--orange); }
.hero {
  position: relative; min-height: 86vh; overflow: hidden;
  display: grid; align-items: end; padding: 90px 0 56px; color: #1f2937;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
}
.hero-slide.on { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-wash {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,247,237,.18) 38%, rgba(255,255,255,.92) 100%);
}
.hero-content { position: relative; z-index: 3; }
.hero-kicker { margin: 0 0 6px; color: var(--orange); font-weight: 800; letter-spacing: .08em; font-size: 13px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 8px; line-height: 1.2; }
.search-box {
  margin-top: 28px; background: #fff; color: #111; border-radius: 20px; padding: 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-dots { position: absolute; inset-inline-start: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(234,88,12,.28); cursor: pointer; }
.hero-dots button.on { background: var(--orange); width: 22px; border-radius: 999px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs a, .tabs button {
  border: 0; background: var(--orange-soft); color: var(--orange); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 700;
}
.tabs .on { background: var(--orange); color: #fff; }
.grid-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.grid-form input, .grid-form select, .form input, .form select, .form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff;
}
.section { padding: 56px 0; background: #fff; }
.section.alt { background: linear-gradient(180deg, #fff 0%, var(--orange-soft) 100%); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-head h2, .section h2 { margin: 0 0 22px; font-size: 28px; }
.section-head h2 { margin: 0; }
.link-more { color: var(--orange); font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.card-media { height: 180px; background: linear-gradient(135deg, #fed7aa, #ea580c); position: relative; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--orange); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 999px; }
.badge2 { inset-inline-start: auto; inset-inline-end: 10px; background: #fff; color: var(--orange); }
.card-body { padding: 14px 16px 16px; }
.price { color: var(--orange); font-weight: 800; font-size: 18px; }
.meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn { flex: 1; font-size: 13px; padding: 8px; }
.cta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cta { background: #fff; color: var(--ink); border-radius: 18px; padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta h3 { margin: 0 0 8px; color: var(--orange); }
.footer { background: linear-gradient(180deg, #fff, var(--orange-soft)); color: var(--ink); padding: 48px 0 20px; margin-top: 0; border-top: 1px solid var(--line); }
.footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 14px; font-size: 13px; color: var(--muted); }
.page-hero { background: linear-gradient(180deg, #fff, var(--orange-soft)); color: var(--ink); padding: 40px 0; border-bottom: 1px solid var(--line); }
.property-layout { display: grid; grid-template-columns: 1.5fr .9fr; gap: 22px; }
.gallery-main { border-radius: 18px; min-height: 360px; background: linear-gradient(135deg,#fed7aa,#ea580c); }
.side-card { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); position: sticky; top: 90px; border: 1px solid var(--line); }
.fab { position: fixed; inset-inline-end: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.fab a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: var(--shadow); }
.fab .wa { background: #16a34a; }
.fab .call { background: var(--orange); }
.alert { padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.alert-ok { background: #ecfdf5; color: #065f46; }
.alert-err { background: #fef2f2; color: #991b1b; }
.empty { background: #fff; padding: 32px; border-radius: 18px; text-align: center; border: 1px solid var(--line); }
.admin { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.aside { background: #0a0a0a; color: #fff; padding: 22px 14px; overflow-y: auto; }
.aside a { display: block; padding: 10px 12px; border-radius: 10px; margin-bottom: 4px; }
.aside a:hover, .aside a.on { background: var(--orange); }
.main { padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
.stat { background: #fff; padding: 16px; border-radius: 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 26px; color: var(--orange); }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; font-size: 14px; }
.section.tight { padding-top: 20px; padding-bottom: 8px; }
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.home-stats div { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.home-stats b { display: block; font-size: 28px; color: var(--orange); }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.area-card {
  min-height: 160px; border-radius: 18px; padding: 18px; color: #fff;
  background: linear-gradient(135deg, #fdba74, #ea580c); background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.area-card h3 { margin: 0; }
.badge3 { top: 38px; background: #fff; color: var(--orange); }
.badge4 { top: auto; bottom: 10px; inset-inline-start: auto; inset-inline-end: 10px; background: var(--orange); }
.badge-new { top: auto; bottom: 10px; inset-inline-start: 10px; inset-inline-end: auto; background: #fff; color: var(--orange); font-weight: 800; }
button.thumb { border: 0; cursor: pointer; }
.thumb.tall { height: 120px; }
.portfolio { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.login-body { min-height: 100vh; display: grid; place-items: center; background: #0a0a0a; }
.login-card { width: min(420px, calc(100% - 32px)); background: #fff; padding: 28px; border-radius: 18px; }
.login-card h1 { margin-top: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-form fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 0 0 18px; background: #fff; }
.admin-form .private { border-color: #ea580c; background: #fff7ed; }
.admin-form label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.admin-form .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; }
.check { font-weight: 600 !important; }
.nowrap { white-space: nowrap; }
.nowrap form { display: inline; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin: 10px 0 18px; }
.thumb { height: 70px; border-radius: 10px; background-size: cover; background-position: center; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.pager { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pager a { background: #fff; padding: 8px 12px; border-radius: 10px; }
.pager a.on { background: var(--orange); color: #fff; }
.menu-toggle { display: none; background: #fff; color: var(--orange); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; inset-inline: 0; top: 78px; background: #fff; padding: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open .drop-menu { position: static; display: grid; box-shadow: none; border: 0; padding-inline-start: 10px; }
  .menu-toggle { display: inline-flex; }
  .grid-form, .cta-row, .property-layout, .footer-grid, .admin, .admin-form .grid-3, .home-stats { grid-template-columns: 1fr; }
  .search-box .btn { width: 100%; }
}
