/* ============================================================================
   Central Suite Residence — Luxury Dual-Month Date Range Picker Widget
   ============================================================================ */

.ldp-range-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.97);
    border: 1.5px solid rgba(226, 177, 68, 0.55);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 54px;
    width: 100%;
}
.ldp-range-wrap:hover,
.ldp-range-wrap.ldp-open {
    border-color: #f5d061;
    box-shadow: 0 8px 24px rgba(226, 177, 68, 0.28);
}

/* Light-surface variant (e.g. Room Detail white sidebar card) */
.ldp-range-wrap.ldp-theme-light {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.ldp-range-wrap.ldp-theme-light:hover,
.ldp-range-wrap.ldp-theme-light.ldp-open {
    border-color: #e2b144;
    box-shadow: 0 6px 16px rgba(226, 177, 68, 0.22);
}

.ldp-date-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s;
    min-width: 0;
}
.ldp-date-btn:hover,
.ldp-date-btn.ldp-active {
    background: rgba(226, 177, 68, 0.12);
}
.ldp-date-btn:focus {
    outline: none;
}

.ldp-day-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b1329 0%, #182848 100%);
    color: #f5d061;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid rgba(226, 177, 68, 0.45);
    line-height: 1;
}
.ldp-date-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ldp-date-kicker {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #b45309;
    line-height: 1.1;
}
.ldp-date-monthyear {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.ldp-date-weekday {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    line-height: 1.1;
}

.ldp-nights-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    position: relative;
    flex-shrink: 0;
}
.ldp-nights-divider::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 1px;
    background: #e2e8f0;
}
.ldp-nights-pill {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #e2b144 0%, #d49e2a 100%);
    color: #0f172a;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(212, 158, 42, 0.35);
    letter-spacing: 0.2px;
}

/* Floating Dual-Calendar Popover */
.ldp-popover {
    position: absolute;
    z-index: 99999;
    width: 630px;
    max-width: calc(100vw - 20px);
    background: #ffffff;
    border: 1.5px solid #e2b144;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32), 0 0 0 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: none;
    font-family: inherit;
    color: #0f172a;
}
.ldp-popover.ldp-visible {
    display: block;
    animation: ldpFadeIn 0.16s ease-out;
}
@keyframes ldpFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ldp-pop-header {
    background: linear-gradient(135deg, #0b1329 0%, #182848 100%);
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid #e2b144;
}
.ldp-pop-status {
    font-size: 12.5px;
    font-weight: 700;
    color: #fde68a;
    display: flex;
    align-items: center;
    gap: 7px;
}
.ldp-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ldp-preset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(226, 177, 68, 0.4);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.15s;
}
.ldp-preset-btn:hover {
    background: #e2b144;
    color: #0f172a;
    border-color: #e2b144;
}

.ldp-months-wrap {
    display: flex;
    gap: 18px;
    padding: 16px 18px 12px 18px;
    background: #ffffff;
    position: relative;
}
.ldp-month-col {
    flex: 1 1 0;
    min-width: 0;
}
.ldp-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    min-height: 28px;
}
.ldp-month-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    flex: 1;
}
.ldp-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}
.ldp-nav-btn:hover {
    background: #0f172a;
    color: #f5d061;
    border-color: #0f172a;
}
.ldp-nav-spacer {
    width: 28px;
    height: 28px;
}

.ldp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 6px;
}
.ldp-weekdays span {
    text-align: center;
    font-size: 10.5px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 3px 0;
}

.ldp-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 3px;
}
.ldp-day-cell {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    position: relative;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s;
    user-select: none;
}
.ldp-day-cell.ldp-empty {
    cursor: default;
    pointer-events: none;
}
.ldp-day-cell.ldp-disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    text-decoration: line-through;
    font-weight: 500;
}
.ldp-day-cell:not(.ldp-disabled):not(.ldp-empty):hover {
    background: rgba(226, 177, 68, 0.25);
    color: #0f172a;
}
.ldp-day-cell.ldp-today::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d49e2a;
}
.ldp-day-cell.ldp-in-range {
    background: rgba(226, 177, 68, 0.18);
    border-radius: 0;
    color: #78350f;
}
.ldp-day-cell.ldp-start-date {
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%) !important;
    color: #f5d061 !important;
    border-radius: 8px 0 0 8px;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25);
}
.ldp-day-cell.ldp-end-date {
    background: linear-gradient(135deg, #e2b144 0%, #d49e2a 100%) !important;
    color: #0f172a !important;
    border-radius: 0 8px 8px 0;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(212, 158, 42, 0.35);
}
.ldp-day-cell.ldp-start-date.ldp-single-end {
    border-radius: 8px;
}

.ldp-pop-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.ldp-pop-summary {
    color: #334155;
    font-weight: 700;
}
.ldp-pop-summary strong {
    color: #b45309;
}
.ldp-done-btn {
    background: #0f172a;
    color: #f5d061;
    border: 1px solid #e2b144;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
}
.ldp-done-btn:hover {
    background: #e2b144;
    color: #0f172a;
}

@media (max-width: 680px) {
    .ldp-popover {
        width: 330px;
    }
    .ldp-month-col:nth-child(2) {
        display: none;
    }
    .ldp-date-btn {
        padding: 6px 8px;
        gap: 7px;
    }
    .ldp-day-box {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .ldp-date-monthyear {
        font-size: 12px;
    }
}
