/* ============================================================
 *  Global Travel Partners — Frontend Styles
 * ============================================================ */

:root {
  --gtp-bg: #fafafa;
  --gtp-surface: #fff;
  --gtp-border: #e8e8e8;
  --gtp-text: #1a1a1a;
  --gtp-text2: #666;
  --gtp-text3: #999;
  --gtp-accent: #0066cc;
  --gtp-accent-h: #0052a3;
  --gtp-accent-l: rgba(0,102,204,.08);
  --gtp-radius: 12px;
  --gtp-radius-sm: 8px;
  --gtp-shadow: 0 1px 3px rgba(0,0,0,.06),0 4px 12px rgba(0,0,0,.04);
  --gtp-shadow-lg: 0 4px 12px rgba(0,0,0,.08),0 16px 40px rgba(0,0,0,.06);
  --gtp-transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ===== Filter Bar ===== */
.gtp-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.gtp-filter-label {
  font-size: 13px;
  color: var(--gtp-text3);
  font-weight: 500;
  margin-right: 2px;
}
.gtp-filter-chip {
  font-family: inherit;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--gtp-border);
  color: var(--gtp-text2);
  background: var(--gtp-surface);
  cursor: pointer;
  transition: all var(--gtp-transition);
  font-weight: 500;
  white-space: nowrap;
}
.gtp-filter-chip:hover {
  border-color: var(--gtp-accent);
  color: var(--gtp-accent);
}
.gtp-filter-chip.active {
  background: var(--gtp-accent);
  color: #fff;
  border-color: var(--gtp-accent);
}
.gtp-filter-count {
  font-size: 11px;
  background: rgba(0,0,0,.06);
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 600;
}
.gtp-filter-chip.active .gtp-filter-count {
  background: rgba(255,255,255,.2);
}

/* ===== Results Bar ===== */
.gtp-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 8px;
}
.gtp-results-count {
  font-size: 14px;
  color: var(--gtp-text3);
}
.gtp-results-count span {
  color: var(--gtp-text);
  font-weight: 600;
}
.gtp-view-toggle {
  display: flex;
  gap: 4px;
}
.gtp-view-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gtp-text3);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--gtp-transition);
}
.gtp-view-btn:hover { color: var(--gtp-text2); }
.gtp-view-btn.active {
  background: var(--gtp-accent-l);
  color: var(--gtp-accent);
  border-color: rgba(0,102,204,.15);
}

/* ===== Grid ===== */
.gtp-merchant-grid {
  display: grid;
  gap: 24px;
}
.gtp-cols-1 { grid-template-columns: 1fr; }
.gtp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gtp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gtp-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gtp-list-view { grid-template-columns: 1fr; }

/* ===== Card ===== */
.gtp-card {
  background: var(--gtp-surface);
  border-radius: var(--gtp-radius);
  overflow: hidden;
  border: 1px solid var(--gtp-border);
  transition: all var(--gtp-transition);
  animation: gtp-fadeUp .4s ease both;
}
.gtp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gtp-shadow-lg);
  border-color: transparent;
}
.gtp-card-img-wrap {
  overflow: hidden;
  position: relative;
}
.gtp-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #f0f0f0;
  transition: transform .4s ease;
  display: block;
}
.gtp-card:hover .gtp-card-img {
  transform: scale(1.03);
}

/* ===== Card Hover Overlay ===== */
.gtp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--gtp-transition);
}
.gtp-card:hover .gtp-card-overlay {
  opacity: 1;
}
.gtp-overlay-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all var(--gtp-transition);
  border: none;
  cursor: pointer;
}
.gtp-overlay-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
}
.gtp-overlay-btn-youtube svg {
  stroke: none;
  fill: #fff;
}
.gtp-overlay-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}
.gtp-overlay-btn-youtube:hover {
  background: rgba(255,0,0,0.6);
}

/* ===== Card Body ===== */
.gtp-card-body {
  padding: 20px;
}
.gtp-card-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.gtp-card-desc {
  font-size: 13px;
  color: var(--gtp-text2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== List View ===== */
.gtp-list-view .gtp-card {
  display: flex;
}
.gtp-list-view .gtp-card-img-wrap {
  width: 320px;
  min-width: 320px;
}
.gtp-list-view .gtp-card-img {
  height: 100%;
  aspect-ratio: auto;
}
.gtp-list-view .gtp-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gtp-list-view .gtp-card-desc {
  -webkit-line-clamp: 3;
}

/* ===== Pagination ===== */
.gtp-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.gtp-page-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--gtp-text2);
  border: 1px solid var(--gtp-border);
  background: var(--gtp-surface);
  cursor: pointer;
  transition: all var(--gtp-transition);
}
.gtp-page-btn:hover:not(:disabled) {
  border-color: var(--gtp-accent);
  color: var(--gtp-accent);
}
.gtp-page-btn.active {
  background: var(--gtp-accent);
  color: #fff;
  border-color: var(--gtp-accent);
}
.gtp-page-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.gtp-page-ellipsis {
  color: var(--gtp-text3);
  align-self: center;
  padding: 0 4px;
}

/* ===== Empty State ===== */
.gtp-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gtp-text3);
  grid-column: 1/-1;
}
.gtp-empty h3 {
  font-size: 18px;
  color: var(--gtp-text2);
  margin-bottom: 8px;
}
.gtp-empty p {
  font-size: 14px;
}

/* ===== Animations ===== */
@keyframes gtp-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gtp-card:nth-child(2) { animation-delay: .04s; }
.gtp-card:nth-child(3) { animation-delay: .06s; }
.gtp-card:nth-child(4) { animation-delay: .08s; }
.gtp-card:nth-child(5) { animation-delay: .1s; }
.gtp-card:nth-child(6) { animation-delay: .12s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .gtp-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gtp-cols-3,
  .gtp-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gtp-list-view .gtp-card { flex-direction: column; }
  .gtp-list-view .gtp-card-img-wrap { width: 100%; min-width: auto; }
  .gtp-list-view .gtp-card-img { aspect-ratio: 16/10; }
  .gtp-filter-bar { gap: 8px; }
}
@media (max-width: 480px) {
  .gtp-cols-2,
  .gtp-cols-3,
  .gtp-cols-4 { grid-template-columns: 1fr; }
  .gtp-filter-chip { font-size: 12px; padding: 5px 12px; }
}
