/* Moi Travel — Airbnb-style range date picker */
.dp-field { position: relative; }

.dp-popover {
    position: absolute;
    z-index: 60;
    top: calc(100% + 10px);
    /* Left-anchored by default (search bars / left-column fields). Right-column
       consumers (e.g. the property booking widget) override to right:0. */
    left: 0;
    right: auto;
    width: min(640px, 92vw);
    background: #fff;
    border: 1px solid var(--border-light, #e6e6e6);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    padding: 18px 20px 14px;
}

.dp-head { position: relative; height: 0; }
.dp-nav {
    position: absolute; top: 2px;
    width: 34px; height: 34px; border-radius: 50%;
    border: none; background: transparent; cursor: pointer;
    font-size: 20px; line-height: 1; color: var(--text-primary, #1a1a1a);
    transition: background 0.15s;
}
.dp-nav:hover { background: var(--accent-soft, #f7eaec); }
.dp-nav[data-nav="-1"] { left: 0; }
.dp-nav[data-nav="1"] { right: 0; }

.dp-months { display: flex; gap: 28px; }
.dp-month { flex: 1; min-width: 0; }
.dp-month-label { text-align: center; font-weight: 700; font-size: 15px; margin-bottom: 12px; }

.dp-dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.dp-dow span { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-secondary, #717171); }

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; }

.dp-day {
    aspect-ratio: 1 / 1;
    border: none; background: transparent;
    font-size: 13.5px; font-weight: 500; color: var(--text-primary, #1a1a1a);
    cursor: pointer; position: relative;
    border-radius: 50%;
    transition: background 0.12s, color 0.12s;
}
.dp-day:not(.dp-disabled):not(.dp-empty):hover { box-shadow: inset 0 0 0 1.5px var(--text-primary, #1a1a1a); }
.dp-empty { cursor: default; }

.dp-disabled {
    color: #c9c9c9; cursor: not-allowed;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.dp-disabled:hover { box-shadow: none; }
.dp-past { text-decoration: none; }

/* Range fill — square middle, rounded ends */
.dp-inrange { background: var(--accent-soft, #f7eaec); border-radius: 0; color: var(--text-primary, #1a1a1a); }
.dp-start, .dp-end {
    background: var(--accent, #8e1f2c) !important;
    color: #fff !important;
    border-radius: 50%;
    z-index: 1;
}
/* Connect the selected endpoints to the range fill */
.dp-start { box-shadow: 8px 0 0 var(--accent-soft, #f7eaec); }
.dp-end { box-shadow: -8px 0 0 var(--accent-soft, #f7eaec); }
.dp-start.dp-end { box-shadow: none; }

.dp-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-light, #ebebeb);
}
.dp-foot-info { font-size: 13px; color: var(--text-secondary, #717171); font-weight: 500; }
.dp-clear {
    background: none; border: none; cursor: pointer;
    font-weight: 700; font-size: 13.5px; color: var(--text-primary, #1a1a1a);
    text-decoration: underline; padding: 6px 4px;
}
.dp-clear:hover { color: var(--accent, #8e1f2c); }

/* Trigger active state + selected-value text */
.dp-active { box-shadow: 0 0 0 2px var(--accent, #8e1f2c) inset; border-radius: 10px; }
.date-display { color: var(--text-secondary, #717171); font-size: 14px; }
.date-display.has-val { color: var(--text-primary, #1a1a1a); font-weight: 600; }

@media (max-width: 560px) {
    .dp-months { flex-direction: column; gap: 10px; }
    .dp-popover { padding: 16px 14px 12px; }
}
