/* Compact marketplace cards keep garage comparison fast without changing booking data or routes. */
.garage-compare-list {
    display: grid;
    gap: 16px;
}

.garage-compare-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(13, 50, 66, 0.08);
}

.garage-compare-photo {
    position: relative;
    min-height: 190px;
    padding: 12px;
    background: #eef4f7;
}

.garage-compare-photo img {
    width: 100%;
    height: 100%;
    min-height: 166px;
    object-fit: cover;
    border-radius: 10px;
}

.garage-compare-details {
    min-width: 0;
    padding: 18px 20px;
}

.garage-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    margin-bottom: 0.55rem;
    padding: 0.32rem 0.65rem;
    border: 1px solid #f0a500;
    border-radius: 999px;
    background: #fff7df;
    color: #704800;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.garage-name {
    margin: 0 0 4px;
    font-size: 19px;
    line-height: 1.25;
}

.garage-name a {
    color: #006b78;
}

.garage-name a:hover,
.garage-profile-link:hover {
    color: #004e58;
}

.garage-address {
    margin: 0 0 8px;
    color: #526174;
    font-size: 13px;
    line-height: 1.35;
}

.garage-live-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.garage-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid #d8e5ef;
    border-radius: 999px;
    background: #f8fbfd;
    color: #294356;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
}

.garage-status-chip--open {
    border-color: #b9e8cc;
    background: #effbf4;
    color: #087a40;
}

.garage-status-chip--closed {
    border-color: #dce2e8;
    background: #f5f7f9;
    color: #526174;
}

.garage-status-chip--slot {
    border-color: #f5d58d;
    background: #fffaf0;
    color: #8a5a00;
}

.garage-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.garage-feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid #d8e5ef;
    border-radius: 999px;
    background: #f8fbfd;
    color: #294356;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.garage-feature i {
    flex: 0 0 auto;
    color: #139b57;
}

.garage-feature--dealer {
    border-color: #cddcff;
    background: #eef4ff;
    color: #2458d3;
}

.garage-profile-link {
    color: #006b78;
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.garage-compare-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 18px;
    border-left: 1px solid #dbe4ee;
    background: #fbfcfe;
}

.garage-primary-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e3e9ef;
}

.garage-primary-price span {
    color: #33465a;
    font-size: 12px;
    font-weight: 800;
}

.garage-primary-price strong {
    flex: 0 0 auto;
    color: #0b2447;
    font-size: 21px;
    font-weight: 900;
}

.garage-saving-list {
    display: grid;
    gap: 5px;
    padding: 8px;
    border: 1px solid #ffd9d7;
    border-radius: 8px;
    background: #fff4f3;
}

.garage-saving-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ffd9d7;
    color: #c4322b;
    font-size: 10px;
    font-weight: 900;
}

.garage-saving,
.garage-secondary-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    font-size: 11px;
}

.garage-saving span,
.garage-secondary-price span {
    overflow: hidden;
    color: #59687a;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.garage-saving strong {
    color: #c4322b;
}

.garage-saving > span:first-child {
    line-height: 1.25;
    white-space: normal;
}

.garage-saving-value {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
}

.garage-saving-value small {
    color: #a12a24;
    font-size: 9px;
    font-weight: 800;
}

.garage-secondary-price {
    padding-bottom: 7px;
    border-bottom: 1px solid #edf0f3;
}

.garage-secondary-price strong {
    flex: 0 0 auto;
    color: #0b2447;
}

.garage-price-unavailable {
    margin: 0;
    color: #59687a;
    font-size: 12px;
    line-height: 1.4;
}

.garage-book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: auto;
    padding: 9px 12px;
    border: 1px solid #d89800;
    border-radius: 8px;
    background: #ffb400;
    color: #071b2f;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.garage-book-button:hover,
.garage-book-button:focus {
    background: #f3a900;
    color: #071b2f;
}

.garage-results-empty {
    padding: 56px 24px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.garage-results-empty h3 {
    margin-bottom: 8px;
    color: #006b78;
}

.garage-results-empty p {
    margin: 0;
    color: #59687a;
}

@media (max-width: 1199px) {
    .garage-compare-card {
        grid-template-columns: 190px minmax(0, 1fr) 240px;
    }

    .garage-compare-details,
    .garage-compare-price {
        padding: 15px;
    }
}

@media (max-width: 991px) {
    .garage-compare-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .garage-compare-price {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        align-items: center;
        border-top: 1px solid #dbe4ee;
        border-left: 0;
    }

    .garage-book-button {
        min-width: 170px;
        margin-top: 0;
    }
}

@media (max-width: 575px) {
    .garage-compare-card {
        grid-template-columns: 1fr;
    }

    .garage-compare-photo {
        min-height: 190px;
    }

    .garage-compare-photo img {
        height: 190px;
        min-height: 190px;
    }

    .garage-compare-price {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .garage-book-button {
        width: 100%;
    }
}
