
/* ===========================
   WHITE LUX DIRECTORY (CSS ONLY)
   Drop-in over your current Tailwind view
   =========================== */

:root{
  --bg0:#ffffff;
  --bg1:#f6f8fc;
  --bg2:#eef2ff;
  --primary: #b9cf70;

  --text:#0b1220;
  --muted: rgba(11,18,32,.62);
  --muted2: rgba(11,18,32,.48);

  --line: rgba(2,6,23,.10);
  --line2: rgba(2,6,23,.14);

  --indigo: rgba(99,102,241,.22);
  --fuchsia: rgba(217,70,239,.16);
  --emerald: rgba(34,197,94,.12);
  --gold: rgba(245,158,11,.18);

  --shadow1: 0 14px 45px rgba(2,6,23,.08);
  --shadow2: 0 26px 90px rgba(2,6,23,.10);

  --ring: 0 0 0 4px rgba(99,102,241,.18);
}

html{scroll-behavior:smooth}
body{
  color: var(--text) !important;
  background:
  radial-gradient(900px 520px at 20% 10%, rgba(185, 207, 112, .18), transparent 60%),
  radial-gradient(800px 500px at 80% 20%, rgba(185, 207, 112, .12), transparent 65%),
  radial-gradient(900px 600px at 50% 110%, rgba(185, 207, 112, .14), transparent 70%),
  linear-gradient(180deg, #ffffff 0%, #f8faf5 60%, #ffffff 100%) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  direction: rtl;
}

/* Grain subtle */
body:before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
  mix-blend-mode:multiply;
  opacity:.20;
  z-index:-1;
}

a{color:inherit}

/* ===========================
   FIX: your old dark utilities -> light
   (targets current classes in your Blade)
   =========================== */

/* Text colors */
.text-slate-300, .text-slate-200, .text-slate-400, .text-slate-500{
  color: var(--muted) !important;
}
h1,h2,h3{ color: var(--text) !important; }

/* Backgrounds used in page */
.bg-white\/5, .bg-white\/10{
  background: rgba(255,255,255,.78) !important;
}
.bg-slate-950\/40, .bg-slate-900\/60{
  background: rgba(255,255,255,.92) !important;
}

.ad-slider {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

@media (min-width: 640px) {
    .ad-slider { height: 240px; }
}

@media (min-width: 1024px) {
    .ad-slider { height: 320px; }
}

/* slide */
.ad-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease, transform .6s ease;
}

/* active */
.ad-slide.active {
    opacity: 1;
    z-index: 2;
}

/* blur background */
.ad-slide::before {
    content: "";
    position: absolute;
    inset: 0;

    background: var(--bg) center/cover no-repeat;
    filter: blur(25px) brightness(0.6);
    transform: scale(1.2);

    z-index: 1;
}

/* main image */
.ad-slide img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    z-index: 2;
    display: block;
    transition: transform 5s ease;
}

.ad-slide.active img {
    transform: scale(1.50);
}

/* badge */
.ad-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    z-index: 5;

    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 999px;

    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
}



/* Borders used in page */
.border-white\/10, .border-white\/20{
  border-color: var(--line) !important;
}

/* ===========================
   HERO WRAP (first section box feel)
   =========================== */
section .py-10.lg\:py-14{
  position:relative;
}

/* Upgrade hero top badge */
section .inline-flex.items-center.gap-2.rounded-full.border{
  background: rgba(255,255,255,.82) !important;
  border-color: var(--line) !important;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}

/* Gradient title */
.bg-gradient-to-l.from-indigo-300.to-fuchsia-300{
  background-image: linear-gradient(90deg, #b9cf70, #8aa84a) !important;
}

/* ===========================
   FILTERS BOX (your .rounded-3xl border bg-white/5)
   =========================== */
section .rounded-3xl.border.border-white\/10.bg-white\/5.p-6{
  background: rgba(255,255,255,.88) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow2) !important;
  backdrop-filter: blur(14px);
  position:relative;
  overflow:hidden;
}

/* Aurora frame */
section .rounded-3xl.border.border-white\/10.bg-white\/5.p-6:before{
  content:"";
  position:absolute; inset:-1px;
  border-radius: 1.5rem;
  padding:1px;
  background: linear-gradient(135deg,
    rgba(99,102,241,.40),
    rgba(217,70,239,.22),
    rgba(245,158,11,.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity:.60;
  pointer-events:none;
}
section .rounded-3xl.border.border-white\/10.bg-white\/5.p-6:after{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  background:
    radial-gradient(520px 220px at 20% 10%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(520px 220px at 85% 20%, rgba(217,70,239,.08), transparent 60%);
  opacity:.60;
  pointer-events:none;
}

/* Small "Agency UI" tag */
section .rounded-2xl.bg-gradient-to-br.from-indigo-500\/20.to-fuchsia-500\/20{
  background: rgba(255,255,255,.78) !important;
  border-color: var(--line) !important;
  color: rgba(11,18,32,.72) !important;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}

/* Inputs */
.focus-ring:focus{
  outline:none !important;
  box-shadow: var(--ring) !important;
  border-color: rgba(99,102,241,.35) !important;
}

input[type="text"], input[type="email"], input[type="tel"], textarea, select{
  border-color: var(--line) !important;
  background: rgba(255,255,255,.92) !important;
  color: var(--text) !important;
}
input::placeholder, textarea::placeholder{
  color: rgba(11,18,32,.38) !important;
}

/* Checkbox row label */
label.flex.w-full.items-center.justify-between.gap-3.rounded-2xl{
  background: rgba(255,255,255,.92) !important;
  border-color: var(--line) !important;
}

/* Buttons in filters area */
button.rounded-2xl.bg-white{
  background: linear-gradient(90deg, #b9cf70, #8aa84a) !important;
  color:#fff !important;
  border:none !important;
  box-shadow: 0 18px 60px rgba(99,102,241,.18);
  position:relative;
  overflow:hidden;
}
button.rounded-2xl.bg-white:before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(320px 180px at 30% 30%, rgba(255,255,255,.45), transparent 60%);
  opacity:.45;
}
button.rounded-2xl.bg-white:hover{
  transform: translateY(-1px);
  box-shadow: 0 24px 85px rgba(217,70,239,.14), 0 24px 85px rgba(99,102,241,.12);
}

/* Clear/Save buttons */
a#clearFilters, button#saveFilters{
  background: rgba(255,255,255,.88) !important;
  border-color: var(--line) !important;
  color: rgba(11,18,32,.78) !important;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}
a#clearFilters:hover, button#saveFilters:hover{
  background: #fff !important;
  transform: translateY(-1px);
  border-color: var(--line2) !important;
}

/* ===========================
   RESULTS CARDS
   =========================== */
a.group.relative.overflow-hidden.rounded-3xl{
  background: rgba(255,255,255,.90) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow1) !important;
  position:relative;
}
a.group.relative.overflow-hidden.rounded-3xl:hover{
  box-shadow: var(--shadow2) !important;
  border-color: var(--line2) !important;
}
a.group.relative.overflow-hidden.rounded-3xl:before{
  content:"";
  position:absolute; inset:-1px;
  border-radius: 1.5rem;
  padding:1px;
  background: linear-gradient(135deg,
    rgba(99,102,241,.30),
    rgba(217,70,239,.18),
    rgba(245,158,11,.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity:.45;
  pointer-events:none;
}

/* Logo box inside card */
a.group .h-12.w-12.overflow-hidden.rounded-2xl{
  background:#fff !important;
  border-color: var(--line) !important;
  box-shadow: 0 12px 35px rgba(2,6,23,.08);
}

/* Chips (city/views) */
a.group .rounded-full.border.border-white\/10.bg-white\/5{
  background: rgba(2,6,23,.03) !important;
  border-color: var(--line) !important;
  color: rgba(11,18,32,.70) !important;
}

/* Featured badge */
a.group span.border-amber-400\/20.bg-amber-300\/10{
  border-color: rgba(245,158,11,.32) !important;
  background: rgba(245,158,11,.16) !important;
  color: rgba(120,53,15,.88) !important;
}

/* "عرض" row */
a.group span.inline-flex.items-center.gap-2.text-sm.font-semibold.text-white{
  color: rgba(11,18,32,.82) !important;
}
a.group span.inline-flex.h-8.w-8.items-center.justify-center.rounded-2xl{
  background: rgba(2,6,23,.03) !important;
  border-color: var(--line) !important;
}
a.group:hover span.inline-flex.h-8.w-8.items-center.justify-center.rounded-2xl{
  background: rgba(99,102,241,.10) !important;
  border-color: rgba(99,102,241,.22) !important;
}

/* Empty state box */
.rounded-3xl.border.border-white\/10.bg-white\/5.p-8.text-center{
  background: rgba(255,255,255,.92) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow1) !important;
  color: rgba(11,18,32,.70) !important;
}

/* ===========================
   ADS
   =========================== */
.ad-wrap{
  border:1px dashed rgba(2,6,23,.18) !important;
  background: rgba(255,255,255,.85) !important;
  box-shadow: var(--shadow1) !important;
}
.ad-ph{ color: rgba(11,18,32,.62) !important; }

/* ===========================
   Pagination (Laravel)
   =========================== */
nav[role="navigation"]{
  margin-top: 14px;
}
nav[role="navigation"] .relative.z-0.inline-flex{
  gap: 10px;
}
nav[role="navigation"] a, nav[role="navigation"] span{
  border-radius: 14px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,.88) !important;
  color: rgba(11,18,32,.72) !important;
  padding: 10px 12px !important;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
nav[role="navigation"] a:hover{
  background: #fff !important;
  transform: translateY(-1px);
  border-color: var(--line2) !important;
}
nav[role="navigation"] span[aria-current="page"] span{
  background: linear-gradient(90deg, #b9cf70, #8aa84a) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 18px 55px rgba(99,102,241,.18);
}

/* ===========================
   Toast (optional if you update JS)
   =========================== */
.lux-toast{
  position:fixed; bottom:18px; left:18px; z-index:9999;
  background: rgba(255,255,255,.94);
  color: rgba(11,18,32,.78);
  border:1px solid var(--line);
  padding: 11px 12px;
  border-radius: 16px;
  font-size: 13px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 70px rgba(2,6,23,.12);
}
.lux-toast:before{
  content:"";
  position:absolute; inset:-1px;
  border-radius: 16px;
  padding:1px;
  background: linear-gradient(135deg, rgba(99,102,241,.36), rgba(217,70,239,.20), rgba(245,158,11,.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity:.55;
  pointer-events:none;
}

.vision-card {
  border: 1px solid rgba(37,99,235,.18);
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(34,197,94,.04));
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.vision-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(2,6,23,.08);
}

.vision-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

.vision-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.vision-card .btn.primary {
  width: fit-content;
  padding: 12px 14px;
}

/* لمسة SEO glow خفيفة */
.vision-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(37,99,235,.12),
    transparent 60%
  );
  opacity: .6;
  pointer-events: none;
}

#lightboxClose{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgb(119 195 193 / var(--tw-bg-opacity, 1))!important;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    backdrop-filter: blur(6px);
    z-index: 9999;
}

#lightboxClose:hover{
    background: #fde68a;
    color: #000;
    transform: scale(1.08);
}

#lightboxClose:active{
    transform: scale(.95);
}


/* Lead Button Base */
.lead-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    padding: 12px 16px;

    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.25);

    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.12),
        rgba(187, 247, 208, 0.08)
    );

    color: #d1d5db;
    font-size: 14px;
    font-weight: 600;

    backdrop-filter: blur(10px);

    transition: all 0.25s ease;
    cursor: pointer;

    overflow: hidden;
}

/* Hover */
.lead-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.25),
        rgba(187, 247, 208, 0.12)
    );

    border-color: rgba(16, 185, 129, 0.5);
    color: #ffffff;

    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

/* Active click */
.lead-btn:active {
    transform: scale(0.98);
}

/* Glow animation */
.lead-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: 0.5s;
}

.lead-btn:hover::before {
    left: 120%;
}

/* Icon inside button */
.lead-btn svg {
    width: 18px;
    height: 18px;
}

/* WhatsApp variant (لو حاب تميز اللون) */
.lead-btn.whatsapp {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.15),
        rgba(16, 185, 129, 0.08)
    );
}

.lead-btn.whatsapp:hover {
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.map-toggle{
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
    min-height: 70px;
    padding: 16px 18px;
    border-radius: 18px;
    justify-content: center;
}

/* الخلفية */
.toggle-bg{
    position:absolute;
    inset:0;
    background-image: url('/images/mapToggle.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30rem;
    opacity: 0.50; /* مهم عشان ما تغطي المحتوى */
    transition: all .3s ease-in-out;
}

/* المحتوى فوق الخلفية */
.map-toggle .content{
    position:relative;
    z-index:2;
}

/* تأثير عند التفعيل */
.map-toggle.active .toggle-bg{
    transform: scale(1.05);
    opacity: .25;
}


.broker-badge{
    position:absolute;
    top:12px;
    right:12px;

    display:flex;
    align-items:center;
    gap:6px;

    padding:6px 10px;
    border-radius:999px;

    background: linear-gradient(135deg, #dbfe72 0%, #c9f85a 50%, #9fe83c 100%);
    backdrop-filter: blur(10px);

    border:1px solid rgba(255,255,255,0.2);

    z-index:10;
}

.broker-avatar img{
    width:26px;
    height:26px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid rgba(255,255,255,0.3);
}

.broker-label{
    font-size:11px;
    font-weight:700;
    color:#000;
    line-height:1.2;
}

.store-name{
    font-size:10px;
    opacity:.8;
    font-weight:500;
}

.tm{
    font-size:9px;
    opacity:.8;
    margin-left:2px;
}
