/**
 * Viator Tours Widget CSS v1
 * Styles for tour recommendation cards powered by Viator API.
 */

/* Widget container */
.vt-widget {
  margin: 25px 0;
  font-family: inherit;
}

/* Header */
.vt-header {
  margin-bottom: 18px;
}
.vt-heading {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #2c3e50;
}
.vt-heading .fa {
  margin-right: 6px;
  color: #e67e22;
}
.vt-subhead {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0;
}

/* Grid */
.vt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1024px) {
  .vt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .vt-grid { grid-template-columns: 1fr; }
}

/* Card */
.vt-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s, transform 0.2s;
}
.vt-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}
.vt-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.vt-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Card image */
.vt-card-img {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 66%;
  overflow: hidden;
  background: #eee;
}
.vt-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vt-price-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
}

/* Card body */
.vt-card-body {
  padding: 12px 14px 14px;
}
.vt-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: #2c3e50;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vt-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  font-size: 13px;
}
.vt-rating {
  color: #f39c12;
  font-weight: 600;
}
.vt-star { font-size: 12px; }
.vt-star-full { color: #f39c12; }
.vt-star-half { color: #f39c12; opacity: 0.5; }
.vt-reviews {
  color: #95a5a6;
  font-size: 12px;
}
.vt-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #7f8c8d;
}
.vt-card-details .fa {
  margin-right: 3px;
}
.vt-cancellation {
  color: #27ae60;
}

/* See all button */
.vt-see-all {
  text-align: center;
  margin-top: 20px;
}
.vt-btn {
  display: inline-block;
  background: #e67e22;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.vt-btn:hover {
  background: #d35400;
  color: #fff;
  text-decoration: none;
}
.vt-btn .fa {
  margin-left: 6px;
}

/* Loading state */
.vt-loading {
  text-align: center;
  padding: 40px 0;
  color: #95a5a6;
}
.vt-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: #e67e22;
  border-radius: 50%;
  animation: vt-spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes vt-spin {
  to { transform: rotate(360deg); }
}

/* Error / empty states */
.vt-error, .vt-empty {
  text-align: center;
  padding: 30px;
  color: #95a5a6;
  font-size: 14px;
}
