/* ================================
   DEALS PAGE STYLING - Matches showDeals.css Color Scheme
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================
   OVERRIDE MAIN.CSS DEAL CARD STYLES
   ================================ */

.deal-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8e8e8;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.deal-image {
    position: relative;
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #e8e8e8;
}

.save-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e91929;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* ================================
   DEAL DETAILS CONTENT
   ================================ */

.deal-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
    gap: 10px;
}

.location {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.location::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #009f8e;
    margin-right: 6px;
}

.deal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 8px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.feature i {
    color: #00a896;
    font-size: 14px;
}

.rating {
    margin-bottom: 10px;
}

.rating-text {
    color: #555;
    font-size: 14px;
    margin-right: 5px;
}

.rating-stars {
    color: #62a562;
    font-size: 13px;
}

.divider {
    height: 1px;
    background-color: #e8e8e8;
    margin: 10px 0;
}

.spacer {
    flex-grow: 1;
}

/* ================================
   BOOKING INFO & PRICING
   ================================ */

.booking-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.booking-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nights-count {
    font-weight: normal;
    color: #333;
    font-size: 14px;
}

.checkin-date {
    color: #0071d3;
    font-size: 16px;
    font-weight: 700;
}

.pricing-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.was-price {

    font-size: 14pt;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.deal-price {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.view-btn {
    padding: 12px 28px;
    background: #0095ff;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    margin-left: auto;
}

.view-btn:hover {
    background: #0080e6;
    transform: translateX(4px);
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */

.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .deals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        margin: 20px auto;
    }

    .deal-image {
        height: 200px;
    }

    .deal-title {
        font-size: 16px;
    }

    .pricing-info {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .booking-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .view-btn {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 18px;
    }

    .deal-title {
        font-size: 14px;
    }

    .deal-price {
        font-size: 20px;
    }

    .deal-details {
        padding: 15px;
    }
}
