/**
 * Travel page — calendar popover styled like RDP / slate UI (Arabic, Sunday-first week).
 */

.travel-date-picker {
    position: relative;
}

.travel-date-picker.is-rdp-open {
    z-index: 60;
}

.travel-rdp-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 90;
    width: min(100%, 340px);
    margin-inline-start: auto;
    margin-inline-end: auto;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.travel-rdp-popover[hidden] {
    display: none !important;
}

.travel-rdp-inner {
    position: relative;
    width: 100%;
    text-align: center;
}

.travel-rdp-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 40px;
    pointer-events: none;
}

.travel-rdp-nav-btn {
    pointer-events: auto;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
    line-height: 0;
}

.travel-rdp-nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.travel-rdp-nav-btn-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.travel-rdp-nav-btn:not(:disabled):hover .travel-rdp-nav-btn-inner {
    border-color: #94a3b8;
}

.travel-rdp-nav-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/*
 * السهم في SVG يشير افتراضياً لليسار = الشهر السابق.
 * الشهر التالي = نفس الشكل بزاوية 180°.
 * الحاوية travel-rdp-inner بـ dir="ltr" حتى يبقى اليسار = سابق / اليمين = تالي حتى في صفحات عربية.
 */
.travel-rdp-nav-btn--prev svg {
    transform: none;
}

.travel-rdp-nav-btn--next svg {
    transform: rotate(180deg);
}

.travel-rdp-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 40px;
    padding-inline: 42px;
    margin-bottom: 8px;
}

.travel-rdp-select-shell {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    background: #fff;
    transition: border-color 0.15s ease;
}

.travel-rdp-select-shell:hover,
.travel-rdp-select-shell:focus-within {
    border-color: #94a3b8;
}

.travel-rdp-select-shell select {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    max-width: 140px;
}

.travel-rdp-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.travel-rdp-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.travel-rdp-weekday-row th {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    padding: 6px 0 10px;
    border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 640px) {
    .travel-rdp-weekday-row th {
        font-size: 0.8125rem;
    }
}

.travel-rdp-cell {
    padding: 2px;
    text-align: center;
    vertical-align: middle;
}

.travel-rdp-cell--outside .travel-rdp-day {
    color: rgba(71, 85, 105, 0.72);
}

.travel-rdp-cell--disabled {
    opacity: 0.48;
}

.travel-rdp-cell--disabled .travel-rdp-day {
    cursor: not-allowed;
    color: #94a3b8;
}

.travel-rdp-cell--disabled .travel-rdp-day:hover {
    background: transparent !important;
}

.travel-rdp-cell--today:not(.travel-rdp-cell--disabled) .travel-rdp-day {
    color: #2563eb;
    font-weight: 800;
}

.travel-rdp-cell--selected:not(.travel-rdp-cell--disabled) .travel-rdp-day {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
}

.travel-rdp-day {
    width: 100%;
    max-width: 40px;
    height: 38px;
    margin: 0 auto;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.travel-rdp-cell:not(.travel-rdp-cell--disabled) .travel-rdp-day:hover {
    background: #dbeafe;
}

@media (max-width: 380px) {
    .travel-rdp-popover {
        width: 100%;
    }

    .travel-rdp-caption {
        padding-inline: 36px;
    }

    .travel-rdp-day {
        height: 34px;
        font-size: 0.8125rem;
    }
}
