/* ═══════════════════════════════════════════════════════════
   LUPIN TRAVEL — JOURNEY CARD WIDGET STYLES (v1.4)
   Sized to match existing Example Tours of Turkey cards
   Footer adapts to card width via container queries
   ═══════════════════════════════════════════════════════════ */

.lupin-jc {
  width: 100%;
  max-width: 380px;
  background: #F7F4EE;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #4A4742;
  box-shadow:
    0 1px 2px rgba(38, 70, 83, 0.05),
    0 6px 18px -8px rgba(38, 70, 83, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lupin-jc * { box-sizing: border-box; }

/* Hover lift (toggleable) */
.lupin-jc-hover-on .lupin-jc:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(38, 70, 83, 0.05),
    0 14px 30px -10px rgba(38, 70, 83, 0.18);
}

/* Image */
.lupin-jc-image-wrap {
  position: relative;
  overflow: hidden;
}
.lupin-jc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3/2;
  transition: transform 0.6s ease;
}
.lupin-jc-zoom-on .lupin-jc:hover .lupin-jc-image {
  transform: scale(1.04);
}

/* Badges */
.lupin-jc-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}
.lupin-jc-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 2px;
  line-height: 1;
  white-space: nowrap;
}
.lupin-jc-badge-left {
  background: #FFFFFF;
  color: #264653;
}
.lupin-jc-badge-right {
  background: #264653;
  color: #FFFFFF;
}

/* Body */
.lupin-jc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lupin-jc-title {
  color: #264653;
  margin: 0 0 6px;
  line-height: 1.15;
  letter-spacing: -0.2px;
}
.lupin-jc-subtitle {
  color: #A8B0A5;
  margin: 0 0 20px;
}
.lupin-jc-duration {
  color: #264653;
  margin: 0 0 18px;
}

/* Section */
.lupin-jc-section {
  border-top: 1px solid #D8D1C7;
  padding-top: 18px;
  margin-bottom: 18px;
}
.lupin-jc-section-label {
  color: #264653;
  margin: 0 0 10px;
}
.lupin-jc-itinerary {
  color: #4A4742;
  margin: 0;
  line-height: 1.55;
}

/* Footer */
.lupin-jc-footer {
  border-top: 1px solid #D8D1C7;
  padding-top: 18px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.lupin-jc-price {
  margin: 0;
  color: #4A4742;
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
}
.lupin-jc-price-amount {
  color: #264653;
  font-weight: 700;
}

/* CTA Button */
.lupin-jc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1.5px solid #264653;
  color: #264653;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border-radius: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.lupin-jc-cta:hover {
  background: #264653;
  color: #FFFFFF;
}

/* When price + button can't fit side by side, the button wraps to a new
   line and spans full width — clean, never overlapping. */
.lupin-jc-footer > .lupin-jc-cta {
  margin-left: auto;
}
@media (max-width: 460px) {
  .lupin-jc-footer { flex-direction: column; align-items: stretch; }
  .lupin-jc-footer > .lupin-jc-cta { margin-left: 0; width: 100%; }
}

/* Full width button */
.lupin-jc-fullbtn-on .lupin-jc-footer {
  flex-direction: column;
  align-items: stretch;
}
.lupin-jc-fullbtn-on .lupin-jc-cta {
  width: 100%;
}

/* Responsive */
@media (max-width: 640px) {
  .lupin-jc-body { padding: 20px; }
  .lupin-jc-footer { flex-direction: column; align-items: stretch; }
  .lupin-jc-cta { width: 100%; }

  /* Badges: tighter on small screens so they fit the image width */
  .lupin-jc-badges {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 5px;
  }
  .lupin-jc-badge {
    padding: 5px 9px;
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }
}
