/* categories */
.cx-cats { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 2rem 1rem; }
.cx-cat {
  font: 600 13px "Space Grotesk", sans-serif; letter-spacing: .18em;
  padding: 16px 34px; border-radius: 999px; cursor: pointer;
  color: #F4F8FA; background: rgba(18,61,90,.4); border: 1px solid rgba(127,212,222,.3);
  transition: border-color .3s, color .3s, transform .2s;
}
.cx-cat:hover { border-color: #7fd4de; transform: translateY(-2px); }
.cx-cat.is-active { background: #D9FF99; color: #0B1728; border-color: #D9FF99; }

/* country cards + options */
.cx-countries {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px; width: min(1200px, 94vw); margin: 0 auto; padding: 1rem 0 3rem;
}
.cx-country {
  background: linear-gradient(150deg, #12305a, #0d1f38);
  border: 1px solid rgba(127,212,222,.2); border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: border-color .3s, transform .25s;
}
.cx-country:hover { border-color: rgba(217,255,153,.6); transform: translateY(-4px); }
.cx-country img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;  }
.cx-country h3 {
  margin: 0; padding: 14px 16px 6px; font: 600 15px "Space Grotesk", sans-serif;
  letter-spacing: .08em; text-transform: uppercase; color: #F4F8FA;
}
.cx-opts { list-style: none; margin: 0; padding: 6px 16px 16px; display: none; }
.cx-country.is-open .cx-opts { display: block; }
.cx-opts li {
  font: 400 13px "Inter", sans-serif; color: #B6C9D9; padding: 7px 0 7px 18px;
  border-left: 2px solid rgba(127,212,222,.35); margin: 4px 0; position: relative;
}
.cx-opts li::before {
  content: ""; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px;
  border-radius: 50%; background: #16A6A6;
}
.cx-country .cx-toggle {
  display: block; padding: 0 16px 14px; font: 600 11px "Inter", sans-serif;
  letter-spacing: .12em; color: #D9FF99; text-transform: uppercase;
}

/* view-transition gallery */
.cx-gallery-wrap { width: min(1200px, 94vw); margin: 2rem auto 5rem; }
.cx-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cx-gallery .gallery-item img {
  width: 100%; border-radius: 12px; cursor: pointer;
  transition: transform .3s ease; border: 1px solid rgba(127,212,222,.15); display: block;
}
.cx-gallery .gallery-item:hover img { transform: scale(1.02); }
.cx-gallery .gallery-item.fullscreen img {
  width: 80vw; height: 80vh; object-fit: contain; border-radius: 0;
  view-transition-name: zoom-image; background: #0B1728;
}
::view-transition-old(zoom-image) { animation: cx-fade-out .5s ease forwards; }
::view-transition-new(zoom-image) { animation: cx-fade-in .5s ease forwards; }
@keyframes cx-fade-in  { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes cx-fade-out { from { opacity: 1; transform: scale(1); }   to { opacity: 0; transform: scale(1.06); } }

@media (max-width: 720px) {
  .cx-gallery { grid-template-columns: repeat(2, 1fr); }
  .cx-gallery .gallery-item.fullscreen img { width: 94vw; height: 70vh; }
}
.cx-country { cursor: default; }
.cx-country .cx-toggle { width: 100%; text-align: left; border: 0; background: none; cursor: pointer; }
.cx-cat:focus-visible, .cx-toggle:focus-visible, .cx-gallery .gallery-item:focus-visible { outline: 2px solid #D9FF99; outline-offset: 4px; }
.cx-gallery .gallery-item { cursor: pointer; }
.cx-gallery .gallery-item.fullscreen { position: fixed; inset: 0; z-index: 10000; background: #06111ded; display: grid; place-items: center; padding: 24px; box-sizing: border-box; }
.cx-gallery .gallery-item.fullscreen img { max-width: 94vw; max-height: 90svh; }
.cx-zoom-close { position: fixed; right: 18px; top: 18px; z-index: 10001; color: #F4F8FA; background: #123047; border: 1px solid #7fd4de; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
body.cx-zoom-open { overflow: hidden; }
.cx-country .cx-enquiry { display: inline-block; color: #D9FF99; text-decoration: none; margin: 0 16px 18px; }
@media (max-width:640px) { .cx-cat { padding: 12px 18px; font-size: 11px; } .cx-cats { gap: 10px; } .cx-countries { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion:reduce) { .cx-cat, .cx-country, .cx-gallery .gallery-item img { transition: none; } ::view-transition-old(zoom-image), ::view-transition-new(zoom-image) { animation: none; } }

.cx-explorer { position: relative; z-index: 2; background: #0B1728; padding-bottom: 1rem; }
