/* =============================================
   Destination-Style Tour Product Card
   Merge into: /css/tour-packages.css
   ============================================= */

/* ── Grid ── */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ── Card shell ── */
.dest-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    background: #111;
    /* Fixed height so all cards are uniform */
    height: 380px;
}

/* ── Image wrapper fills the card completely ── */
.dest-card-img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dest-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

.dest-card:hover .dest-card-img-wrap img {
    transform: scale(1.06);
}

/* ── Dark gradient overlay ── */
.dest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08) 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.72) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ── Duration pill — top left ── */
.dest-duration {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background:#081421;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    pointer-events: none;
}

/* ── Vertical badge — top right, flush to card edge ── */
.dest-badge {
    position: absolute;
    top: 14px;
    right: 0;
    z-index: 2;
    background: #1a4db5;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 8px 5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    border-radius: 4px 0 0 4px;
    line-height: 1;
    pointer-events: none;
}

/* ── Bottom content ── */
.dest-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 16px 16px;
    z-index: 2;
    pointer-events: none;
}

/* Product / destination name — single line with ellipsis */
.dest-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rating row */
.dest-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dest-rating {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffd166;
    letter-spacing: 0.02em;
}

.dest-rating-count {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.7rem;
}

/* ── Location pill — glassmorphism style ── */
.dest-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding: 4px 10px 4px 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.68rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-shadow: none;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pulsing dot inside the pill */
.dest-location-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: dest-pulse 2s ease-in-out infinite;
}

@keyframes dest-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0.7); }
    60%  { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0);   }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pkg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .dest-card {
        height: 280px;
    }
    .dest-name {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .pkg-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .dest-name {
        font-size: 0.95rem;
    }
    .dest-meta {
        display: none;
    }
}