/* Royal Routes package cards: vertical card, 3 / 2 / 1 columns. */
.rr-pcard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.rr-pcard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.08);
    font-family: var(--gotur-font, "Plus Jakarta Sans", sans-serif);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rr-pcard:hover {
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08), 0 14px 32px rgba(16, 24, 40, 0.12);
}

/* Image: edge to edge, 4:3, cropped (never stretched). Focal point via --rr-focus. */
.rr-pcard__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9edf5;
}

.rr-pcard__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--rr-focus, 50% 50%);
    transition: transform 0.4s ease;
}

.rr-pcard:hover .rr-pcard__media img {
    transform: scale(1.03);
}

.rr-pcard__flags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.rr-pcard__flag--popular {
    background: var(--gotur-base, #123a73);
    color: #fff;
}

.rr-pcard__flag--popular i {
    margin-right: 3px;
    color: var(--gotur-primary, #f4b400);
}

.rr-pcard__flag {
    padding: 5px 10px;
    border-radius: 30px;
    background: var(--gotur-primary, #f4b400);
    color: #1d231f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.rr-pcard__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px;
}

.rr-pcard__dest {
    margin: 0 0 6px;
    color: #1b4f8c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.rr-pcard__title {
    margin: 0 0 8px;
    padding: 0;
    color: var(--gotur-base, #123a73);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    overflow-wrap: anywhere;
}

.rr-pcard__title a {
    color: inherit;
    text-decoration: none;
}

.rr-pcard__title a:hover {
    color: #1b4f8c;
}

.rr-pcard__nights {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.rr-pcard__nights i {
    color: var(--gotur-primary, #f4b400);
    font-size: 14px;
}

.rr-pcard__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.rr-pcard__badges li[hidden] {
    display: none;
}

.rr-pcard__badge,
.rr-pcard__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 5px 9px;
    border: 0;
    border-radius: 30px;
    background: #eef5ff;
    color: #0d4d8b;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.rr-pcard__badge i {
    font-size: 11px;
}

.rr-pcard__more {
    background: transparent;
    box-shadow: inset 0 0 0 1px #c9d9ee;
    cursor: pointer;
}

.rr-pcard__more:hover,
.rr-pcard__more:focus-visible {
    background: #eef5ff;
}

/* Footer is pushed to the bottom so prices and buttons line up across a row. */
.rr-pcard__foot {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e6e9ef;
}

.rr-pcard__price {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rr-pcard__from {
    color: #8a94a3;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.rr-pcard__amount {
    color: #1d231f;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.rr-pcard__amount small {
    color: #8a94a3;
    font-size: 11px;
    font-weight: 500;
}

.rr-pcard__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 14px;
    border-radius: 10px;
    background: #1b4f8c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
    word-spacing: 0.25em;
    transition: background 0.2s ease;
}

.rr-pcard__cta:hover,
.rr-pcard__cta:focus-visible {
    background: #163f70;
    color: #fff;
}

@media (max-width: 1199px) {
    .rr-pcard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .rr-pcard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 340px) {
    /* Button drops under the price only on very narrow screens. */
    .rr-pcard__foot {
        flex-wrap: wrap;
    }
}
