/* ==========================================================================
   Jump Now Panel — slide-out sidebar (Figma design)
   ========================================================================== */

/* Overlay — starts below header */
.c-jump-now-panel__overlay {
    position: fixed;
    top: var(--jump-now-header-h, 0px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10020;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.c-jump-now-panel__overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Panel — below header, 1rem margin on all sides */
.c-jump-now-panel {
    position: fixed;
    top: calc(var(--jump-now-header-h, 0px) + 1rem);
    right: 1rem;
    z-index: 10021;
    width: 680px;
    max-width: calc(100% - 2rem);
    height: calc(100vh - var(--jump-now-header-h, 0px) - 2rem);
    background: #1a1a1a;
    color: #fff;
    transform: translateX(calc(100% + 1rem));
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.c-jump-now-panel.is-open {
    transform: translateX(0);
}

/* Panel header */
.c-jump-now-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    flex-shrink: 0;
}

.c-jump-now-panel__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

/* Gold divider under header */
.c-jump-now-panel__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 24px;
    flex-shrink: 0;
}

/* Close button */
.c-jump-now-panel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex-shrink: 0;
}

.c-jump-now-panel__close:hover,
.c-jump-now-panel__close:focus-visible {
    opacity: 0.7;
}

.c-jump-now-panel__close:focus {
    outline: none;
}

/* Panel body */
.c-jump-now-panel__body {
    flex: 1;
    padding: 20px 24px 24px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.c-jump-now-panel__body::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Location cards — 24px from panel edges via parent padding */
.c-jump-now-panel__card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding: 24px;
    height: 256px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
}

/* Card background images are set via inline styles in PHP
   for reliable URL resolution across environments */

/* Card info */
.c-jump-now-panel__card-info {
    position: relative;
    z-index: 1;
}

.c-jump-now-panel__card-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.c-jump-now-panel__card-pin {
    flex-shrink: 0;
    color: #fff;
}

.c-jump-now-panel__card-link,
.c-jump-now-panel__card-link:visited,
.c-jump-now-panel__card-link:active,
.c-jump-now-panel__card-link:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.c-jump-now-panel__card-link:hover {
    text-decoration: underline !important;
    color: #fff !important;
}

.c-jump-now-panel__card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Card action buttons */
.c-jump-now-panel__card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.c-jump-now-panel__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.c-jump-now-panel__btn:focus {
    outline: none;
}

/* Book Now — filled */
.c-jump-now-panel__btn--primary {
    background: rgba(150, 13, 0, 1);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 46px;
    gap: 10px;
}

.c-jump-now-panel__btn--primary:hover,
.c-jump-now-panel__btn--primary:focus-visible {
    background: #b31000;
    color: #fff;
}

/* Gift Certificates — outlined */
.c-jump-now-panel__btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid #960D00;
}

.c-jump-now-panel__btn--outline:hover,
.c-jump-now-panel__btn--outline:focus-visible {
    background: rgba(150, 13, 0, 0.2);
    border-color: #b31000;
    color: #fff;
}

/* Tablet adjustments */
@media only screen and (max-width: 1100px) {
    .c-jump-now-panel {
        width: 480px;
    }

    .c-jump-now-panel__header {
        padding: 16px 20px 12px;
    }

    .c-jump-now-panel__divider {
        margin: 0 20px;
    }

    .c-jump-now-panel__body {
        padding: 16px 20px 20px;
    }

    .c-jump-now-panel__card {
        padding: 20px;
    }

    .c-jump-now-panel__btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

/* Mobile — slides up from bottom, full width */
@media only screen and (max-width: 640px) {
    .c-jump-now-panel {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - var(--jump-now-header-h, 0px));
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .c-jump-now-panel.is-open {
        transform: translateY(0);
    }

    .c-jump-now-panel__card {
        height: 220px;
    }
}

/* Prevent body scroll when panel is open */
body.jump-now-panel-open {
    overflow: hidden;
}
