/* WP Travel Tours — Frontend CSS v2 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --wptt-primary:    #f59e0b;
  --wptt-accent:     #e74c3c;
  --wptt-card-bg:    #ffffff;
  --wptt-text-dark:  #1a1a2e;
  --wptt-text-light: #6b7280;
  --wptt-star:       #f59e0b;
  --wptt-radius:     16px;
}

/* ── SVG Icons ── */
.wptt-icon { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.wptt-icon svg { width:1em; height:1em; display:block; }
.wptt-type .wptt-icon           { font-size:13px; }
.wptt-places .wptt-icon         { font-size:13px; }
.wptt-card__location .wptt-icon { font-size:13px; }
.wptt-card__duration .wptt-icon { font-size:13px; }
.wptt-star-badge .wptt-icon     { font-size:11px; }
.wptt-book-btn .wptt-icon       { font-size:13px; transition:transform .2s; }
.wptt-book-btn:hover .wptt-icon { transform:translateX(3px); }
.wptt-wishlist .wptt-icon       { font-size:16px; }
.wptt-slider__btn .wptt-icon    { font-size:12px; }
.wptt-car-btn .wptt-icon        { font-size:14px; }

/* ── Section Header ── */
.wptt-section-header {
  text-align: center;
  margin-bottom: 36px;
}
.wptt-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--wptt-text-dark);
  margin: 0 0 8px;
}
.wptt-section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--wptt-text-light);
  margin: 0;
}

/* ── Static Grid ── */
.wptt-grid {
  display: grid;
  gap: 24px;
  font-family: 'Poppins', sans-serif;
}
.wptt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wptt-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wptt-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .wptt-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .wptt-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wptt-cols-4,
  .wptt-cols-3,
  .wptt-cols-2 { grid-template-columns: 1fr; }
}

/* ══ CAROUSEL ══ */
.wptt-carousel-wrap {
  font-family: 'Poppins', sans-serif;
  padding-bottom: 40px; /* room for dots */
}

/* inner: flexbox row — [arrow] [viewport] [arrow] */
.wptt-carousel-inner {
  display: flex;
  align-items: center;   /* vertically centers arrows to card height */
  gap: 12px;
}

.wptt-carousel-viewport {
  flex: 1;               /* takes all space between the two arrows */
  overflow: hidden;
  min-width: 0;
}
.wptt-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.wptt-carousel-slide {
  flex: 0 0 auto;
  min-width: 0;
}

/* Carousel arrow buttons — flex siblings of viewport, always vertically centered */
.wptt-car-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  color: var(--wptt-text-dark);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transition: all .22s;
  padding: 0;
  z-index: 2;
}
.wptt-car-btn:hover {
  background: var(--wptt-primary);
  border-color: var(--wptt-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transform: scale(1.08);
}
.wptt-car-btn:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

/* Carousel dots */
.wptt-car-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
}
.wptt-car-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all .25s;
  border: none;
}
.wptt-car-dot--active {
  background: var(--wptt-primary);
  width: 24px;
  border-radius: 4px;
}

/* ══ CARD ══ */
.wptt-card {
  background: var(--wptt-card-bg);
  border-radius: var(--wptt-radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
}
/* Hard cap: no FA icon inside a card body can exceed 16px */
.wptt-card__body i[class*="fa-"] {
  font-size: 13px !important;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* Inline SVG icons — fixed size always */
.wptt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  line-height: 1;
}
.wptt-icon svg {
  width: 16px !important;
  height: 16px !important;
  display: block;
  flex-shrink: 0;
}
/* Wishlist button icon slightly larger */
.wptt-wishlist .wptt-icon,
.wptt-wishlist .wptt-icon svg { width: 18px !important; height: 18px !important; }
/* Slider arrow icons */
.wptt-slider__btn .wptt-icon,
.wptt-slider__btn .wptt-icon svg,
.wptt-car-btn .wptt-icon,
.wptt-car-btn .wptt-icon svg { width: 14px !important; height: 14px !important; }
.wptt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0,0,0,.13);
}

/* ── Image/Slider ── */
.wptt-card__image-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e8edf2;
}
.wptt-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.wptt-slider__track {
  display: flex;
  height: 100%;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.wptt-slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.wptt-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .42s ease;
}
.wptt-card:hover .wptt-slide img { transform: scale(1.04); }

/* Card image slider arrows */
.wptt-slider__btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.92);
  border: none; border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 12px;
  color: var(--wptt-text-dark);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s, background .2s, transform .2s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  padding: 0;
}
.wptt-card:hover .wptt-slider__btn { opacity: 1; }
.wptt-slider__btn--prev { left: 10px; }
.wptt-slider__btn--next { right: 10px; }
.wptt-slider__btn:hover {
  background: var(--wptt-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

/* Image dots */
.wptt-slider__dots {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 10;
}
.wptt-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: 1.5px solid rgba(255,255,255,.7);
  transition: all .2s; cursor: pointer;
}
.wptt-dot--active {
  background: var(--wptt-primary);
  border-color: var(--wptt-primary);
  transform: scale(1.3);
}

/* Badge */
.wptt-badge {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.wptt-badge--sale     { background: linear-gradient(135deg,#e74c3c,#c0392b); }
.wptt-badge--featured { background: linear-gradient(135deg,#00bcd4,#0097a7); }
.wptt-badge--hot      { background: linear-gradient(135deg,#f39c12,#e67e22); }

/* Wishlist */
.wptt-wishlist {
  position: absolute; bottom: 12px; left: 12px; z-index: 10;
  background: rgba(255,255,255,.92); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 15px;
  color: var(--wptt-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; box-shadow: 0 2px 6px rgba(0,0,0,.15); padding: 0;
}
.wptt-wishlist:hover,
.wptt-wishlist.is-active { color: var(--wptt-accent); transform: scale(1.15); }
.wptt-wishlist.is-active i { font-weight: 900; }

/* ── Card Body ── */
.wptt-card__body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; flex: 1;
}

/* Meta row */
.wptt-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.wptt-type {
  font-size: 12px; font-weight: 600;
  color: var(--wptt-primary);
  display: flex; align-items: center; gap: 5px;
}
.wptt-type i { font-size: 11px; }
.wptt-places {
  font-size: 12px; color: var(--wptt-text-light); font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}
.wptt-places i { color: #3b82f6; font-size: 11px; }

/* Title */
.wptt-card__title {
  margin: 0 0 5px;
  font-size: 16px; font-weight: 700; line-height: 1.3;
}
.wptt-card__title a { color: var(--wptt-text-dark); text-decoration: none; transition: color .2s; }
.wptt-card__title a:hover { color: var(--wptt-primary); }

/* Location */
.wptt-card__location {
  margin: 0 0 8px;
  font-size: 13px; color: var(--wptt-text-light);
  display: flex; align-items: center; gap: 5px;
}
.wptt-card__location i {
  color: var(--wptt-accent);
  font-size: 13px;
  width: 14px;
  flex-shrink: 0;
  display: inline-block;
}

/* Rating */
.wptt-card__rating {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.wptt-star-badge {
  background: var(--wptt-star);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px;
  display: flex; align-items: center; gap: 4px;
}
.wptt-star-badge i { font-size: 10px; }
.wptt-rating-label { color: var(--wptt-primary); font-size: 13px; font-weight: 600; }
.wptt-reviews { color: var(--wptt-text-light); font-size: 12px; }

/* Duration */
.wptt-card__duration {
  margin: 0 0 10px;
  font-size: 13px; color: var(--wptt-text-light);
  display: flex; align-items: center; gap: 5px;
}
.wptt-card__duration i { font-size: 12px; }

/* Footer */
.wptt-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px; border-top: 1px solid #f0f4f8;
}
.wptt-price { font-size: 13px; color: var(--wptt-text-light); }
.wptt-price strong { color: var(--wptt-accent); font-size: 18px; font-weight: 700; }
.wptt-book-btn {
  color: var(--wptt-text-dark); font-size: 13px; font-weight: 700;
  font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, gap .2s;
}
.wptt-book-btn:hover { color: var(--wptt-primary); gap: 10px; }
.wptt-book-btn i { font-size: 11px; transition: transform .2s; }
.wptt-book-btn:hover i { transform: translateX(2px); }

.wptt-no-tours {
  text-align: center; color: var(--wptt-text-light);
  padding: 40px; font-family: 'Poppins', sans-serif;
}

/* ══ FILTER BAR ══ */
.wptt-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  font-family: 'Poppins', sans-serif;
}

/* Search */
.wptt-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f7fb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 14px;
  flex: 1;
  min-width: 180px;
  transition: border-color .2s;
}
.wptt-search-wrap:focus-within {
  border-color: var(--wptt-primary);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.wptt-search-wrap .wptt-icon svg { stroke: #9ca3af; }
.wptt-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--wptt-text-dark);
  width: 100%;
}
.wptt-search-input::placeholder { color: #9ca3af; }

/* Type tabs */
.wptt-type-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wptt-tab {
  background: #f4f7fb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--wptt-text-light);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.wptt-tab:hover {
  border-color: var(--wptt-primary);
  color: var(--wptt-primary);
  background: rgba(245,158,11,.06);
}
.wptt-tab--active {
  background: var(--wptt-primary);
  border-color: var(--wptt-primary);
  color: #fff !important;
}

/* Sort select */
.wptt-sort-wrap { margin-left: auto; }
.wptt-sort-select {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--wptt-text-dark);
  background: #f4f7fb;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.wptt-sort-select:focus { border-color: var(--wptt-primary); }

/* Grid item wrapper for filter */
.wptt-grid-item { display: contents; }
.wptt-grid-item.wptt-hidden { display: none !important; }

/* No results */
.wptt-no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: #9ca3af;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

@media (max-width: 600px) {
  .wptt-filter-bar { flex-direction: column; align-items: stretch; }
  .wptt-sort-wrap { margin-left: 0; }
  .wptt-sort-select { width: 100%; }
}
