/**
 * Card Components CSS
 * Modern, mobile-first tour and hotel cards
 */

/* Tour Card - Base */
.tour-card,
.hotel-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-card:hover,
.hotel-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Image Container */
.tour-card-image,
.hotel-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

/* Favorite button (shared) */
.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.9);
    color: var(--gray-700);
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.fav-btn:hover { background:#fff; color: var(--primary); transform: translateY(-1px); }
.fav-btn.is-active { background: var(--primary); color:#fff; border-color: var(--primary); }

/* Inline variant for footer placement */
.fav-btn--inline {
    position: static;
    width: 36px;
    height: 36px;
}

@media (min-width: 768px) {
    .tour-card-image,
    .hotel-card-image {
        height: 220px;
    }
}

.tour-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.tour-card-image img,
.hotel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card:hover .tour-card-image img,
.hotel-card:hover .hotel-card-image img {
    transform: scale(1.08);
}

.tour-card-image-placeholder,
.hotel-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray-400);
    background: var(--gray-100);
}

/* Badges Overlay */
.tour-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    z-index: 2;
}

.tour-card-badges .badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
}

.badge-type {
    background: var(--primary);
    opacity: 0.95;
    color: white;
}

.badge-duration {
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-700);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Content Area */
.tour-card-content,
.hotel-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .tour-card-content,
    .hotel-card-content {
        padding: 20px;
    }
}

/* Title */
.tour-card-title,
.hotel-card-title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--gray-900);
}

.tour-card-title a,
.hotel-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.tour-card-title a:hover,
.hotel-card-title a:hover {
    color: var(--primary);
}

/* Meta Info */
.tour-card-meta,
.hotel-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.tour-card-meta-item,
.hotel-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-separator {
    color: var(--gray-400);
    margin: 0 4px;
}

/* Date Pills */
.tour-card-dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
}

.tour-card-dates-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tour-card-dates-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.date-pill {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.date-pill:hover {
    background: var(--primary-lightest);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.date-pill.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.date-pill-more {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-600);
}

.date-pill-more:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

/* Footer */
.tour-card-footer,
.hotel-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

/* Right side actions (fav + CTA) */
.tour-card-actions { display: inline-flex; align-items: center; gap: 8px; }

/* Price */
.tour-card-price,
.hotel-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tour-card-price-label,
.hotel-card-price-label {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tour-card-price-amount,
.hotel-card-price-amount {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--primary);
    line-height: var(--line-height-none);
}

.tour-card-price-amount small,
.hotel-card-price-amount small {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-600);
    margin-left: 2px;
}

/* CTA Button */
.tour-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
    overflow: visible;
    position: relative;
}

.tour-card-cta:hover {
    background: var(--primary-dark);
    transform: translateX(2px);
    color: white;
}

.tour-card-cta-text,
.tour-card-cta-icon {
    display: inline-flex;
    align-items: center;
    color: white;
    opacity: 1;
    visibility: visible;
    transition: none;
}

.tour-card-cta:hover .tour-card-cta-text,
.tour-card-cta:hover .tour-card-cta-icon {
    color: white;
    opacity: 1;
    visibility: visible;
}

.tour-card-cta-icon svg {
    display: inline-block;
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: currentColor;
    color: white;
}

/* Feature Card */
.feature-card {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: white;
}

.feature-card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin: 0 0 var(--space-2);
}

.feature-card-description {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin: 0;
    line-height: var(--line-height-normal);
}
