/* ============================================================
   OpenTripCard.module.css — Redesign Trip Card (16:10)
   Modern Clean Adventure Card Design System
   ============================================================ */

.card {
  background-color: #FFFFFF;
  border: 1px solid rgba(23, 35, 47, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 40, 30, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20, 40, 30, 0.09);
  border-color: rgba(38, 148, 54, 0.28);
}

/* ── Image Area ────────────────────────────────────────────── */

.imageWrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #EAEFEA;
}

.cardImg {
  object-fit: cover;
  transition: transform 400ms ease;
}

.card:hover .cardImg {
  transform: scale(1.04);
}

.imageOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.68) 100%
  );
  pointer-events: none;
}

/* Badges over Image */
.badgeTopLeft {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.typeBadge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.weekend {
  background-color: var(--ppt-primary, #269436);
  color: #FFFFFF;
}

.weekday {
  background-color: #2F855A;
  color: #FFFFFF;
}

/* Favorite Heart Button */
.favoriteBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 180ms ease, transform 180ms ease;
  color: #667085;
}

.favoriteBtn:hover {
  background-color: #FFFFFF;
  transform: scale(1.1);
  color: var(--ppt-primary, #269436);
}

.favoriteActive {
  color: var(--ppt-primary, #269436);
}

.heartIcon {
  transition: transform 180ms ease;
}

.favoriteBtn:active .heartIcon {
  transform: scale(0.85);
}

/* Location on Image Bottom-Left */
.locationOverlay {
  position: absolute;
  bottom: 11px;
  left: 13px;
  right: 13px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.locationIcon {
  color: #FFFFFF;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.locationText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Card Body Area ────────────────────────────────────────── */

.cardBody {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cardHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.title {
  font-size: 18px;
  font-weight: 700;
  color: #17232F;
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.statusBadge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.statusOpen {
  background-color: #EEF8EF;
  color: var(--ppt-primary, #269436);
}

.statusClosed {
  background-color: #F3F4F6;
  color: #6B7280;
}

/* Date Row */
.dateRow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 13.5px;
  font-weight: 500;
}

.dateIcon {
  color: #9CA3AF;
  flex-shrink: 0;
}

.dateText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Card Footer: Price & CTA ──────────────────────────────── */

.cardFooter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F0F4F1;
  gap: 12px;
}

.priceWrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.priceLabel {
  font-size: 11.5px;
  font-weight: 600;
  color: #9CA3AF;
  line-height: 1;
}

.priceAmountRow {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.priceAmount {
  font-size: 19px;
  font-weight: 800;
  color: var(--ppt-primary, #269436);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.priceUnit {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 500;
}

/* CTA Button */
.ctaBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--ppt-primary, #269436);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 180ms ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(38, 148, 54, 0.2);
}

.ctaBtn:hover {
  background-color: #1F7F2E;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(38, 148, 54, 0.28);
}

.ctaArrow {
  transition: transform 180ms ease;
}

.ctaBtn:hover .ctaArrow {
  transform: translateX(3px);
}
