/* Disponibilites de location   (prefixe : rv-) */
.rv-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.rv-form label {
    display: grid;
    gap: 4px;
}

.rv-form span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.rv-form input,
.rv-input {
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
}

.rv-btn {
    height: 44px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.rv-btn.is-light {
    color: var(--secondary);
    background: #fff;
    border: 1.5px solid var(--border);
}

.rv-btn.is-danger {
    color: #b91c1c;
    background: #fff;
    border: 1.5px solid #fecaca;
}

.rv-msg {
    margin: 0 0 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 12px;
}

.rv-msg.is-ok {
    color: #065f46;
    background: #d1fae5;
}

.rv-msg.is-ko {
    color: #991b1b;
    background: #fee2e2;
}

.rv-msg.is-error {
    color: #92400e;
    background: #fef3c7;
}

.rv-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.rv-month h3 {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary);
}

.rv-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.rv-dow {
    padding-bottom: 3px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
}

.rv-day {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
}

.rv-day.is-empty {
    visibility: hidden;
}

.rv-day.is-free {
    color: #065f46;
    background: #ecfdf5;
}

.rv-day.is-busy {
    color: #991b1b;
    background: #fee2e2;
    text-decoration: line-through;
}

.rv-day.is-past {
    color: #cbd5e1;
    background: transparent;
}

.rv-day.is-selected {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.rv-day.is-today {
    font-weight: 800;
    box-shadow: inset 0 -3px 0 var(--secondary);
}

.rv-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.rv-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: -1px;
    border-radius: 4px;
}

.rv-legend i.is-free {
    background: #a7f3d0;
}

.rv-legend i.is-busy {
    background: #fca5a5;
}

.rv-legend i.is-selected {
    border: 2px solid var(--primary);
}

/* ---------- Gestion par le proprietaire ---------- */
.rv-page {
    max-width: 880px;
    margin: 28px auto 80px;
}

.rv-page h1 {
    margin-bottom: 4px;
    font-size: 26px;
    color: var(--secondary);
}

.rv-page > p {
    margin-bottom: 22px;
    color: var(--text-secondary);
}

.rv-panel {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
}

.rv-panel h2 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--secondary);
}

.rv-list {
    display: grid;
    gap: 8px;
}

.rv-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-app);
    border-radius: 12px;
}

.rv-item small {
    display: block;
    color: var(--text-muted);
}

.rv-item form {
    margin: 0;
}
