/* service-listing.css — shared card grid for the Car Rental + Holiday Home
   listing pages. Reuses the Design-A .svc-card visual language already used by
   the home page sections, kept self-contained here so the listing pages don't
   depend on home.css. Brand tokens only; --primary stays #F05000. */

.svc-listing-hero {
    background: var(--navy, #003060);
    color: #fff;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}
.svc-listing-hero h1 {
    /* Must be set explicitly: global.css gives every h1-h6 `color: var(--gray-900)`,
       and a direct rule beats the white this hero passes down by inheritance — so
       the heading rendered near-black on navy while the sibling <p>, which has no
       colour rule of its own, correctly inherited white. */
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 .5rem;
}
.svc-listing-hero p { margin: 0; max-width: 60ch; opacity: .92; }

.svc-toolbar {
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: center; justify-content: space-between;
    margin-block: 1.25rem;
}
.svc-result-count { margin: 0; color: var(--text-muted, #5b6b7b); font-size: .95rem; }
.svc-sort-select {
    padding: .5rem .75rem; border: 1px solid var(--border, #d9e0e7);
    border-radius: 8px; font: inherit; background: #fff; cursor: pointer;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding-block: 0 3rem;
}

.svc-card {
    background: #fff; border: 1px solid var(--border, #eceff2);
    border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: box-shadow .2s, transform .2s;
}
.svc-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); transform: translateY(-2px); }
.svc-card-img-wrap { position: relative; aspect-ratio: 16 / 11; background: #f2f4f6; }
.svc-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-wish {
    position: absolute; inset-block-start: .6rem; inset-inline-end: .6rem;
    inline-size: 2.25rem; block-size: 2.25rem; border-radius: 50%;
    background: rgba(255,255,255,.92); border: none; cursor: pointer;
    display: grid; place-items: center; color: var(--navy, #003060);
}
.svc-wish svg { width: 18px; height: 18px; }
.svc-wish[aria-pressed="true"] { color: var(--primary, #F05000); }

.svc-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.svc-rating { display: flex; align-items: center; gap: .4rem; font-size: .85rem; }
.rating-badge { background: var(--primary, #F05000); color: #fff; font-weight: 700; border-radius: 6px; padding: .1rem .4rem; }
.rating-label { font-weight: 600; }
.rating-reviews { color: var(--text-muted, #7a8794); }
.svc-title { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--navy, #003060); line-height: 1.3; }
.svc-text { font-size: .85rem; color: var(--text-muted, #5b6b7b); margin: 0; }
.svc-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .4rem; }
.svc-price { margin: 0; font-weight: 800; color: var(--navy, #003060); }
.svc-price span { font-weight: 500; font-size: .8rem; color: var(--text-muted, #7a8794); }
.svc-more-link { color: var(--primary, #F05000); font-weight: 600; font-size: .9rem; }

.svc-empty { text-align: center; padding-block: 4rem; color: var(--text-muted, #5b6b7b); }
.svc-empty-title { font-size: 1.15rem; font-weight: 700; color: var(--navy, #003060); margin: .5rem 0; }

.svc-pagination { display: flex; justify-content: center; padding-block: 0 3rem; }
.svc-pagination ul { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.svc-page-link {
    display: inline-flex; align-items: center; gap: .25rem; min-inline-size: 2.4rem; justify-content: center;
    padding: .45rem .7rem; border: 1px solid var(--border, #d9e0e7); border-radius: 8px;
    color: var(--navy, #003060); font-weight: 600;
}
.svc-page-link.is-current { background: var(--primary, #F05000); color: #fff; border-color: var(--primary, #F05000); }
