/* Discounted routes + collection points — twin panels after Delivery Point Partners */
body.nine-properties {
    --pm-rc-navy: #09233c;
    --pm-rc-muted: #667085;
    --pm-rc-border: #e7ebf0;
    --pm-rc-purple: var(--nine-pm-brand-btn, #0abf53);
    --pm-rc-blue: #2563eb;
    --pm-rc-panel-body-min: 236px;
}

body.nine-properties .nine-pm-routes-collection-band {
    padding-top: var(--nine-pm-section-gap, 2.5rem) !important;
    padding-bottom: 0 !important;
}

body.nine-properties .nine-pm-routes-collection__inner {
    max-width: var(--nine-pm-content-max, 1280px);
    margin: 0 auto;
    padding: 0 var(--nine-pm-content-gutter, 15px);
    box-sizing: border-box;
}

body.nine-properties .nine-pm-routes-collection__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

body.nine-properties .nine-pm-routes-collection-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 16px 16px 14px;
    border: 1px solid var(--pm-rc-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(9 35 60 / 4%);
    box-sizing: border-box;
}

body.nine-properties .nine-pm-routes-collection-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex: 0 0 auto;
}

body.nine-properties .nine-pm-routes-collection-panel__titles {
    min-width: 0;
}

body.nine-properties .nine-pm-routes-collection-panel__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    color: var(--pm-rc-navy);
    text-transform: uppercase;
}

body.nine-properties .nine-pm-routes-collection-panel__subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--pm-rc-muted);
}

body.nine-properties .nine-pm-routes-collection-panel__link {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--pm-rc-purple);
    text-decoration: none;
    white-space: nowrap;
}

body.nine-properties .nine-pm-routes-collection-panel__link:hover {
    color: #5b21b6;
    text-decoration: underline;
}

body.nine-properties .nine-pm-routes-collection-panel__body {
    flex: 1 1 auto;
    min-height: var(--pm-rc-panel-body-min);
}

body.nine-properties .nine-pm-discounted-routes__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
    height: 100%;
    align-items: stretch;
}

body.nine-properties .nine-pm-discounted-route-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

body.nine-properties .nine-pm-discounted-route-card:hover {
    box-shadow: 0 8px 20px rgb(9 35 60 / 8%);
    transform: translateY(-1px);
}

body.nine-properties .nine-pm-discounted-route-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    background: #0abf53;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

body.nine-properties .nine-pm-discounted-route-card__media {
    flex: 1 1 auto;
    min-height: 72px;
    overflow: hidden;
    background: #e8eef3;
}

body.nine-properties .nine-pm-discounted-route-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.nine-properties .nine-pm-discounted-route-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 9px 9px;
}

body.nine-properties .nine-pm-discounted-route-card__label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.4em;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pm-rc-navy);
}

body.nine-properties .nine-pm-discounted-route-card__badge--final-call {
    background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
}

body.nine-properties .nine-pm-discounted-route-card--final-call {
    border-color: #fed7aa;
}

body.nine-properties .nine-pm-discounted-route-card__fill {
    color: #c2410c;
}

body.nine-properties .nine-pm-discounted-route-card__progress {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: #eef1f4;
    overflow: hidden;
}

body.nine-properties .nine-pm-discounted-route-card__progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
}

body.nine-properties .nine-pm-discounted-route-card__foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

body.nine-properties .nine-pm-discounted-route-card__from {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 10px;
    line-height: 1.2;
    color: var(--pm-rc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.nine-properties .nine-pm-discounted-route-card__rate {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: var(--pm-rc-blue);
    white-space: nowrap;
}

body.nine-properties .nine-pm-discounted-route-card__rate small {
    font-size: 10px;
    font-weight: 700;
}

body.nine-properties .nine-pm-collection-points__grid {
    display: grid;
    grid-template-columns: repeat(var(--pm-collection-grid-columns, 3), minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
    height: 100%;
    align-content: stretch;
}

body.nine-properties .nine-pm-collection-point-card {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 10px 11px;
    border: 1px solid #eef1f4;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.nine-properties .nine-pm-collection-point-card:hover {
    border-color: #dbeafe;
    box-shadow: 0 4px 12px rgb(9 35 60 / 6%);
}

body.nine-properties .nine-pm-collection-point-card__flag-wrap {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border-radius: 50%;
}

body.nine-properties .nine-pm-collection-point-card__flag {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-size: cover;
}

body.nine-properties .nine-pm-collection-point-card__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    flex: 1 1 auto;
}

body.nine-properties .nine-pm-collection-point-card__text strong {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pm-rc-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.nine-properties .nine-pm-collection-point-card__text span {
    font-size: 10px;
    line-height: 1.25;
    color: var(--pm-rc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.nine-properties .nine-pm-collection-point-card--view-all {
    border-style: dashed;
    border-color: #d8dee6;
    background: #fafbfc;
    justify-content: flex-start;
}

body.nine-properties .nine-pm-collection-point-card--view-all .nine-pm-collection-point-card__text strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    line-height: 1.2;
}

body.nine-properties .nine-pm-collection-point-card--view-all:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

body.nine-properties .nine-pm-collection-point-card__view-all-icon {
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--pm-rc-purple);
    font-size: 12px;
}

@media (max-width: 1199px) {
    body.nine-properties {
        --pm-rc-panel-body-min: 0;
    }

    body.nine-properties .nine-pm-discounted-routes__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.nine-properties .nine-pm-discounted-route-card__media {
        min-height: 96px;
    }

    body.nine-properties .nine-pm-collection-points__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body.nine-properties .nine-pm-routes-collection__grid {
        grid-template-columns: 1fr;
    }

    body.nine-properties .nine-pm-routes-collection-panel__body {
        min-height: 0;
    }
}

@media (max-width: 575px) {
    body.nine-properties .nine-pm-routes-collection-panel__head {
        flex-wrap: wrap;
    }

    body.nine-properties .nine-pm-discounted-routes__cards,
    body.nine-properties .nine-pm-collection-points__grid {
        grid-template-columns: 1fr;
    }

    body.nine-properties .nine-pm-discounted-route-card__media {
        min-height: 140px;
    }
}
