@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/**
 * Car Rentals Catalog Grid Layout CSS
 * Design inspired by Image 1 (Clean modern cards grid)
 */

.cr-catalog-container {
    max-width: 1200px;
    margin: 120px auto 40px auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .cr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .cr-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Vehicle Card Layout */
.cr-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    overflow: visible; /* Let the car overlap */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    padding: 24px;
}

.cr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
    border-color: #008080;
}

/* Promo Badge */
.cr-card-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdf5ef; /* Very soft orange/logo match tint */
    color: #f58025; /* Logo Orange */
    border: 1px solid #fbdac3;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    margin-top: 10px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Upper Section */
.cr-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    min-height: 120px;
}

.cr-card-meta-left {
    flex: 1;
}

.cr-card-category-tag {
    display: inline-block;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 10px;
}

.cr-card-image-wrapper {
    width: 65%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 3;
}

.cr-card-image-wrapper img {
    max-width: 115%;
    max-height: 125px;
    object-fit: contain;
    position: relative;
    right: -14px;
    top: -12px;
    transform: scale(1.15);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.cr-card:hover .cr-card-image-wrapper img {
    transform: scale(1.24) translate(-6px, -3px);
}

/* Title and Subtext */
.cr-card-middle {
    margin-bottom: 20px;
}

.cr-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.cr-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.cr-card-title a:hover {
    color: #008080;
}

.cr-card-subtext {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
}

.cr-subtext-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cr-subtext-item i {
    color: #3b82f6;
    font-size: 10px;
}

/* Split Bottom Layout */
.cr-card-bottom-split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .cr-card-bottom-split {
        grid-template-columns: 1fr;
    }
}

/* Left Specs Table */
.cr-card-specs-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    background: #ffffff;
}

.cr-table-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    color: #475569;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none !important;
    gap: 4px;
}

.cr-table-spec-item i {
    font-size: 12px;
    color: #94a3b8;
}

.cr-view-all-specs {
    color: #3b82f6;
    border-bottom: none;
    text-decoration: none !important;
}

.cr-view-all-specs:hover {
    background: #f0f7ff;
}

/* Right Pricing Card Block */
.cr-card-price-action-block {
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.cr-price-info-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.cr-price-days-label {
    font-size: 11px;
    color: #475569;
    font-weight: 600;
}

.cr-price-amount-val {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #068285; /* Logo Teal */
    margin: 4px 0;
    line-height: 1;
}

.cr-price-daily-sub {
    font-size: 11px;
    color: #64748b;
}

.cr-card-btn-wrap {
    width: 100%;
}

.cr-card-btn {
    display: block;
    width: 100%;
    background: #0e3047; /* Logo Dark Teal */
    color: #ffffff !important;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.cr-card-btn:hover {
    background: #f58025; /* Logo Orange */
    box-shadow: 0 4px 12px rgba(245, 128, 37, 0.3);
    transform: translateY(-1px);
}

.cr-card-btn:active {
    transform: translateY(0);
}

.cr-card-btn-out {
    background: #cbd5e1;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

.cr-card-btn-out:hover {
    background: #cbd5e1;
    transform: none;
}

.ramirez-card-ribbon-wrapper {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
    border-radius: 0 16px 0 0; /* Matches cr-card top-right corner */
}
.ramirez-card-ribbon {
    position: absolute;
    top: 18px;
    right: -35px;
    width: 160px;
    background: linear-gradient(135deg, #ff7e40 0%, #f97316 100%); /* Orange gradient */
    color: #ffffff;
    text-align: center;
    transform: rotate(45deg);
    padding: 6px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.ramirez-card-ribbon .ribbon-line-1 {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.ramirez-card-ribbon .ribbon-line-2 {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    opacity: 0.95;
    margin-top: 1px;
}
