/* insure_flat_frontend/css/offer-listing.css */
/* Inspired by booking.com offer cards, modern, clean, and visually appealing */

.offer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.offer-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(42,125,225,0.10), 0 1.5px 6px rgba(0,0,0,0.04);
    padding: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
    min-height: 200px;
    position: relative;
}
.offer-card:hover {
    box-shadow: 0 8px 32px rgba(42,125,225,0.18), 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px) scale(1.012);
}
.offer-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    background: #eaf2fb;
    flex-shrink: 0;
    border-right: 1px solid #f0f0f0;
}
.offer-content {
    flex: 1;
    padding: 1.5rem 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.offer-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2a7de1;
    margin-bottom: 0.4rem;
}
.offer-desc {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 1.1rem;
}
.offer-meta {
    font-size: 0.98rem;
    color: #666;
    margin-bottom: 0.7rem;
}
.offer-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a5bb8;
    margin-bottom: 0.7rem;
}
.affiliate-link {
    display: inline-block;
    background: linear-gradient(90deg, #2a7de1 60%, #1a5bb8 100%);
    color: #fff;
    padding: 0.7rem 1.7rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(42,125,225,0.10);
    transition: background 0.2s, box-shadow 0.2s;
}
.affiliate-link:hover {
    background: linear-gradient(90deg, #1a5bb8 60%, #2a7de1 100%);
    box-shadow: 0 4px 16px rgba(42,125,225,0.18);
}
.views {
    font-size: 0.93rem;
    color: #888;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}
.views svg {
    margin-right: 0.3rem;
    fill: #2a7de1;
}
@media (max-width: 700px) {
    .offer-card {
        flex-direction: column;
        min-height: unset;
    }
    .offer-img {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .offer-content {
        padding: 1.2rem;
    }
}
@media (max-width: 480px) {
    .offer-list {
        grid-template-columns: 1fr !important;
        gap: 0.7rem !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .offer-card {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        border-radius: 7px !important;
        box-sizing: border-box;
        padding: 0.7rem !important;
        background: #f2f6fa;
    }
    .offer-content {
        padding: 0.7rem 0.5rem 0.7rem 0.5rem !important;
    }
    .offer-img {
        width: 100% !important;
        min-width: 0 !important;
        height: 140px !important;
        border-radius: 6px 6px 0 0 !important;
        object-fit: cover;
        border-right: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    .affiliate-link {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    .offer-desc {
        display: none !important;
    }
}
