/* =========================
   Top nav for groups
   ========================= */
.services-top-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.services-top-nav a{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  transition: all 0.15s ease;
}

.services-top-nav a:hover{
  border-color: var(--primary);
  background: #fff7ed;
  color: #9a3412;
}

/* =========================
   Service groups (جميع الخدمات)
   ========================= */
.service-groups{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-group{
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 14px 12px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.service-group-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.service-group-title{
  font-size: 15px !important;
  font-weight: 700;
  margin: 0 0 2px;
}

.service-group-subtitle{
  font-size: 12px !important;
  color: var(--text-muted);
  margin: 0;
}

.service-group-badge{
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #9a3412;
  white-space: nowrap;
}

.service-chip-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.service-chip{
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.service-chip:hover{
  border-color: var(--primary);
  background: #fff7ed;
  transform: translateY(-1px);
}

.service-chip-title{
  font-weight: 600;
  color: var(--dark);
}

.service-chip-note{
  font-size: 11px;
  color: var(--text-muted);
  
}
.service-chip-note {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  
  max-height: calc(1.7em * 3);
}
.service-group-subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.7em * 3);
}
/* =========================
   Responsive (الخاص بنفس السيكشن)
   ========================= */
@media (max-width: 960px){
  .service-chip-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px){
  .service-chip-grid{
   grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-group{
    padding-inline: 10px;
  }
}
/* ===============================
       Listings (إعلانات القسم) - نسخة خاصة بصفحة Parent Category
       =============================== */

    .listings-wrap{
      background: var(--bg-soft);
      border-radius: 22px;
      padding: 18px 16px 16px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      margin-top: 18px;
    }

    .pc-listings-toolbar{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      flex-wrap:wrap;
      margin-top: 10px;
    }
    .pc-listings-toolbar .pc-toolbar-field{
      flex: 1 1 260px;
      min-width: 220px;
    }
    .pc-listings-toolbar .pc-toolbar-actions{
      display:flex;
      gap:10px;
      align-items:center;
      flex-wrap:wrap;
    }
    .pc-listings-toolbar .pc-toolbar-actions .form-control{
      width:auto;
      min-width: 170px;
    }

    .pc-listings-grid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 14px;
    }
    @media (max-width: 1024px){
      .pc-listings-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 640px){
      .pc-listings-grid{ grid-template-columns: 1fr; }
    }

    .pc-listing-card{
      background:#fff;
      border: 1px solid var(--border-soft);
      border-radius: 16px;
      overflow:hidden;
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }
    .pc-listing-card:hover{
      transform: translateY(-3px);
      border-color: rgba(248, 113, 22, 0.45);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
    }

    .pc-listing-media{
      display:block;
      position:relative;
      height: 190px;
      background:#eef2ff;
      overflow:hidden;
    }
    .pc-listing-media img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
      transform: scale(1.01);
    }

    .pc-listing-badges{
      position:absolute;
      top: 10px;
      left: 10px;
      display:flex;
      gap: 6px;
      z-index: 2;
    }
    .pc-badge{
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .2px;
      padding: 6px 10px;
      border-radius: 999px;
      color:#fff;
      line-height: 1;
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
    }
    .pc-badge-featured{ background: var(--primary); }
    .pc-badge-popular{ background: #e11d48; }

    .pc-like{
      position:absolute;
      top: 10px;
      right: 10px;
      width: 36px;
      height: 36px;
      border-radius: 999px;
      background: rgba(255,255,255,0.92);
      border: 1px solid rgba(148, 163, 184, 0.35);
      display:grid;
      place-items:center;
      cursor:pointer;
      z-index: 2;
      transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    }
    .pc-like::before{
      content: "♡";
      font-size: 18px;
      color: #6b7280;
      line-height: 1;
      transform: translateY(-1px);
    }
    .pc-like.is-active{
      border-color: rgba(225, 29, 72, 0.35);
      background: rgba(255, 255, 255, 0.98);
    }
    .pc-like.is-active::before{
      content:"♥";
      color: #e11d48;
      transform: translateY(-1px);
    }
    .pc-like:hover{ transform: translateY(-1px); border-color: rgba(248, 113, 22, 0.45); }

    .pc-price{
      position:absolute;
      bottom: 12px;
      right: 12px;
      background:#fff;
      border: 1px solid rgba(148, 163, 184, 0.35);
      border-radius: 10px;
      padding: 6px 10px;
      font-weight: 900;
      font-size: 12px;
      color: #b45309;
      z-index: 2;
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
      white-space: nowrap;
    }

    .pc-dots{
      position:absolute;
      bottom: 14px;
      left: 50%;
      transform: translateX(-50%);
      display:flex;
      gap: 6px;
      z-index: 2;
      opacity: .95;
    }
    .pc-dots span{
      width: 6px; height: 6px;
      border-radius: 999px;
      background: rgba(255,255,255,0.75);
      box-shadow: 0 6px 12px rgba(15,23,42,0.10);
    }
    .pc-dots span.is-active{ background: #111827; }

    .pc-avatar{
      position:absolute;
      bottom: -18px;
      left: 14px;
      width: 44px;
      height: 44px;
      border-radius: 999px;
      overflow:hidden;
      border: 3px solid #fff;
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
      z-index: 3;
      background:#fff;
    }
    .pc-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

    .pc-listing-body{
      padding: 28px 14px 12px;
    }

    .pc-listing-title{
      margin: 0 0 10px;
      font-size: 15px;
      font-weight: 900;
      color: var(--dark);
      line-height: 1.4;
    }
    .pc-listing-title a{
      color: inherit;
      text-decoration: none;
    }
    .pc-listing-title a:hover{ color: #c2410c; }

    .pc-topline{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }

    .pc-rating{
      display:flex;
      align-items:center;
      gap: 8px;
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 700;
    }
    .pc-stars{
      display:inline-flex;
      gap: 2px;
      font-size: 13px;
      line-height: 1;
    }
    .pc-stars span{ color: #d1d5db; }
    .pc-stars span.is-on{ color: #f59e0b; }

    .pc-status{
      display:inline-flex;
      align-items:center;
      gap: 6px;
      font-size: 12px;
      font-weight: 800;
      color: #16a34a;
      white-space: nowrap;
    }
    .pc-status-dot{
      width: 7px; height: 7px;
      border-radius: 999px;
      background: #16a34a;
      box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
    }

    .pc-meta{
      list-style:none;
      padding: 0;
      margin: 0;
      display:flex;
      flex-direction:column;
      gap: 8px;
      color: var(--text-muted);
      font-size: 12px;
    }
    .pc-meta li{
      display:flex;
      align-items:center;
      gap: 8px;
      line-height: 1.3;
    }

    .pc-ico{
      width: 26px;
      height: 26px;
      border-radius: 999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      flex: 0 0 26px;
      position: relative;
    }
    .pc-ico::before{
      content:"";
      width: 14px; height: 14px;
      background: currentColor;
      -webkit-mask-repeat: no-repeat;
      -webkit-mask-position: center;
      -webkit-mask-size: contain;
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
    }

    .pc-ico-loc{ color: #2563eb; background: rgba(37,99,235,0.12); }
    .pc-ico-loc::before{
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-4.35 7-11a7 7 0 1 0-14 0c0 6.65 7 11 7 11zm0-9a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-4.35 7-11a7 7 0 1 0-14 0c0 6.65 7 11 7 11zm0-9a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
    }

    .pc-ico-date{ color: #7c3aed; background: rgba(124,58,237,0.12); }
    .pc-ico-date::before{
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3V2zm15 8H2v10c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V10z'/%3E%3C/svg%3E");
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3V2zm15 8H2v10c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V10z'/%3E%3C/svg%3E");
    }

    .pc-ico-phone{ color: #10b981; background: rgba(16,185,129,0.12); }
    .pc-ico-phone::before{
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.07 21 3 13.93 3 5c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.07 21 3 13.93 3 5c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    }

    .pc-meta a{
      color: inherit;
      text-decoration:none;
    }
    .pc-meta a:hover{ color: #0f172a; text-decoration: underline; }

    .pc-card-footer{
      padding: 12px 14px 14px;
      border-top: 1px solid rgba(148, 163, 184, 0.22);
      display:flex;
      align-items:center;
      gap: 10px;
      justify-content:space-between;
      flex-wrap: wrap;
    }
    .pc-chip{
      display:inline-flex;
      align-items:center;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 999px;
      background: #f8fafc;
      border: 1px solid rgba(148, 163, 184, 0.25);
      font-size: 12px;
      font-weight: 800;
      color: #475569;
    }
    .pc-chip-more{
      background: #fff7ed;
      border-color: rgba(248, 113, 22, 0.30);
      color: #c2410c;
    }
    /* SEO content */
    .content-box {
      background: #ffffff;
      border-radius: 20px;
      padding: 16px;
      border: 1px solid var(--border-soft);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }
    .content-box h2 { margin: 0 0 8px; font-size: 16px; }
    .content-box p { margin: 0 0 10px; color: #374151; font-size: 13px; }
    .content-box ul { margin: 0; padding: 0 18px 0 0; color: #374151; font-size: 13px; }
    .content-box li { margin: 6px 0; }

    /* FAQ */
    
    .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    details.faq {
      background: #ffffff;
      border: 1px solid var(--border-soft);
      border-radius: 14px;
      padding: 10px 12px;
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
    }
    details.faq summary {
      cursor: pointer;
      font-weight: 800;
      font-size: 13px;
      color: var(--dark);
      list-style: none;
    }
    details.faq summary::-webkit-details-marker { display: none; }
    details.faq p { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }

