
/* Destination Ghost Divi Post Grid (dgpg-) */

/* Filter pills */
.dgpg-filters { margin: 0 0 18px; }
.dgpg-filter-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.dgpg-filter-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.dgpg-filter-pill:hover{ border-color: rgba(0,0,0,0.28); }
.dgpg-filter-pill.is-active{
  border-color: rgba(125,187,43,0.55);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

/* Grid */
.dgpg-wrap { width: 100%; }
.dgpg-results { position: relative; }

.dgpg-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.dgpg-card{
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dgpg-card:hover{
  transform: scale(1.035);
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.dgpg-cardlink{
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Image */
.dgpg-image{
  position: relative;
  height: 200px;
  background-color: #111;
  overflow: hidden;
}
.dgpg-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dgpg-img--placeholder{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.0));
}

/* Badge */
.dgpg-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  background: #7dbb2b;
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  line-height: 1;
}

/* Content */
.dgpg-content{
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.dgpg-title{
  font-size: 20px;
  margin: 0 0 10px;
}
.dgpg-excerpt{
  font-size: 15px;
  color: #555;
  margin: 0 0 16px;
  line-height: 1.6;
}
.dgpg-readmore{
  color: #7dbb2b;
  font-weight: 700;
  margin-top: auto;
}

/* Pagination */
.dgpg-pagination{ margin-top: 22px; }
.dgpg-page-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dgpg-page-item a,
.dgpg-page-item span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  color: #111;
}
.dgpg-page-item span.current{
  border-color: rgba(125,187,43,0.55);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}
.dgpg-page-item a:hover{ border-color: rgba(125,187,43,0.55); }

/* Smooth loading animation */
.dgpg-results{
  transition: opacity 220ms ease, transform 220ms ease;
}
.dgpg-results.dgpg-is-loading{
  opacity: 0.7;
}
.dgpg-results.dgpg-is-fading-out{
  opacity: 0;
  transform: translateY(6px);
}

/* Skeleton cards */
.dgpg-skeleton{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dgpg-skel-card{
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.dgpg-skel-img{
  height: 200px;
  background: rgba(0,0,0,0.06);
}
.dgpg-skel-body{ padding: 20px; }
.dgpg-skel-line{
  height: 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.07);
  margin: 10px 0;
}
.dgpg-skel-line.is-title{ height: 16px; width: 78%; margin-top: 0; }
.dgpg-skel-line.is-short{ width: 55%; }
.dgpg-skel-line.is-long{ width: 92%; }

@media (prefers-reduced-motion: no-preference){
  .dgpg-skel-img,
  .dgpg-skel-line{
    background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.10), rgba(0,0,0,0.06));
    background-size: 200% 100%;
    animation: dgpgShimmer 1.2s ease-in-out infinite;
  }
  @keyframes dgpgShimmer{
    0%{ background-position: 200% 0; }
    100%{ background-position: -200% 0; }
  }
}

/* Responsive */
@media (max-width: 980px){
  .dgpg-grid{ grid-template-columns: 1fr 1fr; }
  .dgpg-skeleton{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .dgpg-grid{ grid-template-columns: 1fr; }
  .dgpg-skeleton{ grid-template-columns: 1fr; }
}
