/* ===================================================
   RENTALS PAGE  Specific Styles
   Inherits base from home.css
   =================================================== */

/* ---------- Page Header ---------- */
.rp-page-header {
    background: #1a1a2e no-repeat center center / cover;
    position: relative;
    overflow: hidden;
    padding: 56px 0 48px;
    text-align: center;
}

.rp-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(21, 128, 61, 0.55) 100%);
    z-index: 1;
}

.rp-page-header::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    right: -180px;
    top: -200px;
    z-index: 1;
}

.rp-page-header-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.rp-page-header i.rp-header-icon {
    font-size: 2.2rem;
    color: var(--hp-accent);
    margin-bottom: 16px;
    display: block;
}

.rp-page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.rp-page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- Category Filter Pills ---------- */
.rp-filters {
    background: var(--hp-card-bg);
    border-bottom: 1px solid var(--hp-border);
    padding: 24px 0 0;
    position: sticky;
    top: var(--hp-topbar-h);
    z-index: 900;
}

.rp-filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.rp-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
}

.rp-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--hp-border);
    background: var(--hp-bg);
    color: var(--hp-text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.rp-filter-pill:hover {
    border-color: var(--hp-accent);
    color: var(--hp-accent);
}

.rp-filter-pill.active {
    background: var(--hp-primary);
    color: #fff;
    border-color: var(--hp-primary);
}

.rp-filter-pill i {
    font-size: 0.85rem;
}

/* Filter Bar (sort + count) */
.rp-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 16px;
    border-top: 1px solid var(--hp-border);
}

.rp-filter-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rp-filter-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--hp-border);
    background: var(--hp-bg);
    font-size: 0.88rem;
    font-family: 'Outfit', sans-serif;
    color: var(--hp-text);
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.rp-filter-select:hover,
.rp-filter-select:focus {
    border-color: var(--hp-accent);
    outline: none;
}

.rp-item-count {
    font-size: 0.88rem;
    color: var(--hp-text-muted);
}

.rp-item-count strong {
    color: var(--hp-primary);
}

/* ---------- Equipment Grid ---------- */
.rp-grid-section {
    padding: 40px 0;
}

.rp-equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Equipment Card */
.rp-card {
    background: var(--hp-card-bg);
    border-radius: 16px;
    border: 1px solid var(--hp-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.rp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.rp-card-image {
    width: 100%;
    height: 260px;
    background: var(--hp-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.rp-card-body {
    padding: 20px;
}

.rp-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hp-primary);
    margin-bottom: 4px;
}

.rp-card-body .rp-card-desc {
    font-size: 0.88rem;
    color: var(--hp-text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.rp-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hp-green-dark);
    margin-bottom: 16px;
}

.rp-card-price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hp-text-muted);
}

.rp-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--hp-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.rp-card-btn:hover {
    background: var(--hp-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* ---------- Pagination ---------- */
.rp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 40px 0 20px;
}

.rp-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--hp-border);
    background: var(--hp-card-bg);
    color: var(--hp-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-page-btn:hover {
    border-color: var(--hp-accent);
    color: var(--hp-accent);
}

.rp-page-btn.active {
    background: var(--hp-primary);
    color: #fff;
    border-color: var(--hp-primary);
}

.rp-page-btn.nav-btn {
    padding: 0 16px;
    width: auto;
    gap: 6px;
}

.rp-page-dots {
    width: 40px;
    text-align: center;
    color: var(--hp-text-muted);
    font-size: 0.9rem;
}

/* Mobile "Load More" (replaces pagination) */
.rp-load-more {
    display: none;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--hp-border);
    background: var(--hp-card-bg);
    color: var(--hp-text);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 24px;
    text-align: center;
}

.rp-load-more i {
    margin-left: 6px;
}

.rp-load-more:hover {
    background: var(--hp-bg);
    border-color: var(--hp-accent);
    color: var(--hp-accent);
}

/* ---------- Need Help CTA ---------- */
.rp-help-cta {
    padding: 80px 0;
    background: var(--hp-primary);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.rp-help-cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    left: -150px;
    bottom: -150px;
}

.rp-help-cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    right: -100px;
    top: -100px;
}

.rp-help-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 24px;
}

.rp-help-cta-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    color: var(--hp-accent);
}

.rp-help-cta h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.rp-help-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.rp-help-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    background: #fff;
    color: var(--hp-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.rp-help-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {
    .rp-equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .rp-filter-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .rp-page-header h1 {
        font-size: 1.8rem;
    }

    .rp-page-header {
        padding: 40px 0 36px;
    }

    .rp-filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .rp-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .rp-filter-pill {
        flex-shrink: 0;
    }

    .rp-equipment-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rp-card-image {
        height: 220px;
    }

    .rp-pagination {
        display: none;
    }

    .rp-load-more {
        display: block;
    }

    .rp-help-cta {
        padding: 56px 0;
    }

    .rp-help-cta h2 {
        font-size: 1.4rem;
    }

    .rp-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
