/**
 * ═══════════════════════════════════════════════════════════════════
 * ATC Shortcode Grids - Responsive Package Display
 * For: Featured Packages, Package Groups, Categories
 * Location: assets/css/atc-shortcode-grids.css
 * ═══════════════════════════════════════════════════════════════════
 */

/* ==================== GRID LAYOUT ==================== */
.atc-packages-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

/* Desktop: 3 Columns by default (Standardized) */
@media (min-width: 1025px) {

    .atc-packages-grid,
    .atc-grid-desktop-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 2 Columns */
@media (min-width: 768px) and (max-width: 1024px) {
    .atc-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 Column */
@media (max-width: 767px) {
    .atc-packages-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== PACKAGE CARD ==================== */
.atc-package-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Premium shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* ALWAYS VERTICAL */
    height: 100%;
    border: 1px solid #f0f0f0;
}

.atc-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

/* ==================== IMAGE AREA ==================== */
.atc-package-image {
    position: relative;
    width: 100%;
    height: 180px;
    /* Standardized Height */
    overflow: hidden;
    background: #f5f5f5;
}

.atc-package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    /* Force cover to zoom/fit */
    object-position: center;
    transition: transform 0.5s ease;
}

.atc-package-card:hover .atc-package-image img {
    transform: scale(1.08);
    /* Stronger zoom effect */
}

/* Badges */
.atc-badge {
    position: absolute;
    top: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atc-badge-featured {
    left: 15px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    /* Amber gradient */
}

.atc-badge-discount {
    right: 15px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    /* Red gradient */
}

/* ==================== CONTENT AREA ==================== */
.atc-package-content {
    padding: 20px;
    flex-grow: 1;
    /* Pushes footer down */
    display: flex;
    flex-direction: column;
}

.atc-package-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Truncate after 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.atc-package-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Info (Duration, Location, Rating) */
.atc-package-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.atc-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.atc-meta-item svg,
.atc-meta-item i {
    color: #0073aa;
    width: 16px;
}

/* Price Section */
.atc-package-price {
    margin-top: auto;
    /* Push to bottom of content area if description is short */
    margin-bottom: 15px;
}

.atc-price-original {
    display: block;
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.atc-price-current {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

/* Actions */
.atc-package-actions {
    margin-top: 10px;
}

.atc-btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.atc-btn-primary {
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
}

.atc-btn-primary:hover {
    background: #005177;
    border-color: #005177;
    color: #fff;
}

/* ==================== VIEW ALL BTN ==================== */
.atc-view-all-container {
    text-align: center;
    margin-top: 30px;
    grid-column: 1 / -1;
    /* Span all columns */
}

.atc-view-all-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #f0f0f1;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #ddd;
}

.atc-view-all-btn:hover {
    background: #e5e5e5;
    color: #000;
}