/* JEEPA-MIGRATION-CARD-TOKENS: Preserve the legacy child theme's exact custom-card variables. */
.jeepa-destinations-page .jt-tours-shortcode {
    --td-primary: #10896b;
    --td-primary-light: #e6f4f0;
    --td-primary-hover: #0d6e56;
    --td-text-main: #374151;
    --td-text-muted: #4b5563;
    --td-heading: #111827;
    --td-bg-surface: #ffffff;
    --td-bg-alt: #f9fafb;
    --td-border: #e5e7eb;
    --td-radius-sm: 8px;
    --td-radius-md: 12px;
    --td-radius-pill: 50px;
    --td-shadow-soft: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
    --td-shadow-hover: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
}
/* Keep original tour image treatment intact when attachment markup contains an img. */
.jeepa-destinations-page .tour-card-image { overflow:hidden; }
.jeepa-destinations-page .tour-card-image img.jeepa-listing-image { width:100%; height:100%; object-fit:cover; display:block; }
/* ================================================================
   WP TRAVEL ENGINE — CUSTOM TOUR CARDS GRID
   ================================================================ */

/* Container Grid */
.custom-tours-grid {
    display: grid;
    gap: 24px;
    margin: 30px 0;
    grid-template-columns: repeat(var(--grid-cols, 3), 1fr); 
}

/* Tablet Layout */
@media (max-width: 991px) {
    .custom-tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .custom-tours-grid {
        grid-template-columns: 1fr;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* The Card Itself */
.tour-card {
    background: var(--td-bg-surface);
    border-radius: var(--td-radius-md);
    box-shadow: var(--td-shadow-soft);
    border: 1px solid var(--td-border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--td-shadow-hover);
}

/* Card Image & Badge */
.tour-card-image {
    aspect-ratio: 3 / 2;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--td-primary);
    position: relative;
}

.tour-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--td-primary);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--td-radius-pill);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Card Content Area */
.tour-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Tour Title */
.tour-card-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.tour-card-title a {
    text-decoration: none;
    color: var(--td-heading);
    transition: color 0.2s ease;
}

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

/* Meta Data (Location & Duration) */
.tour-card-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--td-text-muted);
    font-weight: 500;
}

.meta-item svg {
    flex-shrink: 0;
    color: var(--td-text-muted);
    opacity: 0.8;
}

/* The Button */
.tour-card-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--td-primary);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: var(--td-radius-md); 
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.tour-card-btn:hover {
    background-color: var(--td-primary-hover);
    transform: translateY(-2px);
}

.tour-card-btn:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
}
