/* Card/carousel/myad-list/modal/form-card chrome (.pcuc-card,
   .pcuc-carousel-wrap, .pcuc-myad-*, .pcuc-modal-overlay/.pcuc-modal,
   .pcuc-modern-form/.pcuc-form-card, .pcuc-sell-wrap/.pcuc-sell-hero,
   .pcuc-archive-wrap/.pcuc-archive-hero, .pcuc-single-wrap/.pcuc-breadcrumb/
   .pcuc-gallery/.pcuc-section-title/.pcuc-specs-grid/.pcuc-seller-box,
   .pcuc-no-results) is inherited from pc-used-cars' own public.css.
   Everything below fills in the archive/single/form layout pieces that
   plugin never needed (used-cars' archive/single pages are hand-styled
   directly in their templates rather than via reusable classes). */

/* Edit-ad modal now shares the exact same behavior as used-cars' —
   see .pcuc-modal-overlay / .pcuc-edit-modal .pcuc-modal in
   pc-used-cars/assets/css/public.css: no height cap, no inner scroll,
   the modal grows to its natural content height and the overlay itself
   scrolls if that's taller than the viewport. Nothing rental-specific
   needed here any more — the old sticky-header/scrollable-middle/
   sticky-footer layout has been removed along with its markup in
   templates/partials/my-ads.php. */

/* ── Carousel wrap/nav — the used-cars carousel defines these inline in
   PCUC_Shortcodes::carousel() rather than in its external CSS; ported
   here verbatim since pcrc_render_card()'s carousel reuses the exact same
   .pcuc-carousel-wrap/.pcuc-swiper-prev/.pcuc-swiper-next markup. ────── */
.pcuc-carousel-wrap { width: 100%; box-sizing: border-box; }
.pcuc-carousel-nav-wrap { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; padding-right: 5px; }
.pcuc-swiper-prev, .pcuc-swiper-next {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid #e5e7eb; background: #fff; cursor: pointer; transition: all .2s ease;
    display: inline-flex; align-items: center; justify-content: center; color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,.05); margin: 0; position: relative; top: auto; left: auto; right: auto; transform: none;
}
.pcuc-swiper-prev:hover, .pcuc-swiper-next:hover { background: #016b61; color: #fff; border-color: #016b61; box-shadow: 0 4px 10px rgba(1,107,97,.2); }
.pcuc-swiper-prev::after, .pcuc-swiper-next::after { display: none !important; }
.pcuc-swiper-prev i, .pcuc-swiper-next i { font-size: 13px; }

/* ── Archive page ──────────────────────────────────────────────────── */
.pcuc-hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #c2410c; color: #fff; font-weight: 800;
    padding: 12px 22px; border-radius: 10px; text-decoration: none;
    margin-top: 16px;
}
/* The real .pcuc-sidebar (from pc-used-cars) gets its inner spacing from
   #pcucFilterForm { padding: 16px 20px !important; } — an ID-scoped rule
   tied to the used-cars form's own ID, so it never reaches our #pcrcFilterForm.
   Everything else (.pcuc-sidebar, .pcuc-sidebar-title, .pcuc-filter-group,
   .pcuc-mob-filter-*) is the real, already-styled class already in use. */
#pcrcFilterForm { padding: 16px 20px; }
.pcuc-loading { text-align: center; padding: 40px; color: #6b7280; }

/* ── Single page ───────────────────────────────────────────────────── */
/* Real .pcuc-main-image img is object-fit:contain !important (shared with
   used-cars, which is correct there). This plugin's own stylesheet loads
   after it and only on rental pages, so this override is safe: it fills
   the preview box like the cards (matching request), while the lightbox
   zoom (.pcuc-lightbox-overlay img, untouched) still shows the full,
   uncropped photo. */
.pcuc-main-image img { object-fit: cover !important; object-position: center !important; }

/* ── Sell form ─────────────────────────────────────────────────────── */
.pcuc-login-required { text-align: center; padding: 60px 20px; }
.pcuc-form-error { background: #fee2e2; color: #dc2626; border-radius: 8px; padding: 12px 16px; margin: 0 auto 16px; max-width: 720px; }
.pcuc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pcuc-form-grid label { display: block; font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.pcuc-form-grid input, .pcuc-form-grid select, .pcuc-form-card > input, .pcuc-form-card > select, .pcuc-form-card > textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.pcuc-field-hint { display: block; color: #9ca3af; font-size: 11px; margin-top: 8px; }
.pcuc-features-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcuc-features-checklist label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pcuc-img-preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.rc-img-preview { position: relative; width: 90px; height: 90px; border-radius: 8px; overflow: hidden; }
.rc-img-preview img { width: 100%; height: 100%; object-fit: cover; }
.rc-upload-badge { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 9px; text-align: center; padding: 2px; }
.rc-upload-badge.rc-upload-error { background: #dc2626; }
.rc-img-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; line-height: 1; }
@media (max-width: 640px) { .pcuc-form-grid, .pcuc-features-checklist { grid-template-columns: 1fr; } }

/* ── My Ads empty state ───────────────────────────────────────────── */
.pc-db-empty { text-align: center; padding: 40px 20px; color: #6b7280; }
.pc-db-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-size: 13px; }
.pc-db-btn.primary { background: #016b61; color: #fff; }
.pc-db-btn.sm { padding: 8px 14px; font-size: 12px; background: #f3f4f6; color: #111827; }


.pcrc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #016b61;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.pcrc-driver-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    color: #016b61;
    border: 1px solid #d1fae5;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.pcrc-driver-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #016b61;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px 10px 0 0;
    margin: 16px 0 0;
}
.pcrc-rate-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    margin: 16px 0;
}
.pcrc-rate-box.pcrc-rate-box--attached {
    margin-top: 0;
    border-top: none;
    border-radius: 0 0 10px 10px;
}
.pcrc-rate-box .pcrc-rate-item { text-align: center; }
.pcrc-rate-box .pcrc-rate-label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; }
.pcrc-rate-box .pcrc-rate-value { font-size: 20px; font-weight: 800; color: #016b61; margin-top: 4px; }
.pcrc-rate-box .pcrc-rate-value.pcrc-rate-empty { color: #9ca3af; font-size: 13px; font-weight: 500; }

.pcrc-driver-toggle { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.pcrc-driver-toggle label {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
}
.pcrc-driver-toggle input:checked + span { font-weight: 700; color: #016b61; }
.pcrc-driver-toggle label:has(input:checked) { border-color: #016b61; background: #f0fdf4; }

.pcrc-similar-wrap, .pcrc-seller-ads-wrap { margin-top: 32px; }

.pcrc-card-tagline {
    font-size: 12.5px;
    color: #6b7280;
    margin: -4px 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Elevates the .pcuc-form-card whose custom-select dropdown is open, so its
   absolutely-positioned options list paints above the form cards below it. */
.pcuc-form-card.pcrc-elevated { position: relative; z-index: 50; }
