/* =============================================
   Maraka Safari Tours Plugin - Frontend Styles
   Brand Colors:
   - Olive Green: #4A5C2F
   - Earthy Brown: #7B4F2E
   - Khaki: #C9B99A
   - Cream: #F5F0E8
   - Dark Brown: #2C1A0E
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* Grid Layout */
.mst-tours-grid {
    display: grid;
    gap: 28px;
    width: 100%;
    margin: 0 auto;
}

.mst-cols-1 { grid-template-columns: 1fr; }
.mst-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mst-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mst-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Tour Card */
.mst-tour-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mst-tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Tour Image */
.mst-tour-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.mst-tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mst-tour-card:hover .mst-tour-image img {
    transform: scale(1.05);
}

/* Difficulty Badge */
.mst-difficulty {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
}

.mst-difficulty-easy { background: #4A5C2F; }
.mst-difficulty-moderate { background: #C9B99A; color: #2C1A0E; }
.mst-difficulty-challenging { background: #7B4F2E; }

/* Highlight Badge */
.mst-highlight-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(44, 26, 14, 0.85);
    color: #C9B99A;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Tour Content */
.mst-tour-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category Tag */
.mst-tour-category {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7B4F2E;
    margin-bottom: 10px;
}

/* Tour Title */
.mst-tour-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #2C1A0E;
}

.mst-tour-title a {
    color: #2C1A0E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mst-tour-title a:hover {
    color: #4A5C2F;
}

/* Tour Meta */
.mst-tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #F5F0E8;
}

.mst-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #7B4F2E;
    font-weight: 600;
}

.mst-meta-item svg {
    stroke: #C9B99A;
    flex-shrink: 0;
}

/* Tour Excerpt */
.mst-tour-excerpt {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #5C4A3A;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

/* Tour Footer */
.mst-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #F5F0E8;
}

/* Price */
.mst-tour-price {
    display: flex;
    flex-direction: column;
}

.mst-price-label {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mst-price-value {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #4A5C2F;
}

/* Button */
.mst-tour-btn {
    display: inline-block;
    background: #4A5C2F;
    color: white !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.mst-tour-btn:hover {
    background: #7B4F2E !important;
    transform: translateX(3px);
}

/* Filter Buttons */
.mst-filter-wrapper {
    width: 100%;
}

.mst-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    justify-content: center;
}

.mst-filter-btn {
    background: transparent;
    border: 2px solid #C9B99A;
    color: #7B4F2E;
    padding: 8px 22px;
    border-radius: 25px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.mst-filter-btn:hover,
.mst-filter-btn.active {
    background: #4A5C2F;
    border-color: #4A5C2F;
    color: white;
}

/* No tours message */
.mst-no-tours {
    text-align: center;
    padding: 40px;
    font-family: 'Lato', sans-serif;
    color: #7B4F2E;
    background: #F5F0E8;
    border-radius: 8px;
}

.mst-no-tours a {
    color: #4A5C2F;
    font-weight: 700;
}

/* =============================================
   Responsive Design
   ============================================= */

@media (max-width: 1024px) {
    .mst-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .mst-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mst-cols-4,
    .mst-cols-3,
    .mst-cols-2 { grid-template-columns: 1fr; }

    .mst-tour-image { height: 220px; }

    .mst-tour-title { font-size: 18px; }

    .mst-tour-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .mst-tour-btn {
        width: 100%;
        text-align: center;
    }

    .mst-filter-buttons {
        gap: 8px;
    }

    .mst-filter-btn {
        padding: 7px 16px;
        font-size: 12px;
    }
}
