/* Room & Property Cards replaces the Booking Engine mobile property dropdown.
   Keep the select in the DOM so the existing synchronization logic continues to work. */
.hdrpc-has-cards .hdbe-mobile-global-field {
    display: none !important;
}

.hdrpc-has-cards .hdbe-inline-global-field {
    display: none !important;
}

.hdrpc-selector {
    --hdrpc-accent: #2563eb;
    --hdrpc-accent-dark: #1747b0;
    --hdrpc-ink: #172033;
    --hdrpc-muted: #64748b;
    --hdrpc-border: #dce4ee;
    --hdrpc-success: #168447;
    padding: 26px 28px 22px;
    border-bottom: 1px solid #e7edf4;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hdrpc-selector-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.hdrpc-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--hdrpc-accent), var(--hdrpc-accent-dark));
    box-shadow: 0 7px 17px rgba(37, 99, 235, .22);
    font-size: 15px;
    font-weight: 900;
}

.hdrpc-selector-title {
    display: block;
    color: var(--hdrpc-ink);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.hdrpc-selector-heading p {
    margin: 3px 0 0;
    color: var(--hdrpc-muted);
    font-size: 13px;
    line-height: 1.45;
}

.hdrpc-card-grid {
    display: grid;
    gap: 16px;
}

.hdrpc-count-1 .hdrpc-card-grid {
    grid-template-columns: minmax(0, 1fr);
}

.hdrpc-count-2 .hdrpc-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hdrpc-count-many .hdrpc-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hdrpc-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hdrpc-border);
    border-radius: 18px;
    outline: none;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hdrpc-card::after {
    position: absolute;
    inset: 0;
    z-index: 6;
    border: 3px solid transparent;
    border-radius: 17px;
    content: "";
    pointer-events: none;
    transition: border-color .18s ease;
}

.hdrpc-card:hover,
.hdrpc-card:focus-visible {
    transform: translateY(-3px);
    border-color: #91b5ff;
    box-shadow: 0 15px 34px rgba(37, 99, 235, .14);
}

.hdrpc-card:focus-visible::after {
    border-color: rgba(37, 99, 235, .42);
}

.hdrpc-card.is-selected {
    border-color: var(--hdrpc-success);
    box-shadow: 0 14px 34px rgba(22, 132, 71, .16);
}

.hdrpc-card.is-selected::after {
    border-color: var(--hdrpc-success);
}

.hdrpc-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.hdrpc-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.hdrpc-card:hover .hdrpc-card-image {
    transform: scale(1.035);
}

.hdrpc-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex-direction: column;
    gap: 8px;
    color: var(--hdrpc-accent);
    background: radial-gradient(circle at 28% 18%, #fff, #dbeafe 55%, #bfdbfe);
}

.hdrpc-card-placeholder svg {
    width: 38px;
    height: 38px;
}

.hdrpc-card-placeholder small {
    color: #475569;
    font-size: 11px;
    font-weight: 750;
}

.hdrpc-card-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 3;
    max-width: calc(100% - 22px);
    padding: 6px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, .78);
    box-shadow: 0 5px 15px rgba(15, 23, 42, .16);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdrpc-gallery-arrow,
.hdrpc-gallery-count {
    position: absolute;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    background: rgba(15, 23, 42, .68);
    backdrop-filter: blur(7px);
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s ease, background .15s ease, transform .15s ease;
}

.hdrpc-card-media:hover .hdrpc-gallery-arrow,
.hdrpc-card-media:hover .hdrpc-gallery-count,
.hdrpc-gallery-arrow:focus,
.hdrpc-gallery-count:focus {
    opacity: 1;
}

.hdrpc-gallery-arrow:hover,
.hdrpc-gallery-count:hover {
    background: rgba(15, 23, 42, .86);
}

.hdrpc-gallery-arrow {
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 39px;
    margin-top: -20px;
    border-radius: 10px;
    font-size: 25px;
    line-height: 1;
}

.hdrpc-gallery-prev {
    left: 9px;
}

.hdrpc-gallery-next {
    right: 9px;
}

.hdrpc-gallery-count {
    right: 9px;
    bottom: 9px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
}

.hdrpc-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 15px;
}

.hdrpc-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hdrpc-card-type {
    display: block;
    margin-bottom: 3px;
    color: var(--hdrpc-accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hdrpc-card h4 {
    margin: 0;
    color: var(--hdrpc-ink);
    font-size: 18px;
    line-height: 1.22;
    letter-spacing: -.018em;
}

.hdrpc-selected-check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 999px;
    color: #fff;
    background: var(--hdrpc-success);
    box-shadow: 0 5px 13px rgba(22, 132, 71, .24);
    font-size: 14px;
    font-weight: 950;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .16s ease, transform .16s ease;
}

.hdrpc-card.is-selected .hdrpc-selected-check {
    opacity: 1;
    transform: scale(1);
}

.hdrpc-card-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 13px;
    margin-top: 12px;
    color: #526174;
    font-size: 11px;
}

.hdrpc-card-stats span,
.hdrpc-card-space {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hdrpc-card-stats span {
    white-space: nowrap;
}

.hdrpc-card-stats svg {
    width: 15px;
    height: 15px;
    color: #718096;
}

.hdrpc-card-stats strong {
    color: #253044;
}

.hdrpc-card-space {
    flex-wrap: wrap;
    margin-top: 9px;
    color: var(--hdrpc-muted);
    font-size: 11px;
}

.hdrpc-card-space svg {
    width: 14px;
    height: 14px;
}

.hdrpc-space-separator {
    color: #cbd5e1;
}

.hdrpc-card-description {
    display: -webkit-box;
    margin: 10px 0 0 !important;
    overflow: hidden;
    color: #526174 !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hdrpc-card-amenities {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.hdrpc-card-amenities span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 5px 7px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.hdrpc-card-amenities i {
    font-style: normal;
    font-size: 11px;
}

.hdrpc-card-amenities .hdrpc-more-amenities {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.hdrpc-card-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    margin-top: auto;
    padding: 0 12px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--hdrpc-accent), var(--hdrpc-accent-dark));
    box-shadow: 0 7px 16px rgba(37, 99, 235, .18);
    font-size: 11px;
    font-weight: 900;
    transition: background .18s ease, box-shadow .18s ease;
}

.hdrpc-card-description + .hdrpc-card-select,
.hdrpc-card-amenities + .hdrpc-card-select,
.hdrpc-card-space + .hdrpc-card-select {
    margin-top: 13px;
}

.hdrpc-select-active {
    display: none;
}

.hdrpc-card.is-selected .hdrpc-card-select {
    background: linear-gradient(135deg, #18a056, var(--hdrpc-success));
    box-shadow: 0 7px 16px rgba(22, 132, 71, .2);
}

.hdrpc-card.is-selected .hdrpc-select-default {
    display: none;
}

.hdrpc-card.is-selected .hdrpc-select-active {
    display: inline;
}

.hdrpc-card.is-selected .hdrpc-select-arrow {
    transform: translateX(2px);
}

.hdrpc-selection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    margin-top: 15px;
    color: var(--hdrpc-muted);
    font-size: 11px;
    font-weight: 750;
    text-align: center;
}

.hdrpc-status-selected {
    display: none;
    color: var(--hdrpc-success);
}

.hdrpc-selector.has-selection .hdrpc-status-default {
    display: none;
}

.hdrpc-selector.has-selection .hdrpc-status-selected {
    display: inline;
}

.hdrpc-js-ready.hdrpc-awaiting-selection .hdbe-booking-body {
    display: none !important;
}

.hdrpc-selection-made .hdbe-booking-body {
    animation: hdrpc-reveal-booking .28s ease both;
    scroll-margin-top: 22px;
}

@keyframes hdrpc-reveal-booking {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hdrpc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 7, 18, .9);
    backdrop-filter: blur(8px);
}

.hdrpc-lightbox.is-open {
    display: flex;
}

.hdrpc-lightbox-dialog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1120px, 100%);
    height: min(760px, 88vh);
}

.hdrpc-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.hdrpc-lightbox-close,
.hdrpc-lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hdrpc-lightbox-close {
    top: -4px;
    right: -4px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 27px;
}

.hdrpc-lightbox-nav {
    top: 50%;
    width: 47px;
    height: 58px;
    margin-top: -29px;
    border-radius: 13px;
    font-size: 34px;
}

.hdrpc-lightbox-prev {
    left: 8px;
}

.hdrpc-lightbox-next {
    right: 8px;
}

.hdrpc-lightbox-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    padding: 6px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .72);
    font-size: 11px;
    font-weight: 800;
    transform: translateX(-50%);
}

.hdrpc-no-scroll {
    overflow: hidden !important;
}

@media (max-width: 980px) {
    .hdrpc-count-many .hdrpc-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    .hdrpc-selector {
        padding: 20px 16px 17px;
    }

    .hdrpc-selector-title {
        font-size: 18px;
    }

    .hdrpc-count-2 .hdrpc-card-grid,
    .hdrpc-count-many .hdrpc-card-grid,
    .hdrpc-count-1 .hdrpc-card-grid {
        grid-template-columns: 1fr;
    }

    .hdrpc-card {
        display: grid;
        grid-template-columns: minmax(145px, 40%) minmax(0, 1fr);
    }

    .hdrpc-card-media {
        min-height: 100%;
        aspect-ratio: auto;
    }

    .hdrpc-card-content {
        padding: 13px;
    }

    .hdrpc-card h4 {
        font-size: 16px;
    }

    .hdrpc-card-description,
    .hdrpc-card-amenities span:nth-child(n+4) {
        display: none;
    }

    .hdrpc-gallery-arrow,
    .hdrpc-gallery-count {
        opacity: 1;
    }

    .hdrpc-lightbox {
        padding: 12px;
    }

    .hdrpc-lightbox-nav {
        width: 40px;
        height: 50px;
    }

    .hdrpc-lightbox-close {
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 500px) {
    .hdrpc-card {
        display: flex;
    }

    .hdrpc-card-media {
        min-height: 0;
        aspect-ratio: 16 / 8.8;
    }

    .hdrpc-card-description {
        display: -webkit-box;
    }

    .hdrpc-card-amenities span:nth-child(n+4) {
        display: inline-flex;
    }
}

@media (hover: none) {
    .hdrpc-gallery-arrow,
    .hdrpc-gallery-count {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdrpc-card,
    .hdrpc-card-image,
    .hdrpc-selected-check,
    .hdrpc-selection-made .hdbe-booking-body {
        animation: none;
        transition: none;
    }
}

/* Nightly rate — same display on real cards and inside admin preview. */
.hdrpc-card-nightly-price{margin:11px 0 6px;display:flex;align-items:center;gap:8px;color:#166534;font-weight:850;font-size:14px;line-height:1.35}
.hdrpc-card-nightly-price:before{content:"";width:7px;height:7px;border-radius:50%;background:#22c55e;flex:0 0 7px}

.hdrpc-card-nightly-price[hidden]{display:none!important}
