/* 0.5.17 – /destinations/ only. Deeper continent/country/place pages unchanged. */
.ntd17-shell { box-sizing: border-box; width: min(100% - 2rem, 1100px); margin: 0 auto; padding: clamp(2.1rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); color: #151515; }
.ntd17-shell *, .ntd17-shell *::before, .ntd17-shell *::after { box-sizing: border-box; }
.ntd17-intro { padding-bottom: clamp(1.65rem, 3.5vw, 2.7rem); border-bottom: 1px solid #e1e3df; }
.ntd17-intro h1 { margin: 0 0 .7rem; font-size: clamp(2.1rem, 4.5vw, 3.65rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.ntd17-intro p { color: #666; max-width: 680px; margin: 0; font-size: 1.03rem; line-height: 1.6; }
.ntd17-section { margin: clamp(2.4rem, 4.5vw, 3.8rem) 0 0; }
.ntd17-section__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.2rem; margin-bottom: 1.4rem; }
.ntd17-section__head h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.15; font-weight: 780; letter-spacing: -.032em; margin: 0; }
.ntd17-section__head a { font-size: .89rem; font-weight: 730; color: #285f59; text-decoration: none; }
.ntd17-section__head a:hover { text-decoration: underline; text-underline-offset: .22em; }
.ntd17-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem; }
.ntd17-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #deded8; border-radius: 17px; min-width: 0; overflow: hidden; color: #151515; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ntd17-card:hover { transform: translateY(-2px); border-color: #bbc6c0; box-shadow: 0 10px 24px rgba(12,25,25,.085); text-decoration: none; }
.ntd17-card:focus-visible { outline: 3px solid #336b46; outline-offset: 3px; }
.ntd17-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dce9e5; }
.ntd17-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ntd17-card:hover .ntd17-card__image img { transform: scale(1.025); }
.ntd17-card__body { padding: clamp(1rem, 2vw, 1.35rem); display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-height: 139px; }
.ntd17-card__title { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -.012em; line-height: 1.3; }
.ntd17-card__count { display: block; color: #656a68; font-size: .87rem; margin-top: .35rem; line-height: 1.45; }
.ntd17-card__cta { display: block; color: #2c6860; font-size: .88rem; font-weight: 750; margin-top: auto; padding-top: .85rem; }
.ntd17-empty { padding: 2rem 0; color: #656a68; }
/* Match the established 0.1.1 virtual-page footer without changing the plugin. */
body.ntd17-index-page .nt-site-footer > .wp-block-group.alignwide { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; }
body.ntd17-index-page .nt-site-footer .wp-block-site-title { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 900px) { .ntd17-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; } }
@media (max-width: 580px) {
  .ntd17-shell { width: min(100% - 1.5rem, 1100px); padding-top: 2rem; }
  .ntd17-grid { grid-template-columns: minmax(0,1fr); }
  .ntd17-card__image { aspect-ratio: 16 / 9; }
  .ntd17-card__body { min-height: 122px; }
  body.ntd17-index-page .nt-site-footer > .wp-block-group.alignwide { flex-direction: column; justify-content: flex-start; gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ntd17-card, .ntd17-card__image img { transition: none; }
  .ntd17-card:hover { transform: none; }
  .ntd17-card:hover .ntd17-card__image img { transform: none; }
}
