/* --- Places we love to take you --- */

#destinations{
  padding:clamp(48px,7vw,80px) 0;
  background:#f8fafc;
}

/* Centered heading already styled by existing .wc-svc__head,
   but add a bit more spacing here */
#destinations .wc-svc__head{
  text-align:center;
  margin-bottom:18px;
}

/* FILTER TABS ROW */
.wcx-dests-tabs{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin:24px auto 10px;
}

.wcx-dest-tab{
  border:none;
  padding:8px 18px;
  border-radius:999px;
  background:#ffffff;
  color:#0f172a;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(15,23,42,.08);
  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.wcx-dest-tab.is-active{
  background:linear-gradient(135deg,#0ea5e9,#38bdf8);
  color:#f9fafb;
  box-shadow:0 8px 20px rgba(8,47,73,.45);
  transform:translateY(-1px);
}

/* GRID LAYOUT */
.wcx-dests-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
  margin-top:24px;
}

/* CARD BASE */
.wcx-destcard{
  position:relative;
  border-radius:28px;
  overflow:hidden;
  cursor:pointer;
  background:#020617;
  color:#f9fafb;
  box-shadow:
    0 18px 50px rgba(15,23,42,.45),
    0 0 0 1px rgba(15,23,42,.15);
  transform:translateY(0);
  transition:
    transform .22s ease,
    box-shadow .22s ease;
}

.wcx-destcard--hero{
  grid-column:span 2;
  grid-row:span 2;
  min-height:320px;
}

@media (max-width: 768px){
  .wcx-destcard--hero{
    grid-column:auto;
    grid-row:auto;
    min-height:0;
  }
}

.wcx-destcard:hover{
  transform:translateY(-4px);
  box-shadow:
    0 26px 70px rgba(15,23,42,.65),
    0 0 0 1px rgba(15,23,42,.25);
}

/* IMAGE */
.wcx-destcard__media{
  position:relative;
  width:100%;
  height:100%;
}

.wcx-destcard__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* TEXT OVERLAY */
.wcx-destcard__overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:14px 16px 16px;
  background:linear-gradient(to top,
              rgba(15,23,42,.88) 0%,
              rgba(15,23,42,.6) 40%,
              transparent 100%);
}

.wcx-destcard__overlay h3{
  margin:0 0 4px;
  font-size:15px;
  font-weight:600;
}

.wcx-destcard__overlay p{
  margin:0;
  font-size:12px;
  color:#e5e7eb;
}

/* LOAD MORE BUTTON */
.wcx-dests-more{
  text-align:center;
  margin-top:24px;
}

.wcx-btn-ghost{
  border-radius:999px;
  border:1px solid rgba(148,163,184,.55);
  padding:8px 22px;
  background:radial-gradient(circle at 20% 0,
              #ffffff,
              #f3f4f6);
  font-size:14px;
  color:#0f172a;
  cursor:pointer;
  box-shadow:
    0 10px 26px rgba(15,23,42,.18),
    0 0 0 1px rgba(255,255,255,.8);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.wcx-btn-ghost:hover{
  transform:translateY(-1px);
  background:radial-gradient(circle at 20% 0,
              #ffffff,
              #e5e7eb);
  box-shadow:
    0 14px 32px rgba(15,23,42,.26),
    0 0 0 1px rgba(255,255,255,1);
}



/* --- GLASS LIGHTBOX --- */

.wcx-destlightbox{
  position:fixed;
  inset:0;
  z-index:60;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:radial-gradient(circle at top,
              rgba(148,163,184,.35),
              rgba(15,23,42,.82));
  backdrop-filter:blur(26px);
}

.wcx-destlightbox.is-open{
  display:flex;
}

.wcx-destlightbox__backdrop{
  position:absolute;
  inset:0;
}

.wcx-destlightbox__dialog{
  position:relative;
  z-index:1;
  width:min(1120px, 100%);
  max-height:92vh;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,0.9fr);
  border-radius:32px;
  overflow:hidden;
  background:linear-gradient(135deg,
              rgba(255,255,255,.28),
              rgba(248,250,252,.16));
  box-shadow:
    0 30px 90px rgba(15,23,42,.72),
    0 0 0 1px rgba(255,255,255,.32);
}

/* Image side */
.wcx-destlightbox__media{
  position:relative;
  background:radial-gradient(circle at 20% 0,
              rgba(255,255,255,.45),
              transparent 55%);
}

#dest-lightbox-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Text side */
.wcx-destlightbox__meta{
  padding:24px 26px 26px;
  display:flex;
  flex-direction:column;
  gap:14px;
  color:#0f172a;
  background:radial-gradient(circle at bottom,
              rgba(255,255,255,.8),
              rgba(241,245,249,.95));
}

.wcx-destlightbox__header h3{
  margin:0 0 4px;
  font-size:20px;
  font-weight:700;
}

.wcx-destlightbox__subtitle{
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#64748b;
}

.wcx-destlightbox__body{
  font-size:14px;
  line-height:1.7;
  color:#111827;
  overflow:auto;
}

/* Close button */
.wcx-destlightbox__close{
  position:absolute;
  top:14px;
  right:14px;
  width:32px;
  height:32px;
  border-radius:999px;
  border:none;
  display:grid;
  place-items:center;
  cursor:pointer;
  background:rgba(255,255,255,.96);
  box-shadow:0 8px 24px rgba(15,23,42,.5);
}

.wcx-destlightbox__close span{
  display:block;
  width:16px;
  height:2px;
  border-radius:999px;
  background:#0f172a;
}
.wcx-destlightbox__close span:first-child{
  transform:rotate(45deg) translateY(1px);
}
.wcx-destlightbox__close span:last-child{
  transform:rotate(-45deg) translateY(-1px);
}

/* Prev / next */
.wcx-destlightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border-radius:999px;
  border:none;
  display:grid;
  place-items:center;
  cursor:pointer;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 28px rgba(15,23,42,.55);
}

.wcx-destlightbox__nav svg{
  width:18px;
  height:18px;
}

.wcx-destlightbox__nav--prev{ left:14px; }
.wcx-destlightbox__nav--next{ right:14px; }

/* Responsive */
@media (max-width: 768px){
  .wcx-destlightbox__dialog{
    grid-template-columns:minmax(0,1fr);
    max-height:94vh;
  }

  .wcx-destlightbox__nav--prev,
  .wcx-destlightbox__nav--next{
    top:auto;
    bottom:12px;
  }

  .wcx-destlightbox__nav--prev{
    left:50%;
    transform:translate(-120%,0);
  }

  .wcx-destlightbox__nav--next{
    right:50%;
    transform:translate(120%,0);
  }
}
/* Limit grid width and center it */
.wcx-dests-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
  margin-top:24px;
  max-width:1160px;
  margin-left:auto;
  margin-right:auto;
}

/* Keep Load more aligned with the grid */
.wcx-dests-more{
  max-width:1160px;
  margin:24px auto 0;
  text-align:center;
}
/* Mobile padding for Places grid + load more */
@media (max-width: 767.98px){
  .wcx-dests-grid{
    padding-inline: 16px;   /* space left & right */
  }
  .wcx-dests-more{
    padding-inline: 16px;   /* button lines up with cards */
  }
}
@media (max-width: 767.98px){
  .wcx-dest-tabs{
    padding-inline: 16px;
  }
}

