/* mod_cruise_featured — self-contained styles, ct- namespaced. */

.ct-featured {
  --ct-accent: #0f6e5c;
  --ct-accent-dark: #0b4f42;
  --ct-border: #e0e0e0;
  --ct-bg-muted: #f7f7f5;
  --ct-text: #222;
  --ct-text-muted: #6b6b6b;
  --ct-radius: 10px;
  color: var(--ct-text);
}

.ct-loading {
  padding: 2rem;
  text-align: center;
  color: var(--ct-text-muted);
}

.ct-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.ct-card {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ct-card-image {
  position: relative;
  display: block;
  margin: -1rem -1rem 0 -1rem;
  aspect-ratio: 16 / 10;
  border-radius: var(--ct-radius) var(--ct-radius) 0 0;
  overflow: hidden;
  background: var(--ct-bg-muted);
}

.ct-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ct-card-image-placeholder {
  background: linear-gradient(135deg, var(--ct-bg-muted), #ececec);
}

.ct-image-badge {
  position: absolute;
  top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ct-text);
  white-space: nowrap;
}

.ct-image-badge-type {
  left: 0.5rem;
}

.ct-image-badge-ship {
  right: 0.5rem;
}

.ct-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.ct-card-title a {
  color: var(--ct-accent-dark);
  text-decoration: none;
}

.ct-card-title a:hover {
  text-decoration: underline;
}

.ct-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ct-price {
  font-size: 1.05rem;
  font-weight: 700;
}

.ct-rating {
  font-size: 0.85rem;
  color: var(--ct-text-muted);
}

.ct-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ct-border);
}

.ct-compare-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.ct-view-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ct-accent-dark);
  text-decoration: none;
}

.ct-view-link:hover {
  text-decoration: underline;
}

.ct-compare-bar-wrap:empty {
  display: none;
}

.ct-compare-bar {
  margin-top: 1rem;
  background: var(--ct-accent-dark);
  color: #fff;
  border-radius: var(--ct-radius);
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
}

.ct-compare-cta {
  background: #fff;
  color: var(--ct-accent-dark);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
