/* Afrejsedato Popover Calendar Styling */
.lce-afrejse {
    position: relative;
    width: 100%;
}

.lce-afrejse-label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.lce-afrejse-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #d7e2ec;
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    font-family: 'Manrope', 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #0f172a;
    min-height: 48px;
    box-sizing: border-box;
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 10px 18px rgba(15,23,42,0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.lce-afrejse-trigger:hover {
    border-color: #0ea5e9;
    transform: translateY(-1px);
}

.lce-afrejse-trigger:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
}

.lce-ico-chevron {
    transition: transform .2s ease;
    color: #0f172a;
    font-weight: 700;
    font-size: 16px;
    margin-left: 8px;
    line-height: 1;
}

.lce-ico-chevron::before {
    content: "›";
    display: inline-block;
}

.lce-afrejse-trigger.open .lce-ico-chevron {
    transform: rotate(180deg);
}

.lce-afrejse-summary {
    flex: 1;
    color: #475569;
    font-weight: 600;
    font-size: 15px;
    text-align: left;
}

.lce-afrejse-trigger.has-value .lce-afrejse-summary {
    color: #0f172a;
}

/* Popover */
.lce-afrejse-popover {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    z-index: 40;
    width: 460px;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15,23,42,0.18);
    padding: 18px;
}

.lce-flex-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lce-flex-header > span {
    font-weight: 800;
    color: #0f172a;
}

.lce-flex-header select {
    margin-left: auto;
    min-width: 190px;
    padding: 8px 12px;
    border: 1px solid #d7e2ec;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.95rem;
    color: #0f172a;
    font-family: 'Manrope', 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lce-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    padding: 6px 0;
    margin-bottom: 8px;
}

.lce-nav {
    background: #f1f5f9;
    border: 1px solid #d7e2ec;
    border-radius: 12px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: #0f172a;
    transition: all 0.2s ease;
}

.lce-nav:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
    box-shadow: 0 10px 16px rgba(14,165,233,0.15);
}

.lce-month {
    font-size: 1.1rem;
    color: #0f172a;
    text-transform: capitalize;
    letter-spacing: -0.2px;
}

.lce-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.lce-dow span {
    font-size: 0.85rem;
    opacity: .7;
    text-align: center;
    padding: 6px 0;
    font-weight: 700;
    color: #475569;
}

.lce-day {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-weight: 700;
}

.lce-day:hover {
    background: #e6f6ff;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.lce-day.empty {
    visibility: hidden;
}

.lce-day.disabled {
    background: #f8fafc;
    color: #cbd5e1;
    border-style: dashed;
    cursor: not-allowed;
}

.lce-day.sel {
    border-color: transparent;
    background: linear-gradient(120deg, #0ea5e9, #14b8a6);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(14,165,233,0.25);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .lce-afrejse-popover {
        width: 340px;
        right: -12px;
        padding: 16px;
    }
    
    .lce-flex-header select {
        min-width: 150px;
        font-size: 0.9rem;
    }
    
    .lce-day {
        min-height: 34px;
        font-size: 0.95rem;
    }
    
    .lce-nav {
        width: 34px;
        height: 34px;
    }
}
