/* =========================================================
   RideMonkey Garage — Page Styling (tile-grid rebuild)
   =========================================================
   Shared tile-grid mechanics (.rm-tile-grid, .rm-tile,
   .rm-tile-head, .rm-tile-placeholder) live in
   assets/css/components/tile-grid.css — this file only
   contains Garage's own tile placement and content styling.

   IMPORTANT: every selector below is namespaced under
   .rm-garage for the same reason Home's are namespaced under
   .rm-home — see that file's header comment for the full
   explanation of why (a real bug already happened once from
   skipping this).
   ========================================================= */

.rm-garage {
    width: 100%;
}


/* ---------------------------------------------------------
   Grid placement
   --------------------------------------------------------- */

.rm-garage .rm-w-mybikes    { grid-column: 1 / span 10; grid-row: 1 / span 8; }
.rm-garage .rm-w-reminders  { grid-column: 11 / span 4; grid-row: 1 / span 6; }
.rm-garage .rm-w-sponsored  { grid-column: 11 / span 4; grid-row: 7 / span 2; }


/* ---------------------------------------------------------
   My Bikes — header "+" button
   --------------------------------------------------------- */

.rm-garage .rm-add-btn {
    width: 18px;
    height: 18px;
    border-radius: 5px;

    border: 1.5px solid #ff4b00;
    color: #ff4b00;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}


/* ---------------------------------------------------------
   Bike carousel
   --------------------------------------------------------- */

.rm-garage .rm-bike-carousel {
    flex: 1 1 auto;
    min-height: 0;

    display: flex;
    gap: 14px;

    padding: 18px;
    overflow-x: auto;
}

.rm-garage .rm-bike-card {
    flex: 0 0 240px;

    display: flex;
    flex-direction: column;
    min-height: 0;

    border: 1px solid #dddddd;
    border-radius: 12px;
    overflow: hidden;
    background: #faf9f6;

    scroll-snap-align: center;
}

.rm-garage .rm-bike-photo {
    flex: 1 1 auto;
    min-height: 0;

    background-color: #efece6;
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 40px;
    color: #b9b4aa;
}

.rm-garage .rm-bike-card-body {
    flex: 0 0 auto;
    padding: 12px 16px 14px;
    background: #ffffff;
}

.rm-garage .rm-bike-card-body .rm-card-header-link {
    display: block;
    text-decoration: none;
}

.rm-garage .rm-bike-card-body h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 0 0 8px;

    color: #222222;

    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;

    transition: color 0.15s ease;
}

.rm-garage .rm-bike-card-body .rm-card-arrow {
    color: #ff4b00;
    font-size: 18px;
    font-weight: 900;
}

.rm-garage .rm-bike-card-body .rm-card-header-link:hover h3,
.rm-garage .rm-bike-card-body .rm-card-header-link:focus h3 {
    color: #ff4b00;
}

.rm-garage .rm-bike-model {
    margin: 0 0 8px;
    padding: 0 0 8px;

    border-bottom: 1px solid #ff4b00;

    color: #666666;
    font-size: 13px;
}

.rm-garage .rm-bike-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rm-garage .rm-bike-mileage {
    color: #222222;
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
}

.rm-garage .rm-bike-mileage small {
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    color: #666666;
    margin-left: 4px;
}

.rm-garage .rm-bike-updated {
    font-size: 11px;
    color: #666666;
}

.rm-garage .rm-bikes-empty {
    padding: 20px;

    color: #999999;
    text-align: center;

    font-size: 13px;
    font-style: italic;
}


/* ---------------------------------------------------------
   Archived bikes — notice, toggle link
   --------------------------------------------------------- */

.rm-garage .rm-garage-archived-notice {
    margin: 0 18px 4px;
    padding: 10px 14px;

    background: #fff8f0;

    border: 1px solid #ffd9b8;
    border-radius: 10px;

    color: #666666;

    font-size: 13px;
}

.rm-garage .rm-garage-archive-toggle {
    flex: 0 0 auto;
    padding: 0 18px 18px;
    text-align: center;
}

.rm-garage .rm-garage-archive-toggle a {
    color: #ff4b00;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
}

.rm-garage .rm-garage-archive-toggle a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Reminders — consolidated checklist status across all bikes
   --------------------------------------------------------- */

.rm-garage .rm-reminders-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 14px 16px;
}

.rm-garage .rm-reminder-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;

    padding: 9px 12px;

    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #faf9f6;

    color: #222222;
    text-decoration: none;

    font-size: 12.5px;
}

.rm-garage .rm-reminder-item.warning {
    background: #fff3ea;
    border-color: #ffd9b8;
    color: #b34700;
}

.rm-garage .rm-reminder-bike {
    font-weight: 700;
    color: #222222;
}

.rm-garage .rm-reminder-item.warning .rm-reminder-bike {
    color: #b34700;
}

.rm-garage .rm-reminders-empty {
    padding: 20px;

    color: #999999;
    text-align: center;

    font-size: 13px;
    font-style: italic;
}


/* =========================================================
   Mobile — keep exactly as it was before this redesign: a
   simple single-column stack (the generic grid-to-flex
   collapse is handled by tile-grid.css already).
   ========================================================= */

@media (max-width: 767px) {

    .rm-garage .rm-w-mybikes,
    .rm-garage .rm-w-reminders,
    .rm-garage .rm-w-sponsored {
        grid-column: auto;
        grid-row: auto;
    }

    /* Reminders is new — didn't exist on the original mobile
       page at all, so it doesn't show there */
    .rm-garage .rm-w-reminders {
        display: none;
    }

    /* Strip the new tile chrome from My Bikes and Sponsored on
       mobile — neither had this wrapper/heading originally */
    .rm-garage .rm-w-mybikes,
    .rm-garage .rm-w-sponsored {
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .rm-garage .rm-w-mybikes .rm-tile-head {
        display: none;
    }

    /* Bike carousel -> back to the original vertical stack of
       full-width cards, no photo. The carousel arrows only
       make sense for horizontal scrolling, so they're hidden
       here rather than the desktop carousel wrapper being used
       at all. */
    .rm-garage .rm-carousel {
        display: block;
    }

    .rm-garage .rm-carousel-arrow {
        display: none;
    }

    .rm-garage .rm-bike-carousel {
        display: flex;
        flex-direction: column;
        overflow-x: visible;
        padding: 0;
        gap: 14px;
    }

    .rm-garage .rm-bike-card {
        flex: 0 0 auto;
        width: 100%;

        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
        border-radius: 14px;
    }

    .rm-garage .rm-bike-photo {
        display: none;
    }

    .rm-garage .rm-bike-card-body {
        padding: 0;
        background: none;
    }

    .rm-garage .rm-bike-card-body h3 {
        margin: 0;
        padding: 9px 16px 7px;

        background: #faf9f6;
        border-bottom: 2px solid #ff4b00;

        font-size: 15px;
        text-transform: none;
        letter-spacing: 0;
    }

    .rm-garage .rm-bike-model {
        margin: 0;
        padding: 10px 16px;

        border-bottom: 1px solid #ff4b00;

        color: #222222;
        font-size: 15px;
    }

    .rm-garage .rm-bike-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;

        padding: 10px 16px 12px;
    }

    .rm-garage .rm-bike-mileage,
    .rm-garage .rm-bike-mileage small {
        color: #222222;
        font-size: 13px;
        font-weight: 600;
        font-style: normal;
    }

    .rm-garage .rm-bike-mileage small {
        margin-left: 3px;
    }

    .rm-garage .rm-bike-updated {
        font-size: 12px;
    }

    .rm-garage .rm-garage-archive-toggle {
        padding: 0;
        margin-top: 4px;
    }

}