html { color-scheme: only light !important; }

    :root {
      --earth:      #080a06;
      --deep:       #0d0f0a;
      --olive:      #8aaa4a;
      --olive-light:#b4d46e;
      --olive-dim:  #4a6420;
      --sand:       #f5f0e4;
      --off-sand:   #e8e0cc;
      --muted:      #8a9070;
      --t:          0.35s cubic-bezier(0.4,0,0.2,1);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: 'Nunito Sans', sans-serif; background: var(--earth); color: var(--sand); overflow-x: hidden; }
    a { text-decoration: none; color: inherit; }
    img { max-width: 100%; display: block; }
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: var(--earth); }
    ::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 2px; }

    /* NAV */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      padding: 0 6%; height: 76px;
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(8,10,6,0.9); backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(138,170,74,0.1); transition: var(--t);
    }
    nav.scrolled { height: 60px; background: rgba(8,10,6,0.98); }
    .nav-brand { font-family: 'Libre Baskerville', serif; font-size: 1.2rem; letter-spacing: 2px; forced-color-adjust: none; color-scheme: dark; }
    .nav-brand span { color: var(--olive-light); }
    .nav-brand, .nav-brand *, .f-brand-l, .f-brand-l * { forced-color-adjust: none !important; color-scheme: dark !important; }
    .nav-brand img, .f-brand-l img { mix-blend-mode: normal !important; opacity: 1 !important; }
    .nav-sub { font-size: 0.58rem; letter-spacing: 4px; color: var(--muted); text-transform: uppercase; }
    .lang-btn{background:none;border:1px solid rgba(138,170,74,0.3);color:#888;font-family:'Montserrat',sans-serif;font-size:.6rem;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;padding:5px 10px;cursor:pointer;transition:.3s;}
    .lang-btn:first-child{border-radius:2px 0 0 2px;border-right:none;}
    .lang-btn:last-child{border-radius:0 2px 2px 0;}
    .lang-btn.active{background:#8aaa4a;color:#050505;border-color:#8aaa4a;}
    .lang-btn:hover:not(.active){color:#8aaa4a;border-color:#8aaa4a;}
    html[dir="rtl"] body{font-family:'Cairo','Montserrat',sans-serif;text-align:right;direction:rtl;}
    .nav-back {
      font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
      color: var(--olive); border: 1px solid rgba(138,170,74,0.35);
      padding: 7px 16px; border-radius: 2px; transition: var(--t);
    }
    .nav-back:hover { background: rgba(138,170,74,0.1); }

    /* HERO BANNER */
    .detail-hero {
      position: relative; height: 55vh; min-height: 340px;
      display: flex; align-items: flex-end;
      overflow: hidden;
    }
    .detail-hero-img {
      position: absolute; inset: 0;
    }
    .detail-hero-img img {
      width: 100%; height: 100%; object-fit: cover;
      filter: brightness(0.35) saturate(0.6);
    }
    .detail-hero-grad {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(8,10,6,0.95) 0%, rgba(8,10,6,0.3) 60%, transparent 100%);
    }
    .detail-hero-content {
      position: relative; z-index: 2;
      padding: 0 6% 52px; width: 100%;
      animation: fade-up 0.9s ease forwards; opacity: 0; transform: translateY(20px);
    }
    @keyframes fade-up { to { opacity:1; transform:translateY(0); } }
    .detail-eyebrow {
      font-size: 0.63rem; letter-spacing: 5px; text-transform: uppercase;
      color: var(--olive); margin-bottom: 14px;
      display: flex; align-items: center; gap: 12px;
    }
    .detail-eyebrow::before { content:''; width: 28px; height: 1px; background: var(--olive); }
    .detail-title {
      font-family: 'Libre Baskerville', serif;
      font-size: clamp(1.8rem, 4vw, 3.4rem);
      color: var(--sand); line-height: 1.1; margin-bottom: 10px;
    }
    .detail-title em { font-style: italic; color: var(--olive-light); }
    .detail-price-tag {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.5rem; color: var(--olive-light); font-weight: 700; margin-top: 12px;
    }
    .detail-price-tag span { font-size: 0.75rem; color: var(--muted); font-family: 'Nunito Sans', sans-serif; }

    /* BREADCRUMB */
    .breadcrumb {
      padding: 18px 6%; font-size: 0.7rem; color: var(--muted);
      border-bottom: 1px solid rgba(138,170,74,0.07);
      display: flex; gap: 8px; align-items: center;
    }
    .breadcrumb a { color: rgba(255,255,255,0.35); text-decoration:none; }
    .breadcrumb a:hover { color: var(--olive); }
    .breadcrumb span:not(#bc-name) { color: rgba(138,170,74,0.4); }
    .breadcrumb #bc-name { color: var(--olive-light); font-weight: 600; }

    /* MAIN LAYOUT */
    .detail-wrap {
      display: grid; grid-template-columns: 1fr 380px; gap: 0;
      padding: 0 6%; max-width: 1300px; margin: 0 auto;
    }

    /* INFO COLUMN */
    .detail-info { padding: 56px 60px 80px 0; border-right: 1px solid rgba(138,170,74,0.08); }

    .sec-eyebrow { font-size: 0.63rem; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--olive); margin-bottom: 10px; }
    .sec-title {
      font-family: 'Libre Baskerville', serif;
      font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--sand); line-height: 1.2; margin-bottom: 10px;
    }
    .sec-title em { font-style: italic; color: var(--olive-light); }
    .olive-line { width: 44px; height: 2px; background: linear-gradient(90deg, var(--olive), transparent); margin: 12px 0 32px; }

    /* SPECS TABLE */
    .specs-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
      background: rgba(138,170,74,0.08); border: 1px solid rgba(138,170,74,0.08);
      border-radius: 3px; overflow: hidden; margin-bottom: 44px;
    }
    .spec-item {
      background: var(--deep); padding: 22px 18px;
    }
    .spec-label {
      font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase;
      color: var(--muted); margin-bottom: 8px;
    }
    .spec-value {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.1rem; color: var(--olive-light); font-weight: 700;
    }
    .spec-value.normal { font-size: 0.9rem; color: var(--sand); font-family: 'Nunito Sans', sans-serif; }

    /* GALLERY */
    .gallery-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 44px;
    }
    .gallery-grid img {
      width: 100%; height: 200px; object-fit: cover; border-radius: 2px;
      filter: brightness(0.75) saturate(0.8); transition: filter 0.4s, transform 0.4s;
      cursor: pointer;
    }
    .gallery-grid img:hover { filter: brightness(0.95) saturate(1); transform: scale(1.02); }
    .gallery-grid img:first-child { grid-column: 1 / -1; height: 280px; }

    /* DESCRIPTION */
    .detail-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.95; margin-bottom: 40px; }
    .detail-desc p + p { margin-top: 16px; }

    /* FEATURES LIST */
    .features-list { list-style: none; margin-bottom: 44px; }
    .features-list li {
      display: flex; align-items: flex-start; gap: 12px;
      font-size: 0.84rem; color: var(--off-sand); padding: 12px 0;
      border-bottom: 1px solid rgba(138,170,74,0.07);
    }
    .features-list li:last-child { border-bottom: none; }
    .features-list li::before {
      content: '✓'; color: var(--olive); font-weight: 700;
      font-size: 0.8rem; flex-shrink: 0; margin-top: 1px;
    }

    /* LOCATION */
    .map-placeholder {
      width: 100%; height: 240px; background: var(--deep);
      border: 1px solid rgba(138,170,74,0.1); border-radius: 3px;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 10px; margin-bottom: 44px; color: var(--muted);
    }
    .map-placeholder .map-icon { font-size: 2rem; }
    .map-placeholder p { font-size: 0.78rem; letter-spacing: 1px; }

    /* BOOK VISIT COLUMN */
    .book-column { padding: 56px 0 80px 52px; }
    .book-sticky { position: sticky; top: 90px; }

    .book-card {
      background: var(--deep); border: 1px solid rgba(138,170,74,0.15);
      border-radius: 4px; overflow: hidden;
    }
    .book-card-head {
      background: linear-gradient(135deg, var(--olive-dim), var(--olive));
      padding: 24px 28px;
    }
    .book-card-head h3 {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.15rem; color: var(--earth); margin-bottom: 4px;
    }
    .book-card-head p { font-size: 0.75rem; color: rgba(8,10,6,0.7); }

    .book-form { padding: 28px; }
    .form-group { margin-bottom: 18px; }
    .form-label {
      display: block; font-size: 0.62rem; font-weight: 700;
      letter-spacing: 2px; text-transform: uppercase;
      color: var(--muted); margin-bottom: 8px;
    }
    .form-input {
      width: 100%; background: rgba(255,255,255,0.04);
      border: 1px solid rgba(138,170,74,0.15); border-radius: 2px;
      padding: 12px 14px; font-family: 'Nunito Sans', sans-serif;
      font-size: 0.83rem; color: var(--sand); transition: border-color var(--t);
      outline: none;
    }
    .form-input::placeholder { color: rgba(138,144,112,0.5); }
    .form-input:focus { border-color: rgba(138,170,74,0.5); }
    .form-input option { background: #1a1e13; color: var(--sand); }
    textarea.form-input { resize: vertical; min-height: 90px; }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

    .btn-book {
      width: 100%; background: linear-gradient(135deg, var(--olive-dim), var(--olive), var(--olive-light));
      color: var(--earth); font-family: 'Nunito Sans', sans-serif;
      font-size: 0.73rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
      padding: 14px; border: none; border-radius: 2px; cursor: pointer;
      transition: transform var(--t), box-shadow var(--t); margin-top: 6px;
    }
    .btn-book:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(138,170,74,0.3); }

    .book-note {
      font-size: 0.72rem; color: var(--muted); text-align: center;
      margin-top: 14px; line-height: 1.6;
    }

    /* SUCCESS STATE */
    .book-success {
      display: none; padding: 28px; text-align: center;
    }
    .book-success .success-icon { font-size: 2.5rem; margin-bottom: 16px; }
    .book-success h4 {
      font-family: 'Libre Baskerville', serif;
      font-size: 1.1rem; color: var(--olive-light); margin-bottom: 10px;
    }
    .book-success p { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

    /* CONTACT CHIPS */
    .quick-contact {
      margin-top: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
    }
    @media (max-width: 520px){ .quick-contact { grid-template-columns: 1fr 1fr; } }
    .q-chip {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-decoration: none; color: inherit;
      background: rgba(255,255,255,0.02); border: 1px solid rgba(138,170,74,0.1);
      border-radius: 3px; padding: 14px 14px; text-align: center;
      transition: var(--t); cursor: pointer;
    }
    .q-chip:hover { border-color: var(--olive); }
    .q-chip .ico { font-size: 1.1rem; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; }
    .q-chip p { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.5px; margin: 0; }
    .q-chip span { color: var(--olive-light); font-size: 0.75rem; font-weight: 600; margin-top: 2px; }

    /* RELATED */
    .related-section { padding: 80px 6%; background: var(--deep); }
    .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
    .land-card {
      background: rgba(255,255,255,0.02); border: 1px solid rgba(138,170,74,0.12);
      border-radius: 3px; overflow: hidden; transition: var(--t);
    }
    .land-card:hover { border-color: rgba(138,170,74,0.4); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
    .land-card-img img {
      width: 100%; height: 170px; object-fit: cover;
      filter: brightness(0.7) saturate(0.7); transition: filter 0.5s, transform 0.5s;
    }
    .land-card:hover .land-card-img img { filter: brightness(0.9) saturate(0.9); transform: scale(1.05); }
    .land-card-body { padding: 20px 18px 22px; }
    .land-district {
      font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase;
      color: var(--olive); margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
    }
    .land-district::before { content:'📍'; font-size: 0.7rem; }
    .land-name { font-family: 'Libre Baskerville', serif; font-size: 1.05rem; color: var(--sand); margin-bottom: 8px; }
    .land-price { font-family: 'Libre Baskerville', serif; font-size: 1rem; color: var(--olive-light); font-weight: 700; }
    .land-price span { font-size: 0.68rem; color: var(--muted); font-family: 'Nunito Sans', sans-serif; }
    .land-cta {
      display: inline-block; margin-top: 10px;
      font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase;
      color: var(--olive); border-bottom: 1px solid rgba(138,170,74,0.3); padding-bottom: 2px;
      transition: color var(--t);
    }
    .land-card:hover .land-cta { color: var(--olive-light); }

    /* FOOTER */
    footer {
      background: #050704; border-top: 1px solid rgba(138,170,74,0.07);
      padding: 40px 6% 24px;
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
    }
    .f-brand-l { font-family: 'Libre Baskerville', serif; font-size: 1.1rem; letter-spacing: 2px; }
    .f-brand-l em { font-style: italic; color: var(--olive-light); }
    .f-parent-l { font-size: 0.72rem; color: var(--muted); }
    .f-parent-l a { color: var(--olive); }
    .f-copy-l { font-size: 0.72rem; color: rgba(255,255,255,0.18); }

    /* LIGHTBOX */
    .lightbox {
      display: none; position: fixed; inset: 0; z-index: 9000;
      background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
    }
    .lightbox.open { display: flex; }
    .lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 2px; }
    .lb-close {
      position: absolute; top: 24px; right: 32px;
      font-size: 2rem; color: var(--muted); cursor: pointer; transition: color var(--t);
    }
    .lb-close:hover { color: var(--sand); }

    /* FADE IN */
    .fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .fade-in.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 1024px) {
      .detail-wrap { grid-template-columns: 1fr; }
      .detail-info { padding: 44px 0 0; border-right: none; }
      .book-column { padding: 40px 0 60px; }
      .book-sticky { position: static; }
      .related-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 600px) {
      .specs-grid { grid-template-columns: 1fr 1fr; }
      .gallery-grid { grid-template-columns: 1fr; }
      .gallery-grid img:first-child { height: 220px; }
      .form-row { grid-template-columns: 1fr; }
      .related-grid { grid-template-columns: 1fr; }
      .quick-contact { grid-template-columns: 1fr; }
    }
  

/* --- responsive image fixes (appended) --- */
img { max-width: 100%; height: auto; }
@media (max-width: 1024px) { /* tablet fixes */
  .hero img, .banner img, [class*="hero"] img, [class*="banner"] img {
    width: 100%; height: auto; object-fit: cover;
  }
}
@media (max-width: 640px) {
  .hero, .banner, [class*="hero"], [class*="banner"] { min-height: auto; }
  img { display: block !important; }
}

/* ── Logo: always render in original colors, defeat any dark-mode / auto-darken / extension filters ── */
html img.brand-logo-img, body img.brand-logo-img,
html img[src*="logo/logo.png"], body img[src*="logo/logo.png"],
html.dark img.brand-logo-img, html[data-theme="dark"] img.brand-logo-img, body.dark img.brand-logo-img,
html.dark img[src*="logo/logo.png"], html[data-theme="dark"] img[src*="logo/logo.png"], body.dark img[src*="logo/logo.png"] {
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  forced-color-adjust: none !important;
  color-scheme: dark !important;
  background: transparent !important;
  isolation: isolate;
}
@media (prefers-color-scheme: light), (prefers-color-scheme: dark) {
  .brand-logo-img, img[src*="logo/logo.png"] {
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
  }
}

/* ── Mobile navbar row-safe ── */
#navbar { background: rgba(5,5,5,0.98) !important; }
.nav-brand { display: inline-flex; align-items: center; white-space: nowrap; min-width: 0; }
@media (max-width: 480px) {
  nav { padding: 0 3%; }
  .nav-brand { font-size: 0.95rem; letter-spacing: 1px; }
}
