/**
 * Shivaganga Tours - Premium Card Styles
 * Modern, Elegant Card Designs
 */

/* ==========================================
   Destination Cards - Premium Style
   ========================================== */
.destination-card-v2 {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.destination-card-v2:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.dest-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.dest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.destination-card-v2:hover .dest-image img {
    transform: scale(1.12);
}

/* Gradient overlay on image */
.dest-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

.dest-price {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    color: #1e3a5f;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.dest-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dest-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.dest-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a2e;
    line-height: 1.3;
}

.dest-location {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dest-location i {
    color: #667eea;
}

.dest-packages {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.dest-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.dest-actions {
    display: flex;
    gap: 12px;
}

.dest-actions .btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dest-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.dest-actions .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #667eea;
    color: #667eea;
}

.dest-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.dest-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* ==========================================
   Package Cards - Premium Style
   ========================================== */
.package-card-v2 {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.package-card-v2:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.pkg-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.pkg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card-v2:hover .pkg-image img {
    transform: scale(1.12);
}

/* Gradient overlay */
.pkg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

.pkg-discount {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(239, 68, 68, 0.6);
    }
}

.pkg-duration {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.pkg-duration i {
    color: #fbbf24;
}

.pkg-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    letter-spacing: 0.5px;
}

.pkg-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pkg-location {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pkg-location i {
    font-size: 0.9rem;
}

.pkg-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
    line-height: 1.3;
}

.pkg-rating {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pkg-rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.pkg-rating span {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-left: 6px;
}

.pkg-features {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
}

.pkg-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 500;
}

.pkg-features i {
    color: #667eea;
    font-size: 1rem;
}

/* Seat Availability Meter */
.pkg-seats {
    margin-bottom: 20px;
    padding: 16px;
    background: #ffffff;
    border: 1px dashed var(--gray-200);
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.seats-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.seats-label-row span {
    color: var(--gray-500);
    font-weight: 500;
}

.seats-label-row strong {
    color: var(--gray-800);
}

.pkg-progress-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.pkg-progress-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.seats-available-text {
    text-align: right;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.pkg-price-row {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    text-align: center;
}

.pkg-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.pkg-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 1rem;
}

.pkg-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    background: linear-gradient(135deg, #FF9966, #FF5E62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pkg-per {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.pkg-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.pkg-actions .btn {
    flex: 1;
    padding: 16px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pkg-actions .btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.pkg-actions .btn-secondary:hover {
    background: #f9fafb;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.pkg-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.pkg-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.pkg-actions .btn-primary i {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {

    .dest-image,
    .pkg-image {
        height: 200px;
    }

    .dest-content,
    .pkg-content {
        padding: 20px;
    }

    .dest-title {
        font-size: 1.2rem;
    }

    .pkg-title {
        font-size: 1.15rem;
    }

    .pkg-features {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .pkg-current {
        font-size: 1.35rem;
        /* Reduced from 1.6rem */
    }
}

/* Extra mobile refinements for cards */
@media (max-width: 480px) {

    .destination-card-v2,
    .package-card-v2 {
        border-radius: 16px;
        /* Slightly smaller radius for small screens */
    }

    /* Compact stats line */
    .dest-location,
    .pkg-location {
        font-size: 0.8rem;
    }

    /* Ensure images don't take up too much height on very small screens */
    .dest-image,
    .pkg-image {
        height: 160px;
    }

    /* Adjust badges */
    .dest-price,
    .pkg-discount {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {

    .dest-actions,
    .pkg-actions {
        flex-direction: column;
    }

    .dest-actions .btn,
    .pkg-actions .btn {
        width: 100%;
        padding: 12px;
        /* Reduce padding */
    }

    .pkg-seats {
        padding: 12px;
        margin-bottom: 15px;
    }

    .pkg-status-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .seats-label-row {
        font-size: 0.8rem;
    }

    .pkg-features {
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
        padding: 12px 10px;
    }

    .pkg-features span {
        font-size: 0.75rem;
        gap: 4px;
    }

    .pkg-features i {
        font-size: 0.85rem;
    }

    .dest-image,
    .pkg-image {
        height: 180px;
    }

    /* Fix prices and badges overflow */
    .dest-price,
    .pkg-discount {
        font-size: 0.75rem;
        padding: 6px 10px;
        top: 10px;
        right: 10px;
        left: auto;
        /* Ensure pkg-discount positioning if needed */
    }

    .dest-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        top: 10px;
        left: 10px;
    }

    .pkg-discount {
        left: 10px;
        right: auto;
    }

    .pkg-duration {
        bottom: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* ==========================================
   Card Skeleton Loading (Optional)
   ========================================== */
.card-skeleton {
    background: #f3f4f6;
    animation: skeleton-pulse 1.5s infinite;
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ==========================================
   Quick Action Button Styles
   ========================================== */
.btn-book-now {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}

.btn-book-now:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5) !important;
}

.btn-details {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.btn-details:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
    color: white !important;
}