/* Zanzi Pride package cards v3.9.23.
   Compact responsive card layout. Two columns remain visible on phones.
   Scoped to Zanzi Pride's reusable card component and its render containers. */
.zpt-package-section,.zpt-package-section *,.zpt-tour-card,.zpt-tour-card *{box-sizing:border-box}
.zpt-package-section{width:100%;margin:0 auto;padding:22px clamp(12px,2.2vw,30px) 30px;font-family:inherit;color:#142b32;background:#fff}
.zpt-package-section__heading{text-align:center;max-width:1060px;margin:0 auto 23px}
.zpt-package-section__heading h2{font-size:clamp(24px,2.8vw,36px)!important;font-weight:800!important;letter-spacing:-.025em;line-height:1.18;color:#142b32!important;margin:0 0 8px!important}
.zpt-package-section__heading p{color:#59697b!important;font-size:clamp(13px,1.3vw,17px);line-height:1.5;margin:0!important}
.zpt-package-section__grid{display:grid;grid-template-columns:repeat(var(--zpt-card-cols,4),minmax(0,1fr));gap:16px;align-items:stretch}
.zpt-tour-card{display:flex;flex-direction:column;position:relative;min-width:0;width:100%;height:100%;background:#fff!important;border:1px solid #e3e8ec!important;border-radius:11px!important;overflow:hidden!important;box-shadow:0 2px 9px rgba(15,23,42,.045)!important;color:#142b32;font-family:inherit;transition:box-shadow .2s ease,transform .2s ease}
.zpt-tour-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(15,23,42,.1)!important}
.zpt-tour-card__image{display:block;position:relative;width:100%;aspect-ratio:1.5;background:#e9f0ef;overflow:hidden;text-decoration:none!important}
.zpt-tour-card__image img{width:100%!important;height:100%!important;display:block;object-fit:cover!important;transition:transform .3s ease}
.zpt-tour-card:hover .zpt-tour-card__image img{transform:scale(1.025)}
.zpt-tour-card__placeholder{display:grid;height:100%;width:100%;place-items:center;color:#63757c;font-weight:700;font-size:13px;padding:8px;text-align:center}
.zpt-tour-card__body{display:flex;flex:1;min-width:0;flex-direction:column;padding:13px 13px 12px;gap:8px}
.zpt-tour-card__place{display:flex;align-items:center;gap:5px;min-width:0;color:#536477;font-size:12px;line-height:1.25}
.zpt-tour-card__place svg{flex:none;width:15px;height:15px;color:#30aac4}
.zpt-tour-card__place span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.zpt-tour-card__title{margin:0!important;min-height:2.52em;line-height:1.26!important;font-size:clamp(16px,1.35vw,19px)!important;letter-spacing:-.014em;font-weight:800!important;color:#14232a!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.zpt-tour-card__title a{color:inherit!important;text-decoration:none!important;box-shadow:none!important}
.zpt-tour-card__title a:hover{color:#168fa7!important}
.zpt-tour-card__reviews{display:flex;align-items:center;gap:5px;min-width:0;font-size:12px;color:#5b6878;line-height:1.2;white-space:nowrap}
.zpt-tour-card__reviews>span:first-child{color:#efb12a;font-size:18px;line-height:1}
.zpt-tour-card__reviews strong{font-size:13px;color:#18242c}
.zpt-tour-card__tag{margin:0;line-height:1;min-width:0}
.zpt-tour-card__tag a{display:inline-block;vertical-align:top;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff3d7;color:#644909!important;text-decoration:none!important;border-radius:5px;padding:5px 8px;font-size:11px;font-weight:700;line-height:1.25}
.zpt-tour-card__tag a:hover{background:#efb12a;color:#172b31!important}
.zpt-tour-card__footer{display:flex;align-items:flex-end;justify-content:space-between;gap:7px;flex-wrap:wrap;border-top:1px solid #e6eaf0;padding-top:10px;margin-top:auto;min-height:36px}
.zpt-tour-card__amount{font-size:11px;color:#5c6b78;line-height:1.25;min-width:0}
.zpt-tour-card__amount strong{font-size:clamp(15px,1.4vw,19px);font-weight:850;color:#14242b;letter-spacing:-.018em}
.zpt-tour-card__duration{display:flex;align-items:center;gap:4px;color:#536477;font-size:11px;white-space:nowrap;line-height:1.3}
.zpt-tour-card__duration svg{width:14px;height:14px;flex:none;color:#30aac4}
.zpt-tour-card .gxpkg-wishlist-button{position:absolute!important;top:9px!important;right:9px!important;z-index:4!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}
.zpt-tour-card .gxpkg-wishlist-button__icon{width:19px!important;height:19px!important}
.zpt-package-section__cta{display:flex;justify-content:center;margin:23px 0 0}
.zpt-package-section__cta a{display:inline-flex;justify-content:center;align-items:center;gap:12px;padding:11px 22px;border-radius:7px;background:#30aac4!important;color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:700;min-height:43px}
.zpt-package-section__cta a:hover{background:#168fa7!important}
.zpt-cards-message{margin:20px 0;color:#526271;font-size:14px}

/* Same component is used by archive, search, and related packages. */
.gxGrid>.zpt-tour-card,.spbResults__grid>.zpt-tour-card,.gxe-related-grid>.zpt-tour-card{min-width:0!important;height:100%!important}
.gxe-related-grid>.zpt-tour-card .zpt-tour-card__body{padding:12px 12px 11px;gap:7px}
.gxe-related-grid>.zpt-tour-card .zpt-tour-card__title{font-size:16px!important}
.gxe-related-grid>.zpt-tour-card .zpt-tour-card__amount strong{font-size:17px}

/* Tablet: two columns, without the oversized cards of the older layout. */
@media(max-width:1100px){
 .zpt-package-section__grid{grid-template-columns:repeat(min(3,var(--zpt-card-cols,4)),minmax(0,1fr));gap:14px}
 .zpt-tour-card__body{padding:12px;gap:7px}
 .zpt-tour-card__title{font-size:17px!important}
}
@media(max-width:800px){
 .zpt-package-section__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}

/* Critical: ALL Zanzi Pride package grids stay at two columns on phones,
   including taxonomy archives, finder, Elementor shortcodes and related tours.
   Other GuavaXP clients retain their existing layouts. */
@media(max-width:680px){
 .zpt-package-section{padding:16px 10px 23px}
 .zpt-package-section__heading{margin-bottom:16px}
 .zpt-package-section__heading h2{font-size:clamp(22px,5.5vw,29px)!important;margin-bottom:6px!important}
 .zpt-package-section__heading p{font-size:12px;line-height:1.45}
 .zpt-package-section__grid,
 body .gxpkgTaxCards .gxGrid.zpt-cards-grid,
 body .spbResults__grid.zpt-cards-grid,
 .gxe-pride .gxe-related-grid{
   display:grid!important;
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:10px!important;
   align-items:stretch!important;
 }
 .zpt-tour-card{border-radius:8px!important;box-shadow:0 1px 5px rgba(15,23,42,.045)!important}
 .zpt-tour-card__image{aspect-ratio:1.38}
 .zpt-tour-card__body,
 .gxe-related-grid>.zpt-tour-card .zpt-tour-card__body{padding:9px 9px 10px;gap:6px}
 .zpt-tour-card__place{font-size:10px;gap:3px}
 .zpt-tour-card__place svg{width:12px;height:12px}
 .zpt-tour-card__title,
 .gxe-related-grid>.zpt-tour-card .zpt-tour-card__title{font-size:13.5px!important;line-height:1.25!important;min-height:2.5em;max-height:2.5em;-webkit-line-clamp:2;letter-spacing:-.01em}
 .zpt-tour-card__reviews{font-size:10.5px;gap:3px;min-width:0}
 .zpt-tour-card__reviews>span:first-child{font-size:15px}
 .zpt-tour-card__reviews strong{font-size:11px}
 .zpt-tour-card__tag a{font-size:10px;padding:4px 6px;max-width:100%}
 .zpt-tour-card__footer{padding-top:8px;min-height:30px;gap:5px;flex-wrap:wrap}
 .zpt-tour-card__amount{font-size:10px;line-height:1.2}
 .zpt-tour-card__amount strong,
 .gxe-related-grid>.zpt-tour-card .zpt-tour-card__amount strong{font-size:15px;line-height:1.2}
 .zpt-tour-card__duration{font-size:10px;gap:3px}
 .zpt-tour-card__duration svg{width:12px;height:12px}
 .zpt-tour-card .gxpkg-wishlist-button{top:6px!important;right:6px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
 .zpt-tour-card .gxpkg-wishlist-button__icon{width:18px!important;height:18px!important}
 .zpt-package-section__cta{margin-top:17px}
 .zpt-package-section__cta a{min-height:41px;font-size:13px;padding:10px 18px}
}
@media(max-width:365px){
 .zpt-package-section{padding-inline:8px}
 .zpt-package-section__grid,
 body .gxpkgTaxCards .gxGrid.zpt-cards-grid,
 body .spbResults__grid.zpt-cards-grid,
 .gxe-pride .gxe-related-grid{gap:8px!important}
 .zpt-tour-card__body,
 .gxe-related-grid>.zpt-tour-card .zpt-tour-card__body{padding:8px 7px 9px;gap:5px}
 .zpt-tour-card__title,
 .gxe-related-grid>.zpt-tour-card .zpt-tour-card__title{font-size:12.7px!important}
 .zpt-tour-card__amount strong,
 .gxe-related-grid>.zpt-tour-card .zpt-tour-card__amount strong{font-size:13.5px}
 .zpt-tour-card__duration{font-size:9px}
 .zpt-tour-card__duration svg{width:11px;height:11px}
 .zpt-tour-card__reviews{font-size:9.5px}
}
@media(prefers-reduced-motion:reduce){.zpt-tour-card,.zpt-tour-card__image img{transition:none}}
