/* ============================================================
   THEME 9: HI-VIZ · ebsrvl1 (Locations) — light, animated
   ============================================================ */
.ebsrvl1 {
  --bg: #FFFDF5;
  --ink: #16130B;
  --muted: #6B6250;
  --accent: #E0A800;
  --accent-2: #FFC400;
  --card: #FFFFFF;
  --line: #16130B;
  --soft: #FFF3C4;
  --ring: #FFC400;
  --shadow: 5px 5px 0 #16130B;
  --shadow-h: 8px 8px 0 #16130B;
  --font: "El Messiri", sans-serif;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 2.4rem 0;
  font-family: var(--font);
  direction: rtl;
  isolation: isolate;
}
.ebsrvl1, .ebsrvl1 *, .ebsrvl1 *::before, .ebsrvl1 *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* خلفية: توهج + نقط */
.ebsrvl1__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ebsrvl1__orb { position: absolute; border-radius: 50%; filter: none; opacity: .6; border: 2px solid #16130B; animation: ebsrvl1-up 7s ease-in-out infinite alternate; }
.ebsrvl1__orb--a { width: 280px; height: 280px; top: -110px; inset-inline-start: -70px; background: #FFE58A; }
.ebsrvl1__orb--b { width: 240px; height: 240px; bottom: -120px; inset-inline-end: -60px; background: #FFD84D; }
.ebsrvl1__pattern {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(#EAD9A0 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

.ebsrvl1__container { position: relative; z-index: 1; max-width: 66rem; margin: 0 auto; padding-inline: 1rem; }
.ebsrvl1__header { text-align: center; max-width: 32rem; margin: 0 auto 1.35rem; }

.ebsrvl1__eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .02em;
  color: #16130B; background: #FFC400; border: 2px solid #16130B;
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: .6rem;
  box-shadow: 3px 3px 0 #16130B;
}
.ebsrvl1__eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #16130B; box-shadow: 0 0 0 4px var(--soft); animation: ebsrvl1-pulse 2s infinite; }
.ebsrvl1__count { font-size: .66rem; font-weight: 800; color: #FFC400; background: #16130B; border-radius: 999px; padding: .12rem .55rem; }
.ebsrvl1__card:nth-child(3n+2) .ebsrvl1__card-city { background: #FFE58A; color: #16130B; }

.ebsrvl1__title { font-size: clamp(1.2rem, 3.4vw, 1.6rem); font-weight: 800; color: var(--ink); line-height: 1.5; margin-bottom: .3rem; }
.ebsrvl1__title::after { content: ""; display: block; width: 64px; height: 6px; margin: .5rem auto 0; border-radius: 999px; background: linear-gradient(90deg, #FFC400, #E0A800); border: 2px solid #16130B; }
.ebsrvl1__subtitle { font-size: .83rem; color: var(--muted); line-height: 1.75; }

/* شبكة مضغوطة تتمدد مع عدد الأماكن */
.ebsrvl1__grid { display: grid; grid-template-columns: 1fr; gap: .7rem; justify-content: center; }

.ebsrvl1__card {
  position: relative; display: flex; align-items: center; gap: .7rem;
  background: var(--card); border: 2px solid var(--line); border-radius: 18px;
  padding: .75rem .85rem; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .25s ease;
  animation: ebsrvl1-up .5s ease both; animation-delay: calc(var(--ebsrvl1-i, 0) * 60ms);
}
.ebsrvl1__card::before {
  content: ""; position: absolute; top: 0; inset-inline: 12%; height: 5px; border-radius: 0 0 999px 999px;
  background: #FFC400;
  border: 2px solid #16130B; border-top: none;
  opacity: 0; transition: opacity .25s ease;
}
.ebsrvl1__card:hover { transform: translateY(-3px) translateX(-3px); box-shadow: var(--shadow-h); border-color: #16130B; }
.ebsrvl1__card:hover::before { opacity: 1; }

.ebsrvl1__card-num { position: absolute; top: .45rem; inset-inline-end: .7rem; font-size: .62rem; font-weight: 800; color: #6B6250; letter-spacing: .06em; }

.ebsrvl1__card-icon {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #FFC400;
  color: #16130B; font-size: .95rem; border: 2px solid #16130B; box-shadow: 0 0 0 3px var(--ring), 3px 3px 0 #16130B;
  overflow: hidden;
  animation: ebsrvl1-pulse 2.4s infinite;
}
.ebsrvl1__card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ebsrvl1__card-body { flex: 1; min-width: 0; padding-top: .35rem; }
.ebsrvl1__card-title { font-size: .9rem; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ebsrvl1__card-city {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem;
  font-size: .7rem; font-weight: 800; color: #16130B;
  background: #FFC400; border: 2px solid #16130B; padding: .1rem .55rem; border-radius: 999px;
}
.ebsrvl1__card-city i { font-size: .62rem; }
.ebsrvl1__card-address { font-size: .72rem; color: var(--muted); margin-top: .2rem; padding-top: .25rem; border-top: 1px dashed #16130B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ebsrvl1__card-map-link {
  flex-shrink: 0; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; text-decoration: none;
  background: #FFFDF5; color: #16130B; border: 2px solid #16130B;
  transition: all .2s ease;
}
.ebsrvl1__card-map-link:hover { background: #FFC400; color: #16130B; border-color: #16130B; transform: none; box-shadow: 2px 2px 0 #16130B; }

@keyframes ebsrvl1-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ebsrvl1-pulse { 0%,100% { box-shadow: 0 0 0 3px var(--ring); } 50% { box-shadow: 0 0 0 8px rgba(255,196,0,.30); } }

@media (min-width: 560px) { .ebsrvl1__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ebsrvl1__grid { grid-template-columns: repeat(3, 1fr); } .ebsrvl1 { padding: 2.8rem 0; } }
@media (min-width: 1280px) { .ebsrvl1__grid { grid-template-columns: repeat(4, 1fr); } .ebsrvl1__container { max-width: 72rem; } }
@media (max-width: 559px) {
  .ebsrvl1 { padding: 1.8rem 0; }
  .ebsrvl1__header { margin-bottom: 1rem; }
  .ebsrvl1__card { padding: .7rem .8rem; }
}
html[dir="ltr"] .ebsrvl1 { direction: ltr; }

@media (prefers-reduced-motion: reduce) {
  .ebsrvl1 *, .ebsrvl1 *::before, .ebsrvl1 *::after { animation: none !important; transition: none !important; }
}
