/* ================================
   Wain · الأنماط المخصصة
   ================================ */

/* scroll-behavior يُدار من JS عبر smoothScrollTo */
html { font-size: 90%; }
body { -webkit-font-smoothing: antialiased; }

/* GPU acceleration للعناصر المتحركة */
.exp-card, .city-card, .feature-card, .chip { will-change: transform; }
#siteHeader { will-change: transform, background; }

/* ======== خلفية هادية + نقوش سعودية (خفيفة) ======== */
body {
  background-color: #e3e8e5;
  background-image: none;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #e3e8e5;
  /* باترن خفيف — نجمة + مثمن + نخلة */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3C!-- نخلة 1 --%3E%3Cg transform='translate(50,50)' opacity='.13'%3E%3Cline x1='0' y1='8' x2='0' y2='30' stroke='%23154838' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M0 8 Q-10-6-18-3' fill='none' stroke='%23154838' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M0 8 Q10-6 18-3' fill='none' stroke='%23154838' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M0 8 Q-6-10-12-12' fill='none' stroke='%23154838' stroke-width='.8' stroke-linecap='round'/%3E%3Cpath d='M0 8 Q6-10 12-12' fill='none' stroke='%23154838' stroke-width='.8' stroke-linecap='round'/%3E%3C/g%3E%3C!-- مثمن --%3E%3Cg transform='translate(160,120)' opacity='.12'%3E%3Cpolygon points='0,-16 11,-11 16,0 11,11 0,16-11,11-16,0-11,-11' fill='none' stroke='%23154838' stroke-width='.9'/%3E%3Cpolygon points='0,-9 6,-6 9,0 6,6 0,9-6,6-9,0-6,-6' fill='none' stroke='%23154838' stroke-width='.6'/%3E%3C/g%3E%3C!-- نخلة 2 --%3E%3Cg transform='translate(120,180)' opacity='.1'%3E%3Cline x1='0' y1='6' x2='0' y2='24' stroke='%23154838' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M0 6 Q-8-4-14-2' fill='none' stroke='%23154838' stroke-width='.9' stroke-linecap='round'/%3E%3Cpath d='M0 6 Q8-4 14-2' fill='none' stroke='%23154838' stroke-width='.9' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px; background-repeat: repeat;
}
/* ضمان الطبقات فوق الباترن */

/* override old bg line */
._unused_bg_override { display: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500' viewBox='0 0 500 500'%3E%3C!-- نخلة 1 --%3E%3Cg transform='translate(60,50)'%3E%3Cline x1='0' y1='22' x2='0' y2='50' stroke='%23154838' stroke-width='2' opacity='0.12' stroke-linecap='round'/%3E%3Cpath d='M0 22 Q-16-3-28 2' fill='none' stroke='%23154838' stroke-width='1.5' opacity='0.12' stroke-linecap='round'/%3E%3Cpath d='M0 22 Q16-3 28 2' fill='none' stroke='%23154838' stroke-width='1.5' opacity='0.12' stroke-linecap='round'/%3E%3Cpath d='M0 22 Q-10-10-20-12' fill='none' stroke='%23154838' stroke-width='1.2' opacity='0.1' stroke-linecap='round'/%3E%3Cpath d='M0 22 Q10-10 20-12' fill='none' stroke='%23154838' stroke-width='1.2' opacity='0.1' stroke-linecap='round'/%3E%3Cpath d='M0 22 Q0 4 0-6' fill='none' stroke='%23154838' stroke-width='1.2' opacity='0.1' stroke-linecap='round'/%3E%3C/g%3E%3C!-- مثمن 1 --%3E%3Cg transform='translate(280,70)'%3E%3Cpolygon points='0,-25 18,-14 22,8 18,28 0,38-18,28-22,8-18,-14' fill='none' stroke='%23154838' stroke-width='1' opacity='0.12'/%3E%3Cpolygon points='0,-14 10,-8 13,8 10,22 0,28-10,22-13,8-10,-8' fill='none' stroke='%23154838' stroke-width='0.7' opacity='0.09'/%3E%3Ccircle cx='0' cy='8' r='4' fill='none' stroke='%23154838' stroke-width='0.6' opacity='0.08'/%3E%3C/g%3E%3C!-- نجمة 1 --%3E%3Cg transform='translate(440,180)'%3E%3Cpath d='M0-16 L4-5 L16-5 L7 2 L10 14 L0 7 L-10 14 L-7 2 L-16-5 L-4-5 Z' fill='none' stroke='%23c2a269' stroke-width='1' opacity='0.13'/%3E%3C/g%3E%3C!-- نخلة 2 --%3E%3Cg transform='translate(350,300)'%3E%3Cline x1='0' y1='22' x2='0' y2='50' stroke='%23154838' stroke-width='2' opacity='0.12' stroke-linecap='round'/%3E%3Cpath d='M0 22 Q-16-3-28 2' fill='none' stroke='%23154838' stroke-width='1.5' opacity='0.12' stroke-linecap='round'/%3E%3Cpath d='M0 22 Q16-3 28 2' fill='none' stroke='%23154838' stroke-width='1.5' opacity='0.12' stroke-linecap='round'/%3E%3Cpath d='M0 22 Q-10-10-20-12' fill='none' stroke='%23154838' stroke-width='1.2' opacity='0.1' stroke-linecap='round'/%3E%3Cpath d='M0 22 Q10-10 20-12' fill='none' stroke='%23154838' stroke-width='1.2' opacity='0.1' stroke-linecap='round'/%3E%3Cpath d='M0 22 Q0 4 0-6' fill='none' stroke='%23154838' stroke-width='1.2' opacity='0.1' stroke-linecap='round'/%3E%3C/g%3E%3C!-- مثمن 2 --%3E%3Cg transform='translate(130,320)'%3E%3Cpolygon points='0,-25 18,-14 22,8 18,28 0,38-18,28-22,8-18,-14' fill='none' stroke='%23154838' stroke-width='1' opacity='0.12'/%3E%3Cpolygon points='0,-14 10,-8 13,8 10,22 0,28-10,22-13,8-10,-8' fill='none' stroke='%23154838' stroke-width='0.7' opacity='0.09'/%3E%3Ccircle cx='0' cy='8' r='4' fill='none' stroke='%23154838' stroke-width='0.6' opacity='0.08'/%3E%3C/g%3E%3C!-- نجمة 2 --%3E%3Cg transform='translate(460,420)'%3E%3Cpath d='M0-16 L4-5 L16-5 L7 2 L10 14 L0 7 L-10 14 L-7 2 L-16-5 L-4-5 Z' fill='none' stroke='%23c2a269' stroke-width='1' opacity='0.13'/%3E%3C/g%3E%3C!-- نجمة 3 --%3E%3Cg transform='translate(200,200)'%3E%3Cpath d='M0-12 L3-4 L12-4 L5 2 L8 10 L0 5 L-8 10 L-5 2 L-12-4 L-3-4 Z' fill='none' stroke='%23c2a269' stroke-width='0.8' opacity='0.1'/%3E%3C/g%3E%3C!-- مثمن 3 صغير --%3E%3Cg transform='translate(430,50)'%3E%3Cpolygon points='0,-18 13,-10 16,6 13,20 0,27-13,20-16,6-13,-10' fill='none' stroke='%23154838' stroke-width='0.8' opacity='0.09'/%3E%3C/g%3E%3C!-- نخلة 3 صغيرة --%3E%3Cg transform='translate(70,420)'%3E%3Cline x1='0' y1='18' x2='0' y2='40' stroke='%23154838' stroke-width='1.5' opacity='0.1' stroke-linecap='round'/%3E%3Cpath d='M0 18 Q-14-2-22 2' fill='none' stroke='%23154838' stroke-width='1.2' opacity='0.1' stroke-linecap='round'/%3E%3Cpath d='M0 18 Q14-2 22 2' fill='none' stroke='%23154838' stroke-width='1.2' opacity='0.1' stroke-linecap='round'/%3E%3Cpath d='M0 18 Q0 3 0-4' fill='none' stroke='%23154838' stroke-width='1' opacity='0.09' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 500px 500px;
  background-repeat: repeat;
}

/* ======== Header ======== */
#siteHeader {
  color: #faf7f2;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
#siteHeader.scrolled {
  background: rgba(227, 232, 229, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #07231b;
  box-shadow: 0 1px 3px rgba(14, 54, 41, 0.08), 0 8px 24px -12px rgba(14, 54, 41, 0.06);
}
#siteHeader.scrolled .logo-mark { color: #0e3629; }
#siteHeader .logo-mark { color: currentColor; transition: color .35s; }

.nav-link {
  position: relative;
  padding-bottom: 4px;
  color: inherit;
  opacity: 0.8;
  transition: opacity .25s, color .25s;
  font-weight: 600;
}
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: width .3s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover::after { width: 100%; }
.nav-link.active { opacity: 1; }
.nav-link.active::after { width: 100%; }

/* ======== حقول البحث ======== */
.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #154838;
  margin-bottom: 8px;
}
.field-wrap {
  position: relative;
}
.field-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #e6d8bf;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: #07231b;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field-control:focus {
  outline: none;
  border-color: #2f7658;
  box-shadow: 0 0 0 4px rgba(47, 118, 88, 0.12);
}
.field-control:invalid { color: #9ca3af; }

/* سهم الـ select */
select.field-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23154838' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 44px;
}

/* ======== شرائح البحث السريع ======== */
.quick-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e6d8bf;
  color: #154838;
  font-weight: 600;
  font-size: 13px;
  transition: all .2s;
  cursor: pointer;
}
.quick-chip:hover {
  background: #0e3629;
  color: #faf7f2;
  border-color: #0e3629;
  transform: translateY(-1px);
}

/* ======== شريط البحث الرئيسي (Google-style) ======== */
.search-main {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e6d8bf;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 2px 10px rgba(14, 54, 41, 0.04);
  transition: border-color .2s, box-shadow .2s;
}
.search-main:focus-within {
  border-color: #2f7658;
  box-shadow: 0 0 0 4px rgba(47, 118, 88, 0.12), 0 4px 18px rgba(14, 54, 41, 0.08);
}
.search-main__icon {
  width: 22px;
  height: 22px;
  color: #8a6a40;
  flex-shrink: 0;
  margin-left: 10px;
}
.search-main__input {
  flex: 1;
  padding: 14px 4px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  color: #07231b;
  min-width: 0;
  text-align: right;
}
.search-main__input::placeholder {
  color: #8a6a40;
  font-weight: 400;
}
.search-main__input::-webkit-search-cancel-button { display: none; }

.search-main__clear {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #8a6a40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.search-main__clear:hover { background: #f3ece0; color: #154838; }

.search-main__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #0e3629;
  color: #faf7f2;
  font-weight: 700;
  font-size: 15px;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
  margin-right: 4px;
}
.search-main__submit:hover { background: #154838; transform: translateY(-1px); }
.search-main__submit:active { transform: translateY(0); }

@media (max-width: 640px) {
  .search-main { padding: 4px 4px 4px 14px; }
  .search-main__input { font-size: 15px; padding: 12px 4px; }
  .search-main__submit { padding: 10px 16px; font-size: 14px; }
  .search-main__submit span { display: none; }
}

/* ======== محمّل داخل شريط البحث ======== */
.search-main__loader {
  width: 18px;
  height: 18px;
  border: 2.5px solid #d3e8dd;
  border-top-color: #1f5e46;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  flex-shrink: 0;
}

/* ======== مجموعات الـ chips ======== */
.chip-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chip-group-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #8a6a40;
  padding: 0 4px;
}
.chip-group-label svg.lucide { opacity: 0.7; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.chip-list--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #d4bd93 transparent;
  mask-image: linear-gradient(to left, transparent, black 24px, black calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to left, transparent, black 24px, black calc(100% - 24px), transparent);
}
.chip-list--scroll::-webkit-scrollbar { height: 6px; }
.chip-list--scroll::-webkit-scrollbar-track { background: transparent; }
.chip-list--scroll::-webkit-scrollbar-thumb { background: #e6d8bf; border-radius: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #e6d8bf;
  color: #4c3a24;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  white-space: nowrap;
  transition: all .18s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
  flex-shrink: 0;
}
.chip:hover {
  border-color: #2f7658;
  color: #1f5e46;
  transform: translateY(-1px);
}
/* أيقونة الـ chip: حجم صارم + حجب أي عنصر قبل تحويل Lucide */
.chip > i[data-lucide] {
  display: inline-block;
  width: 15px;
  height: 15px;
  color: transparent;
  font-size: 0;
  line-height: 0;
}
.chip > svg.lucide {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0;
  stroke-width: 2.2;
  opacity: 0.7;
  transition: opacity .18s;
}
.chip:hover > svg.lucide { opacity: 1; }
.chip > span { display: inline-block; }

.chip--active {
  background: #0e3629;
  border-color: #0e3629;
  color: #faf7f2;
  box-shadow: 0 6px 16px -6px rgba(14, 54, 41, 0.5);
}
.chip--active > svg.lucide { opacity: 1; }
.chip--active:hover {
  background: #154838;
  border-color: #154838;
  color: #faf7f2;
}

/* ======== شريط الفلاتر النشطة ======== */
.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(to left, #e3e8e5, #d9dfdb);
  border-top: 1px solid #e6d8bf;
  border-bottom: 1px solid #e6d8bf;
}
.active-filters-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #8a6a40;
}
.active-filters-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  background: #fff;
  border: 1px solid #d3e8dd;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f5e46;
  transition: all .15s;
  cursor: pointer;
}
.active-filter-pill:hover {
  background: #eef6f2;
  border-color: #2f7658;
}
.active-filter-pill__x {
  opacity: 0.55;
  transition: opacity .15s;
}
.active-filter-pill:hover .active-filter-pill__x {
  opacity: 1;
  color: #991b1b;
}

.clear-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #991b1b;
  border-radius: 999px;
  transition: background .15s;
}
.clear-all-btn:hover { background: rgba(153, 27, 27, 0.08); }

/* ======== عداد الخيارات الإضافية ======== */
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0e3629;
  color: #faf7f2;
  font-size: 11px;
  font-weight: 800;
}

/* ======== صفّ الخيارات المتقدمة ======== */
.advanced-row {
  display: grid;
  grid-template-columns: minmax(0, 320px);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 480px) { .advanced-row { grid-template-columns: 1fr; } }

/* ======== الفلاتر القابلة للطي ======== */
.filters-row {
  background: transparent;
}
.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  color: #154838;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .15s;
}
.filters-toggle::-webkit-details-marker { display: none; }
.filters-toggle:hover { background: #f3ece0; }

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 900px) { .filters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .filters-grid { grid-template-columns: 1fr; } }

.near-me-btn, .reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: all .15s;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.near-me-btn {
  background: #eef6f2;
  color: #1f5e46;
  border-color: #d3e8dd;
}
.near-me-btn:hover {
  background: #1f5e46;
  color: #faf7f2;
  border-color: #1f5e46;
}
.reset-btn {
  background: transparent;
  color: #8a6a40;
  border-color: transparent;
}
.reset-btn:hover { background: #f3ece0; color: #154838; }

/* ======== Skeleton / Spinner ======== */
.skel-card {
  height: 360px;
  border-radius: 24px;
  background: linear-gradient(90deg, #d9dfdb 0%, #e3e8e5 40%, #d9dfdb 80%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #d3e8dd;
  border-top-color: #1f5e46;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ======== مودال الخريطة ======== */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.map-modal.hidden { display: none; }
.map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 35, 27, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .2s ease-out;
}
.map-modal__panel {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  background: #e3e8e5;
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: popIn .28s cubic-bezier(.2,.9,.2,1.1);
}
.map-modal__close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #154838;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background .15s, transform .15s;
}
.map-modal__close:hover { background: #f3ece0; transform: scale(1.05); }
.map-modal__header {
  padding: 20px 24px 16px 70px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #f3ece0;
}
.map-modal__iframe-wrap {
  flex: 0 0 auto;
  height: 280px;
  background: #f3ece0;
}
.map-modal__iframe-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}
.map-modal__details {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #e3e8e5;
}
.map-modal__details:empty { display: none; }
.map-modal__details::-webkit-scrollbar { width: 8px; }
.map-modal__details::-webkit-scrollbar-thumb { background: #d9cfbc; border-radius: 6px; }
.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #f0e6d2;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #3d3d3d;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.info-chip i { color: #2f7658; }
.info-chip.chip-rating { background: linear-gradient(135deg, #f7bc15, #f59e0b); color: #fff; border-color: transparent; }
.info-chip.chip-rating i { color: #fff; }
.info-chip.chip-open { background: rgba(34, 197, 94, 0.1); color: #166534; border-color: rgba(34, 197, 94, 0.25); }
.info-chip.chip-open i { color: #166534; }
.info-chip.chip-closed { background: rgba(239, 68, 68, 0.08); color: #991b1b; border-color: rgba(239, 68, 68, 0.2); }
.info-chip.chip-closed i { color: #991b1b; }
.info-chip.chip-price { background: #fff; color: #2f7658; border-color: rgba(47, 118, 88, 0.25); }
.info-chip a { color: inherit; text-decoration: none; }
.info-chip a:hover { text-decoration: underline; }

.details-description {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #4a4a4a;
  margin: 0;
}
.map-modal__footer {
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #f3ece0;
  background: #fff;
}
@media (max-width: 640px) {
  .map-modal__header { padding: 18px 20px 14px 60px; }
  .map-modal__panel { border-radius: 18px; max-height: 96vh; }
  .map-modal__iframe-wrap { height: 220px; }
  .map-modal__iframe-wrap iframe { min-height: 220px; }
  .map-modal__details { padding: 14px 16px 6px; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* مصدر المكان (OSM vs محلي) */
.source-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.source-local {
  background: rgba(47, 118, 88, 0.92);
  color: #fff;
}
.source-verified {
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
}
.source-verified::before {
  content: '✓';
  margin-inline-end: 2px;
  font-weight: 900;
}
.source-fsq {
  background: rgba(249, 115, 22, 0.92);
  color: #fff;
}
.source-osm {
  background: rgba(168, 133, 80, 0.92);
  color: #fff;
}

/* عدد التقييمات داخل شارة النجوم */
.rating-badge .rating-count {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 600;
  margin-inline-start: 2px;
}

/* عرض المراجعات/التلميحات في المودال */
.tip-item {
  background: rgba(47, 118, 88, 0.06);
  border-inline-start: 3px solid #2f7658;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: #3d3d3d;
  line-height: 1.7;
  margin-bottom: 10px;
  transition: background 0.2s ease;
}
.tip-item:hover {
  background: rgba(47, 118, 88, 0.10);
}
.tip-item .tip-quote {
  color: #2f7658;
  font-weight: 800;
  margin-inline-end: 4px;
}
.tips-section {
  margin-top: 20px;
}
.tips-section h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #1b4332;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* معرض صور Foursquare في المودال */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.photo-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.photo-gallery img:hover {
  transform: scale(1.03);
}

/* ======== زخرفة عربية ======== */
.pattern-arabesque {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23faf7f2' stroke-width='1'%3E%3Cpath d='M40 0 L50 10 L50 30 L40 40 L30 30 L30 10 Z'/%3E%3Cpath d='M40 40 L50 50 L50 70 L40 80 L30 70 L30 50 Z'/%3E%3Cpath d='M0 40 L10 30 L30 30 L40 40 L30 50 L10 50 Z'/%3E%3Cpath d='M40 40 L50 30 L70 30 L80 40 L70 50 L50 50 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ======== بطاقات التجربة ======== */
.exp-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px -8px rgba(14, 54, 41, 0.12);
  border: 1px solid rgba(230, 216, 191, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px rgba(14, 54, 41, 0.2);
  border-color: rgba(47, 118, 88, 0.2);
}
.exp-card .card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, #d4bd93, #8a6a40);
}
.exp-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.exp-card:hover .card-image img { transform: scale(1.06); }

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 54, 41, .45) 0%, transparent 40%);
  pointer-events: none;
}

/* شارة الحالة */
.status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.status-open {
  background: rgba(34, 197, 94, 0.92);
  color: white;
}
.status-closed {
  background: rgba(239, 68, 68, 0.92);
  color: white;
}
.status-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}
.status-open .dot { animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* شارة التقييم */
.rating-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,.95);
  color: #154838;
}

/* شارة نوع التجربة */
.type-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(14, 54, 41, 0.8);
  color: #faf7f2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.exp-card .card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.exp-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0e3629;
  line-height: 1.35;
  margin-bottom: 6px;
  transition: color .2s;
}
.exp-card:hover h3 { color: #1f5e46; }
.exp-card .city-line {
  font-size: 12px;
  color: #8a6a40;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.exp-card .desc {
  font-size: 14.5px;
  color: #4c3a24;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
  background: #e3e8e5;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid #d3dad6;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-item .label {
  font-size: 11px;
  color: #8a6a40;
  font-weight: 600;
}
.info-item .value {
  font-size: 13.5px;
  color: #0e3629;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.btn-primary {
  flex: 1;
  padding: 11px 16px;
  background: #0e3629;
  color: #faf7f2;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  transition: background .25s, transform .2s, box-shadow .25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary:hover {
  background: #154838;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 54, 41, 0.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  padding: 10px 14px;
  background: #f3ece0;
  color: #154838;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { background: #e6d8bf; }

/* الوسوم */
.tag-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef6f2;
  color: #1f5e46;
  font-size: 11.5px;
  font-weight: 600;
  margin-left: 4px;
}

/* ======== أزرار Footer الاجتماعية ======== */
.social-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(250, 247, 242, 0.08);
  color: #faf7f2;
  transition: all .2s;
}
.social-btn:hover {
  background: #c2a269;
  color: #07231b;
  transform: translateY(-2px);
}

/* ======== بطاقات المدن ======== */
.city-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(14, 54, 41, 0.18);
  transition: transform .35s, box-shadow .35s;
}
.city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -20px rgba(14, 54, 41, 0.35);
}
.city-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.city-card:hover img { transform: scale(1.08); }
.city-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 35, 27, .85) 10%, rgba(7, 35, 27, .15) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #faf7f2;
}
.city-card .name {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}
.city-card .count {
  font-size: 13px;
  opacity: 0.85;
}

/* ======== نتائج تحميل مخفية بطء ======== */
.skeleton {
  background: linear-gradient(90deg, #d9dfdb 0%, #e3e8e5 40%, #d9dfdb 80%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* ======== Responsive tweaks ======== */
@media (max-width: 768px) {
  .exp-card h3 { font-size: 18px; }
  .field-control { padding: 12px 14px; font-size: 14px; }
  select.field-control { padding-left: 40px; background-position: left 12px center; }
}

/* ======== ترقيم عربي ======== */
.arabic-numbers {
  font-feature-settings: "numr" on;
}

/* ======== أيقونات Lucide ======== */
/* إخفاء محتوى الـ placeholder حتى تحوِّله Lucide لـ SVG */
i[data-lucide] {
  display: inline-block;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  vertical-align: middle;
  flex-shrink: 0;
}
svg.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 2;
}

/* نجمة التقييم ممتلئة */
.rating-badge svg.lucide,
.rating-badge svg.lucide polygon,
.rating-badge svg.lucide path {
  fill: currentColor;
}

/* مؤشر توسيع الفلاتر */
.filters-chevron { transition: transform .2s; }
.filters-row[open] .filters-chevron { transform: rotate(180deg); }

/* label داخل info-item: الأيقونة + النص */
.info-item .label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.info-item .label svg.lucide {
  opacity: 0.7;
}

/* سطر المدينة */
.exp-card .city-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* شارة النوع */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.type-badge svg.lucide { width: 14px; height: 14px; }

/* أيقونة البحث الرئيسية */
.search-main__icon {
  width: 22px;
  height: 22px;
  color: #8a6a40;
  flex-shrink: 0;
  margin-left: 10px;
}

/* دوران أيقونة إعادة التهيئة عند hover */
.reset-btn:hover svg.lucide {
  transform: rotate(-90deg);
  transition: transform .3s;
}

/* أيقونة near-me تنبض عند الضغط */
.near-me-btn:not(:disabled):hover svg.lucide {
  animation: pulse-locate 1.5s ease-in-out infinite;
}
@keyframes pulse-locate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* شارة العنوان في المودال */
#mapModalBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* أيقونة التذييل */
.social-btn svg {
  width: 16px;
  height: 16px;
}

/* ======== بطاقات المدن (Swiper) ======== */
.cities-swiper {
  overflow: visible;
  padding-bottom: 4px;
}

.city-card {
  position: relative;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--city-color, #154838);
  display: block;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.city-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px -16px rgba(7, 35, 27, 0.4);
}

.city-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.city-card:hover img {
  transform: scale(1.08);
}

.city-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 35, 27, 0.88) 0%,
    rgba(7, 35, 27, 0.35) 45%,
    rgba(7, 35, 27, 0.0) 75%
  );
}

/* زر "استكشف" عند hover */
.city-card__cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(7, 35, 27, 0.92) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.city-card:hover .city-card__cta {
  transform: translateY(0);
}
.city-card__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.95);
  color: #0e3629;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.city-card__cta-btn:hover {
  background: #fff;
  transform: scale(1.04);
}

.city-card__body {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: 20px 20px 0;
  text-align: right;
}

.city-card__region {
  font-size: 11px;
  font-weight: 700;
  color: rgba(212, 189, 147, 0.8);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.city-card__name {
  font-size: 26px;
  font-weight: 900;
  color: #faf7f2;
  line-height: 1.1;
  margin-bottom: 4px;
}

.city-card__tagline {
  font-size: 12px;
  color: rgba(250, 247, 242, 0.65);
  margin-bottom: 12px;
}

.city-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.city-tag {
  font-size: 11px;
  font-weight: 600;
  color: #faf7f2;
  background: rgba(212, 189, 147, 0.2);
  border: 1px solid rgba(212, 189, 147, 0.3);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ======== نتائج بحث الهيرو ======== */
.hero-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  text-align: right;
  transition: background .2s;
  cursor: pointer;
  border-bottom: 1px solid #f3ece0;
}
.hero-result:last-child { border-bottom: none; }
.hero-result:hover { background: #f3ece0; }
.hero-result__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 0;
}
.hero-result__icon svg.lucide {
  width: 18px !important;
  height: 18px !important;
  color: #fff !important;
}
.hero-result__arrow {
  color: #c2a269;
  transition: transform .2s;
  flex-shrink: 0;
}
.hero-result:hover .hero-result__arrow,
.hero-result--active .hero-result__arrow {
  transform: translateX(-4px);
}
.hero-result--active {
  background: #f3ece0;
}
.hero-result--active .hero-result__icon {
  box-shadow: 0 0 0 3px rgba(47, 118, 88, 0.25);
}

/* ======== إخفاء سكرول بار ======== */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ======== بطاقة بدون صورة ======== */
.card-image.no-img {
  background: linear-gradient(135deg, #154838, #2f7658);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image.no-img::before {
  content: '';
  width: 48px;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M20 3 L34 12 V28 L20 37 L6 28 V12 Z' stroke='%23faf7f2' stroke-width='1.5' stroke-linejoin='round' opacity='0.3'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%23faf7f2' opacity='0.3'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* نقاط Swiper */
.cities-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: #154838;
  opacity: 0.3;
  transition: all 0.3s;
  display: inline-block;
  margin: 0 3px;
  cursor: pointer;
}
.cities-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  background: #154838;
}

/* ======== هيدر صفحة المدينة ======== */
.city-detail-header {
  background: linear-gradient(135deg, #07231b 0%, #0e3629 40%, #154838 100%);
  color: #faf7f2;
}
/* ======== Skeleton بطاقات أماكن ======== */
.skel-place {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(230, 216, 191, 0.3);
}
.skel-place .skel-img {
  aspect-ratio: 4/3;
  background: linear-gradient(90deg, #d9dfdb 0%, #e3e8e5 40%, #d9dfdb 80%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}
.skel-place .skel-body { padding: 20px 22px; }
.skel-place .skel-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #d9dfdb 0%, #e3e8e5 40%, #d9dfdb 80%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  margin-bottom: 10px;
}
.skel-place .skel-line:first-child { width: 70%; height: 18px; }
.skel-place .skel-line:nth-child(2) { width: 50%; }
.skel-place .skel-line:nth-child(3) { width: 90%; margin-top: 16px; height: 40px; border-radius: 14px; }

/* ======== زر رجوع للأعلى ======== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0e3629;
  color: #faf7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(14, 54, 41, 0.35);
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: #154838;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(14, 54, 41, 0.45);
}

/* ======== قسم لماذا وين — feature cards ======== */
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1.5px solid #f3ece0;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: #d3e8dd;
  box-shadow: 0 16px 40px -16px rgba(14, 54, 41, 0.15);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ======== Section fade-in عند السكرول ======== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease-out, transform .35s ease-out;
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ======== تحسين Chips التصنيف ======== */
.chip {
  position: relative;
  overflow: hidden;
}
.chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 118, 88, 0.08), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.chip:hover::before { opacity: 1; }
.chip--active::before { opacity: 0; }
