/* Rozafa – restyle TravelerWP tour results (/tours/) to match homepage cards. Keeps search, sort, filter & pagination. */
.st-tours{--rz-ink:#0b1f2a;--rz-muted:#6b7a81;--rz-line:#e5ecec;--rz-teal:#0c8c80;--rz-teal-d:#09756b;--rz-wa:#1fa855}
.st-tours .item-tour,.st-tours .item-tour *{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif!important}

/* 3 per row on desktop */
@media(min-width:992px){.st-tours .service-list-wrapper>.item-tour{flex:0 0 33.333%;max-width:33.333%}}
.st-tours .service-list-wrapper>.item-tour{margin-bottom:26px;display:flex}

.st-tours .item-tour>.item{display:flex;flex-direction:column;width:100%;background:#fff;border:1px solid var(--rz-line)!important;border-radius:14px!important;overflow:hidden;box-shadow:none;transition:border-color .3s,box-shadow .3s}
.st-tours .item-tour>.item:hover{border-color:#cfe0de!important;box-shadow:0 14px 34px rgba(11,31,42,.08)}

/* image */
.st-tours .item-tour .featured-image{position:relative;margin:0;aspect-ratio:16/10;overflow:hidden;border-radius:0!important;background:#eef3f3}
.st-tours .item-tour .featured-image>a,.st-tours .item-tour .featured-image img{display:block;width:100%;height:100%}
.st-tours .item-tour .featured-image img{object-fit:cover;border-radius:0!important;transition:transform .9s cubic-bezier(.22,1,.36,1)}
.st-tours .item-tour>.item:hover .featured-image img{transform:scale(1.04)}
.st-tours .item-tour .service-add-wishlist{display:none!important}
.st-tours .item-tour .service-tag{position:absolute;top:12px;right:12px;left:auto;z-index:2}
.st-tours .item-tour .service-tag .featured{background:var(--rz-teal)!important;color:#fff!important;font-size:.68rem!important;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:.38rem .6rem!important;border-radius:4px!important;line-height:1.2!important}

/* price badge (moved onto the image by the script) */
.st-tours .rzt-price{position:absolute;left:12px;bottom:12px;z-index:2;display:inline-flex;align-items:baseline;gap:5px;background:#fff;border-radius:8px;padding:7px 11px;box-shadow:0 4px 14px rgba(0,0,0,.12);line-height:1}
.st-tours .rzt-price small{font-size:.7rem;color:var(--rz-muted)}
.st-tours .rzt-price b{font-size:1.08rem;font-weight:700;color:var(--rz-ink)}
.st-tours .rzt-price--ask b{font-size:.9rem}

/* body */
.st-tours .item-tour .content-item{display:flex;flex-direction:column;flex:1;padding:18px!important}
.st-tours .item-tour .content-item h3.title{font-size:1.1rem!important;font-weight:700!important;line-height:1.4!important;letter-spacing:-.01em;margin:0!important}
.st-tours .item-tour .content-item h3.title a{color:var(--rz-ink)!important;text-decoration:none!important}
.st-tours .item-tour .content-item h3.title a:hover{color:var(--rz-teal)!important}
.st-tours .item-tour .section-footer{margin-top:10px!important;padding:0!important;border:0!important}
.st-tours .item-tour .section-footer .reviews{display:none!important}
.st-tours .item-tour .footer-inner{padding:0!important;border:0!important;justify-content:flex-start!important}
.st-tours .item-tour .service-duration{display:inline-flex;align-items:center;gap:6px;font-size:.82rem!important;color:var(--rz-muted)!important}
.st-tours .item-tour .service-duration i,.st-tours .item-tour .service-duration svg{width:15px!important;height:15px!important;color:var(--rz-teal)!important;stroke:var(--rz-teal)}
.st-tours .item-tour .price-wrapper{display:none!important} /* shown as badge on image */

/* buttons (added by the script) */
.st-tours .rzt-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto;padding-top:18px}
.st-tours .rzt-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 12px;border-radius:8px;font-size:.87rem;font-weight:600;line-height:1;white-space:nowrap;text-decoration:none!important;transition:background .2s,color .2s}
.st-tours .rzt-btn svg{width:17px;height:17px;flex-shrink:0}
.st-tours .rzt-btn--wa{background:#e9f8ef;color:var(--rz-wa)!important}
.st-tours .rzt-btn--wa svg{fill:currentColor}
.st-tours .rzt-btn--wa:hover{background:var(--rz-wa);color:#fff!important}
.st-tours .rzt-btn--book{background:var(--rz-teal);color:#fff!important}
.st-tours .rzt-btn--book svg{fill:none;stroke:currentColor;stroke-width:2.2;transition:transform .2s}
.st-tours .rzt-btn--book:hover{background:var(--rz-teal-d)}
.st-tours .rzt-btn--book:hover svg{transform:translateX(3px)}

/* pagination */
.st-tours .moderm-pagination .page-numbers{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:0;margin:20px 0 0}
.st-tours .moderm-pagination .page-numbers li{list-style:none;margin:0}
.st-tours .moderm-pagination a.page-numbers,.st-tours .moderm-pagination span.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border:1px solid var(--rz-line);border-radius:10px;background:#fff;color:var(--rz-ink)!important;font-weight:600;text-decoration:none!important;transition:background .2s,color .2s,border-color .2s}
.st-tours .moderm-pagination a.page-numbers:hover{border-color:var(--rz-teal);color:var(--rz-teal)!important}
.st-tours .moderm-pagination .page-numbers.current{background:var(--rz-ink)!important;border-color:var(--rz-ink)!important;color:#fff!important}

@media(max-width:575px){
  .st-tours .service-list-wrapper{margin-left:-6px;margin-right:-6px}
  .st-tours .service-list-wrapper>.item-tour{padding-left:6px;padding-right:6px;margin-bottom:16px}
  .st-tours .item-tour .content-item{padding:16px 14px!important}
}

/* mobile: Traveler's Date/Sort/Filter buttons are floated and not cleared -> cards got squeezed beside them */
.st-tours .toolbar::after,.st-tours .toolbar-action-mobile::after{content:"";display:table;clear:both}
.st-tours .modern-search-result,.st-tours .service-list-wrapper{clear:both}
.st-tours .toolbar-action-mobile{display:flex!important;gap:8px;margin:0 0 16px;padding:0}
.st-tours .toolbar-action-mobile li{float:none!important;flex:1;margin:0!important}
.st-tours .toolbar-action-mobile .btn{display:flex;align-items:center;justify-content:center;width:100%;height:44px;border-radius:10px!important;border:1px solid var(--rz-line)!important;background:#fff!important;color:var(--rz-ink)!important;font-weight:600;box-shadow:none!important}
/* image always fills its box */
.st-tours .item-tour .featured-image>a{position:absolute!important;inset:0}
.st-tours .item-tour .featured-image img{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important}

