/* Split for the 300-line cap — order matters, keep sequence. */
.trivago-cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.12s ease;
}
.trivago-cal-nav-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}
.trivago-cal-month-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}
.trivago-cal-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.trivago-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 5px 0;
    margin-bottom: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}
.trivago-cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 2px;
    text-align: center;
}
.trivago-cal-day {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    position: relative;
    user-select: none;
}
.trivago-cal-day.empty {
    cursor: default;
}
.trivago-cal-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    pointer-events: none;
}
.trivago-cal-day-inner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: background-color 0.12s ease, color 0.12s ease;
}
.trivago-cal-day:hover:not(.disabled):not(.empty) .trivago-cal-day-inner {
    background-color: #e2e8f0;
}

/* Selected Start, End, and In-Range Highlights */
.trivago-cal-day.range-start .trivago-cal-day-inner,
.trivago-cal-day.range-end .trivago-cal-day-inner {
    background-color: #007fad !important;
    color: #ffffff !important;
    font-weight: 800;
}
.trivago-cal-day.in-range,
.trivago-cal-day.hover-range {
    background-color: #e0f2fe;
}
.trivago-cal-day.range-start::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    background-color: #e0f2fe;
    z-index: 1;
}
.trivago-cal-day.range-end::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    background-color: #e0f2fe;
    z-index: 1;
}
.trivago-cal-day.range-start.range-end::after,
.trivago-cal-day.range-start.range-end::before {
    display: none;
}

/* Shortcut Pills in Datepicker */
.trivago-cal-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}
.trivago-shortcut-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 9999px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.12s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.trivago-shortcut-btn:hover {
    border-color: #007fad;
    color: #007fad;
    background-color: #f0f9ff;
}

/* Recent Search & Guests Modals in Navbar */
.trivago-recent-dropdown,
.trivago-guests-modal {
    position: absolute;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    z-index: 3500;
    display: none;
    animation: trivagoFadeIn 0.15s ease-out;
}
.trivago-recent-dropdown.show,
.trivago-guests-modal.show {
    display: block !important;
}
.trivago-recent-dropdown {
    left: 0;
    width: 480px;
    max-width: 95vw;
    overflow: hidden;
}

.trivago-recent-header {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.trivago-recent-list {
    max-height: 330px;
    overflow-y: auto;
    padding: 4px 0;
}

.trivago-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.12s ease;
    user-select: none;
}
.trivago-recent-item:hover,
.trivago-recent-item.selected {
    background-color: #f1f5f9;
}

.trivago-recent-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
}
.trivago-recent-icon.icon-blue {
    background-color: #eff6ff;
    color: #0284c7;
}
.trivago-recent-icon.icon-orange {
    background-color: #fff7ed;
    color: #ea580c;
}
.trivago-recent-icon.icon-green {
    background-color: #f0fdf4;
    color: #16a34a;
}
.trivago-recent-icon.icon-purple {
    background-color: #faf5ff;
    color: #9333ea;
}

.trivago-recent-info {
    flex-grow: 1;
    overflow: hidden;
}
.trivago-recent-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trivago-recent-name mark {
    background: transparent;
    color: #007fad;
    font-weight: 800;
    padding: 0;
}
.trivago-recent-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trivago-recent-footer {
    padding: 7px 14px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    font-size: 11px;
    color: #64748b;
}

.trivago-guests-modal {
    right: 0;
    width: 360px;
    max-width: 95vw;
    padding: 18px 20px;
}

/* Desktop Header Search Bar Placement */
#nav_search_wrapper {
    order: 2;
    flex: 1 1 auto;
    max-width: 840px;
    margin: 0 16px;
}
#nav_logged_in_wrapper,
#nav_logged_out_wrapper {
    order: 3;
}
